XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

chore(webui): note performance impact of archon shards

2187d9cd
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

8 个文件 +14 -5
Modified scripts/update-translations.js +3 -3
@@ -4,7 +4,7 @@
4 4 const fs = require("fs");
5 5
6 6 function extractStrings(content) {
7 const regex = /([a-zA-Z_]+): `([^`]*)`,/g;
7 const regex = /([a-zA-Z0-9_]+): `([^`]*)`,/g;
8 8 let matches;
9 9 const strings = {};
10 10 while ((matches = regex.exec(content)) !== null) {
@@ -15,7 +15,7 @@ function extractStrings(content) {
15 15
16 16 const source = fs.readFileSync("../static/webui/translations/en.js", "utf8");
17 17 const sourceStrings = extractStrings(source);
18 const sourceLines = source.split("\n");
18 const sourceLines = source.substring(0, source.length - 1).split("\n");
19 19
20 20 fs.readdirSync("../static/webui/translations").forEach(file => {
21 21 if (fs.lstatSync(`../static/webui/translations/${file}`).isFile() && file !== "en.js") {
@@ -36,7 +36,7 @@ fs.readdirSync("../static/webui/translations").forEach(file => {
36 36 fs.writeSync(fileHandle, ` ${key}: \`[UNTRANSLATED] ${value}\`,\n`);
37 37 }
38 38 });
39 } else if (line.length) {
39 } else {
40 40 fs.writeSync(fileHandle, line + "\n");
41 41 }
42 42 });
Modified static/webui/index.html +4 -1
@@ -406,7 +406,10 @@
406 406 <div class="card mb-3">
407 407 <h5 class="card-header" data-loc="powersuit_archonShardsLabel"></h5>
408 408 <div class="card-body">
409 <p data-loc="powersuit_archonShardsDescription"></p>
409 <p>
410 <span data-loc="powersuit_archonShardsDescription"></span>
411 <span data-loc="powersuit_archonShardsDescription2"></span>
412 </p>
410 413 <form class="input-group mb-3" onsubmit="doPushArchonCrystalUpgrade();return false;">
411 414 <input type="number" id="archon-crystal-add-count" min="1" max="10000" value="1" class="form-control" style="max-width:100px" />
412 415 <span class="input-group-text">x</span>
Modified static/webui/translations/de.js +1 -0
@@ -105,6 +105,7 @@ dict = {
105 105 currency_owned: `Du hast |COUNT|.`,
106 106 powersuit_archonShardsLabel: `Archon-Scherben-Slots`,
107 107 powersuit_archonShardsDescription: `Du kannst diese unbegrenzten Slots nutzen, um eine Vielzahl von Verbesserungen anzuwenden.`,
108 powersuit_archonShardsDescription2: `[UNTRANSLATED] Note that each archon shard takes some time to be applied when loading in.`,
108 109 mods_addRiven: `Riven hinzufügen`,
109 110 mods_fingerprint: `Fingerabdruck`,
110 111 mods_fingerprintHelp: `Benötigst du Hilfe mit dem Fingerabdruck?`,
Modified static/webui/translations/en.js +2 -1
@@ -103,7 +103,8 @@ dict = {
103 103 currency_PrimeTokens: `Regal Aya`,
104 104 currency_owned: `You have |COUNT|.`,
105 105 powersuit_archonShardsLabel: `Archon Shard Slots`,
106 powersuit_archonShardsDescription: `You can use these unlimited slots to apply a wide range of upgrades`,
106 powersuit_archonShardsDescription: `You can use these unlimited slots to apply a wide range of upgrades.`,
107 powersuit_archonShardsDescription2: `Note that each archon shard takes some time to be applied when loading in.`,
107 108 mods_addRiven: `Add Riven`,
108 109 mods_fingerprint: `Fingerprint`,
109 110 mods_fingerprintHelp: `Need help with the fingerprint?`,
Modified static/webui/translations/es.js +1 -0
@@ -105,6 +105,7 @@ dict = {
105 105 currency_owned: `Tienes |COUNT|.`,
106 106 powersuit_archonShardsLabel: `Ranuras de Fragmento de Archón`,
107 107 powersuit_archonShardsDescription: `Puedes usar estas ranuras ilimitadas para aplicar una amplia variedad de mejoras`,
108 powersuit_archonShardsDescription2: `[UNTRANSLATED] Note that each archon shard takes some time to be applied when loading in.`,
108 109 mods_addRiven: `Agregar Agrietado`,
109 110 mods_fingerprint: `Huella digital`,
110 111 mods_fingerprintHelp: `¿Necesitas ayuda con la huella digital?`,
Modified static/webui/translations/fr.js +1 -0
@@ -105,6 +105,7 @@ dict = {
105 105 currency_owned: `|COUNT| possédés.`,
106 106 powersuit_archonShardsLabel: `Emplacements de fragments d'Archonte`,
107 107 powersuit_archonShardsDescription: `Slots illimités pour appliquer plusieurs améliorations.`,
108 powersuit_archonShardsDescription2: `[UNTRANSLATED] Note that each archon shard takes some time to be applied when loading in.`,
108 109 mods_addRiven: `Ajouter un riven`,
109 110 mods_fingerprint: `Empreinte`,
110 111 mods_fingerprintHelp: `Besoin d'aide pour l'empreinte ?`,
Modified static/webui/translations/ru.js +1 -0
@@ -105,6 +105,7 @@ dict = {
105 105 currency_owned: `У тебя |COUNT|.`,
106 106 powersuit_archonShardsLabel: `Ячейки осколков архонта`,
107 107 powersuit_archonShardsDescription: `Вы можете использовать эти неограниченные ячейки для установки множества улучшений.`,
108 powersuit_archonShardsDescription2: `[UNTRANSLATED] Note that each archon shard takes some time to be applied when loading in.`,
108 109 mods_addRiven: `Добавить Мод Разлома`,
109 110 mods_fingerprint: `Отпечаток`,
110 111 mods_fingerprintHelp: `Нужна помощь с отпечатком?`,
Modified static/webui/translations/zh.js +1 -0
@@ -105,6 +105,7 @@ dict = {
105 105 currency_owned: `当前拥有 |COUNT|。`,
106 106 powersuit_archonShardsLabel: `执刑官源力石槽位`,
107 107 powersuit_archonShardsDescription: `您可以使用这些无限插槽应用各种强化效果`,
108 powersuit_archonShardsDescription2: `[UNTRANSLATED] Note that each archon shard takes some time to be applied when loading in.`,
108 109 mods_addRiven: `添加裂罅MOD`,
109 110 mods_fingerprint: `印记`,
110 111 mods_fingerprintHelp: `需要印记相关的帮助?`,