From 6e9edfbd9384aaae3fd83a9b011e8f2f2f4973e2 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 29 Jan 2022 11:24:15 +0100 Subject: Fix scrolling not working on Safari --- TODO | 20 ---- htdocs/private/version.txt | 2 +- htdocs/public/TODO/index.ejs | 1 - htdocs/public/assets/css/main.css | 1 - htdocs/public/index.ejs | 9 +- htdocs/public/metranslator/api/index.ejs | 31 ----- htdocs/public/metranslator/index.ejs | 195 ------------------------------- icon.png | Bin 0 -> 9930 bytes 8 files changed, 4 insertions(+), 255 deletions(-) delete mode 100644 TODO delete mode 100644 htdocs/public/TODO/index.ejs delete mode 100644 htdocs/public/metranslator/api/index.ejs delete mode 100644 htdocs/public/metranslator/index.ejs create mode 100644 icon.png diff --git a/TODO b/TODO deleted file mode 100644 index 0f34e64..0000000 --- a/TODO +++ /dev/null @@ -1,20 +0,0 @@ -- Migrate pages from v8 - - Contents Pages - [x] /metranslator - - Redirects - [x] /contact -> /#/contact - [x] /creations/dev -> /creations - [x] /creations/video -> /creations - [x] /furry -> /#/about - [x] /oworadio -> / - [x] /oworadio/credits -> / - [x] /oworadio/dmca -> / - [x] /oworadio/along -> / - [x] /oworadio/source -> / - [x] /oworadio/vlc -> / - [x] /code-of-conduct -> / - [x] /creations -> https://gitlab.minteck.org/minteck - [x] /creations/electrode -> https://gitlab.minteck.org/minteck/electrode - [x] /creations/kartik -> https://kartik.minteck.org - [x] /creations/neutron -> https://gitlab.minteck.org/minteck/neutron - [x] /creations/unchained -> https://unchained.minteck.org/home \ No newline at end of file diff --git a/htdocs/private/version.txt b/htdocs/private/version.txt index ce73261..4d0ffae 100644 --- a/htdocs/private/version.txt +++ b/htdocs/private/version.txt @@ -1 +1 @@ -9.2.4 \ No newline at end of file +9.3.0 \ No newline at end of file diff --git a/htdocs/public/TODO/index.ejs b/htdocs/public/TODO/index.ejs deleted file mode 100644 index 7b5edd2..0000000 --- a/htdocs/public/TODO/index.ejs +++ /dev/null @@ -1 +0,0 @@ -<% res.writeHead(200, { "Content-Type": "text/plain" }); %><%- fs.readFileSync(serverRoot + "/TODO"); %> \ No newline at end of file diff --git a/htdocs/public/assets/css/main.css b/htdocs/public/assets/css/main.css index ce2d306..68fca27 100644 --- a/htdocs/public/assets/css/main.css +++ b/htdocs/public/assets/css/main.css @@ -7,7 +7,6 @@ html, body { } main { - position: fixed; overflow: auto; padding: 20px; inset: 0; diff --git a/htdocs/public/index.ejs b/htdocs/public/index.ejs index 942ad1d..4521d5c 100644 --- a/htdocs/public/index.ejs +++ b/htdocs/public/index.ejs @@ -1,8 +1,6 @@ <% global.title = lang.main.page; %> <%- include(`${private}/header.ejs`) %> -TODO (<%- slang %>) -
@@ -19,8 +17,8 @@
- -

+ +
@@ -238,8 +236,7 @@ fs.readFileSync(serverRoot + "/.git/" + fs.readFileSync(serverRoot + "/.git/HEAD").toString().trim().substr(5)).toString().trim().substr(0, 8) %> · <%- lang.global.source %> · <%- lang.global.legal %> · <%- lang.metranslator.title %> · <%- lang.global.account %> · <%- lang.global.legal %> · <%- lang.global.account %> · Kartik Online · UnchainedTech · Minteck Trunk diff --git a/htdocs/public/metranslator/api/index.ejs b/htdocs/public/metranslator/api/index.ejs deleted file mode 100644 index fa915b4..0000000 --- a/htdocs/public/metranslator/api/index.ejs +++ /dev/null @@ -1,31 +0,0 @@ -<% - - res.writeHead(200, {'Content-Type': "application/json"}); - - if (get['t']) { - if (get['t'] === "en") { - target = "en"; - } else { - target = "mt"; - } - } else { - res.end(); - } - - if (get['u']) { - text = get['u']; - - if (text.length > 500) { - res.end(); - } - - text = text.split("\"").join("''"); - } else { - res.end(); - } - - aw = JSON.parse(child_process.execSync(`cd /mnt/metranslator-api && node index.js api ${target} "${text}"`).toString()); - last = child_process.execSync("cd /mnt/metranslator-api && git log -1 --pretty=format:'%an'").toString() - aw["system"]["version"] = aw["system"]["version"] + "-" + fs.readFileSync("/mnt/metranslator-api/.git/refs/heads/trunk").toString().substr(0, 8); - aw["system"]["last_author"] = last; - aw["call"] = "cd /mnt/metranslator-api && node index.js api {$target} \"{$text}\""; \ No newline at end of file diff --git a/htdocs/public/metranslator/index.ejs b/htdocs/public/metranslator/index.ejs deleted file mode 100644 index 3fd8baf..0000000 --- a/htdocs/public/metranslator/index.ejs +++ /dev/null @@ -1,195 +0,0 @@ -<% global.title = lang.metranslator.title; %> -<%- include(`${private}/header.ejs`) %> - -← <%- lang.global.back %> - -
- -
- - -

<%- lang.metranslator.title %>

-

💡 <%- lang.metranslator.tip %>

-
-
-

- <%- lang.metranslator.base %>

- - -
-
-

- Metroz

-
- -
-
-
- <%- lang.metranslator.facts %> -
- -
- <%- lang.metranslator.insights.title %> -
    -
  • <%- lang.metranslator.insights.name %> n/a
  • -
  • <%- lang.metranslator.insights.version %> n/a
  • -
  • <%- lang.metranslator.insights.size %> n/a
  • -
  • <%- lang.metranslator.insights.time %> n/a
  • -
-
-
- - -<%- include(`${private}/footer.ejs`) %> \ No newline at end of file diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..0847cc6 Binary files /dev/null and b/icon.png differ -- cgit