From 79920b5f2c6777d020902b47571996efd91793f6 Mon Sep 17 00:00:00 2001 From: Adam Stachowicz Date: Wed, 15 Sep 2021 20:52:39 +0200 Subject: [PATCH 1/9] Fix languages after https://github.com/louislam/uptime-kuma/commit/80322cbfe7cf88f6d128cff8627e53761b17d4b0 Fix ESLint deprecated warning. Update `README.md` for languages. Update `update-language-files` script --- .eslintrc.js | 1 + extra/update-language-files/index.js | 68 +++++++++++++++------------- package.json | 3 +- src/languages/README.md | 4 +- src/languages/de-DE.js | 8 +--- src/languages/en.js | 5 +- src/languages/it-IT.js | 1 - src/languages/nl-NL.js | 1 - src/languages/tr-TR.js | 2 +- src/languages/zh-CN.js | 1 - src/languages/zh-HK.js | 1 - 11 files changed, 47 insertions(+), 48 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 398d64c84..21fb56088 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,4 +1,5 @@ module.exports = { + root: true, env: { browser: true, commonjs: true, diff --git a/extra/update-language-files/index.js b/extra/update-language-files/index.js index ee7c0b5ea..519d82e1b 100644 --- a/extra/update-language-files/index.js +++ b/extra/update-language-files/index.js @@ -1,4 +1,4 @@ -// Need to use es6 to read language files +// Need to use ES6 to read language files import fs from "fs"; import path from "path"; @@ -14,6 +14,7 @@ const copyRecursiveSync = function (src, dest) { let exists = fs.existsSync(src); let stats = exists && fs.statSync(src); let isDirectory = exists && stats.isDirectory(); + if (isDirectory) { fs.mkdirSync(dest); fs.readdirSync(src).forEach(function (childItemName) { @@ -24,8 +25,9 @@ const copyRecursiveSync = function (src, dest) { fs.copyFileSync(src, dest); } }; -console.log(process.argv) -const baseLangCode = process.argv[2] || "zh-HK"; + +console.log("Arguments: ", process.argv) +const baseLangCode = process.argv[2] || "en"; console.log("Base Lang: " + baseLangCode); fs.rmdirSync("./languages", { recursive: true }); copyRecursiveSync("../../src/languages", "./languages"); @@ -33,46 +35,50 @@ copyRecursiveSync("../../src/languages", "./languages"); const en = (await import("./languages/en.js")).default; const baseLang = (await import(`./languages/${baseLangCode}.js`)).default; const files = fs.readdirSync("./languages"); -console.log(files); +console.log("Files: ", files); + for (const file of files) { - if (file.endsWith(".js")) { - console.log("Processing " + file); - const lang = await import("./languages/" + file); + if (!file.endsWith(".js")) { + console.log("Skipping " + file) + continue; + } - let obj; + console.log("Processing " + file); + const lang = await import("./languages/" + file); - if (lang.default) { - console.log("is js module"); - obj = lang.default; - } else { - console.log("empty file"); - obj = { - languageName: "" - }; - } - - // En first - for (const key in en) { - if (! obj[key]) { - obj[key] = en[key]; - } + let obj; + + if (lang.default) { + obj = lang.default; + } else { + console.log("Empty file"); + obj = { + languageName: "" + }; + } + + // En first + for (const key in en) { + if (! obj[key]) { + obj[key] = en[key]; } + } + if (baseLang !== en) { // Base second for (const key in baseLang) { if (! obj[key]) { obj[key] = key; } } - - const code = "export default " + util.inspect(obj, { - depth: null, - }); - - fs.writeFileSync(`../../src/languages/${file}`, code); - } + + const code = "export default " + util.inspect(obj, { + depth: null, + }); + + fs.writeFileSync(`../../src/languages/${file}`, code); } fs.rmdirSync("./languages", { recursive: true }); -console.log("Done, fix the format by eslint now"); +console.log("Done. Fixing formatting by ESLint..."); diff --git a/package.json b/package.json index 8d9c88fc1..d768063a0 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ "test-install-script-ubuntu": "npm run compile-install-script && docker build --progress plain -f test/test_install_script/ubuntu.dockerfile .", "test-install-script-ubuntu1604": "npm run compile-install-script && docker build --progress plain -f test/test_install_script/ubuntu1604.dockerfile .", "simple-dns-server": "node extra/simple-dns-server.js", - "update-language-files": "cd extra/update-language-files && node index.js %npm_config_base_lang% && eslint ../../src/languages/**.js --fix" + "update-language-files_old": "cd extra/update-language-files && node index.js %npm_config_base_lang% && eslint ../../src/languages/**.js --fix", + "update-language-files": "cd extra/update-language-files && node index.js && eslint ../../src/languages/**.js --fix" }, "dependencies": { "@fortawesome/fontawesome-svg-core": "^1.2.36", diff --git a/src/languages/README.md b/src/languages/README.md index d27e0e7eb..7a3ed0602 100644 --- a/src/languages/README.md +++ b/src/languages/README.md @@ -1,8 +1,8 @@ # How to translate 1. Fork this repo. -2. Create a language file. (e.g. `zh-TW.js`) The filename must be ISO language code: http://www.lingoes.net/en/translator/langcode.htm -3. `npm run update-language-files --base-lang=de-DE` +2. Create a language file (e.g. `zh-TW.js`). The filename must be ISO language code: http://www.lingoes.net/en/translator/langcode.htm +3. `npm run update-language-files --base-lang=en` 4. Your language file should be filled in. You can translate now. 5. Translate `src/pages/Settings.vue` (search for a `Confirm` component with `rel="confirmDisableAuth"`). 6. Import your language file in `src/i18n.js` and add it to `languageList` constant. diff --git a/src/languages/de-DE.js b/src/languages/de-DE.js index 008dbbc5f..d3a46ab75 100644 --- a/src/languages/de-DE.js +++ b/src/languages/de-DE.js @@ -113,9 +113,6 @@ export default { "Create your admin account": "Erstelle dein Admin Konto", "Repeat Password": "Wiederhole das Passwort", "Resource Record Type": "Resource Record Type", - "Export": "Export", - "Import": "Import", - "Import/Export Backup": "Import/Export Backup", Export: "Export", Import: "Import", respTime: "Antw. Zeit (ms)", @@ -133,8 +130,8 @@ export default { "Clear all statistics": "Lösche alle Statistiken", importHandleDescription: "Wähle 'Vorhandene überspringen' aus, wenn jeder Monitor oder Benachrichtigung mit demselben Namen übersprungen werden soll. 'Überschreiben' löscht jeden vorhandenen Monitor sowie Benachrichtigungen.", "Skip existing": "Vorhandene überspringen", - "Overwrite": "Überschreiben", - "Options": "Optionen", + Overwrite: "Überschreiben", + Options: "Optionen", confirmImportMsg: "Möchtest du das Backup wirklich importieren? Bitte stelle sicher, dass die richtige Import Option ausgewählt ist.", "Keep both": "Beide behalten", twoFAVerifyLabel: "Bitte trage deinen Token ein um zu verifizieren das 2FA funktioniert", @@ -151,7 +148,6 @@ export default { Inactive: "Inaktiv", Token: "Token", "Show URI": "URI Anzeigen", - "Clear all statistics": "Lösche alle Statistiken", Tags: "Tags", "Add New below or Select...": "Füge neuen hinzu oder wähle aus...", "Tag with this name already exist.": "Ein Tag mit dem Namen existiert bereits.", diff --git a/src/languages/en.js b/src/languages/en.js index 025f002f0..1971f6f6d 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -139,8 +139,8 @@ export default { alertWrongFileType: "Please select a JSON file.", "Clear all statistics": "Clear all Statistics", "Skip existing": "Skip existing", - "Overwrite": "Overwrite", - "Options": "Options", + Overwrite: "Overwrite", + Options: "Options", "Keep both": "Keep both", "Verify Token": "Verify Token", "Setup 2FA": "Setup 2FA", @@ -152,7 +152,6 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics", Tags: "Tags", "Add New below or Select...": "Add New below or Select...", "Tag with this name already exist.": "Tag with this name already exist.", diff --git a/src/languages/it-IT.js b/src/languages/it-IT.js index 6362f0143..bbd2d3ad1 100644 --- a/src/languages/it-IT.js +++ b/src/languages/it-IT.js @@ -115,7 +115,6 @@ export default { "Last Result": "Ultimo risultato", "Create your admin account": "Crea l'account amministratore", "Repeat Password": "Ripeti Password", - "Import/Export Backup": "Importa/Esporta Backup", Export: "Esporta", Import: "Importa", respTime: "Tempo di Risposta (ms)", diff --git a/src/languages/nl-NL.js b/src/languages/nl-NL.js index 00dc41501..546e6dbd4 100644 --- a/src/languages/nl-NL.js +++ b/src/languages/nl-NL.js @@ -115,7 +115,6 @@ export default { "Last Result": "Laatste resultaat", "Create your admin account": "Maak uw beheerdersaccount aan", "Repeat Password": "Herhaal wachtwoord", - "Import/Export Backup": "Backup importeren/exporteren", Export: "Exporteren", Import: "Importeren", respTime: "resp. tijd (ms)", diff --git a/src/languages/tr-TR.js b/src/languages/tr-TR.js index e05af23e3..b62e289fc 100644 --- a/src/languages/tr-TR.js +++ b/src/languages/tr-TR.js @@ -116,5 +116,5 @@ export default { "Clear Data": "Verileri Temizle", Events: "Olaylar", Heartbeats: "Sağlık Durumları", - "Auto Get": "Otomatik Al" + "Auto Get": "Otomatik Al", } diff --git a/src/languages/zh-CN.js b/src/languages/zh-CN.js index f3e55fc8c..c09a824da 100644 --- a/src/languages/zh-CN.js +++ b/src/languages/zh-CN.js @@ -120,7 +120,6 @@ export default { enableDefaultNotificationDescription: "新的监控项将默认启用,你也可以在每个监控项中分别设置", "Default enabled": "默认开启", "Also apply to existing monitors": "应用到所有监控项", - "Import/Export Backup": "导入/导出备份", Export: "导出", Import: "导入", backupDescription: "你可以将所有的监控项和消息通知备份到一个 JSON 文件中", diff --git a/src/languages/zh-HK.js b/src/languages/zh-HK.js index 50959ca87..1a4ae5a6c 100644 --- a/src/languages/zh-HK.js +++ b/src/languages/zh-HK.js @@ -120,7 +120,6 @@ export default { enableDefaultNotificationDescription: "新增監測器時這個通知會預設啟用,當然每個監測器亦可分別控制開關。", "Default enabled": "預設通知", "Also apply to existing monitors": "同時取用至目前所有監測器", - "Import/Export Backup": "匯入/匯出 備份", Export: "匯出", Import: "匯入", backupDescription: "您可以備份所有監測器及所有通知。", From a34b2623c8987d2a7fc7d686867c3b8b3d22cc22 Mon Sep 17 00:00:00 2001 From: Adam Stachowicz Date: Wed, 15 Sep 2021 20:57:36 +0200 Subject: [PATCH 2/9] Remove double spaces in `console.log` output with multiple parameters --- extra/update-language-files/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/update-language-files/index.js b/extra/update-language-files/index.js index 519d82e1b..a90f9f363 100644 --- a/extra/update-language-files/index.js +++ b/extra/update-language-files/index.js @@ -26,7 +26,7 @@ const copyRecursiveSync = function (src, dest) { } }; -console.log("Arguments: ", process.argv) +console.log("Arguments:", process.argv) const baseLangCode = process.argv[2] || "en"; console.log("Base Lang: " + baseLangCode); fs.rmdirSync("./languages", { recursive: true }); @@ -35,7 +35,7 @@ copyRecursiveSync("../../src/languages", "./languages"); const en = (await import("./languages/en.js")).default; const baseLang = (await import(`./languages/${baseLangCode}.js`)).default; const files = fs.readdirSync("./languages"); -console.log("Files: ", files); +console.log("Files:", files); for (const file of files) { if (!file.endsWith(".js")) { From 8ba8de07ae657a2df72247c2f8c87ae217d8c3d4 Mon Sep 17 00:00:00 2001 From: Adam Stachowicz Date: Wed, 15 Sep 2021 20:59:29 +0200 Subject: [PATCH 3/9] Missing this --- src/languages/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/languages/README.md b/src/languages/README.md index 7a3ed0602..f97799176 100644 --- a/src/languages/README.md +++ b/src/languages/README.md @@ -2,7 +2,7 @@ 1. Fork this repo. 2. Create a language file (e.g. `zh-TW.js`). The filename must be ISO language code: http://www.lingoes.net/en/translator/langcode.htm -3. `npm run update-language-files --base-lang=en` +3. `npm run update-language-files` 4. Your language file should be filled in. You can translate now. 5. Translate `src/pages/Settings.vue` (search for a `Confirm` component with `rel="confirmDisableAuth"`). 6. Import your language file in `src/i18n.js` and add it to `languageList` constant. From ab229615382e16501be8bc3e5b172c904d3cad4c Mon Sep 17 00:00:00 2001 From: Adam Stachowicz Date: Wed, 15 Sep 2021 21:16:22 +0200 Subject: [PATCH 4/9] More info about `update-language-files` command --- src/languages/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/languages/README.md b/src/languages/README.md index f97799176..6ba7d95eb 100644 --- a/src/languages/README.md +++ b/src/languages/README.md @@ -2,7 +2,7 @@ 1. Fork this repo. 2. Create a language file (e.g. `zh-TW.js`). The filename must be ISO language code: http://www.lingoes.net/en/translator/langcode.htm -3. `npm run update-language-files` +3. Run `npm run update-language-files`. You can also use this command to check if there are new strings to translate for your language. 4. Your language file should be filled in. You can translate now. 5. Translate `src/pages/Settings.vue` (search for a `Confirm` component with `rel="confirmDisableAuth"`). 6. Import your language file in `src/i18n.js` and add it to `languageList` constant. From 217637aa1f0640d66796c6f81869e2b26306bd58 Mon Sep 17 00:00:00 2001 From: Adam Stachowicz Date: Wed, 15 Sep 2021 21:19:16 +0200 Subject: [PATCH 5/9] Add de-DE translation --- src/languages/de-DE.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/languages/de-DE.js b/src/languages/de-DE.js index d3a46ab75..b5b0bc3bd 100644 --- a/src/languages/de-DE.js +++ b/src/languages/de-DE.js @@ -163,4 +163,8 @@ export default { Purple: "Lila", Pink: "Pink", "Search...": "Suchen...", + "Heartbeat Retry Interval": "Takt-Wiederholungsintervall", + retryCheckEverySecond: "Versuche alle {0} Sekunden", + "Import Backup": "Import Backup", + "Export Backup": "Export Backup", } From 4f4fe39c9b639f08771cff163ced7bb395cd367b Mon Sep 17 00:00:00 2001 From: Siim Ots Date: Thu, 16 Sep 2021 09:42:56 +0300 Subject: [PATCH 6/9] Simple "Add to Homescreen" manifest (PWA) (#411) * simple "add to homescreen" manifest * remove ?source=pwa Co-authored-by: Adam Stachowicz * run TinyPNG Co-authored-by: Adam Stachowicz Co-authored-by: LouisLam --- index.html | 1 + public/icon-192x192.png | Bin 0 -> 2707 bytes public/icon-512x512.png | Bin 0 -> 9739 bytes public/manifest.json | 19 +++++++++++++++++++ 4 files changed, 20 insertions(+) create mode 100644 public/icon-192x192.png create mode 100644 public/icon-512x512.png create mode 100644 public/manifest.json diff --git a/index.html b/index.html index 61d0f42b0..cd5da9360 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@ + Uptime Kuma diff --git a/public/icon-192x192.png b/public/icon-192x192.png new file mode 100644 index 0000000000000000000000000000000000000000..89d60d72b3d920ab6645d5637ab914d0a468ebda GIT binary patch literal 2707 zcmV;E3T*X>P)c{>1{IKf9yzI_r;FD_Lm2cshWZ#i&;g@pa zn_}OPVBU^(DAK&T6Rjh+LhBhc(0+cTb@H4@ju_LjvLv38`6w0_CtRq2~WD;J$>K|3F}8 zLTbcA0k?b$3gB~rN_Z{22;fYCrSC{#w!lJ!2+S7{*C3<@%oe}}1p%;2p#K>OjRO78 zNU&D`Z7dM_1?VdP>=yuf3IZ$}0$ID3Au{0wmnZ`#<2?O}DeG;tAB=PpVX@Kl;s_W1E&$m%2Zk zI>+hI*O!V7Qy_E#j6>}G6A2*PTDE<+7b-C&ViG0xUEebN2L_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-obLc>&r9f<^qifbdmcxi#Aty zkS>3pbpS*RPgu45e>`kh6lCY|a%tQBO>Ns=F5~%>1rduWvMbgv6g_$wAo@{kJpq*b zeZLJ(ZwSFhfC{|o7huSbidT9`)@AcgU@_3u$wrbPe-tfr5X8p-?1t>2NNOHOevmnT`y@nspYcfraObz>k3(P;1BB26!Y`daiVj>$;Q5@pJ2>Xg?D?Ys zTm|$^;9&quV4r|)a?c;Tj9tPI_Sf|x&Q4Oh_uhmKbI_Zg9$F+2KxLT+CU3@yd6@HZiXCm*`zSf*5fGWPGl25tdfmVHwQbog2cepUq*ybg*UAIpAswxNadvr3p0t?=$m*bkwO(1?Ja+Ng8yH$YydQh_~FzGN!5|~2; z{IAt>_X;Qyl)2n1fc);_|3L+Qw|56A5W_GGMFraF{s$grCAt|pjUA_;cYxyLLzgjE z-zFI?;Q628YylFhc)iU{1$_VOG+01D$qA+k2sJcQfG8sl{Dp){++BbuCVzcL0W{FI z0u)-vV|Nyy&_--8Afc7mRlt|uOsp@kbuWs~z?uS{ej~A_z{vDIg9rJez)4GiBt9u{ z#_*RVQa1}258I2S`@67C8~w*BHRG4wu~Q8&;bj9yL_|bHL_|c~_W_}Nh=BemNuK}! N002ovPDHLkV1j>wKivQT literal 0 HcmV?d00001 diff --git a/public/icon-512x512.png b/public/icon-512x512.png new file mode 100644 index 0000000000000000000000000000000000000000..cd3ab7718da26bf86ef5bc6fe4fb2d0dd62bd527 GIT binary patch literal 9739 zcmaKSc{EjD{PsR~aLrfd`Q9iElp#qf_tHS6Xb?rAgeEjn&whP>?^^GA-+$h{*5049_u6MY`?J?Rdq1D&?8|Ojos{Ht5!`#~+N4^JgZyxPR3F%5Z(0Tn}=MBHkq~qP`J{{LYLgC(y#FO3k#3J#T zo(Ep-3E@2~_P_e4110>KsbAxr6=T1Krbm0HhW_w-B6=T=PLJ2}ey8_;csNjWq4!xQ zzyEq)?v=k;CbXJZ0OqgWxXxi``0tTchppunDkP3T?M@%0%~w@PwqZWX&1%_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u7wQEH%^1(L8JkoXi;auw(pAB$f+vzQPqQ=M_>Aw3<$1h3MQDY~XWBV0*%i0= zoHy)U0p810jU*peTpRhL)bzOH1-|5s<$!{!GT|6S<%e-mf^X3~W77SBC3|Fv&izja- Date: Thu, 16 Sep 2021 16:49:24 +0200 Subject: [PATCH 7/9] Finishing the translation of PL (#422) --- src/languages/pl.js | 56 ++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/src/languages/pl.js b/src/languages/pl.js index e76c2f30c..e6936a1c7 100644 --- a/src/languages/pl.js +++ b/src/languages/pl.js @@ -110,37 +110,37 @@ export default { respTime: "Czas odp. (ms)", notAvailableShort: "N/A", Create: "Stwórz", - clearEventsMsg: "Are you sure want to delete all events for this monitor?", + clearEventsMsg: "Jesteś pewien, że chcesz usunąć wszystkie monity dla tej strony?", clearHeartbeatsMsg: "Are you sure want to delete all heartbeats for this monitor?", - confirmClearStatisticsMsg: "Are you sure want to delete ALL statistics?", - "Clear Data": "Clear Data", - Events: "Events", + confirmClearStatisticsMsg: "Jesteś pewien, że chcesz usunąć WSZYSTKIE statystyki?", + "Clear Data": "Usuń dane", + Events: "Wydarzenia", Heartbeats: "Heartbeats", "Auto Get": "Auto Get", - enableDefaultNotificationDescription: "For every new monitor this notification will be enabled by default. You can still disable the notification separately for each monitor.", - "Default enabled": "Default enabled", - "Also apply to existing monitors": "Also apply to existing monitors", - Export: "Export", + enableDefaultNotificationDescription: "Dla każdego nowego monitora to powiadomienie będzie domyślnie włączone. Nadal możesz wyłączyć powiadomienia osobno dla każdego monitora.", + "Default enabled": "Domyślnie włączone", + "Also apply to existing monitors": "Również zastosuj do obecnych monitów", + Export: "Eksport", Import: "Import", - backupDescription: "You can backup all monitors and all notifications into a JSON file.", - backupDescription2: "PS: History and event data is not included.", - backupDescription3: "Sensitive data such as notification tokens is included in the export file, please keep it carefully.", - alertNoFile: "Please select a file to import.", - alertWrongFileType: "Please select a JSON file.", - twoFAVerifyLabel: "Please type in your token to verify that 2FA is working", - tokenValidSettingsMsg: "Token is valid! You can now save the 2FA settings.", - confirmEnableTwoFAMsg: "Are you sure you want to enable 2FA?", - confirmDisableTwoFAMsg: "Are you sure you want to disable 2FA?", - "Apply on all existing monitors": "Apply on all existing monitors", - "Verify Token": "Verify Token", - "Setup 2FA": "Setup 2FA", - "Enable 2FA": "Enable 2FA", - "Disable 2FA": "Disable 2FA", - "2FA Settings": "2FA Settings", - "Two Factor Authentication": "Two Factor Authentication", - Active: "Active", - Inactive: "Inactive", + backupDescription: "Możesz wykonać kopię zapasową wszystkich monitorów i wszystkich powiadomień w pliku JSON.", + backupDescription2: "PS: Historia i dane zdarzeń nie są uwzględniane.", + backupDescription3: "Poufne dane, takie jak tokeny powiadomień, są zawarte w pliku eksportu, prosimy o ostrożne przechowywanie.", + alertNoFile: "Proszę wybrać plik do importu.", + alertWrongFileType: "Proszę wybrać plik JSON.", + twoFAVerifyLabel: "Proszę podaj swój token 2FA, aby sprawdzić go", + tokenValidSettingsMsg: "Token jest poprawny! Możesz teraz zapisać ustawienia 2FA.", + confirmEnableTwoFAMsg: "Jesteś prwien że chcesz włączyć 2FA?", + confirmDisableTwoFAMsg: "Jesteś prwien że chcesz wyłączyć 2FA?", + "Apply on all existing monitors": "Zastosuj do wszystki obecnych monitów", + "Verify Token": "Weryfikuj Token", + "Setup 2FA": "Ustaw 2FA", + "Enable 2FA": "Włącz 2FA", + "Disable 2FA": "Wyłącz 2FA", + "2FA Settings": "Ustawienia 2FA", + "Two Factor Authentication": "Podwójna weryfikacja", + Active: "Włączone", + Inactive: "Wyłączone", Token: "Token", - "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics", + "Show URI": "Pokaż URI", + "Clear all statistics": "Wyczyść wszystkie statystyki", } From 112d72da4777b7b959e5c99eb65a548f5c6f55b3 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Fri, 17 Sep 2021 00:48:04 +0800 Subject: [PATCH 8/9] update discussion --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bbb9b0024..ffcac83b1 100644 --- a/README.md +++ b/README.md @@ -107,11 +107,13 @@ If you love this project, please consider giving me a ⭐. ## 🗣️ Discussion -You can also discuss or ask for help in [Issues](https://github.com/louislam/uptime-kuma/issues). +### Issues Page +You can discuss or ask for help in [Issues](https://github.com/louislam/uptime-kuma/issues). -Alternatively, you can discuss in my original post on reddit: https://www.reddit.com/r/selfhosted/comments/oi7dc7/uptime_kuma_a_fancy_selfhosted_monitoring_tool_an/ - -I think the real "Discussion" tab is hard to use, as it is reddit-like flow, I always missed new comments. +### Subreddit +My Reddit account: louislamlam +You can mention me if you ask question on Reddit. +https://www.reddit.com/r/UptimeKuma/ ## Contribute From 6ec219908b829e609a7690bcf1cadf9325153438 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 17 Sep 2021 15:19:19 +0800 Subject: [PATCH 9/9] test nodejs 16 --- package.json | 1 + test/ubuntu-nodejs16.dockerfile | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 test/ubuntu-nodejs16.dockerfile diff --git a/package.json b/package.json index d768063a0..0f7a71575 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "test-install-script-alpine3": "npm run compile-install-script && docker build --progress plain -f test/test_install_script/alpine3.dockerfile .", "test-install-script-ubuntu": "npm run compile-install-script && docker build --progress plain -f test/test_install_script/ubuntu.dockerfile .", "test-install-script-ubuntu1604": "npm run compile-install-script && docker build --progress plain -f test/test_install_script/ubuntu1604.dockerfile .", + "test-nodejs16": "docker build --progress plain -f test/ubuntu-nodejs16.dockerfile .", "simple-dns-server": "node extra/simple-dns-server.js", "update-language-files_old": "cd extra/update-language-files && node index.js %npm_config_base_lang% && eslint ../../src/languages/**.js --fix", "update-language-files": "cd extra/update-language-files && node index.js && eslint ../../src/languages/**.js --fix" diff --git a/test/ubuntu-nodejs16.dockerfile b/test/ubuntu-nodejs16.dockerfile new file mode 100644 index 000000000..a2dd2ec86 --- /dev/null +++ b/test/ubuntu-nodejs16.dockerfile @@ -0,0 +1,10 @@ +FROM ubuntu +WORKDIR /app +RUN apt update && apt --yes install git curl +RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - +RUN apt --yes install nodejs +RUN git clone https://github.com/louislam/uptime-kuma.git . +RUN npm run setup + +# Option 1. Try it +RUN node server/server.js