diff options
author | Minteck <contact@minteck.org> | 2021-12-04 13:14:41 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2021-12-04 13:14:41 +0100 |
commit | dbbc2d3692acaf0c3e54647a0b5fc4d03f5d79c3 (patch) | |
tree | fc1ef63efc15ac1e8c0e49ab9b1b3d296a67ed82 /htdocs/public | |
parent | e618c3f52c1c4ae161650679cda24eecbba579bb (diff) | |
download | rainbow-dbbc2d3692acaf0c3e54647a0b5fc4d03f5d79c3.tar.gz rainbow-dbbc2d3692acaf0c3e54647a0b5fc4d03f5d79c3.tar.bz2 rainbow-dbbc2d3692acaf0c3e54647a0b5fc4d03f5d79c3.zip |
New stuff
Diffstat (limited to 'htdocs/public')
23 files changed, 174 insertions, 29 deletions
diff --git a/htdocs/public/TODO/index.ejs b/htdocs/public/TODO/index.ejs index 2e2dcaa..7b5edd2 100644 --- a/htdocs/public/TODO/index.ejs +++ b/htdocs/public/TODO/index.ejs @@ -1 +1 @@ -<%- fs.readFileSync(serverRoot + "/TODO") %>
\ No newline at end of file +<% res.writeHead(200, { "Content-Type": "text/plain" }); %><%- fs.readFileSync(serverRoot + "/TODO"); %>
\ No newline at end of file diff --git a/htdocs/public/assets/2D5CECF.jpg b/htdocs/public/assets/2D5CECF.jpg Binary files differdeleted file mode 100644 index 7d5deaa..0000000 --- a/htdocs/public/assets/2D5CECF.jpg +++ /dev/null diff --git a/htdocs/public/assets/css/main.css b/htdocs/public/assets/css/main.css index 93f6bd9..2618049 100644 --- a/htdocs/public/assets/css/main.css +++ b/htdocs/public/assets/css/main.css @@ -259,4 +259,30 @@ html, body, #intro, #main { .sky { display: none; } +} + +.container { + margin-left: 20vw; + margin-right: 20vw; +} + +@media (max-width: 1000px) { + .container { + margin-left: 10vw; + margin-right: 10vw; + } +} + +@media (max-width: 700px) { + .container { + margin-left: 5vw; + margin-right: 5vw; + } +} + +@media (max-width: 500px) { + .container { + margin-left: 0; + margin-right: 0; + } }
\ No newline at end of file diff --git a/htdocs/public/code-of-conduct/index.ejs b/htdocs/public/code-of-conduct/index.ejs new file mode 100644 index 0000000..67fabf4 --- /dev/null +++ b/htdocs/public/code-of-conduct/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "/" + slang }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/contact/index.ejs b/htdocs/public/contact/index.ejs new file mode 100644 index 0000000..5631234 --- /dev/null +++ b/htdocs/public/contact/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "/" + slang + "/#/contact" }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/creations/dev/index.ejs b/htdocs/public/creations/dev/index.ejs new file mode 100644 index 0000000..e41cbc4 --- /dev/null +++ b/htdocs/public/creations/dev/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "/" + slang + "/creations" }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/creations/electrode/index.ejs b/htdocs/public/creations/electrode/index.ejs new file mode 100644 index 0000000..1149834 --- /dev/null +++ b/htdocs/public/creations/electrode/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "https://gitlab.minteck.org/minteck/electrode" }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/creations/index.ejs b/htdocs/public/creations/index.ejs new file mode 100644 index 0000000..6105886 --- /dev/null +++ b/htdocs/public/creations/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "https://gitlab.minteck.org/minteck" }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/creations/kartik/index.ejs b/htdocs/public/creations/kartik/index.ejs new file mode 100644 index 0000000..1e272a7 --- /dev/null +++ b/htdocs/public/creations/kartik/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "https://kartik.minteck.org" }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/creations/neutron/index.ejs b/htdocs/public/creations/neutron/index.ejs new file mode 100644 index 0000000..75029b2 --- /dev/null +++ b/htdocs/public/creations/neutron/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "https://gitlab.minteck.org/minteck/neutron" }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/creations/unchained/index.ejs b/htdocs/public/creations/unchained/index.ejs new file mode 100644 index 0000000..56678a0 --- /dev/null +++ b/htdocs/public/creations/unchained/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "https://unchained.minteck.org" }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/creations/video/index.ejs b/htdocs/public/creations/video/index.ejs new file mode 100644 index 0000000..e41cbc4 --- /dev/null +++ b/htdocs/public/creations/video/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "/" + slang + "/creations" }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/furry/index.ejs b/htdocs/public/furry/index.ejs new file mode 100644 index 0000000..ee5a47f --- /dev/null +++ b/htdocs/public/furry/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "/" + slang + "/#/about" }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/index.ejs b/htdocs/public/index.ejs index a004f52..65b8e49 100644 --- a/htdocs/public/index.ejs +++ b/htdocs/public/index.ejs @@ -1,7 +1,7 @@ <% global.title = lang.main.page; %> <%- include(`${private}/header.ejs`) %> -<a href="/TODO">TODO</a> +<a href="/TODO">TODO</a> (<%- slang %>) <div id="intro" style="height:100vh;display:flex;align-items: center;justify-content: center;margin: -20px;"> <div style="text-align: center;"> @@ -212,11 +212,12 @@ <div style="text-align: center;"> <h2><%- lang.main.about.archives.title %></h2> <h3><%- lang.main.about.archives.description %></h3> - <a href="<%- slang %>/archive" class="big-button big-button-bg2"><%- lang.main.about.archives.action %> →</a> + <a href="/<%- slang %>/archive" class="big-button big-button-bg2"><%- lang.main.about.archives.action %> →</a> </div> <div style="text-align: center;"> <h2><%- lang.main.about.general.title %></h2> <h3><%- lang.main.about.general.description %></h3> + <a href="/<%- slang %>/me" class="big-button big-button-bg2"><%- lang.main.about.general.action %> →</a> </div> <div style="text-align: center;"> <h2><%- lang.main.about.history.title %></h2> @@ -239,7 +240,8 @@ fs.readFileSync(serverRoot + "/.git/" + fs.readFileSync(serverRoot + "/.git/HEAD").toString().trim().substr(5)).toString().trim().substr(0, 8) %></a> · <a target="_blank" href="https://gitlab.minteck.org/minteck/sattelite"><%- lang.global.source %></a> · <a - href="<%- slang %>/legal"><%- lang.global.legal %></a> · <a href="https://account.minteck.org"><%- lang.global.account %></a> · <a + href="/<%- slang %>/legal"><%- lang.global.legal %></a> · <a + href="/<%- slang %>/metranslator"><%- lang.metranslator.title %></a> · <a href="https://account.minteck.org"><%- lang.global.account %></a> · <a href="https://kartik.minteck.org/online">Kartik Online</a> · <a href="https://unchained.minteck.org">UnchainedTech</a> · <a href="https://source.minteck.org">Minteck Trunk</a> diff --git a/htdocs/public/me/index.ejs b/htdocs/public/me/index.ejs new file mode 100644 index 0000000..36feb43 --- /dev/null +++ b/htdocs/public/me/index.ejs @@ -0,0 +1,20 @@ +<% global.title = lang.me.title; %> +<%- include(`${private}/header.ejs`) %> + +<a href="/">← <%- lang.global.back %></a> + +<hr class="rnbwsquare-separator rnbwsquare-outer"> +<br> +<% data = child_process.execSync("curl https://jae.fi/me").toString(); %> + +<div style="display:grid;grid-template-columns: 96px 1fr;" class="container"> + <img style="border-radius: 999px;" src="https://www.gravatar.com/avatar/48f67e8c212de600986cb32146f9a15b?s=96&d=identicon"> + <div style="margin-left: 20px;display: flex;align-items: center;"> + <div> + <h1 style="margin: 0;">Minteck | Mia</h1> + <p style="margin: 0;opacity:.5;">Software Developer, Sysadmin, Furry</p> + </div> + </div> +</div> + +<%- include(`${private}/footer.ejs`) %>
\ No newline at end of file diff --git a/htdocs/public/metranslator/api/index.ejs b/htdocs/public/metranslator/api/index.ejs index 47800bd..388331b 100644 --- a/htdocs/public/metranslator/api/index.ejs +++ b/htdocs/public/metranslator/api/index.ejs @@ -25,7 +25,7 @@ } 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'") + 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}\""; diff --git a/htdocs/public/metranslator/index.ejs b/htdocs/public/metranslator/index.ejs index 943d772..1433c81 100644 --- a/htdocs/public/metranslator/index.ejs +++ b/htdocs/public/metranslator/index.ejs @@ -1,4 +1,4 @@ -<% global.title = "MeTranslator"; %> +<% global.title = lang.metranslator.title; %> <%- include(`${private}/header.ejs`) %> <a href="/">← <%- lang.global.back %></a> @@ -15,15 +15,15 @@ } </style> - <h2 style="text-align:center;">Metroz Translate</h2> - <p style="text-align:center;">💡 <i>Click one of the languages to invert</i></p> + <h2 style="text-align:center;"><%- lang.metranslator.title %></h2> + <p style="text-align:center;">💡 <i><%- lang.metranslator.tip %></i></p> <div style="display:grid;grid-template-columns: 1fr 1fr;background:#111;padding-top:10px;border-radius:5px;"> <div> <a style="cursor:pointer;color: white !important; text-decoration: none;" onclick="switchLangs();"><p id="lang-source" style="text-align:center;font-weight:bold;"> - English</p></a> - <textarea maxlength="500" placeholder="Start typing here..." onresize="resizeTarget();" + <%- lang.metranslator.base %></p></a> + <textarea maxlength="500" placeholder="<%- lang.metranslator.placeholder %>" onresize="resizeTarget();" onchange="process();" onkeydown="process();" onkeyup="process();" id="text-source" @@ -42,16 +42,16 @@ </div> <div id="facts" style="background:#424242;padding: 3px 10px;width:100%;border-bottom-left-radius:5px;border-bottom-right-radius:5px;"> - <span id="facts-inner">No facts available about this text</span> + <span id="facts-inner"><%- lang.metranslator.facts %></span> </div> <details style="margin-top:20px;"> - <summary>Translator Insights</summary> + <summary><%- lang.metranslator.insights.title %></summary> <ul> - <li>Database Name: <span id="insights-01">n/a</span></li> - <li>Database Version: <span id="insights-02">n/a</span></li> - <li>Database Size: <span id="insights-03">n/a</span></li> - <li>Processing Time: <span id="insights-04">n/a</span></li> + <li><%- lang.metranslator.insights.name %> <span id="insights-01">n/a</span></li> + <li><%- lang.metranslator.insights.version %> <span id="insights-02">n/a</span></li> + <li><%- lang.metranslator.insights.size %> <span id="insights-03">n/a</span></li> + <li><%- lang.metranslator.insights.time %> <span id="insights-04">n/a</span></li> </ul> </details> </div> @@ -69,10 +69,10 @@ if (document.getElementById("lang-target").innerText === "English") { document.getElementById("lang-target").innerText = "Metroz"; - document.getElementById("lang-source").innerText = "English"; + document.getElementById("lang-source").innerText = "<%- lang.metranslator.base %>"; } else { document.getElementById("lang-source").innerText = "Metroz"; - document.getElementById("lang-target").innerText = "English"; + document.getElementById("lang-target").innerText = "<%- lang.metranslator.base %>"; } translate(); @@ -82,7 +82,7 @@ function startTyping() { typing = true; - document.getElementById("facts-inner").innerText = "Waiting for end of input..."; + document.getElementById("facts-inner").innerText = "<%- lang.metranslator.waiting %>"; document.getElementById("text-target").innerText = "..."; } @@ -97,15 +97,15 @@ function translate() { if (document.getElementById("text-source").value.trim() === "") { - document.getElementById("facts-inner").innerText = "No facts available for this text"; + document.getElementById("facts-inner").innerText = "<%- lang.metranslator.facts %>"; document.getElementById("text-target").innerText = ""; return; } - document.getElementById("facts-inner").innerText = "Translating..."; + document.getElementById("facts-inner").innerText = "<%- lang.metranslator.processing %>"; document.getElementById("text-target").innerText = "..."; - if (document.getElementById("lang-target").innerText === "English") { + if (document.getElementById("lang-target").innerText === "<%- lang.metranslator.base %>") { target = "en"; } else { target = "mt"; @@ -129,23 +129,24 @@ for (word of words) { if (initw.includes(word)) { newds.push("<mark>" + word + "</mark>"); - data.facts.push("The word '" + word + "' does not have a translation in " + document.getElementById("lang-target").innerText) + nothing = "<%- lang.metranslator.nothing %>"; + data.facts.push(nothing.replace("%1", word).replace("%2", document.getElementById("lang-target").innerText)) } else { newds.push(word); } } if (data.facts.length > 0) { - document.getElementById("facts-inner").innerHTML = "<ul style='margin-bottom: 0;'><li>" + data.facts.join("</li><li>") + "</li></ul>"; + document.getElementById("facts-inner").innerHTML = "<ul style='margin-bottom: 0;margin-top: 0;'><li>" + data.facts.join("</li><li>") + "</li></ul>"; } else { - document.getElementById("facts-inner").innerText = "No facts available for this text"; + document.getElementById("facts-inner").innerText = "<%- lang.metranslator.facts %>"; } document.getElementById("text-target").innerHTML = newds.join(" "); } catch (e) { console.error(e); - document.getElementById("text-target").innerHTML = "<i>An error occurred, please try again later<ul><li>You are a developer? Additional details have been displayed in the console</li><li>You are a regular user? Contact the administrators so they fix the problem</li></ul></i>"; - document.getElementById("facts-inner").innerText = "No facts available for this text"; + document.getElementById("text-target").innerHTML = "<%- lang.metranslator.error %>"; + document.getElementById("facts-inner").innerText = "<%- lang.metranslator.facts %>"; document.getElementById("insights-01").innerText = "n/a"; document.getElementById("insights-02").innerText = "n/a"; document.getElementById("insights-03").innerText = "n/a"; @@ -159,8 +160,8 @@ document.getElementById("insights-04").innerText = "n/a"; } else { document.getElementById("insights-01").innerText = data.system.name; - document.getElementById("insights-02").innerText = data.system.version + " (last update by " + data.system.last_author + ")"; - document.getElementById("insights-03").innerText = data.system.length + " entries"; + document.getElementById("insights-02").innerText = data.system.version + " (<%- lang.metranslator.update %> " + data.system.last_author + ")"; + document.getElementById("insights-03").innerText = data.system.length + " <%- lang.metranslator.entries %>"; document.getElementById("insights-04").innerText = data.duration + " ms"; } resizeTarget() diff --git a/htdocs/public/oworadio/along/index.ejs b/htdocs/public/oworadio/along/index.ejs new file mode 100644 index 0000000..67fabf4 --- /dev/null +++ b/htdocs/public/oworadio/along/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "/" + slang }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/oworadio/credits/index.ejs b/htdocs/public/oworadio/credits/index.ejs new file mode 100644 index 0000000..67fabf4 --- /dev/null +++ b/htdocs/public/oworadio/credits/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "/" + slang }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/oworadio/dmca/index.ejs b/htdocs/public/oworadio/dmca/index.ejs new file mode 100644 index 0000000..67fabf4 --- /dev/null +++ b/htdocs/public/oworadio/dmca/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "/" + slang }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/oworadio/index.ejs b/htdocs/public/oworadio/index.ejs new file mode 100644 index 0000000..67fabf4 --- /dev/null +++ b/htdocs/public/oworadio/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "/" + slang }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/oworadio/source/index.ejs b/htdocs/public/oworadio/source/index.ejs new file mode 100644 index 0000000..67fabf4 --- /dev/null +++ b/htdocs/public/oworadio/source/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "/" + slang }); + res.end(); + +%>
\ No newline at end of file diff --git a/htdocs/public/oworadio/vlc/index.ejs b/htdocs/public/oworadio/vlc/index.ejs new file mode 100644 index 0000000..67fabf4 --- /dev/null +++ b/htdocs/public/oworadio/vlc/index.ejs @@ -0,0 +1,6 @@ +<% + + res.writeHead(301, { "Location": "/" + slang }); + res.end(); + +%>
\ No newline at end of file |