forked from Acode-Foundation/Acode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.js
More file actions
39 lines (37 loc) · 1.38 KB
/
constants.js
File metadata and controls
39 lines (37 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
export default {
FILE_NAME_REGEX: /^((?![:<>"\\\|\?\*]).)*$/,
FONT_SIZE: /^[0-9\.]{1,3}(px|rem|em|pt|mm|pc|in)$/,
DEFAULT_FILE_SESSION: "default-session",
DEFAULT_FILE_NAME: "untitled.txt",
CONSOLE_PORT: 8159,
SERVER_PORT: 8158,
PREVIEW_PORT: 8158,
VIBRATION_TIME: 30,
VIBRATION_TIME_LONG: 150,
SCROLL_SPEED_FAST_X2: "FAST_X2",
SCROLL_SPEED_NORMAL: "NORMAL",
SCROLL_SPEED_FAST: "FAST",
SCROLL_SPEED_SLOW: "SLOW",
SIDEBAR_SLIDE_START_THRESHOLD_PX: 20,
CUSTOM_THEME: 'body[theme="custom"]',
FEEDBACK_EMAIL: "acode@foxdebug.com",
ERUDA_CDN: "https://cdn.jsdelivr.net/npm/eruda",
get PLAY_STORE_URL() {
return `https://play.google.com/store/apps/details?id=${BuildInfo.packageName}`;
},
//changing url here is not enough, also change in src/plugins/auth/src/android/Authenticator.java
BASE_URL: "https://acode.app",
API_BASE: "https://acode.app/api",
// API_BASE: 'https://192.168.0.102:3001/api', // test api
SKU_LIST: ["crystal", "bronze", "silver", "gold", "platinum", "titanium"],
LOG_FILE_NAME: "Acode.log",
// Social Links
DOCS_URL: "https://docs.acode.app",
WEBSITE_URL: "https://acode.app",
GITHUB_URL: "https://github.com/Acode-Foundation/Acode",
TELEGRAM_URL: "https://t.me/foxdebug_acode",
DISCORD_URL: "https://discord.gg/nDqZsh7Rqz",
TWITTER_URL: "https://x.com/foxbiz_io",
INSTAGRAM_URL: "https://www.instagram.com/foxbiz.io/",
FOXBIZ_URL: "https://foxbiz.io",
};