Compare commits

..

3 Commits

Author SHA1 Message Date
Stavros
95dced96ae fix: fix sonner 2025-10-31 15:53:31 +02:00
Stavros
2c3b72353a refactor: use shadcn theme toggle 2025-10-31 15:47:45 +02:00
Stavros
f5f18bc2f6 feat: add support for light mode 2025-10-30 22:23:57 +02:00
4 changed files with 5 additions and 22 deletions

View File

@@ -29,10 +29,10 @@ jobs:
run: |
echo testing > internal/assets/version
- name: Lint frontend
- name: Build frontend
run: |
cd frontend
bun run lint
bun run build
- name: Copy frontend
run: |

View File

@@ -9,7 +9,7 @@ export const isValidUrl = (url: string) => {
try {
new URL(url);
return true;
} catch {
} catch (e) {
return false;
}
};

View File

@@ -76,14 +76,7 @@ export const ContinuePage = () => {
clearTimeout(auto);
clearTimeout(reveal);
};
}, [
handleRedirect,
isAllowedRedirectProto,
isHttpsDowngrade,
isLoggedIn,
isTrustedRedirectUri,
isValidRedirectUri,
]);
}, []);
if (!isLoggedIn) {
return (

View File

@@ -119,8 +119,6 @@ export const LoginPage = () => {
!isLoggedIn &&
redirectUri
) {
// Not sure of a better way to do this
// eslint-disable-next-line react-hooks/set-state-in-effect
setOauthAutoRedirectHandover(true);
oauthMutation.mutate(oauthAutoRedirect);
redirectButtonTimer.current = window.setTimeout(() => {
@@ -128,15 +126,7 @@ export const LoginPage = () => {
}, 5000);
}
}
}, [
isMounted,
oauthProviders.length,
providers,
isLoggedIn,
redirectUri,
oauthAutoRedirect,
oauthMutation,
]);
}, []);
useEffect(
() => () => {