-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.js
36 lines (35 loc) · 1.17 KB
/
index.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
const { resolve } = require('path')
module.exports = (options, context) => ({
define () {
const { clean, messages, theme, modelStyle, btnStyle, width, height, messageStyle } = options
return {
CLEAN: clean || false,
THEME: theme || ['blackCat', 'whiteCat', 'haru1', 'haru2', 'haruto', 'koharu', 'izumi', 'shizuku', 'wanko', 'miku', 'z16'],
MESSAGES: messages || {
welcome: '',
home: '心里的花,我想要带你回家。',
theme: '好吧,希望你能喜欢我的其他小伙伴。',
close: '你知道我喜欢吃什么吗?痴痴地望着你。',
info: '想知道关于我的更多信息吗?'
},
MESSAGE_STYLE: messageStyle || {
right: '68px',
bottom: '190px'
},
MODEL_STYLE: modelStyle || {
right: '90px',
bottom: '-20px',
opacity: '0.9'
},
BTN_STYLE: btnStyle || {
right: '90px',
bottom: '40px'
},
WIDTH: width || 150,
HEIGHT: height || 220
}
},
name: '@vuepress-reco/vuepress-plugin-kan-ban-niang',
enhanceAppFiles: resolve(__dirname, './bin/enhanceAppFile.js'),
globalUIComponents: 'KanBanNiang'
})