summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/config/local.toml10
-rw-r--r--static/languages/en.ini40
-rw-r--r--static/scripts/tsconfig.json22
-rw-r--r--static/templates/base.html32
-rw-r--r--static/templates/error.html14
-rw-r--r--static/templates/login.html26
6 files changed, 72 insertions, 72 deletions
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 @@
-<!DOCTYPE html>
-<html lang="{{lang}}">
- <head>
- <title>{% block title %}{% endblock title %}</title>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <link rel="stylesheet" href="/style.css" />
- {% block head %}{% endblock head %}
- </head>
- <body>
- {% block content %}{% endblock content %}
- <footer>
- <div id="copyright">&copy; 2023</div>
- </footer>
- </body>
-</html>
+<!DOCTYPE html>
+<html lang="{{lang}}">
+ <head>
+ <title>{% block title %}{% endblock title %}</title>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <link rel="stylesheet" href="/style.css" />
+ {% block head %}{% endblock head %}
+ </head>
+ <body>
+ {% block content %}{% endblock content %}
+ <footer>
+ <div id="copyright">&copy; 2023</div>
+ </footer>
+ </body>
+</html>
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 %}
-<p>{{ msg(key=errorHeader) }}</p>
-<p>{{ msg(key=errorMessage) }}</p>
-{% endblock content %}
+{% extends "base.html" %}
+{% block title %}{{ msg(key="errorTitle") }}{% endblock title %}
+
+{% block content %}
+<p>{{ msg(key=errorHeader) }}</p>
+<p>{{ msg(key=errorMessage) }}</p>
+{% 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 %}
-<form method="post" action="/authorize?{{params}}">
- {% if errorMessage %}
- <p>{{ msg(key=errorMessage) }}</p>
- {% endif %}
- <label for="username">{{ msg(key="usernameLabel") }}</label>
- <input id="username" type="text" name="username" tabindex="0" placeholder="{{ msg(key="usernamePlaceholder") }}" autofocus />
- <label for="password">{{ msg(key="passwordLabel") }}</label>
- <input id="password" type="password" name="password" tabindex="0" placeholder="{{ msg(key="passwordPlaceholder") }}" />
- <input type="submit" tabindex="0" name="login" value="{{ msg(key="loginSubmitButton") }}" />
-</form>
+{% extends "base.html" %}
+{% block title %}{{ msg(key="loginTitle") }}{% endblock title %}
+{% block content %}
+<form method="post" action="/authorize?{{params}}">
+ {% if errorMessage %}
+ <p>{{ msg(key=errorMessage) }}</p>
+ {% endif %}
+ <label for="username">{{ msg(key="usernameLabel") }}</label>
+ <input id="username" type="text" name="username" tabindex="0" placeholder="{{ msg(key="usernamePlaceholder") }}" autofocus />
+ <label for="password">{{ msg(key="passwordLabel") }}</label>
+ <input id="password" type="password" name="password" tabindex="0" placeholder="{{ msg(key="passwordPlaceholder") }}" />
+ <input type="submit" tabindex="0" name="login" value="{{ msg(key="loginSubmitButton") }}" />
+</form>
{% endblock content %} \ No newline at end of file