From 3cc5c64e5ed186b528eb4baac2c7fc561be674a6 Mon Sep 17 00:00:00 2001 From: RainyXeon Date: Sat, 20 Jul 2024 12:45:42 +0700 Subject: [PATCH] add: credits and license card in settings page --- webroot/css/icons.css | 14 ++++++++++ webroot/css/index.css | 7 +++-- webroot/index.html | 46 +++++++++++++++++++++++++++++--- webroot/js/translate/settings.js | 8 ++++++ webroot/lang/en_US.json | 9 +++++++ webroot/lang/ja_JP.json | 11 +++++++- webroot/lang/pt_BR.json | 9 +++++++ webroot/lang/ro_RO.json | 9 +++++++ webroot/lang/ru_RU.json | 9 +++++++ webroot/lang/vi_VN.json | 9 +++++++ webroot/lang/zh_CN.json | 9 +++++++ webroot/lang/zh_TW.json | 9 +++++++ 12 files changed, 141 insertions(+), 8 deletions(-) diff --git a/webroot/css/icons.css b/webroot/css/icons.css index 4cf9f04..3c421e2 100644 --- a/webroot/css/icons.css +++ b/webroot/css/icons.css @@ -27,6 +27,13 @@ z-index: 10; } +.link_github { + background: url(../assets_light/github.svg); + width: 50px; + height: 50px; + z-index: 10; +} + /* Light */ #ni_home.light { background: url(../assets_light/home.svg); @@ -55,3 +62,10 @@ height: 24px; z-index: 10; } + +.link_github.light { + background: url(../assets_light/github.svg); + width: 35px; + height: 35px; + z-index: 10; +} diff --git a/webroot/css/index.css b/webroot/css/index.css index 7ff48ea..9e5cae4 100644 --- a/webroot/css/index.css +++ b/webroot/css/index.css @@ -183,7 +183,7 @@ a { .button { padding: 1em 0 1em 0; border-radius: 30px; - transition: transform 0.15s ease-in-out; + transition: transform 0.1s ease-in-out; background-color: var(--button); } @@ -192,11 +192,10 @@ a { } .small_card { - margin-top: 10px; background: var(--small-card); border-radius: 15px; padding: 5px 10px 0 10px; - margin: 0 10px 0 10px; + margin: 15px 15px 0 15px; padding-bottom: 5px; } @@ -346,7 +345,7 @@ input:checked + .slider:before { /* Show set */ .panel.show { - margin-bottom: 7em; + margin-bottom: 119px; display: block; animation: fade-in 0.2s; } diff --git a/webroot/index.html b/webroot/index.html index 81b29dd..677f7a3 100644 --- a/webroot/index.html +++ b/webroot/index.html @@ -90,15 +90,15 @@
Version
Unknown
-
+
Root Implementation
Unknown
-
+
Zygote32
Unknown
-
+
Zygote64
Unknown
@@ -210,6 +210,46 @@
+ + +
+
+
Module Developer
+ +
The PerformanC Organization
+
+
+ +
+
Original Module Developer
+
+ Nullptr +
,
+ 5ec1cff +
+
+ +
+
WebUI Developer
+ +
RainyXeon
+
+
+
+ + +
+
+
Module License
+
GPL (Nullptr), BSD 2-Clause
+
+ +
+
WebUI License
+
BSD 2-Clause
+
+
+ diff --git a/webroot/js/translate/settings.js b/webroot/js/translate/settings.js index 77fe6c9..4dda4e5 100644 --- a/webroot/js/translate/settings.js +++ b/webroot/js/translate/settings.js @@ -16,4 +16,12 @@ export function translateSettingsPage(new_translations) { /* INFO: Change font option */ document.getElementById('sys_errorh_title').innerHTML = new_translations.page.settings.logs.header document.getElementById('sys_errorh_desc').innerHTML = new_translations.page.settings.logs.description + + /* INFO: Credit card */ + document.getElementById('mcre_title').innerHTML = new_translations.page.settings.credits.module + document.getElementById('omcre_title').innerHTML = new_translations.page.settings.credits.original + document.getElementById('webcre_title').innerHTML = new_translations.page.settings.credits.web + /* INFO: License card */ + document.getElementById('mlic_title').innerHTML = new_translations.page.settings.license.module + document.getElementById('mweb_title').innerHTML = new_translations.page.settings.license.web } \ No newline at end of file diff --git a/webroot/lang/en_US.json b/webroot/lang/en_US.json index 8005910..db4285e 100644 --- a/webroot/lang/en_US.json +++ b/webroot/lang/en_US.json @@ -65,6 +65,15 @@ "logs": { "header": "Error History", "description": "View all of your error log" + }, + "credits": { + "module": "Module Developer", + "original": "Original Module Developer", + "web": "WebUI Developer" + }, + "license": { + "module": "Module License", + "web": "WebUI License" } } } diff --git a/webroot/lang/ja_JP.json b/webroot/lang/ja_JP.json index 58f00e1..21c59dd 100644 --- a/webroot/lang/ja_JP.json +++ b/webroot/lang/ja_JP.json @@ -36,7 +36,7 @@ "arch": "アーキテクチャー: " }, "action": { - "header": "設定", + "header": "Action", "daemonButton": { "start": "スタート", "stop": "ストップ", @@ -65,6 +65,15 @@ "logs": { "header": "Error History", "description": "View all of your error log" + }, + "credits": { + "module": "Module Developer", + "original": "Original Module Developer", + "web": "WebUI Developer" + }, + "license": { + "module": "Module License", + "web": "WebUI License" } } } diff --git a/webroot/lang/pt_BR.json b/webroot/lang/pt_BR.json index 6f5c7b2..925abd9 100644 --- a/webroot/lang/pt_BR.json +++ b/webroot/lang/pt_BR.json @@ -65,6 +65,15 @@ "logs": { "header": "Histórico de erros", "description": "Veja o histórico de erros inteiro" + }, + "credits": { + "module": "Module Developer", + "original": "Original Module Developer", + "web": "WebUI Developer" + }, + "license": { + "module": "Module License", + "web": "WebUI License" } } } diff --git a/webroot/lang/ro_RO.json b/webroot/lang/ro_RO.json index 0687b9b..9d1281e 100644 --- a/webroot/lang/ro_RO.json +++ b/webroot/lang/ro_RO.json @@ -65,6 +65,15 @@ "logs": { "header": "Error History", "description": "View all of your error log" + }, + "credits": { + "module": "Module Developer", + "original": "Original Module Developer", + "web": "WebUI Developer" + }, + "license": { + "module": "Module License", + "web": "WebUI License" } } } diff --git a/webroot/lang/ru_RU.json b/webroot/lang/ru_RU.json index 511baa7..d8be793 100644 --- a/webroot/lang/ru_RU.json +++ b/webroot/lang/ru_RU.json @@ -65,6 +65,15 @@ "logs": { "header": "Error History", "description": "View all of your error log" + }, + "credits": { + "module": "Module Developer", + "original": "Original Module Developer", + "web": "WebUI Developer" + }, + "license": { + "module": "Module License", + "web": "WebUI License" } } } diff --git a/webroot/lang/vi_VN.json b/webroot/lang/vi_VN.json index 857a054..95f5d84 100644 --- a/webroot/lang/vi_VN.json +++ b/webroot/lang/vi_VN.json @@ -65,6 +65,15 @@ "logs": { "header": "Lịch sử lỗi", "description": "Xem tất cả các lỗi" + }, + "credits": { + "module": "Nhà phát triển mô-đun", + "original": "Nhà phát triển mô-đun gốc", + "web": "Nhà phát triển WebUI" + }, + "license": { + "module": "Giấy phép bản quyền mô-đun", + "web": "Giấy phép bản quyền WebUI" } } } diff --git a/webroot/lang/zh_CN.json b/webroot/lang/zh_CN.json index 81f7d66..c665ee7 100644 --- a/webroot/lang/zh_CN.json +++ b/webroot/lang/zh_CN.json @@ -65,6 +65,15 @@ "logs": { "header": "Error History", "description": "View all of your error log" + }, + "credits": { + "module": "Module Developer", + "original": "Original Module Developer", + "web": "WebUI Developer" + }, + "license": { + "module": "Module License", + "web": "WebUI License" } } } diff --git a/webroot/lang/zh_TW.json b/webroot/lang/zh_TW.json index d832535..66f6bfd 100644 --- a/webroot/lang/zh_TW.json +++ b/webroot/lang/zh_TW.json @@ -65,6 +65,15 @@ "logs": { "header": "Error History", "description": "View all of your error log" + }, + "credits": { + "module": "Module Developer", + "original": "Original Module Developer", + "web": "WebUI Developer" + }, + "license": { + "module": "Module License", + "web": "WebUI License" } } }