feat(web): add authenticated app shell
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'en' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'en' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'en' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'en' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'en' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'en' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
import AuthLayout from '../../layouts/Auth.astro';
|
||||
import LoginForm from '../../components/LoginForm';
|
||||
import { t, localePath } from '../../i18n/utils';
|
||||
|
||||
const locale = 'en' as const;
|
||||
const login = t(locale, 'login');
|
||||
---
|
||||
|
||||
<AuthLayout locale={locale}>
|
||||
<LoginForm
|
||||
client:load
|
||||
locale={locale}
|
||||
translations={login}
|
||||
privacyUrl={localePath(locale, '/privacy')}
|
||||
termsUrl={localePath(locale, '/terms')}
|
||||
/>
|
||||
</AuthLayout>
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'en' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'en' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'en' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'en' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
import AuthLayout from '../../layouts/Auth.astro';
|
||||
import LoginForm from '../../components/LoginForm';
|
||||
import { t, localePath } from '../../i18n/utils';
|
||||
|
||||
const locale = 'zh' as const;
|
||||
const login = t(locale, 'login');
|
||||
---
|
||||
|
||||
<AuthLayout locale={locale}>
|
||||
<LoginForm
|
||||
client:load
|
||||
locale={locale}
|
||||
translations={login}
|
||||
privacyUrl={localePath(locale, '/privacy')}
|
||||
termsUrl={localePath(locale, '/terms')}
|
||||
/>
|
||||
</AuthLayout>
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh_Hant' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh_Hant' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh_Hant' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh_Hant' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh_Hant' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh_Hant' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
import AuthLayout from '../../layouts/Auth.astro';
|
||||
import LoginForm from '../../components/LoginForm';
|
||||
import { t, localePath } from '../../i18n/utils';
|
||||
|
||||
const locale = 'zh_Hant' as const;
|
||||
const login = t(locale, 'login');
|
||||
---
|
||||
|
||||
<AuthLayout locale={locale}>
|
||||
<LoginForm
|
||||
client:load
|
||||
locale={locale}
|
||||
translations={login}
|
||||
privacyUrl={localePath(locale, '/privacy')}
|
||||
termsUrl={localePath(locale, '/terms')}
|
||||
/>
|
||||
</AuthLayout>
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh_Hant' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh_Hant' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh_Hant' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
import DashboardAppPage from '../../../components/DashboardAppPage.astro';
|
||||
|
||||
const locale = 'zh_Hant' as const;
|
||||
---
|
||||
|
||||
<DashboardAppPage locale={locale} />
|
||||
Reference in New Issue
Block a user