forked from crawlab-team/artipub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
40 lines (40 loc) · 868 Bytes
/
constants.js
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
40
module.exports = {
platform: {
JUEJIN: 'juejin',
SEGMENTFAULT: 'segmentfault',
JIANSHU: 'jianshu',
CSDN: 'csdn',
ZHIHU: 'zhihu',
OSCHINA: 'oschina',
TOUTIAO: 'toutiao',
CNBLOGS: 'cnblogs',
V2EX: 'v2ex',
WECHAT: 'wechat',
},
status: {
NOT_STARTED: 'not-started',
PROCESSING: 'processing',
FINISHED: 'finished',
ERROR: 'error'
},
authType: {
LOGIN: 'login',
COOKIES: 'cookie'
},
editorType: {
MARKDOWN: 'markdown',
RICH_TEXT: 'rich-text'
},
environment: {
UPDATE_STATS_CRON: 'update_stats_cron',
ENABLE_CHROME_DEBUG: 'enable_chrome_debug',
WECHAT_APP_ID: 'wechat_app_id',
WECHAT_APP_SECRET: 'wechat_app_secret',
WECHAT_ACCESS_TOKEN: 'wechat_access_token',
},
cookieStatus: {
NO_COOKIE: 'no_cookie',
EXPIRED: 'expired',
EXISTS: 'exists',
},
}