verteilen-core 1.3.40 → 1.3.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lan/en.json +3 -1
- package/dist/lan/zh_TW.json +3 -1
- package/dist/plugins/i18n.d.ts +8 -0
- package/dist/server/io.js +19 -16
- package/package.json +1 -1
- package/src/lan/en.json +3 -1
- package/src/lan/zh_TW.json +3 -1
- package/src/server/io.ts +20 -16
package/dist/lan/en.json
CHANGED
package/dist/lan/zh_TW.json
CHANGED
package/dist/plugins/i18n.d.ts
CHANGED
|
@@ -447,6 +447,8 @@ export declare const i18nDefaultData: {
|
|
|
447
447
|
remove_logic: string;
|
|
448
448
|
state: string;
|
|
449
449
|
delay: string;
|
|
450
|
+
zoom: string;
|
|
451
|
+
unzoom: string;
|
|
450
452
|
};
|
|
451
453
|
zh_TW: {
|
|
452
454
|
login: {
|
|
@@ -889,6 +891,8 @@ export declare const i18nDefaultData: {
|
|
|
889
891
|
remove_logic: string;
|
|
890
892
|
state: string;
|
|
891
893
|
delay: string;
|
|
894
|
+
zoom: string;
|
|
895
|
+
unzoom: string;
|
|
892
896
|
};
|
|
893
897
|
};
|
|
894
898
|
};
|
|
@@ -1334,6 +1338,8 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
1334
1338
|
remove_logic: string;
|
|
1335
1339
|
state: string;
|
|
1336
1340
|
delay: string;
|
|
1341
|
+
zoom: string;
|
|
1342
|
+
unzoom: string;
|
|
1337
1343
|
};
|
|
1338
1344
|
zh_TW: {
|
|
1339
1345
|
login: {
|
|
@@ -1776,6 +1782,8 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
1776
1782
|
remove_logic: string;
|
|
1777
1783
|
state: string;
|
|
1778
1784
|
delay: string;
|
|
1785
|
+
zoom: string;
|
|
1786
|
+
unzoom: string;
|
|
1779
1787
|
};
|
|
1780
1788
|
}, {}, {}, string, true>;
|
|
1781
1789
|
export declare const raw_i18n: I18n;
|
package/dist/server/io.js
CHANGED
|
@@ -67,31 +67,34 @@ const ObsoleteSupport = async (loader, type, folder) => {
|
|
|
67
67
|
});
|
|
68
68
|
const allRecordText = await Promise.all(ps);
|
|
69
69
|
const allRecord = allRecordText.map(x => JSON.parse(x));
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
const execute_project = [];
|
|
71
|
+
const execute_task = [];
|
|
72
|
+
const execute_job = [];
|
|
73
|
+
for (let x of allRecord) {
|
|
74
74
|
const tasks = x.task;
|
|
75
|
+
x.tasks = [];
|
|
76
|
+
x.database_uuid = x.parameter_uuid;
|
|
77
|
+
x.tasks_uuid = tasks.map(y => y.uuid);
|
|
75
78
|
delete x.parameter_uuid;
|
|
76
79
|
delete x.task;
|
|
77
|
-
|
|
80
|
+
for (let y of tasks) {
|
|
78
81
|
const jobs = y.jobs;
|
|
79
82
|
y.jobs = [];
|
|
80
|
-
y.jobs_uuid =
|
|
81
|
-
|
|
83
|
+
y.jobs_uuid = jobs.map(z => z.uuid);
|
|
84
|
+
for (let z of jobs) {
|
|
82
85
|
z.id_args = [];
|
|
83
86
|
const d3 = loader.join(loader.root, "job", `${z.uuid}.json`);
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
await Promise.all(execute_jobs);
|
|
87
|
+
execute_job.push(loader.write_string(d3, JSON.stringify(z, null, 4)));
|
|
88
|
+
}
|
|
87
89
|
const d2 = loader.join(loader.root, "task", `${y.uuid}.json`);
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
await Promise.all(execute_task);
|
|
90
|
+
execute_task.push(loader.write_string(d2, JSON.stringify(y, null, 4)));
|
|
91
|
+
}
|
|
91
92
|
const d1 = loader.join(loader.root, "project", `${x.uuid}.json`);
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
await Promise.all(
|
|
93
|
+
execute_project.push(loader.write_string(d1, JSON.stringify(x, null, 4)));
|
|
94
|
+
}
|
|
95
|
+
await Promise.all(execute_project);
|
|
96
|
+
await Promise.all(execute_task);
|
|
97
|
+
await Promise.all(execute_job);
|
|
95
98
|
await loader.rm(path);
|
|
96
99
|
}
|
|
97
100
|
else if (type == interface_1.RecordType.DATABASE) {
|
package/package.json
CHANGED
package/src/lan/en.json
CHANGED
package/src/lan/zh_TW.json
CHANGED
package/src/server/io.ts
CHANGED
|
@@ -147,33 +147,37 @@ export const ObsoleteSupport = async (loader:RecordIOBase, type:RecordType, fold
|
|
|
147
147
|
})
|
|
148
148
|
const allRecordText:Array<string> = await Promise.all(ps)
|
|
149
149
|
const allRecord:Array<any> = allRecordText.map(x => JSON.parse(x))
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
|
|
151
|
+
const execute_project:Array<Promise<any>> = []
|
|
152
|
+
const execute_task:Array<Promise<any>> = []
|
|
153
|
+
const execute_job:Array<Promise<any>> = []
|
|
154
|
+
for(let x of allRecord){
|
|
154
155
|
const tasks:Array<any> = x.task
|
|
156
|
+
x.tasks = []
|
|
157
|
+
x.database_uuid = x.parameter_uuid
|
|
158
|
+
x.tasks_uuid = tasks.map(y => y.uuid)
|
|
155
159
|
delete x.parameter_uuid
|
|
156
160
|
delete x.task
|
|
157
161
|
|
|
158
|
-
|
|
162
|
+
for(let y of tasks){
|
|
159
163
|
const jobs = y.jobs
|
|
160
164
|
y.jobs = []
|
|
161
|
-
y.jobs_uuid =
|
|
165
|
+
y.jobs_uuid = jobs.map(z => z.uuid)
|
|
162
166
|
|
|
163
|
-
|
|
167
|
+
for(let z of jobs){
|
|
164
168
|
z.id_args = []
|
|
165
169
|
const d3 = loader.join(loader.root, "job", `${z.uuid}.json`)
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
await Promise.all(execute_jobs)
|
|
170
|
+
execute_job.push(loader.write_string(d3, JSON.stringify(z, null, 4)))
|
|
171
|
+
}
|
|
169
172
|
const d2 = loader.join(loader.root, "task", `${y.uuid}.json`)
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
await Promise.all(execute_task)
|
|
173
|
+
execute_task.push(loader.write_string(d2, JSON.stringify(y, null, 4)))
|
|
174
|
+
}
|
|
173
175
|
const d1 = loader.join(loader.root, "project", `${x.uuid}.json`)
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
await Promise.all(
|
|
176
|
+
execute_project.push(loader.write_string(d1, JSON.stringify(x, null, 4)))
|
|
177
|
+
}
|
|
178
|
+
await Promise.all(execute_project)
|
|
179
|
+
await Promise.all(execute_task)
|
|
180
|
+
await Promise.all(execute_job)
|
|
177
181
|
await loader.rm(path)
|
|
178
182
|
}
|
|
179
183
|
else if(type == RecordType.DATABASE){
|