feat: basic design of share page, various small fixes

This commit is contained in:
2026-09-08 12:27:36 +02:00
parent b11882c993
commit d573ac90eb
18 changed files with 314 additions and 58 deletions
+12 -1
View File
@@ -18,13 +18,24 @@
store.isAuth = await sdk.verify();
if ( store.isAuth )
router.push( '/app' );
isAuthorizedHandler();
isLoggingIn.value = false;
// TODO: Logout button
} );
const isAuthorizedHandler = () => {
if ( localStorage.getItem( 'close-tab' ) === 'true' ) {
localStorage.setItem( 'login-ok', 'true' );
localStorage.removeItem( 'close-tab' );
return window.close();
}
router.push( '/app' );
};
const login = () => {
if ( isLoggingIn.value ) return;