diff --git a/apps/admin.json b/apps/admin.json index a9a2e723..49ea45f6 100644 --- a/apps/admin.json +++ b/apps/admin.json @@ -1,4 +1,5 @@ { "type": "tildefriends-app", - "emoji": "🎛" + "emoji": "🎛", + "previous": "&vhsb+Y1QdkPY1n3XxGVL2SgJQo8JnLkjhaFdCa+08GQ=.sha256" } diff --git a/apps/admin/index.html b/apps/admin/index.html index 114ab1b9..5ee3889d 100644 --- a/apps/admin/index.html +++ b/apps/admin/index.html @@ -4,9 +4,37 @@ + + - -

Tilde Friends Administration

+ +
+

Tilde Friends Administration

+
diff --git a/apps/admin/script.js b/apps/admin/script.js index 8fabc5a7..6463f973 100644 --- a/apps/admin/script.js +++ b/apps/admin/script.js @@ -32,59 +32,54 @@ window.addEventListener('load', function () { function input_template(key, description) { if (description.type === 'boolean') { return html` -
- -
- - -
${description.description}
-
-
+
  • + +
    ${description.description}
    + + +
  • `; } else if (description.type === 'textarea') { return html` -
    - -
    -
    - -
    - -
    ${description.description}
    -
    -
    +
  • + +
    ${description.description}
    + + +
  • `; } else { return html` -
    - -
    - - -
    ${description.description}
    -
    -
    +
  • + +
    ${description.description}
    + + +
  • `; } } const user_template = (user, permissions) => html` -
  • - +
  • + ${user}: ${permissions.map((x) => permission_template(x))}
  • `; const users_template = (users) => - html`

    Users

    -