From 0646ba11fe45a87ea45f9ff8ff91e3783e33186f Mon Sep 17 00:00:00 2001 From: WardPearce Date: Sat, 14 Feb 2026 01:22:51 +1300 Subject: [PATCH] Implemented login page --- materialious/src/lib/i18n/locales/en.json | 11 ++- materialious/src/routes/(app)/+layout.svelte | 5 +- .../routes/(app)/internal/login/+page.svelte | 88 +++++++++++++++++++ .../src/routes/(app)/internal/login/+page.ts | 9 ++ 4 files changed, 110 insertions(+), 3 deletions(-) create mode 100644 materialious/src/routes/(app)/internal/login/+page.svelte create mode 100644 materialious/src/routes/(app)/internal/login/+page.ts diff --git a/materialious/src/lib/i18n/locales/en.json b/materialious/src/lib/i18n/locales/en.json index b555cfde..7605f2a9 100644 --- a/materialious/src/lib/i18n/locales/en.json +++ b/materialious/src/lib/i18n/locales/en.json @@ -7,9 +7,18 @@ "loadMore": "Load more", "views": "views", "login": "Login", + "username": "Username", + "password": "Password", + "invalidPassword": "Invalid password", + "usernameTaken": "Username taken", + "createAccount": "Create account", + "needRegister": "I need to register", + "needLogin": "I need to login", "recommendedVideos": "Recommended Videos", "playlistVideos": "Playlist Videos", - "invidiousLogin": "Please log in with your Invidious account", + "invidiousLogin": "Please log in with your Invidious account.", + "materialiousLogin": "Please login with your Materialious account.", + "materialiousCreate": "Please create your Materialious account.", "invalidInstance": "Please verify the URL. If it's correct, the instance may be down or may not support third-party clients.", "invidiousBlockWarning": "Invidious is currently being blocked by Google. If videos aren't loading for this instance, please use this instance on Materialious on {android} or {desktop} to get around this with local video fallback.", "videos": "videos", diff --git a/materialious/src/routes/(app)/+layout.svelte b/materialious/src/routes/(app)/+layout.svelte index 18c46daf..131671ef 100644 --- a/materialious/src/routes/(app)/+layout.svelte +++ b/materialious/src/routes/(app)/+layout.svelte @@ -117,6 +117,7 @@ async function login() { if (isOwnBackend()?.internalAuth) { + goto(resolve('/internal/login', {})); return; } @@ -499,11 +500,11 @@
- +
- +