-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
177 lines (175 loc) · 4.71 KB
/
main.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
const SponsorIcon = {
template: `
<svg style="color:#ea4aaa;" fill="currentColor" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8.727 3C7.091 3 6.001 4.65 6.001 4.65S4.909 3 3.273 3C1.636 3 0 4.1 0 6.3 0 9.6 6 14 6 14s6-4.4 6-7.7C12 4.1 10.364 3 8.727 3z"></path></svg>
`
}
new Docute({
target: '#app',
title: 'DativeJs',
editLinkBase: 'https://github.com/dativeJs/dativejs.github.io/tree/master/',
editLinkText: 'Edit this page on GitHub',
router: {
mode: 'hash'
},
detectSystemDarkTheme: true,
darkThemeToggler: true,
nav: [
{
title: 'Home',
link: '/'
},
{
title: 'GitHub',
link: 'https://github.com/dativeJs/dativejs'
},
],
sidebar: [
{
title: 'Guide',
children: [
{
title: 'Introduction',
link: '/'
},
{
title: 'Installation',
link: '/installation'
},
{
title: 'Template',
link: '/template'
},
{
title: 'Computed Property',
link: '/computed'
},
{
title: 'List Rendering',
link: '/listrendering'
},
]
},
{
title: 'Advanced',
children: [
{
title: 'State Management',
link: '/state-management'
},
{
title: 'Plugin',
link: '/plugin'
},
]
},
{
title: 'References',
children: [
{
title: 'Options',
link: '/options'
},
]
},
{
title: 'Credits',
link: '/credits'
}
],
overrides: {
'/': {
language: 'English'
},
'/chinese/': {
language: 'Chinese',
editLinkText: '在 GitHub 上编辑此页',
editLinkBase: 'https://github.com/dativeJs/dativejs.github.io/tree/master/',
nav: [
{
title: '家',
link: '/chinese/'
},
{
title: 'GitHub',
link: 'https://github.com/dativeJs/dativejs'
},
],
sidebar: [
{
title: '指导',
children: [
{
title: '简介',
link: '/chinese/'
},
{
title: '安装',
link: '/chinese/installation'
},
{
title: '模板',
link: '/chinese/template'
},
{
title: '计算属性',
link: '/chinese/computed'
},
{
title: '列表渲染',
link: '/chinese/listrendering'
},
]
},
{
title: '先进的',
children: [
{
title: '状态管理',
link: '/chinese/state-management'
},
{
title: '插件',
link: '/chinese/plugin'
},
]
},
{
title: '参考文献',
children: [
{
title: '选项',
link: '/chinese/options'
},
]
},
{
title: '学分',
link: '/chinese/credits'
}
],
}
},
footer: `
<div style="border-top:1px solid var(--border-color);padding-top:30px;margin: 40px 0;color:#999999;font-size: .9rem;" class="docute-footer">
© 2021-${new Date().getFullYear()} Developed by <a href="https://tobithedev.github.io" target="_blank">Tobithedev</a>. Released under MIT license.
</div>
`,
banner: {
template: `
<div class="docute-banner">
<note :label="false"
><SponsorIcon width="16" height="16" style="position:relative;top:2px;margin-right:8px;" />Sponsor the author on
<a href="https://github.com/sponsors/DativeJs" target="_blank"
>GitHub<ExternalLinkIcon /></a
> to support DativeJs.</note
>
<note type="tip">
<p>version <b>2.0.0</b> has been released</p>
</note>
</div>
`,
components: {
SponsorIcon
}
}
})