From ae7ef10b67737f08a86743f687bca30a12e9e17a Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 12 Jul 2026 19:38:03 +0200 Subject: first stable --- templates/accounts/manage.html | 70 ++++++++++++++++++++++++ templates/backups/list.html | 43 +++++++++++++++ templates/base.html | 37 +++++++++++++ templates/change_password.html | 24 +++++++++ templates/dashboard.html | 45 ++++++++++++++++ templates/instances/create.html | 115 ++++++++++++++++++++++++++++++++++++++++ templates/instances/edit.html | 62 ++++++++++++++++++++++ templates/instances/list.html | 50 +++++++++++++++++ templates/login.html | 25 +++++++++ templates/players/manage.html | 69 ++++++++++++++++++++++++ 10 files changed, 540 insertions(+) create mode 100644 templates/accounts/manage.html create mode 100644 templates/backups/list.html create mode 100644 templates/base.html create mode 100644 templates/change_password.html create mode 100644 templates/dashboard.html create mode 100644 templates/instances/create.html create mode 100644 templates/instances/edit.html create mode 100644 templates/instances/list.html create mode 100644 templates/login.html create mode 100644 templates/players/manage.html (limited to 'templates') diff --git a/templates/accounts/manage.html b/templates/accounts/manage.html new file mode 100644 index 0000000..e7c9b2f --- /dev/null +++ b/templates/accounts/manage.html @@ -0,0 +1,70 @@ +{% extends "base.html" %} +{% block content %} +

Account Management

+ +{% if let Some(msg) = message %} +
{{ msg }}
+{% endif %} + +
+

Change My Password

+
+ + + +
+
+ +
+

Create Account

+
+ + + + +
+
+ +
+

Existing Accounts

+ + + + + + + + + + {% for acct in accounts %} + + + + + + {% endfor %} + +
UsernameRoleActions
{{ acct.username }} + {% if acct.is_superuser %} + Superuser + {% else %} + User + {% endif %} + +
+
+ + + +
+
+ + +
+
+
+
+{% endblock %} diff --git a/templates/backups/list.html b/templates/backups/list.html new file mode 100644 index 0000000..d7508eb --- /dev/null +++ b/templates/backups/list.html @@ -0,0 +1,43 @@ +{% extends "base.html" %} +{% block content %} + + +{% if backups.is_empty() %} +
+

No backups yet. Create one to safeguard your world.

+
+{% else %} + + + + + + + + + + {% for backup in backups %} + + + + + + {% endfor %} + +
FilenameCreatedActions
{{ backup.filename }}{{ backup.created_at }} + Download +
+ +
+
+{% endif %} +{% endblock %} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..3a92cd0 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,37 @@ + + + + + + Minecraft UI + + + + + + + {% if password_change_required %} +
+ You must change your password before continuing. +
+ {% endif %} + +
+ {% block content %}{% endblock %} +
+ + diff --git a/templates/change_password.html b/templates/change_password.html new file mode 100644 index 0000000..6dfc11c --- /dev/null +++ b/templates/change_password.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} +{% block content %} +

Change Password

+ +{% if !error.is_empty() %} +
{{ error }}
+{% endif %} + +{% if password_change_required %} +
You must change your password before continuing.
+{% endif %} + +
+ + + +
+{% endblock %} diff --git a/templates/dashboard.html b/templates/dashboard.html new file mode 100644 index 0000000..571a43e --- /dev/null +++ b/templates/dashboard.html @@ -0,0 +1,45 @@ +{% extends "base.html" %} +{% block content %} +

Dashboard

+ +{% if let Some(inst) = active_instance %} +
+

Active: {{ inst.name }}

+
+ Version: {{ inst.version }} + Type: {{ inst.server_type }} + Max Players: {{ inst.max_players }} +
+ +
+
+ {% if container_state == "running" %} + Running + {% else if container_state == "pulling" %} + Pulling image… + {% else if container_state == "starting" %} + Starting… + {% else if container_state == "stopped" %} + Stopped + {% else if container_state == "error" %} + SOMETHING BAD IS HAPPENING, CHECK DOCKER LOGS + {% else %} + {{ container_state }} + {% endif %} +
+
+ +
+ Player Management +
+ +
+
+
+{% else %} +
+

No active instance

+

Choose a server instance to start from the Instances page.

+
+{% endif %} +{% endblock %} diff --git a/templates/instances/create.html b/templates/instances/create.html new file mode 100644 index 0000000..45f70f4 --- /dev/null +++ b/templates/instances/create.html @@ -0,0 +1,115 @@ +{% extends "base.html" %} +{% block content %} +

Create Instance

+ +{% if let Some(msg) = error %} +
{{ msg }}
+{% endif %} + +
+
+ Basic Info + + + + +
+ +
+ World + +
+ + +
+ + +
+ +
+ Server Properties + + + + + +
+ + +
+ + +{% endblock %} diff --git a/templates/instances/edit.html b/templates/instances/edit.html new file mode 100644 index 0000000..356c7cd --- /dev/null +++ b/templates/instances/edit.html @@ -0,0 +1,62 @@ +{% extends "base.html" %} +{% block content %} +

Edit: {{ instance.name }}

+ +
+
+ Version: {{ instance.version }} + Type: {{ instance.server_type }} + World: {{ instance.world_source }} + {% if let Some(seed) = instance.world_seed %} + Seed: {{ seed }} + {% endif %} + {% if instance.has_modpack %} + Modpack: Installed + {% endif %} +
+
+ +
+
+ Server Properties + + + + + + +
+ +
+ + Cancel +
+
+{% endblock %} diff --git a/templates/instances/list.html b/templates/instances/list.html new file mode 100644 index 0000000..b8b2337 --- /dev/null +++ b/templates/instances/list.html @@ -0,0 +1,50 @@ +{% extends "base.html" %} +{% block content %} + + +{% if instances.is_empty() %} +
+

No instances yet. Create one to get started.

+
+{% else %} +
+ {% for inst in instances %} +
+ {% if inst.is_active %} +
ACTIVE
+ {% endif %} +

{{ inst.name }}

+
+ {{ inst.version }} + {{ inst.server_type }} + {% if inst.has_modpack %} + Modded + {% endif %} +
+
+ {% if !inst.is_active %} +
+ +
+ {% else %} +
+ +
+ {% endif %} + Edit + Backups + {% if !inst.is_active %} +
+ +
+ {% endif %} +
+
+ {% endfor %} +
+{% endif %} +{% endblock %} diff --git a/templates/login.html b/templates/login.html new file mode 100644 index 0000000..36e725e --- /dev/null +++ b/templates/login.html @@ -0,0 +1,25 @@ + + + + + + Login — Minecraft UI + + + +
+

Minecraft UI

+ +
+ + diff --git a/templates/players/manage.html b/templates/players/manage.html new file mode 100644 index 0000000..5c31e4c --- /dev/null +++ b/templates/players/manage.html @@ -0,0 +1,69 @@ +{% extends "base.html" %} +{% block content %} +

Player Management

+ +{% if let Some(name) = active_instance_name %} +

Managing: {{ name }}

+{% else %} +
No active instance. Start a server to manage players.
+{% endif %} + +
+
+

Whitelist

+
+ + +
+
    + {% for player in whitelist %} +
  • + {{ player }} +
    + + +
    +
  • + {% endfor %} +
+
+ +
+

Operators

+
+ + +
+
    + {% for player in ops %} +
  • + {{ player }} +
    + + +
    +
  • + {% endfor %} +
+
+ +
+

Banned

+
+ + +
+
    + {% for player in bans %} +
  • + {{ player }} +
    + + +
    +
  • + {% endfor %} +
+
+
+{% endblock %} -- cgit v1.2.3