Skip to content

Commit

Permalink
♻️: refactor all templates to use vue, update tw config
Browse files Browse the repository at this point in the history
  • Loading branch information
frissyn committed Dec 27, 2022
1 parent 06f1a11 commit a5e353e
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 8 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion server/templates/credits.html

This file was deleted.

1 change: 1 addition & 0 deletions server/templates/credits.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends "_layouts/default.vue" %}{% block content %}<div class="hero min-h-[88vh]" style="background-image: url(static/assets/splash.jpg);"><div class="hero-overlay bg-opacity-60"></div><div class="hero-content text-neutral-content"><div class="max-w-md"><h1 class="mb-5 text-5xl font-bold">BerryDeck</h1><p class="mb-5">The definitive and comprehensive savefile editor. Work in progress.</p></div></div></div>{% endblock %}
2 changes: 1 addition & 1 deletion server/templates/editor/editor.vue
Original file line number Diff line number Diff line change
@@ -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 %}
<div class="flex-none"><a class="btn btn-ghost gap-2" href="/editor/download"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" class="w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9.75v6.75m0 0l-3-3m3 3l3-3m-8.25 6a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"></path></svg>Download Savefile</a></div>{% endblock %}

{% block content%}
Expand Down
1 change: 0 additions & 1 deletion server/templates/editor/err/400.html

This file was deleted.

1 change: 1 addition & 0 deletions server/templates/editor/err/400.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends "_layouts/default.vue" %}{% block title %}400 Bad Request - BerryDeck{% endblock %}{% block content %}<div class="hero min-h-[88vh]"><div class="hero-content"><div class="max-w-md"><h1 class="mb-5 text-5xl font-bold">Bad or Damaged Savefile!</h1><p class="mb-5">Your savefile could not be read and parsed. This could be due to invalid XML syntax or file corruption. Select <b>Create</b> to start a new session.</p><br><b>Traceback:</b><div class="mockup-code bg-error text-primary-content"><pre><code>{{ err }}</code></pre></div></div></div></div>{% endblock %}
1 change: 0 additions & 1 deletion server/templates/editor/err/401.html

This file was deleted.

1 change: 1 addition & 0 deletions server/templates/editor/err/401.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends "_layouts/default.vue" %}{% block title %}Inactive Session - BerryDeck{% endblock %}{% block content %}<div class="hero min-h-[88vh]"><div class="hero-content text-center"><div class="max-w-md"><h1 class="mb-5 text-5xl font-bold">Inactive Session!</h1><p class="mb-5">Couldn't find your last editor session. Select <b>Create</b> to start a new one.</p></div></div></div>{% endblock %}
1 change: 0 additions & 1 deletion server/templates/editor/err/410.html

This file was deleted.

1 change: 1 addition & 0 deletions server/templates/editor/err/410.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends "_layouts/default.vue" %}{% block title %}Inactive Session - BerryDeck{% endblock %}{% block content %}<div class="hero min-h-[88vh]"><div class="hero-content text-center"><div class="max-w-md"><h1 class="mb-5 text-5xl font-bold">Expired Session!</h1><p class="mb-5">Your last editing session has expired, make to save your files before leaving the site! Select <b>Create</b> to start a new one.</p></div></div></div>{% endblock %}
1 change: 0 additions & 1 deletion server/templates/index.html

This file was deleted.

1 change: 1 addition & 0 deletions server/templates/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends "_layouts/default.vue" %}{% block navend %}{{ super() }}{% if s.get("fn") and s.get("semantic-fn") %}<a href="/editor" class="btn btn-success rounded gap-2"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" class="w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" d="M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"></path></svg>Current Session</a>{% endif %}{% endblock %}{% block content %}<div class="hero min-h-[88vh]" style="background-image: url(static/assets/splash.jpg);"><div class="hero-overlay bg-opacity-60"></div><div class="hero-content text-neutral-content"><div class="max-w-md"><h1 class="mb-5 text-5xl font-bold">BerryDeck</h1><p class="mb-5">The definitive and comprehensive savefile editor. Work in progress.</p></div></div></div>{% endblock %}
1 change: 0 additions & 1 deletion server/templates/theme.html

This file was deleted.

Loading

0 comments on commit a5e353e

Please sign in to comment.