-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
/
config.js
217 lines (204 loc) · 7.15 KB
/
config.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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
module.exports = {
lang: 'en-US',
title: 'Vuex',
description: 'Centralized State Management for Vue.js',
locales: {
'/': {
lang: 'en-US',
title: 'Vuex',
description: 'Centralized State Management for Vue.js'
},
'/zh/': {
lang: 'zh-CN',
title: 'Vuex',
description: 'Vue.js 的中心化状态管理方案'
},
'/ptbr/': {
lang: 'pt-BR',
title: 'Vuex',
description: 'Gerenciamento de Estado Centralizado para Vue.js'
}
},
head: [
['link', { rel: 'icon', href: `/logo.png` }],
['link', { rel: 'apple-touch-icon', href: `/icons/apple-touch-icon-152x152.png` }],
['link', { rel: 'mask-icon', href: '/icons/safari-pinned-tab.svg', color: '#3eaf7c' }],
['meta', { name: 'msapplication-TileImage', content: '/icons/msapplication-icon-144x144.png' }]
],
themeConfig: {
repo: 'vuejs/vuex',
docsDir: 'docs',
docsBranch: '4.0',
editLinks: true,
locales: {
'/': {
label: 'English',
selectText: 'Languages',
editLinkText: 'Edit this page on GitHub',
lastUpdated: 'Last Updated',
nav: [
{ text: 'Guide', link: '/guide/' },
{ text: 'API Reference', link: '/api/' },
{ text: 'Release Notes', link: 'https://github.com/vuejs/vuex/releases' },
{
text: 'v4.x',
items: [
{ text: 'v3.x', link: 'https://vuex.vuejs.org/' }
]
}
],
sidebar: [
{
text: 'Introduction',
children: [
{ text: 'What is Vuex?', link: '/' },
{ text: 'Installation', link: '/installation' },
{ text: 'Getting Started', link: '/guide/' }
]
},
{
text: 'Core Concepts',
children: [
{ text: 'State', link: '/guide/state' },
{ text: 'Getters', link: '/guide/getters' },
{ text: 'Mutations', link: '/guide/mutations' },
{ text: 'Actions', link: '/guide/actions' },
{ text: 'Modules', link: '/guide/modules' }
]
},
{
text: 'Advanced',
children: [
{ text: 'Application Structure', link: '/guide/structure' },
{ text: 'Composition API', link: '/guide/composition-api' },
{ text: 'Plugins', link: '/guide/plugins' },
{ text: 'Strict Mode', link: '/guide/strict' },
{ text: 'Form Handling', link: '/guide/forms' },
{ text: 'Testing', link: '/guide/testing' },
{ text: 'Hot Reloading', link: '/guide/hot-reload' },
{ text: 'TypeScript Support', link: '/guide/typescript-support' },
]
},
{
text: 'Migration Guide',
children: [
{ text: 'Migrating to 4.0 from 3.x', link: '/guide/migrating-to-4-0-from-3-x' }
]
}
]
},
'/zh/': {
label: '简体中文',
selectText: '选择语言',
editLinkText: '在 GitHub 上编辑此页',
lastUpdated: '最近更新时间',
nav: [
{ text: '指南', link: '/zh/guide/' },
{ text: 'API 参考', link: '/zh/api/' },
{ text: '更新记录', link: 'https://github.com/vuejs/vuex/releases' },
{
text: 'v4.x',
items: [
{ text: 'v3.x', link: 'https://vuex.vuejs.org/zh' }
]
}
],
sidebar: [
{
text: '介绍',
children: [
{ text: 'Vuex 是什么?', link: '/zh/' },
{ text: '安装', link: '/zh/installation' },
{ text: '开始', link: '/zh/guide/' }
]
},
{
text: '核心概念',
children: [
{ text: 'State', link: '/zh/guide/state' },
{ text: 'Getter', link: '/zh/guide/getters' },
{ text: 'Mutation', link: '/zh/guide/mutations' },
{ text: 'Action', link: '/zh/guide/actions' },
{ text: 'Module', link: '/zh/guide/modules' }
]
},
{
text: '进阶',
children: [
{ text: '项目结构', link: '/zh/guide/structure' },
{ text: '组合式 API', link: '/zh/guide/composition-api' },
{ text: '插件', link: '/zh/guide/plugins' },
{ text: '严格模式', link: '/zh/guide/strict' },
{ text: '表单处理', link: '/zh/guide/forms' },
{ text: '测试', link: '/zh/guide/testing' },
{ text: '热重载', link: '/zh/guide/hot-reload' },
{ text: 'TypeScript 支持', link: '/zh/guide/typescript-support' },
]
},
{
text: '迁移指南',
children: [
{ text: '从 3.x 迁移到 4.0', link: '/zh/guide/migrating-to-4-0-from-3-x' }
]
}
]
},
'/ptbr/': {
label: 'Português',
selectText: 'Idiomas',
editLinkText: 'Edite esta página no GitHub',
lastUpdated: 'Última Atualização',
nav: [
{ text: 'Guia', link: '/ptbr/guide/' },
{ text: 'Referência da API', link: '/ptbr/api/' },
{ text: 'Notas de Lançamento', link: 'https://github.com/vuejs/vuex/releases' },
{
text: 'v4.x',
items: [
{ text: 'v3.x', link: 'https://vuex.vuejs.org/ptbr/' }
]
}
],
sidebar: [
{
text: 'Introdução',
children: [
{ text: 'O que é Vuex?', link: '/ptbr/' },
{ text: 'Instalação', link: '/ptbr/installation' },
{ text: 'Começando', link: '/ptbr/guide/' }
]
},
{
text: 'Conceitos Básicos',
children: [
{ text: 'Estado', link: '/ptbr/guide/state' },
{ text: 'Getters', link: '/ptbr/guide/getters' },
{ text: 'Mutações', link: '/ptbr/guide/mutations' },
{ text: 'Ações', link: '/ptbr/guide/actions' },
{ text: 'Módulos', link: '/ptbr/guide/modules' }
]
},
{
text: 'Avançado',
children: [
{ text: 'Estrutura da Aplicação', link: '/ptbr/guide/structure' },
{ text: 'Composition API', link: '/ptbr/guide/composition-api' },
{ text: 'Plugins', link: '/ptbr/guide/plugins' },
{ text: 'Modo Strict', link: '/ptbr/guide/strict' },
{ text: 'Manipulação de Formulários', link: '/ptbr/guide/forms' },
{ text: 'Testando', link: '/ptbr/guide/testing' },
{ text: 'Hot Reloading', link: '/ptbr/guide/hot-reload' },
{ text: 'Suporte ao TypeScript', link: '/ptbr/guide/typescript-support' },
]
},
{
text: 'Guia de Migração',
children: [
{ text: 'Migrando do 3.x para 4.0', link: '/ptbr/guide/migrating-to-4-0-from-3-x' }
]
}
]
}
}
}
}