From 16e1ae1bcbbef0e4be7e532335e2d3457ba38907 Mon Sep 17 00:00:00 2001 From: nsde Date: Mon, 11 Sep 2023 13:48:28 +0200 Subject: [PATCH] Fixed parts/ not being published to GitHub --- web/app.py | 2 +- web/templates/common/begin.html | 26 +++++++++++++++++++++++ web/templates/common/end.html | 4 ++++ web/templates/common/footer.html | 36 ++++++++++++++++++++++++++++++++ web/templates/common/nav.html | 25 ++++++++++++++++++++++ web/templates/common/seo.html | 33 +++++++++++++++++++++++++++++ web/templates/index.html | 4 ++-- web/templates/legal/privacy.html | 4 ++-- web/templates/legal/terms.html | 4 ++-- web/templates/novacord.html | 4 ++-- web/templates/panel.html | 4 ++-- web/templates/replit.html | 4 ++-- 12 files changed, 137 insertions(+), 13 deletions(-) create mode 100644 web/templates/common/begin.html create mode 100644 web/templates/common/end.html create mode 100644 web/templates/common/footer.html create mode 100644 web/templates/common/nav.html create mode 100644 web/templates/common/seo.html diff --git a/web/app.py b/web/app.py index fb2003f..786c553 100644 --- a/web/app.py +++ b/web/app.py @@ -51,5 +51,5 @@ def create_app() -> flask.Flask: production = create_app() if __name__ == '__main__': - print('* Live on http://localhost:2211') + print('* DEV environment online at http://localhost:2211') create_app().run(debug=True, use_reloader=True, use_evalex=False, port=2211, host='0.0.0.0', threaded=True) diff --git a/web/templates/common/begin.html b/web/templates/common/begin.html new file mode 100644 index 0000000..f56dfbe --- /dev/null +++ b/web/templates/common/begin.html @@ -0,0 +1,26 @@ + + + + + + + {% include 'common/seo.html' %} + + {% for css in 'navbar base footer input fonts'.split() %} + + {% endfor %} + + + + + + + + + + + + NovaAI - Make AI Open Again + + +{% include 'common/nav.html' %} \ No newline at end of file diff --git a/web/templates/common/end.html b/web/templates/common/end.html new file mode 100644 index 0000000..434550b --- /dev/null +++ b/web/templates/common/end.html @@ -0,0 +1,4 @@ +{% include 'common/footer.html' %} + + + \ No newline at end of file diff --git a/web/templates/common/footer.html b/web/templates/common/footer.html new file mode 100644 index 0000000..67b0525 --- /dev/null +++ b/web/templates/common/footer.html @@ -0,0 +1,36 @@ + \ No newline at end of file diff --git a/web/templates/common/nav.html b/web/templates/common/nav.html new file mode 100644 index 0000000..2631a83 --- /dev/null +++ b/web/templates/common/nav.html @@ -0,0 +1,25 @@ + \ No newline at end of file diff --git a/web/templates/common/seo.html b/web/templates/common/seo.html new file mode 100644 index 0000000..1d6a5a7 --- /dev/null +++ b/web/templates/common/seo.html @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/templates/index.html b/web/templates/index.html index 0977c84..849b115 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -1,4 +1,4 @@ -{% include 'parts/begin.html' %} +{% include 'common/begin.html' %}
@@ -83,4 +83,4 @@ punctuation on these messages. -{% include 'parts/end.html' %} \ No newline at end of file +{% include 'common/end.html' %} \ No newline at end of file diff --git a/web/templates/legal/privacy.html b/web/templates/legal/privacy.html index 47c8556..a1314b7 100644 --- a/web/templates/legal/privacy.html +++ b/web/templates/legal/privacy.html @@ -1,4 +1,4 @@ -{% include 'parts/begin.html' %} +{% include 'common/begin.html' %}

Privacy

@@ -90,4 +90,4 @@

-{% include 'parts/end.html' %} \ No newline at end of file +{% include 'common/end.html' %} \ No newline at end of file diff --git a/web/templates/legal/terms.html b/web/templates/legal/terms.html index e82ffbd..a7e5c28 100644 --- a/web/templates/legal/terms.html +++ b/web/templates/legal/terms.html @@ -1,4 +1,4 @@ -{% include 'parts/begin.html' %} +{% include 'common/begin.html' %}
{% if verify %} @@ -141,4 +141,4 @@ } -{% include 'parts/end.html' %} +{% include 'common/end.html' %} diff --git a/web/templates/novacord.html b/web/templates/novacord.html index 2127301..64d0b41 100644 --- a/web/templates/novacord.html +++ b/web/templates/novacord.html @@ -1,4 +1,4 @@ -{% include 'parts/begin.html' %} +{% include 'common/begin.html' %}
@@ -39,4 +39,4 @@

-{% include 'parts/end.html' %} +{% include 'common/end.html' %} diff --git a/web/templates/panel.html b/web/templates/panel.html index 1b6ece1..278cf7c 100644 --- a/web/templates/panel.html +++ b/web/templates/panel.html @@ -1,4 +1,4 @@ -{% include 'parts/begin.html' %} +{% include 'common/begin.html' %}
@@ -54,4 +54,4 @@ novaai.api_base = 'https://api.nova-oss.com/v1'
-{% include 'parts/end.html' %} +{% include 'common/end.html' %} diff --git a/web/templates/replit.html b/web/templates/replit.html index a38b7d9..0cd56b1 100644 --- a/web/templates/replit.html +++ b/web/templates/replit.html @@ -1,4 +1,4 @@ -{% include 'parts/begin.html' %} +{% include 'common/begin.html' %}
@@ -68,4 +68,4 @@ client.login(process.env.DISCORD_BOT_TOKEN)

-{% include 'parts/end.html' %} +{% include 'common/end.html' %}