-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
328 lines (328 loc) · 9.94 KB
/
package.json
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
{
"name": "zokuzoku",
"displayName": "ZokuZoku",
"publisher": "LeadRDRK",
"description": "Hachimi translation tool",
"repository": {
"url": "https://github.com/Hachimi-Hachimi/ZokuZoku"
},
"version": "0.3.2",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Other"
],
"icon": "assets/icon.png",
"activationEvents": [
"workspaceContains:localized_data/config.json"
],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "zokuzoku",
"title": "ZokuZoku",
"icon": "assets/activity_bar_icon.svg"
}
]
},
"views": {
"zokuzoku": [
{
"id": "inactive",
"name": "Inactive",
"when": "!zokuzoku.active"
},
{
"id": "stories",
"name": "All stories",
"visibility": "collapsed",
"when": "zokuzoku.active"
},
{
"id": "home-stories",
"name": "Home dialogues",
"visibility": "collapsed",
"when": "zokuzoku.active"
},
{
"id": "main-stories",
"name": "Main stories",
"visibility": "collapsed",
"when": "zokuzoku.active"
},
{
"id": "localize-dict",
"name": "Localize dict",
"visibility": "collapsed",
"when": "zokuzoku.active"
},
{
"id": "mdb",
"name": "MDB",
"visibility": "collapsed",
"when": "zokuzoku.active"
},
{
"id": "lyrics",
"name": "Lyrics",
"visibility": "collapsed",
"when": "zokuzoku.active"
},
{
"id": "hachimi-controls",
"name": "Hachimi Controls",
"visibility": "collapsed",
"when": "zokuzoku.active"
}
]
},
"viewsWelcome": [
{
"view": "inactive",
"contents": "ZokuZoku has not been enabled for this workspace.\n[Enable](command:zokuzoku.enable)"
},
{
"view": "localize-dict",
"contents": "[Open editor](command:zokuzoku.openLocalizeDictEditor)"
},
{
"view": "hachimi-controls",
"contents": "[Reload localized data](command:zokuzoku.hachimi.reloadLocalizedData)\n[Set translation folder](command:zokuzoku.hachimi.setLocalizedDataDir)\n[Revert translation folder](command:zokuzoku.hachimi.revertLocalizedDataDir)"
}
],
"menus": {
"view/title": [
{
"command": "zokuzoku.stories.refresh",
"when": "view == stories",
"group": "navigation"
},
{
"command": "zokuzoku.homeStories.refresh",
"when": "view == home-stories",
"group": "navigation"
},
{
"command": "zokuzoku.mainStories.refresh",
"when": "view == main-stories",
"group": "navigation"
},
{
"command": "zokuzoku.lyrics.refresh",
"when": "view == lyrics",
"group": "navigation"
}
]
},
"commands": [
{
"command": "zokuzoku.enable",
"title": "ZokuZoku: Enable"
},
{
"command": "zokuzoku.openLocalizeDictEditor",
"title": "ZokuZoku: Open localize dict editor"
},
{
"command": "zokuzoku.openLyricsEditor",
"title": "ZokuZoku: Open lyrics editor"
},
{
"command": "zokuzoku.openMdbEditor",
"title": "ZokuZoku: Open MDB editor"
},
{
"command": "zokuzoku.openRaceStoryEditor",
"title": "ZokuZoku: Open race story editor"
},
{
"command": "zokuzoku.openStoryEditor",
"title": "ZokuZoku: Open story editor"
},
{
"command": "zokuzoku.runAllAutomations",
"title": "ZokuZoku: Run all automations"
},
{
"command": "zokuzoku.runAutomation",
"title": "ZokuZoku: Run automation..."
},
{
"command": "zokuzoku.clearCache",
"title": "ZokuZoku: Clear cache"
},
{
"command": "zokuzoku.hachimi.reloadLocalizedData",
"title": "ZokuZoku: (Hachimi) Reload localized data"
},
{
"command": "zokuzoku.hachimi.setLocalizedDataDir",
"title": "ZokuZoku: (Hachimi) Set localized data dir"
},
{
"command": "zokuzoku.hachimi.revertLocalizedDataDir",
"title": "ZokuZoku: (Hachimi) Revert localized data dir"
},
{
"command": "zokuzoku.stories.refresh",
"title": "ZokuZoku: Refresh All Stories view",
"icon": "$(refresh)"
},
{
"command": "zokuzoku.homeStories.refresh",
"title": "ZokuZoku: Refresh Home Dialogues view",
"icon": "$(refresh)"
},
{
"command": "zokuzoku.mainStories.refresh",
"title": "ZokuZoku: Refresh Main Stories view",
"icon": "$(refresh)"
},
{
"command": "zokuzoku.lyrics.refresh",
"title": "ZokuZoku: Refresh Lyrics view",
"icon": "$(refresh)"
}
],
"customEditors": [
{
"viewType": "zokuzoku.localizeDictEditor",
"displayName": "Localize Dict Editor",
"selector": [
{
"filenamePattern": "*.json"
}
],
"priority": "option"
},
{
"viewType": "zokuzoku.lyricsEditor",
"displayName": "Lyrics Editor",
"selector": [
{
"filenamePattern": "m????_lyrics.json"
}
],
"priority": "option"
},
{
"viewType": "zokuzoku.mdbEditor",
"displayName": "MDB Editor",
"selector": [
{
"filenamePattern": "{text_data,character_system_text,race_jikkyo_comment,race_jikkyo_message}*.json"
}
],
"priority": "option"
},
{
"viewType": "zokuzoku.raceStoryEditor",
"displayName": "Race Story Editor",
"selector": [
{
"filenamePattern": "storyrace_?????????.json"
}
],
"priority": "option"
},
{
"viewType": "zokuzoku.storyEditor",
"displayName": "Story Editor",
"selector": [
{
"filenamePattern": "{storytimeline_?????????.json,hometimeline_?????_??_???????.json}"
}
],
"priority": "option"
}
],
"configuration": {
"title": "ZokuZoku",
"properties": {
"zokuzoku.enabled": {
"type": "boolean",
"default": false,
"description": "Must be enabled per workspace. User settings value is ignored."
},
"zokuzoku.gameDataDir": {
"type": "string",
"default": "",
"scope": "machine",
"description": "Path to the game's data directory. Usually located at C:\\Users\\[YOURUSERNAME]\\AppData\\LocalLow\\Cygames\\umamusume. Only the 'meta' file and the 'master' folder is required to be present in this directory, so if you don't want ZokuZoku to mess with the game's data dir, you can symlink them to a different folder and use that as the data directory instead."
},
"zokuzoku.localizeDictDump": {
"type": "string",
"default": "",
"scope": "machine",
"description": "Path to a localize_dump.json file. You can dump the localize dict by launching the game, open the Hachimi menu and enable Translator mode in the config editor (if you haven't already), then under the Translation section, select the 'Dump localize dict' option. The dumped file will be saved in the 'hachimi' folder inside the game's install directory. You should do this every time the game updates to populate it with new data!"
},
"zokuzoku.autoDownloadBundles": {
"type": "boolean",
"default": true,
"scope": "machine",
"description": "Automatically download asset bundles that haven't been downloaded yet."
},
"zokuzoku.sqlite3": {
"type": "string",
"default": "sqlite3",
"description": "SQLite3 command or executable path."
},
"zokuzoku.useGameFont": {
"type": "boolean",
"default": true,
"description": "Use the game's font in editors."
},
"zokuzoku.customFont": {
"type": "string",
"default": "",
"scope": "machine",
"description": "Path to a custom font file to be used in editors."
},
"zokuzoku.hachimiIpcAddress": {
"type": "string",
"default": "127.0.0.1",
"scope": "machine",
"description": "The Hachimi IPC address to connect to (not including the port). By default, it connects to Hachimi running on your local machine. To use a remote device, enable IPC and \"IPC listen all\" in Hachimi, and set the address to the remote device's address."
}
}
}
},
"scripts": {
"vscode:prepublish": "pnpm run compile",
"compile": "pnpm run wv:build && node build.mjs",
"watch": "run-p wv:watch ts:watch",
"lint": "eslint src --ext ts",
"package": "vsce package --no-dependencies",
"wv:build": "cd webviews && pnpm run build",
"wv:watch": "cd webviews && pnpm run build --watch",
"ts:watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/follow-redirects": "^1.14.4",
"@types/json-to-ast": "^2.1.4",
"@types/mocha": "^10.0.6",
"@types/node": "20.x",
"@types/tar": "^6.1.13",
"@types/vscode": "^1.88.0",
"@typescript-eslint/eslint-plugin": "^8.14.0",
"@typescript-eslint/parser": "^8.14.0",
"@vscode/vsce": "^3.2.1",
"esbuild": "^0.24.0",
"esbuild-plugin-copy": "^2.1.1",
"eslint": "^9.15.0",
"npm-run-all": "^4.1.5",
"typescript": "^5.6.3"
},
"dependencies": {
"cricodecs": "^1.0.2",
"csv-parse": "^5.5.5",
"csv-parser": "^2.3.5",
"follow-redirects": "^1.15.6",
"json-to-ast": "^2.1.0",
"pymport": "^1.5.1",
"tar": "^6.2.1"
}
}