返回提交历史
Modified
src/services/importService.ts
+29
-0
Modified
static/webui/index.html
+5
-0
Modified
static/webui/script.js
+25
-0
Modified
static/webui/translations/de.js
+6
-1
Modified
static/webui/translations/en.js
+6
-1
Modified
static/webui/translations/es.js
+6
-1
Modified
static/webui/translations/fr.js
+6
-1
Modified
static/webui/translations/ru.js
+6
-1
Modified
static/webui/translations/uk.js
+6
-1
Modified
static/webui/translations/zh.js
+6
-1
XFEstudio/SpaceNinjaServer
feat: removeAlertCompletions, removeSyndicateMissionCompletions, removeMasteryRankUpCooldown, removeVendorPurchaseLimits & removeBlessingCooldown Import Samples (#3235)
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3235 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: Animan8000 <187183497+Veniman8000@users.noreply.github.com> Co-committed-by: Animan8000 <187183497+Veniman8000@users.noreply.github.com>
07d6529f
代码差异
10 个文件
+101
-7
@@ -18,6 +18,10 @@ import type {
18
18
IInventoryClient,
19
19
INemesisClient,
20
20
INemesisDatabase,
21
IRecentVendorPurchaseClient,
22
IRecentVendorPurchaseDatabase,
23
IVendorPurchaseHistoryEntryClient,
24
IVendorPurchaseHistoryEntryDatabase,
21
25
IPendingRecipeClient,
22
26
IPendingRecipeDatabase,
23
27
IQuestKeyClient,
@@ -235,6 +239,20 @@ const convertQuestKey = (client: IQuestKeyClient): IQuestKeyDatabase => {
235
239
};
236
240
};
237
241
242
const convertRecentVendorPurchases = (client: IRecentVendorPurchaseClient): IRecentVendorPurchaseDatabase => {
243
return {
244
...client,
245
PurchaseHistory: client.PurchaseHistory.map(convertPurchaseHistory)
246
};
247
};
248
249
const convertPurchaseHistory = (client: IVendorPurchaseHistoryEntryClient): IVendorPurchaseHistoryEntryDatabase => {
250
return {
251
...client,
252
Expiry: convertDate(client.Expiry)
253
};
254
};
255
238
256
const convertPendingRecipe = (client: IPendingRecipeClient): IPendingRecipeDatabase => {
239
257
return {
240
258
...client,
@@ -377,6 +395,8 @@ export const importInventory = (db: TInventoryDatabaseDocument, client: Partial<
377
395
"EquippedGear",
378
396
"EquippedEmotes",
379
397
"NodeIntrosCompleted",
398
"CompletedAlerts",
399
"CompletedSyndicates",
380
400
"DeathMarks",
381
401
"Wishlist",
382
402
"NemesisAbandonedRewards",
@@ -447,6 +467,12 @@ export const importInventory = (db: TInventoryDatabaseDocument, client: Partial<
447
467
if (client.LastRegionPlayed !== undefined) {
448
468
db.LastRegionPlayed = client.LastRegionPlayed;
449
469
}
470
if (client.UsedDailyDeals !== undefined) {
471
db.UsedDailyDeals = client.UsedDailyDeals;
472
}
473
if (client.RecentVendorPurchases !== undefined) {
474
db.RecentVendorPurchases = client.RecentVendorPurchases.map(convertRecentVendorPurchases);
475
}
450
476
if (client.PendingRecipes !== undefined) {
451
477
replaceArray<IPendingRecipeDatabase>(db.PendingRecipes, client.PendingRecipes.map(convertPendingRecipe));
452
478
}
@@ -498,6 +524,9 @@ export const importInventory = (db: TInventoryDatabaseDocument, client: Partial<
498
524
if (client.Missions !== undefined) {
499
525
db.Missions = client.Missions;
500
526
}
527
if (client.PeriodicMissionCompletions !== undefined) {
528
db.PeriodicMissionCompletions = client.PeriodicMissionCompletions;
529
}
501
530
if (client.FlavourItems !== undefined) {
502
531
db.FlavourItems.splice(0, db.FlavourItems.length);
503
532
client.FlavourItems.forEach(x => {
@@ -1598,7 +1598,12 @@
1598
1598
<ul>
1599
1599
<li><a href="#" onclick="event.preventDefault();setImportSample('maxFocus');" data-loc="import_samples_maxFocus"></a></li>
1600
1600
<li><a href="#" onclick="event.preventDefault();setImportSample('accolades');" data-loc="import_samples_accolades"></a></li>
1601
<li><a href="#" onclick="event.preventDefault();setImportSample('removeAlertCompletions');" data-loc="import_samples_removeAlertCompletions"></a></li>
1602
<li><a href="#" onclick="event.preventDefault();setImportSample('removeSyndicateMissionCompletions');" data-loc="import_samples_removeSyndicateMissionCompletions"></a></li>
1603
<li><a href="#" onclick="event.preventDefault();setImportSample('removeMasteryRankUpCooldown');" data-loc="import_samples_removeMasteryRankUpCooldown"></a></li>
1604
<li><a href="#" onclick="event.preventDefault();setImportSample('removeVendorPurchaseLimits');" data-loc="import_samples_removeVendorPurchaseLimits"></a></li>
1601
1605
<li><a href="#" onclick="event.preventDefault();setImportSample('removeDeathMarks');" data-loc="import_samples_removeDeathMarks"></a></li>
1606
<li><a href="#" onclick="event.preventDefault();setImportSample('removeBlessingCooldown');" data-loc="import_samples_removeBlessingCooldown"></a></li>
1602
1607
<li><a href="#" onclick="event.preventDefault();setImportSample('maxStratos');" data-loc="import_samples_maxStratos"></a></li>
1603
1608
</ul>
1604
1609
</div>
@@ -4103,11 +4103,36 @@ const importSamples = {
4103
4103
},
4104
4104
Counselor: true
4105
4105
},
4106
removeAlertCompletions: {
4107
CompletedAlerts: [],
4108
PeriodicMissionCompletions: []
4109
},
4110
removeSyndicateMissionCompletions: {
4111
CompletedSyndicates: []
4112
},
4113
removeMasteryRankUpCooldown: {
4114
TrainingDate: {
4115
$date: {
4116
$numberLong: "0"
4117
}
4118
}
4119
},
4120
removeVendorPurchaseLimits: {
4121
RecentVendorPurchases: [],
4122
UsedDailyDeals: []
4123
},
4106
4124
removeDeathMarks: {
4107
4125
DeathMarks: [],
4108
4126
Harvestable: false,
4109
4127
DeathSquadable: false
4110
4128
},
4129
removeBlessingCooldown: {
4130
BlessingCooldown: {
4131
$date: {
4132
$numberLong: "0"
4133
}
4134
}
4135
},
4111
4136
maxStratos: {
4112
4137
BountyScore: 39
4113
4138
}
@@ -379,7 +379,12 @@ dict = {
379
379
import_samples: `Beispiele:`,
380
380
import_samples_maxFocus: `Alle Fokus-Schulen maximiert`,
381
381
import_samples_accolades: `Auszeichnungen & Council Chat Zugang`,
382
import_samples_removeDeathMarks: `Entferne alle Todesmarkierungen`,
382
import_samples_removeAlertCompletions: `Entferne abgeschlossene Alarmierungen`,
383
import_samples_removeSyndicateMissionCompletions: `Entferne abgeschlossene Syndikat-Missionen`,
384
import_samples_removeMasteryRankUpCooldown: `Entferne Wartezeit für Meisterschaftsrangaufstieg`,
385
import_samples_removeVendorPurchaseLimits: `Entferne Händler-Kaufbeschränkungen`,
386
import_samples_removeDeathMarks: `Entferne Todesmarkierungen`,
387
import_samples_removeBlessingCooldown: `Entferne Wartezeit für Gaben`,
383
388
import_samples_maxStratos: `Max. Rang-Symbol für Stratos Emblem`,
384
389
385
390
upgrade_Equilibrium: `+|VAL|% Energie bei Gesundheitskugeln, +|VAL|% Gesundheit bei Energiekugeln`,
@@ -378,7 +378,12 @@ dict = {
378
378
import_samples: `Samples:`,
379
379
import_samples_maxFocus: `All Focus Schools Maxed Out`,
380
380
import_samples_accolades: `Accolades & Council Chat Access`,
381
import_samples_removeDeathMarks: `Remove All Death Marks`,
381
import_samples_removeAlertCompletions: `Remove Alert Completions`,
382
import_samples_removeSyndicateMissionCompletions: `Remove Syndicate Mission Completions`,
383
import_samples_removeMasteryRankUpCooldown: `Remove Mastery Rank Up Cooldown`,
384
import_samples_removeVendorPurchaseLimits: `Remove Vendor Purchase Limits`,
385
import_samples_removeDeathMarks: `Remove Death Marks`,
386
import_samples_removeBlessingCooldown: `Remove Blessing Cooldown`,
382
387
import_samples_maxStratos: `Max Rank Stratos Emblem Icon`,
383
388
384
389
upgrade_Equilibrium: `+|VAL|% Energy from Health pickups, +|VAL|% Health from Energy pickups`,
@@ -379,7 +379,12 @@ dict = {
379
379
import_samples: `Muestras:`,
380
380
import_samples_maxFocus: `Todas las escuelas de enfoque al máximo`,
381
381
import_samples_accolades: `[UNTRANSLATED] Accolades & Council Chat Access`,
382
import_samples_removeDeathMarks: `[UNTRANSLATED] Remove All Death Marks`,
382
import_samples_removeAlertCompletions: `[UNTRANSLATED] Remove Alert Completions`,
383
import_samples_removeSyndicateMissionCompletions: `[UNTRANSLATED] Remove Syndicate Mission Completions`,
384
import_samples_removeMasteryRankUpCooldown: `[UNTRANSLATED] Remove Mastery Rank Up Cooldown`,
385
import_samples_removeVendorPurchaseLimits: `[UNTRANSLATED] Remove Vendor Purchase Limits`,
386
import_samples_removeDeathMarks: `[UNTRANSLATED] Remove Death Marks`,
387
import_samples_removeBlessingCooldown: `[UNTRANSLATED] Remove Blessing Cooldown`,
383
388
import_samples_maxStratos: `[UNTRANSLATED] Max Rank Stratos Emblem Icon`,
384
389
385
390
upgrade_Equilibrium: `+|VAL|% de Energía al recoger salud, +|VAL|% de Salud al recoger energía`,
@@ -379,7 +379,12 @@ dict = {
379
379
import_samples: `Échantillons :`,
380
380
import_samples_maxFocus: `Toutes les écoles de focus au rang max`,
381
381
import_samples_accolades: `[UNTRANSLATED] Accolades & Council Chat Access`,
382
import_samples_removeDeathMarks: `[UNTRANSLATED] Remove All Death Marks`,
382
import_samples_removeAlertCompletions: `[UNTRANSLATED] Remove Alert Completions`,
383
import_samples_removeSyndicateMissionCompletions: `[UNTRANSLATED] Remove Syndicate Mission Completions`,
384
import_samples_removeMasteryRankUpCooldown: `[UNTRANSLATED] Remove Mastery Rank Up Cooldown`,
385
import_samples_removeVendorPurchaseLimits: `[UNTRANSLATED] Remove Vendor Purchase Limits`,
386
import_samples_removeDeathMarks: `[UNTRANSLATED] Remove Death Marks`,
387
import_samples_removeBlessingCooldown: `[UNTRANSLATED] Remove Blessing Cooldown`,
383
388
import_samples_maxStratos: `[UNTRANSLATED] Max Rank Stratos Emblem Icon`,
384
389
385
390
upgrade_Equilibrium: `Ramasser de la santé donne +|VAL|% d'énergie supplémentaire. Ramasser de l'énergie donne +|VAL|% de santé supplémentaire.`,
@@ -379,7 +379,12 @@ dict = {
379
379
import_samples: `Пример:`,
380
380
import_samples_maxFocus: `Все школы Фокуса макс. уровня`,
381
381
import_samples_accolades: `[UNTRANSLATED] Accolades & Council Chat Access`,
382
import_samples_removeDeathMarks: `[UNTRANSLATED] Remove All Death Marks`,
382
import_samples_removeAlertCompletions: `[UNTRANSLATED] Remove Alert Completions`,
383
import_samples_removeSyndicateMissionCompletions: `[UNTRANSLATED] Remove Syndicate Mission Completions`,
384
import_samples_removeMasteryRankUpCooldown: `[UNTRANSLATED] Remove Mastery Rank Up Cooldown`,
385
import_samples_removeVendorPurchaseLimits: `[UNTRANSLATED] Remove Vendor Purchase Limits`,
386
import_samples_removeDeathMarks: `[UNTRANSLATED] Remove Death Marks`,
387
import_samples_removeBlessingCooldown: `[UNTRANSLATED] Remove Blessing Cooldown`,
383
388
import_samples_maxStratos: `[UNTRANSLATED] Max Rank Stratos Emblem Icon`,
384
389
385
390
upgrade_Equilibrium: `Подбор сфер здоровья даёт +|VAL|% энергии. Подбор сфер энергии даёт +|VAL|% здоровья.`,
@@ -379,7 +379,12 @@ dict = {
379
379
import_samples: `Приклад:`,
380
380
import_samples_maxFocus: `Всі школи Фокусу макс. рівня`,
381
381
import_samples_accolades: `[UNTRANSLATED] Accolades & Council Chat Access`,
382
import_samples_removeDeathMarks: `[UNTRANSLATED] Remove All Death Marks`,
382
import_samples_removeAlertCompletions: `[UNTRANSLATED] Remove Alert Completions`,
383
import_samples_removeSyndicateMissionCompletions: `[UNTRANSLATED] Remove Syndicate Mission Completions`,
384
import_samples_removeMasteryRankUpCooldown: `[UNTRANSLATED] Remove Mastery Rank Up Cooldown`,
385
import_samples_removeVendorPurchaseLimits: `[UNTRANSLATED] Remove Vendor Purchase Limits`,
386
import_samples_removeDeathMarks: `[UNTRANSLATED] Remove Death Marks`,
387
import_samples_removeBlessingCooldown: `[UNTRANSLATED] Remove Blessing Cooldown`,
383
388
import_samples_maxStratos: `[UNTRANSLATED] Max Rank Stratos Emblem Icon`,
384
389
385
390
upgrade_Equilibrium: `Згустки здоров'я дають +|VAL|% енергії, згустки енергії дають +|VAL|% здоров'я.`,
@@ -379,7 +379,12 @@ dict = {
379
379
import_samples: `示例:`,
380
380
import_samples_maxFocus: `所有专精学派完全精通`,
381
381
import_samples_accolades: `[UNTRANSLATED] Accolades & Council Chat Access`,
382
import_samples_removeDeathMarks: `[UNTRANSLATED] Remove All Death Marks`,
382
import_samples_removeAlertCompletions: `[UNTRANSLATED] Remove Alert Completions`,
383
import_samples_removeSyndicateMissionCompletions: `[UNTRANSLATED] Remove Syndicate Mission Completions`,
384
import_samples_removeMasteryRankUpCooldown: `[UNTRANSLATED] Remove Mastery Rank Up Cooldown`,
385
import_samples_removeVendorPurchaseLimits: `[UNTRANSLATED] Remove Vendor Purchase Limits`,
386
import_samples_removeDeathMarks: `[UNTRANSLATED] Remove Death Marks`,
387
import_samples_removeBlessingCooldown: `[UNTRANSLATED] Remove Blessing Cooldown`,
383
388
import_samples_maxStratos: `[UNTRANSLATED] Max Rank Stratos Emblem Icon`,
384
389
385
390
upgrade_Equilibrium: `拾取生命球+|VAL|%能量,拾取能量球+|VAL|%生命`,