-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
/
Copy pathconfig.js
345 lines (326 loc) · 12.1 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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
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 的中心化状态管理方案'
},
'/ja/': {
lang: 'ja',
title: 'Vuex',
description: 'Vue.js のための集中状態管理'
},
'/ptbr/': {
lang: 'pt-BR',
title: 'Vuex',
description: 'Gerenciamento de Estado Centralizado para Vue.js'
},
'/ru/': {
lang: 'ru',
title: 'Vuex',
description: 'Централизованное управление состоянием для 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://v3.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://v3.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' }
]
}
]
},
'/ja/': {
label: '日本語',
selectText: '言語',
editLinkText: 'GitHub 上でこのページを編集する',
lastUpdated: '最終更新日時',
nav: [
{ text: 'ガイド', link: '/ja/guide/' },
{ text: 'API リファレンス', link: '/ja/api/' },
{ text: 'リリースノート', link: 'https://github.com/vuejs/vuex/releases' },
{
text: 'v4.x',
items: [
{ text: 'v3.x', link: 'https://v3.vuex.vuejs.org/ja' }
]
}
],
sidebar: [
{
text: 'はじめに',
children: [
{ text: 'Vuex とは何か?', link: '/ja/' },
{ text: 'インストール', link: '/ja/installation' },
{ text: 'Vuex 入門', link: '/ja/guide/' }
]
},
{
text: 'コアコンセプト',
children: [
{ text: 'ステート', link: '/ja/guide/state' },
{ text: 'ゲッター', link: '/ja/guide/getters' },
{ text: 'ミューテーション', link: '/ja/guide/mutations' },
{ text: 'アクション', link: '/ja/guide/actions' },
{ text: 'モジュール', link: '/ja/guide/modules' }
]
},
{
text: '高度な活用',
children: [
{ text: 'アプリケーションの構造', link: '/ja/guide/structure' },
{ text: 'Composition API', link: '/ja/guide/composition-api' },
{ text: 'プラグイン', link: '/ja/guide/plugins' },
{ text: '厳格モード', link: '/ja/guide/strict' },
{ text: 'フォームの扱い', link: '/ja/guide/forms' },
{ text: 'テスト', link: '/ja/guide/testing' },
{ text: 'ホットリローディング', link: '/ja/guide/hot-reload' },
{ text: 'TypeScript サポート', link: '/ja/guide/typescript-support' },
]
},
{
text: '移行 ガイド',
children: [
{ text: '3.x から 4.0 への移行', link: '/ja/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://v3.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' }
]
}
]
},
'/ru/': {
label: 'Русский',
selectText: 'Переводы',
editLinkText: 'Изменить эту страницу на GitHub',
lastUpdated: 'Последнее обновление',
nav: [
{ text: 'Руководство', link: '/ru/guide/' },
{ text: 'Справочник API', link: '/ru/api/' },
{ text: 'История изменений', link: 'https://github.com/vuejs/vuex/releases' },
{
text: 'v4.x',
items: [
{ text: 'v3.x', link: 'https://v3.vuex.vuejs.org/ru/' }
]
}
],
sidebar: [
{
text: 'Введение',
children: [
{ text: 'Что такое Vuex?', link: '/ru/' },
{ text: 'Установка', link: '/ru/installation' },
{ text: 'Введение', link: '/ru/guide/' }
]
},
{
text: 'Основные понятия',
children: [
{ text: 'Состояние', link: '/ru/guide/state' },
{ text: 'Геттеры', link: '/ru/guide/getters' },
{ text: 'Мутации', link: '/ru/guide/mutations' },
{ text: 'Действия', link: '/ru/guide/actions' },
{ text: 'Модули', link: '/ru/guide/modules' }
]
},
{
text: 'Продвинутые темы',
children: [
{ text: 'Структура приложения', link: '/ru/guide/structure' },
{ text: 'Composition API', link: '/ru/guide/composition-api' },
{ text: 'Плагины', link: '/ru/guide/plugins' },
{ text: 'Строгий режим (strict mode)', link: '/ru/guide/strict' },
{ text: 'Работа c формами', link: '/ru/guide/forms' },
{ text: 'Тестирование', link: '/ru/guide/testing' },
{ text: 'Горячая перезагрузка', link: '/ru/guide/hot-reload' },
{ text: 'Поддержка TypeScript', link: '/ru/guide/typescript-support' },
]
},
{
text: 'Руководство по миграции',
children: [
{ text: 'Миграция на 4.0 с 3.x', link: '/ru/guide/migrating-to-4-0-from-3-x' }
]
}
]
},
}
}
}