forked from surmon-china/surmon-china.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
56 lines (47 loc) · 1.5 KB
/
config.ts
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
* @file App config
* @module app.config
* @author Surmon <https://github.com/surmon-china>
*/
import { getSponsorsUrl, getUserPageUrl, getFollowersUrl } from './transformers/url'
const packageJSON = require('./package.json')
export const PROJECT_URL = packageJSON.homepage
export const PROJECT_NAME = packageJSON.name
export const NPM_UID = 'surmon'
export const GITHUB_UID = 'surmon-china'
export const GITHUB_USER_URL = getUserPageUrl(GITHUB_UID)
export const GITHUB_FOLLOWERS_URL = getFollowersUrl(GITHUB_UID)
export const GITHUB_SPONSORS_URL = getSponsorsUrl(GITHUB_UID)
export enum GitHubRepositorieIDs {
Naivebayes = 'naivebayes',
VueAwesomeSwiper = 'vue-awesome-swiper',
VueQuillEditor = 'vue-quill-editor',
VueVideoPlayer = 'vue-video-player',
VueCodemirror = 'vue-codemirror',
VueTouchRipple = 'vue-touch-ripple',
VueDragZone = 'vue-drag-zone'
}
const ALIYUN_PARTER_URL_FIXED = 'https://www.aliyun.com/minisite/goods?userCode=pu7fghvl'
const ALIYUN_PARTER_URL_HOTSALE = 'https://www.aliyun.com/acts/hotsale?userCode=pu7fghvl'
export const GOOGLE_ADSENSE_CLIENT = 'ca-pub-4710915636313788'
export const ALIYUN_ADS = [
{
image: '/images/mammon/aliyun-banner-4.jpg',
url: ALIYUN_PARTER_URL_FIXED
},
{
image: '/images/mammon/aliyun-banner-3.jpg',
url: ALIYUN_PARTER_URL_HOTSALE
}
]
export default Object.freeze({
PROJECT_URL,
PROJECT_NAME,
NPM_UID,
GITHUB_UID,
GITHUB_USER_URL,
GITHUB_FOLLOWERS_URL,
GITHUB_SPONSORS_URL,
GOOGLE_ADSENSE_CLIENT,
ALIYUN_ADS
})