From a5e353ef94fccf362f92011e59e1d7de5a5fee79 Mon Sep 17 00:00:00 2001 From: frissyn <62220201+frissyn@users.noreply.github.com> Date: Tue, 27 Dec 2022 22:05:18 +0000 Subject: [PATCH] :recycle:: refactor all templates to use vue, update tw config --- server/templates/_layouts/{default.html => default.vue} | 0 server/templates/credits.html | 1 - server/templates/credits.vue | 1 + server/templates/editor/editor.vue | 2 +- server/templates/editor/err/400.html | 1 - server/templates/editor/err/400.vue | 1 + server/templates/editor/err/401.html | 1 - server/templates/editor/err/401.vue | 1 + server/templates/editor/err/410.html | 1 - server/templates/editor/err/410.vue | 1 + server/templates/index.html | 1 - server/templates/index.vue | 1 + server/templates/theme.html | 1 - server/templates/theme.vue | 1 + tailwind.config.js | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename server/templates/_layouts/{default.html => default.vue} (100%) delete mode 100644 server/templates/credits.html create mode 100644 server/templates/credits.vue delete mode 100644 server/templates/editor/err/400.html create mode 100644 server/templates/editor/err/400.vue delete mode 100644 server/templates/editor/err/401.html create mode 100644 server/templates/editor/err/401.vue delete mode 100644 server/templates/editor/err/410.html create mode 100644 server/templates/editor/err/410.vue delete mode 100644 server/templates/index.html create mode 100644 server/templates/index.vue delete mode 100644 server/templates/theme.html create mode 100644 server/templates/theme.vue diff --git a/server/templates/_layouts/default.html b/server/templates/_layouts/default.vue similarity index 100% rename from server/templates/_layouts/default.html rename to server/templates/_layouts/default.vue diff --git a/server/templates/credits.html b/server/templates/credits.html deleted file mode 100644 index b6f010c..0000000 --- a/server/templates/credits.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "_layouts/default.html" %}{% block content %}

BerryDeck

The definitive and comprehensive savefile editor. Work in progress.

{% endblock %} \ No newline at end of file diff --git a/server/templates/credits.vue b/server/templates/credits.vue new file mode 100644 index 0000000..d5db118 --- /dev/null +++ b/server/templates/credits.vue @@ -0,0 +1 @@ +{% extends "_layouts/default.vue" %}{% block content %}

BerryDeck

The definitive and comprehensive savefile editor. Work in progress.

{% endblock %} \ No newline at end of file diff --git a/server/templates/editor/editor.vue b/server/templates/editor/editor.vue index bd49f87..c4dc747 100644 --- a/server/templates/editor/editor.vue +++ b/server/templates/editor/editor.vue @@ -1,4 +1,4 @@ -{% extends "_layouts/default.html" %}{% block title %}Editing '{{ s['semantic-fn'] }}' - BerryDeck{% endblock %}{% block navend %} +{% extends "_layouts/default.vue" %}{% block title %}Editing '{{ s['semantic-fn'] }}' - BerryDeck{% endblock %}{% block navend %}
Download Savefile
{% endblock %} {% block content%} diff --git a/server/templates/editor/err/400.html b/server/templates/editor/err/400.html deleted file mode 100644 index 579f888..0000000 --- a/server/templates/editor/err/400.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "_layouts/default.html" %}{% block title %}400 Bad Request - BerryDeck{% endblock %}{% block content %}

Bad or Damaged Savefile!

Your savefile could not be read and parsed. This could be due to invalid XML syntax or file corruption. Select Create to start a new session.


Traceback:
{{ err }}
{% endblock %} \ No newline at end of file diff --git a/server/templates/editor/err/400.vue b/server/templates/editor/err/400.vue new file mode 100644 index 0000000..c18554a --- /dev/null +++ b/server/templates/editor/err/400.vue @@ -0,0 +1 @@ +{% extends "_layouts/default.vue" %}{% block title %}400 Bad Request - BerryDeck{% endblock %}{% block content %}

Bad or Damaged Savefile!

Your savefile could not be read and parsed. This could be due to invalid XML syntax or file corruption. Select Create to start a new session.


Traceback:
{{ err }}
{% endblock %} \ No newline at end of file diff --git a/server/templates/editor/err/401.html b/server/templates/editor/err/401.html deleted file mode 100644 index e957997..0000000 --- a/server/templates/editor/err/401.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "_layouts/default.html" %}{% block title %}Inactive Session - BerryDeck{% endblock %}{% block content %}

Inactive Session!

Couldn't find your last editor session. Select Create to start a new one.

{% endblock %} \ No newline at end of file diff --git a/server/templates/editor/err/401.vue b/server/templates/editor/err/401.vue new file mode 100644 index 0000000..8ce6f1e --- /dev/null +++ b/server/templates/editor/err/401.vue @@ -0,0 +1 @@ +{% extends "_layouts/default.vue" %}{% block title %}Inactive Session - BerryDeck{% endblock %}{% block content %}

Inactive Session!

Couldn't find your last editor session. Select Create to start a new one.

{% endblock %} \ No newline at end of file diff --git a/server/templates/editor/err/410.html b/server/templates/editor/err/410.html deleted file mode 100644 index effe523..0000000 --- a/server/templates/editor/err/410.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "_layouts/default.html" %}{% block title %}Inactive Session - BerryDeck{% endblock %}{% block content %}

Expired Session!

Your last editing session has expired, make to save your files before leaving the site! Select Create to start a new one.

{% endblock %} \ No newline at end of file diff --git a/server/templates/editor/err/410.vue b/server/templates/editor/err/410.vue new file mode 100644 index 0000000..6aa343a --- /dev/null +++ b/server/templates/editor/err/410.vue @@ -0,0 +1 @@ +{% extends "_layouts/default.vue" %}{% block title %}Inactive Session - BerryDeck{% endblock %}{% block content %}

Expired Session!

Your last editing session has expired, make to save your files before leaving the site! Select Create to start a new one.

{% endblock %} \ No newline at end of file diff --git a/server/templates/index.html b/server/templates/index.html deleted file mode 100644 index b7b22f4..0000000 --- a/server/templates/index.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "_layouts/default.html" %}{% block navend %}{{ super() }}{% if s.get("fn") and s.get("semantic-fn") %}Current Session{% endif %}{% endblock %}{% block content %}

BerryDeck

The definitive and comprehensive savefile editor. Work in progress.

{% endblock %} \ No newline at end of file diff --git a/server/templates/index.vue b/server/templates/index.vue new file mode 100644 index 0000000..dadbb16 --- /dev/null +++ b/server/templates/index.vue @@ -0,0 +1 @@ +{% extends "_layouts/default.vue" %}{% block navend %}{{ super() }}{% if s.get("fn") and s.get("semantic-fn") %}Current Session{% endif %}{% endblock %}{% block content %}

BerryDeck

The definitive and comprehensive savefile editor. Work in progress.

{% endblock %} \ No newline at end of file diff --git a/server/templates/theme.html b/server/templates/theme.html deleted file mode 100644 index 3674a02..0000000 --- a/server/templates/theme.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "_layouts/default.html" %}{% block title %}theme peek or sumn{% endblock %}{% block content %}

Theme Preview

Default Primary Secondary Accent Info Success Warning Error
I'm a simple link I'm a simple link I'm a simple link I'm a simple link
Default Primary Secondary Accent Info Success Warning Error
Total Page Views
89,400
21% more than last month
60%
75%
90%
Text Size 1
Text Size 2
Text Size 3
Text Size 4
Text Size 5
Text Size 6
Text Size 7
  • Step 1
  • Step 2
  • Step 3
  • Step 4
12 unread messages. Tap to see.
New software update available.
Your purchase has been confirmed!
Warning: Invalid email address!
Error! Task failed successfully.
{% endblock %} \ No newline at end of file diff --git a/server/templates/theme.vue b/server/templates/theme.vue new file mode 100644 index 0000000..7f6dd6d --- /dev/null +++ b/server/templates/theme.vue @@ -0,0 +1 @@ +{% extends "_layouts/default.vue" %}{% block title %}theme peek or sumn{% endblock %}{% block content %}

Theme Preview

Default Primary Secondary Accent Info Success Warning Error
I'm a simple link I'm a simple link I'm a simple link I'm a simple link
Default Primary Secondary Accent Info Success Warning Error
Total Page Views
89,400
21% more than last month
60%
75%
90%
Text Size 1
Text Size 2
Text Size 3
Text Size 4
Text Size 5
Text Size 6
Text Size 7
  • Step 1
  • Step 2
  • Step 3
  • Step 4
12 unread messages. Tap to see.
New software update available.
Your purchase has been confirmed!
Warning: Invalid email address!
Error! Task failed successfully.
{% endblock %} \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index dc02f51..9cfb0c3 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -7,7 +7,7 @@ module.exports = { themes: ["cupcake", "dark"] }, content: [ - "./server/templates/**/*.{html,xhtml}", + "./server/templates/**/*.{html,vue}", "./server/static/styles/src/*.css" ] } \ No newline at end of file