From 608ce1d9910cd68ce825838ea313e02c598f908e Mon Sep 17 00:00:00 2001 From: Mica White Date: Mon, 8 Dec 2025 20:08:21 -0500 Subject: Stuff --- static/config/local.toml | 10 +++++----- static/languages/en.ini | 40 ++++++++++++++++++++-------------------- static/scripts/tsconfig.json | 22 +++++++++++----------- static/templates/base.html | 32 ++++++++++++++++---------------- static/templates/error.html | 14 +++++++------- static/templates/login.html | 26 +++++++++++++------------- 6 files changed, 72 insertions(+), 72 deletions(-) (limited to 'static') diff --git a/static/config/local.toml b/static/config/local.toml index ed6f9d0..d17967e 100644 --- a/static/config/local.toml +++ b/static/config/local.toml @@ -1,5 +1,5 @@ -# used to identify the issuer of JWTs -self_id = "LockDagger" - -# The URL which the server is hosted on -url = "http://localhost:8080" +# used to identify the issuer of JWTs +self_id = "LockDagger" + +# The URL which the server is hosted on +url = "http://localhost:8080" diff --git a/static/languages/en.ini b/static/languages/en.ini index 32adc51..e90b59e 100644 --- a/static/languages/en.ini +++ b/static/languages/en.ini @@ -1,20 +1,20 @@ -loginTitle = Log In -usernameLabel = Username -usernamePlaceholder = Enter your username -passwordLabel = Password -passwordPlaceholder = Enter your password -loginSubmitButton = Log In - -loginErrorMessage = Incorrect username or password. - -errorTitle = Error -errorHeader_invalidRequest = Invalid Request -errorMessage_invalidRequest = The client sent a bad request. -errorHeader_clientNotFound = Client Not Found -errorMessage_clientNotFound = The client gave an incorrect ID, so we cannot redirect to it. -errorHeader_missingRedirectUri = Missing Redirect URI -errorMessage_missingRedirectUri = There are many redirect URIs for the client, but the client did not specify which one to use. -errorHeader_invalidRedirectUri = Invalid Redirect URI -errorMessage_invalidRedirectUri = The client provided a redirect URI that it is not allowed to redirect to. -errorHeader_internalServerError = Server Error -errorMessage_internalServerError = An unexpected error occurred. +loginTitle = Log In +usernameLabel = Username +usernamePlaceholder = Enter your username +passwordLabel = Password +passwordPlaceholder = Enter your password +loginSubmitButton = Log In + +loginErrorMessage = Incorrect username or password. + +errorTitle = Error +errorHeader_invalidRequest = Invalid Request +errorMessage_invalidRequest = The client sent a bad request. +errorHeader_clientNotFound = Client Not Found +errorMessage_clientNotFound = The client gave an incorrect ID, so we cannot redirect to it. +errorHeader_missingRedirectUri = Missing Redirect URI +errorMessage_missingRedirectUri = There are many redirect URIs for the client, but the client did not specify which one to use. +errorHeader_invalidRedirectUri = Invalid Redirect URI +errorMessage_invalidRedirectUri = The client provided a redirect URI that it is not allowed to redirect to. +errorHeader_internalServerError = Server Error +errorMessage_internalServerError = An unexpected error occurred. diff --git a/static/scripts/tsconfig.json b/static/scripts/tsconfig.json index 9103384..40f6740 100644 --- a/static/scripts/tsconfig.json +++ b/static/scripts/tsconfig.json @@ -1,12 +1,12 @@ -{ - "compilerOptions": { - "strict": true, - "noFallthroughCasesInSwitch": true, - "exactOptionalPropertyTypes": true, - "noImplicitOverride": true, - "noImplicitReturns": true, - "noPropertyAccessFromIndexSignature": true, - "lib": ["DOM"], - "target": "ES6" - } +{ + "compilerOptions": { + "strict": true, + "noFallthroughCasesInSwitch": true, + "exactOptionalPropertyTypes": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": true, + "lib": ["DOM"], + "target": "ES6" + } } \ No newline at end of file diff --git a/static/templates/base.html b/static/templates/base.html index 021f95e..2096f78 100644 --- a/static/templates/base.html +++ b/static/templates/base.html @@ -1,16 +1,16 @@ - - - - {% block title %}{% endblock title %} - - - - {% block head %}{% endblock head %} - - - {% block content %}{% endblock content %} - - - + + + + {% block title %}{% endblock title %} + + + + {% block head %}{% endblock head %} + + + {% block content %}{% endblock content %} + + + diff --git a/static/templates/error.html b/static/templates/error.html index 4fbe87f..c3a0dec 100644 --- a/static/templates/error.html +++ b/static/templates/error.html @@ -1,7 +1,7 @@ -{% extends "base.html" %} -{% block title %}{{ msg(key="errorTitle") }}{% endblock title %} - -{% block content %} -

{{ msg(key=errorHeader) }}

-

{{ msg(key=errorMessage) }}

-{% endblock content %} +{% extends "base.html" %} +{% block title %}{{ msg(key="errorTitle") }}{% endblock title %} + +{% block content %} +

{{ msg(key=errorHeader) }}

+

{{ msg(key=errorMessage) }}

+{% endblock content %} diff --git a/static/templates/login.html b/static/templates/login.html index 325dc14..18ec017 100644 --- a/static/templates/login.html +++ b/static/templates/login.html @@ -1,14 +1,14 @@ -{% extends "base.html" %} -{% block title %}{{ msg(key="loginTitle") }}{% endblock title %} -{% block content %} -
- {% if errorMessage %} -

{{ msg(key=errorMessage) }}

- {% endif %} - - - - - -
+{% extends "base.html" %} +{% block title %}{{ msg(key="loginTitle") }}{% endblock title %} +{% block content %} +
+ {% if errorMessage %} +

{{ msg(key=errorMessage) }}

+ {% endif %} + + + + + +
{% endblock content %} \ No newline at end of file -- cgit v1.2.3