create-quadrokit 0.2.12 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/admin-shell/src/components/layout/AppShell.tsx +55 -0
- package/templates/admin-shell/src/components/layout/LanguageSwitcher.tsx +37 -0
- package/templates/admin-shell/src/components/layout/NotificationsMenu.tsx +79 -0
- package/templates/admin-shell/src/components/layout/PageHeading.tsx +40 -0
- package/templates/admin-shell/src/components/layout/Sidebar.tsx +65 -0
- package/templates/admin-shell/src/components/layout/ThemeMenu.tsx +90 -0
- package/templates/admin-shell/src/components/layout/TopHeader.tsx +78 -0
- package/templates/admin-shell/src/i18n.ts +16 -2
- package/templates/admin-shell/src/locales/en.json +40 -0
- package/templates/admin-shell/src/locales/fr.json +62 -0
- package/templates/admin-shell/src/main.tsx +8 -2
- package/templates/admin-shell/src/pages/HomePage.tsx +1 -2
- package/templates/admin-shell/src/pages/SampleDataPage.tsx +1 -2
- package/templates/admin-shell/src/router.tsx +13 -4
- package/templates/admin-shell/src/types/router.ts +4 -0
- package/templates/dashboard/src/components/layout/AppShell.tsx +55 -0
- package/templates/dashboard/src/components/layout/LanguageSwitcher.tsx +37 -0
- package/templates/dashboard/src/components/layout/NotificationsMenu.tsx +79 -0
- package/templates/dashboard/src/components/layout/PageHeading.tsx +40 -0
- package/templates/dashboard/src/components/layout/Sidebar.tsx +65 -0
- package/templates/dashboard/src/components/layout/ThemeMenu.tsx +90 -0
- package/templates/dashboard/src/components/layout/TopHeader.tsx +78 -0
- package/templates/dashboard/src/i18n.ts +16 -2
- package/templates/dashboard/src/locales/en.json +40 -0
- package/templates/dashboard/src/locales/fr.json +80 -0
- package/templates/dashboard/src/main.tsx +8 -2
- package/templates/dashboard/src/pages/HomePage.tsx +1 -2
- package/templates/dashboard/src/pages/SampleDataPage.tsx +1 -2
- package/templates/dashboard/src/router.tsx +12 -3
- package/templates/dashboard/src/types/router.ts +4 -0
- package/templates/ecommerce/src/components/layout/AppShell.tsx +55 -0
- package/templates/ecommerce/src/components/layout/LanguageSwitcher.tsx +37 -0
- package/templates/ecommerce/src/components/layout/NotificationsMenu.tsx +79 -0
- package/templates/ecommerce/src/components/layout/PageHeading.tsx +40 -0
- package/templates/ecommerce/src/components/layout/Sidebar.tsx +65 -0
- package/templates/ecommerce/src/components/layout/ThemeMenu.tsx +90 -0
- package/templates/ecommerce/src/components/layout/TopHeader.tsx +78 -0
- package/templates/ecommerce/src/i18n.ts +16 -2
- package/templates/ecommerce/src/locales/en.json +35 -0
- package/templates/ecommerce/src/locales/fr.json +62 -0
- package/templates/ecommerce/src/main.tsx +8 -2
- package/templates/ecommerce/src/pages/HomePage.tsx +1 -2
- package/templates/ecommerce/src/pages/SampleDataPage.tsx +1 -2
- package/templates/ecommerce/src/router.tsx +13 -4
- package/templates/ecommerce/src/types/router.ts +4 -0
- package/templates/website/src/components/layout/AppShell.tsx +55 -0
- package/templates/website/src/components/layout/LanguageSwitcher.tsx +37 -0
- package/templates/website/src/components/layout/NotificationsMenu.tsx +79 -0
- package/templates/website/src/components/layout/PageHeading.tsx +40 -0
- package/templates/website/src/components/layout/Sidebar.tsx +65 -0
- package/templates/website/src/components/layout/ThemeMenu.tsx +90 -0
- package/templates/website/src/components/layout/TopHeader.tsx +78 -0
- package/templates/website/src/i18n.ts +16 -2
- package/templates/website/src/locales/en.json +35 -0
- package/templates/website/src/locales/fr.json +63 -0
- package/templates/website/src/main.tsx +8 -2
- package/templates/website/src/pages/HomePage.tsx +0 -3
- package/templates/website/src/pages/SampleDataPage.tsx +1 -2
- package/templates/website/src/router.tsx +13 -4
- package/templates/website/src/types/router.ts +4 -0
- package/templates/admin-shell/src/components/AppShell.tsx +0 -68
- package/templates/dashboard/src/components/AppShell.tsx +0 -44
- package/templates/ecommerce/src/components/AppShell.tsx +0 -44
- package/templates/website/src/components/AppShell.tsx +0 -44
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { ThemeToolbar } from '@quadrokit/ui'
|
|
2
|
-
import { useTranslation } from 'react-i18next'
|
|
3
|
-
import { Link, NavLink, Outlet } from 'react-router-dom'
|
|
4
|
-
|
|
5
|
-
export function AppShell() {
|
|
6
|
-
const { t } = useTranslation()
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<div className="min-h-dvh bg-background text-foreground">
|
|
10
|
-
<div className="flex min-h-dvh">
|
|
11
|
-
<aside className="hidden w-56 shrink-0 border-r border-border bg-card/40 p-4 md:block">
|
|
12
|
-
<Link to="/" className="block text-lg font-semibold tracking-tight">
|
|
13
|
-
{t('app.title')}
|
|
14
|
-
</Link>
|
|
15
|
-
<nav className="mt-6 flex flex-col gap-2 text-sm text-muted-foreground">
|
|
16
|
-
<NavLink
|
|
17
|
-
to="/"
|
|
18
|
-
end
|
|
19
|
-
className={({ isActive }) =>
|
|
20
|
-
isActive ? 'font-medium text-foreground' : 'hover:text-foreground'
|
|
21
|
-
}
|
|
22
|
-
>
|
|
23
|
-
{t('app.nav_home')}
|
|
24
|
-
</NavLink>
|
|
25
|
-
<NavLink
|
|
26
|
-
to="/sample-data"
|
|
27
|
-
className={({ isActive }) =>
|
|
28
|
-
isActive ? 'font-medium text-foreground' : 'hover:text-foreground'
|
|
29
|
-
}
|
|
30
|
-
>
|
|
31
|
-
{t('app.nav_sample_data')}
|
|
32
|
-
</NavLink>
|
|
33
|
-
</nav>
|
|
34
|
-
</aside>
|
|
35
|
-
<div className="flex min-w-0 flex-1 flex-col">
|
|
36
|
-
<header className="border-b border-border bg-card/40 px-4 py-3 backdrop-blur md:hidden">
|
|
37
|
-
<div className="flex flex-wrap items-center justify-between gap-2">
|
|
38
|
-
<Link to="/" className="font-semibold">
|
|
39
|
-
{t('app.title')}
|
|
40
|
-
</Link>
|
|
41
|
-
<nav className="flex gap-3 text-sm text-muted-foreground">
|
|
42
|
-
<NavLink
|
|
43
|
-
to="/"
|
|
44
|
-
end
|
|
45
|
-
className={({ isActive }) => (isActive ? 'text-foreground' : '')}
|
|
46
|
-
>
|
|
47
|
-
{t('app.nav_home')}
|
|
48
|
-
</NavLink>
|
|
49
|
-
<NavLink
|
|
50
|
-
to="/sample-data"
|
|
51
|
-
className={({ isActive }) => (isActive ? 'text-foreground' : '')}
|
|
52
|
-
>
|
|
53
|
-
{t('app.nav_sample_data')}
|
|
54
|
-
</NavLink>
|
|
55
|
-
</nav>
|
|
56
|
-
</div>
|
|
57
|
-
</header>
|
|
58
|
-
<div className="border-b border-border px-4 py-3">
|
|
59
|
-
<ThemeToolbar />
|
|
60
|
-
</div>
|
|
61
|
-
<main className="mx-auto w-full max-w-5xl flex-1 px-4 py-8">
|
|
62
|
-
<Outlet />
|
|
63
|
-
</main>
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
)
|
|
68
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ThemeToolbar } from '@quadrokit/ui'
|
|
2
|
-
import { useTranslation } from 'react-i18next'
|
|
3
|
-
import { Link, NavLink, Outlet } from 'react-router-dom'
|
|
4
|
-
|
|
5
|
-
export function AppShell() {
|
|
6
|
-
const { t } = useTranslation()
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<div className="min-h-dvh bg-background text-foreground">
|
|
10
|
-
<header className="border-b border-border bg-card/40 backdrop-blur">
|
|
11
|
-
<div className="mx-auto flex max-w-5xl flex-col gap-3 px-4 py-4 sm:flex-row sm:items-center sm:justify-between">
|
|
12
|
-
<div className="flex items-center gap-6">
|
|
13
|
-
<Link to="/" className="text-lg font-semibold tracking-tight">
|
|
14
|
-
{t('app.title')}
|
|
15
|
-
</Link>
|
|
16
|
-
<nav className="flex gap-3 text-sm text-muted-foreground">
|
|
17
|
-
<NavLink
|
|
18
|
-
to="/"
|
|
19
|
-
end
|
|
20
|
-
className={({ isActive }) =>
|
|
21
|
-
isActive ? 'font-medium text-foreground' : 'hover:text-foreground'
|
|
22
|
-
}
|
|
23
|
-
>
|
|
24
|
-
{t('app.nav_home')}
|
|
25
|
-
</NavLink>
|
|
26
|
-
<NavLink
|
|
27
|
-
to="/sample-data"
|
|
28
|
-
className={({ isActive }) =>
|
|
29
|
-
isActive ? 'font-medium text-foreground' : 'hover:text-foreground'
|
|
30
|
-
}
|
|
31
|
-
>
|
|
32
|
-
{t('app.nav_sample_data')}
|
|
33
|
-
</NavLink>
|
|
34
|
-
</nav>
|
|
35
|
-
</div>
|
|
36
|
-
<ThemeToolbar />
|
|
37
|
-
</div>
|
|
38
|
-
</header>
|
|
39
|
-
<main className="mx-auto max-w-5xl px-4 py-8">
|
|
40
|
-
<Outlet />
|
|
41
|
-
</main>
|
|
42
|
-
</div>
|
|
43
|
-
)
|
|
44
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ThemeToolbar } from '@quadrokit/ui'
|
|
2
|
-
import { useTranslation } from 'react-i18next'
|
|
3
|
-
import { Link, NavLink, Outlet } from 'react-router-dom'
|
|
4
|
-
|
|
5
|
-
export function AppShell() {
|
|
6
|
-
const { t } = useTranslation()
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<div className="min-h-dvh bg-background text-foreground">
|
|
10
|
-
<header className="border-b border-border bg-card/40 backdrop-blur">
|
|
11
|
-
<div className="mx-auto flex max-w-5xl flex-col gap-3 px-4 py-4 sm:flex-row sm:items-center sm:justify-between">
|
|
12
|
-
<div className="flex items-center gap-6">
|
|
13
|
-
<Link to="/" className="text-lg font-semibold tracking-tight">
|
|
14
|
-
{t('app.title')}
|
|
15
|
-
</Link>
|
|
16
|
-
<nav className="flex gap-3 text-sm text-muted-foreground">
|
|
17
|
-
<NavLink
|
|
18
|
-
to="/"
|
|
19
|
-
end
|
|
20
|
-
className={({ isActive }) =>
|
|
21
|
-
isActive ? 'font-medium text-foreground' : 'hover:text-foreground'
|
|
22
|
-
}
|
|
23
|
-
>
|
|
24
|
-
{t('app.nav_home')}
|
|
25
|
-
</NavLink>
|
|
26
|
-
<NavLink
|
|
27
|
-
to="/sample-data"
|
|
28
|
-
className={({ isActive }) =>
|
|
29
|
-
isActive ? 'font-medium text-foreground' : 'hover:text-foreground'
|
|
30
|
-
}
|
|
31
|
-
>
|
|
32
|
-
{t('app.nav_sample_data')}
|
|
33
|
-
</NavLink>
|
|
34
|
-
</nav>
|
|
35
|
-
</div>
|
|
36
|
-
<ThemeToolbar />
|
|
37
|
-
</div>
|
|
38
|
-
</header>
|
|
39
|
-
<main className="mx-auto max-w-5xl px-4 py-8">
|
|
40
|
-
<Outlet />
|
|
41
|
-
</main>
|
|
42
|
-
</div>
|
|
43
|
-
)
|
|
44
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ThemeToolbar } from '@quadrokit/ui'
|
|
2
|
-
import { useTranslation } from 'react-i18next'
|
|
3
|
-
import { Link, NavLink, Outlet } from 'react-router-dom'
|
|
4
|
-
|
|
5
|
-
export function AppShell() {
|
|
6
|
-
const { t } = useTranslation()
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<div className="min-h-dvh bg-background text-foreground">
|
|
10
|
-
<header className="border-b border-border bg-card/40 backdrop-blur">
|
|
11
|
-
<div className="mx-auto flex max-w-5xl flex-col gap-3 px-4 py-4 sm:flex-row sm:items-center sm:justify-between">
|
|
12
|
-
<div className="flex items-center gap-6">
|
|
13
|
-
<Link to="/" className="text-lg font-semibold tracking-tight">
|
|
14
|
-
{t('app.title')}
|
|
15
|
-
</Link>
|
|
16
|
-
<nav className="flex gap-3 text-sm text-muted-foreground">
|
|
17
|
-
<NavLink
|
|
18
|
-
to="/"
|
|
19
|
-
end
|
|
20
|
-
className={({ isActive }) =>
|
|
21
|
-
isActive ? 'font-medium text-foreground' : 'hover:text-foreground'
|
|
22
|
-
}
|
|
23
|
-
>
|
|
24
|
-
{t('app.nav_home')}
|
|
25
|
-
</NavLink>
|
|
26
|
-
<NavLink
|
|
27
|
-
to="/sample-data"
|
|
28
|
-
className={({ isActive }) =>
|
|
29
|
-
isActive ? 'font-medium text-foreground' : 'hover:text-foreground'
|
|
30
|
-
}
|
|
31
|
-
>
|
|
32
|
-
{t('app.nav_sample_data')}
|
|
33
|
-
</NavLink>
|
|
34
|
-
</nav>
|
|
35
|
-
</div>
|
|
36
|
-
<ThemeToolbar />
|
|
37
|
-
</div>
|
|
38
|
-
</header>
|
|
39
|
-
<main className="mx-auto max-w-5xl px-4 py-8">
|
|
40
|
-
<Outlet />
|
|
41
|
-
</main>
|
|
42
|
-
</div>
|
|
43
|
-
)
|
|
44
|
-
}
|