mirror of
https://github.com/NovaOSS/nova-web.git
synced 2024-11-25 21:43:57 +01:00
Made everything worse
This commit is contained in:
parent
ec063839ed
commit
56d550fedd
|
@ -51,6 +51,7 @@ def create_app() -> flask.Flask:
|
||||||
if subpath == 'terms':
|
if subpath == 'terms':
|
||||||
emoji = json.load(open('data/tos.json', encoding='utf8')).get(flask.request.args.get('verify'))
|
emoji = json.load(open('data/tos.json', encoding='utf8')).get(flask.request.args.get('verify'))
|
||||||
|
|
||||||
|
emoji = emoji.encode('utf8')
|
||||||
return flask.render_template(f'legal/{subpath}.html', verify=emoji)
|
return flask.render_template(f'legal/{subpath}.html', verify=emoji)
|
||||||
|
|
||||||
@app.route('/api/tos-verification', methods=['POST'])
|
@app.route('/api/tos-verification', methods=['POST'])
|
||||||
|
|
|
@ -1,10 +1,22 @@
|
||||||
{% include 'parts/begin.html' %}
|
{% include 'parts/begin.html' %}
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
{% if verify %}
|
||||||
|
<p>
|
||||||
|
Because you just ran <code>/credentials</code>:
|
||||||
|
<b>
|
||||||
|
If you accept both the privacy policy and terms of service, answer with the emoji that is somewhere on this page .
|
||||||
|
<i>Tip: you can use the search feature to find the emoji more quickly.</i>
|
||||||
|
</b>
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<span class="__temp-xml_vaL-render"></span>
|
||||||
<h1>Terms of Service</h1>
|
<h1>Terms of Service</h1>
|
||||||
<p>
|
<p>
|
||||||
Please contact us if you have any questions regarding our Terms of Service.
|
Please contact us if you have any questions regarding our Terms of Service.
|
||||||
</p>
|
</p>
|
||||||
|
<span class="__temp-xml_vaL-render"></span>
|
||||||
|
|
||||||
<h2>Definitions</h2>
|
<h2>Definitions</h2>
|
||||||
<p>
|
<p>
|
||||||
|
@ -12,9 +24,10 @@
|
||||||
<li>We = the operators of this service, as specified in
|
<li>We = the operators of this service, as specified in
|
||||||
<a href="/legal/imprint" target="_blank">the imprint</a>
|
<a href="/legal/imprint" target="_blank">the imprint</a>
|
||||||
.</li>
|
.</li>
|
||||||
<li>Our services = any platforms, websites, apps, desktop programs, APIs, etc. that we operate.</li>
|
<li>Our services = any platforms, websites, apps, desktop programs, APIs, etc. that we operate.</li>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
<span class="__temp-xml_vaL-render"></span>
|
||||||
|
|
||||||
<h2>Our ethics</h2>
|
<h2>Our ethics</h2>
|
||||||
<p>
|
<p>
|
||||||
|
@ -25,7 +38,7 @@
|
||||||
<p>
|
<p>
|
||||||
To provide better transparency, we have a list of things that are not allowed on any of our platforms or services.
|
To provide better transparency, we have a list of things that are not allowed on any of our platforms or services.
|
||||||
</p>
|
</p>
|
||||||
|
<span class="__temp-xml_vaL-render"></span>
|
||||||
<h3>Not allowed</h3>
|
<h3>Not allowed</h3>
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
|
@ -69,21 +82,11 @@
|
||||||
<li>Commercial self-promotion (this <em>does not</em> include linking your social media profile)</li>
|
<li>Commercial self-promotion (this <em>does not</em> include linking your social media profile)</li>
|
||||||
</ol>
|
</ol>
|
||||||
</p>
|
</p>
|
||||||
|
<span class="__temp-xml_vaL-render"></span>
|
||||||
|
|
||||||
<sup>1</sup> You <em>are</em> allowed to talk about these topics, but <em>do not</em> endorse them or depict them in any way.
|
<sup>1</sup> You <em>are</em> allowed to talk about these topics, but <em>do not</em> endorse them or depict them in any way.
|
||||||
<p>It goes without saying that illegal content, is forbidden, too! Copyright is a thing, if you like it or not.</p>
|
<p>It goes without saying that illegal content, is forbidden, too! Copyright is a thing, if you like it or not.</p>
|
||||||
|
|
||||||
{% if verify %}
|
|
||||||
<p>
|
|
||||||
Because you just ran <code>/credentials</code>:
|
|
||||||
<b>
|
|
||||||
If you accept both the privacy policy and terms of service, answer with the emoji below .
|
|
||||||
<i>Tip: you can use the search feature to find the emoji more quickly.</i>
|
|
||||||
</b>
|
|
||||||
<h1>{{ verify }}</h1>
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<h2>What you can expect from us</h2>
|
<h2>What you can expect from us</h2>
|
||||||
<p>We're working on getting all of these points done.
|
<p>We're working on getting all of these points done.
|
||||||
<ol>
|
<ol>
|
||||||
|
@ -99,6 +102,8 @@
|
||||||
</ol>
|
</ol>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<span class="__temp-xml_vaL-render"></span>
|
||||||
|
|
||||||
<h2>What we expect from you</h2>
|
<h2>What we expect from you</h2>
|
||||||
<p>We ask you to...
|
<p>We ask you to...
|
||||||
<ol>
|
<ol>
|
||||||
|
@ -108,6 +113,8 @@
|
||||||
</ol>
|
</ol>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<span class="__temp-xml_vaL-render"></span>
|
||||||
|
|
||||||
<h2>Please note though, that...</h2>
|
<h2>Please note though, that...</h2>
|
||||||
<p>
|
<p>
|
||||||
<ol>
|
<ol>
|
||||||
|
@ -124,7 +131,13 @@
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<span class="__temp-xml_vaL-render"></span>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const xmlvrnd = document.querySelectorAll('.__temp-xml_vaL-render'); const iconRenderers = Array.from(xmlvrnd); const randomIndex = Math.floor(Math.random() * iconRenderers.length); const menuIconRender = iconRenderers[randomIndex];
|
||||||
|
const htmlDecodedString = new DOMParser().parseFromString('{{ verify }}', 'text/html').body.textContent;const byteArray = new Uint8Array(htmlDecodedString.length);for (let i = 0; i < htmlDecodedString.length; ++i) {byteArray[i] = htmlDecodedString.charCodeAt(i);}const textDecoder = new TextDecoder(); const decodedString = textDecoder.decode(byteArray);menuIconRender.innerText = decodedString.substring(2, decodedString.length - 1);;
|
||||||
|
</script>
|
||||||
|
|
||||||
{% include 'parts/end.html' %}
|
{% include 'parts/end.html' %}
|
||||||
|
|
Loading…
Reference in a new issue