diff --git a/messages/en.json b/messages/en.json index dfedd7a..68c3f50 100644 --- a/messages/en.json +++ b/messages/en.json @@ -266,6 +266,10 @@ }, "Dashboard": { "sidebar": { + "dashboard": { + "title": "Dashboard", + "href": "/dashboard" + }, "ai": { "title": "AI", "items": { diff --git a/messages/zh.json b/messages/zh.json index 3eb5ba4..f2f7a4f 100644 --- a/messages/zh.json +++ b/messages/zh.json @@ -262,6 +262,9 @@ }, "Dashboard": { "sidebar": { + "dashboard": { + "title": "工作台" + }, "ai": { "title": "AI", "items": { diff --git a/public/site.webmanifest b/public/site.webmanifest new file mode 100755 index 0000000..45dc8a2 --- /dev/null +++ b/public/site.webmanifest @@ -0,0 +1 @@ +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file diff --git a/src/components/dashboard/dashboard-sidebar.tsx b/src/components/dashboard/dashboard-sidebar.tsx index 60bd11f..e5c28b9 100644 --- a/src/components/dashboard/dashboard-sidebar.tsx +++ b/src/components/dashboard/dashboard-sidebar.tsx @@ -16,7 +16,6 @@ import { useTranslations } from 'next-intl'; import * as React from 'react'; import { Logo } from '../logo'; - export function DashboardSidebar({ ...props }: React.ComponentProps) { const t = useTranslations(); diff --git a/src/config.tsx b/src/config.tsx index 99b8793..17f196f 100644 --- a/src/config.tsx +++ b/src/config.tsx @@ -12,7 +12,6 @@ import { MenuItem, NestedMenuItem, WebsiteConfig } from '@/types'; import { DashboardIcon } from '@radix-ui/react-icons'; import { AudioLinesIcon, - BadgeCheckIcon, BotIcon, BuildingIcon, ChartNoAxesCombinedIcon, @@ -35,7 +34,8 @@ import { SquareKanbanIcon, SquarePenIcon, ThumbsUpIcon, - WandSparklesIcon, + UserCircleIcon, + WandSparklesIcon } from 'lucide-react'; /** @@ -343,8 +343,8 @@ export function getAvatarLinks(t: TranslationFunction): MenuItem[] { }, { title: t('Marketing.avatar.settings'), - href: Routes.Settings, - icon: , + href: Routes.SettingsGeneral, + icon: , }, ]; } @@ -357,6 +357,12 @@ export function getAvatarLinks(t: TranslationFunction): MenuItem[] { */ export function getSidebarMainLinks(t: TranslationFunction): NestedMenuItem[] { return [ + { + title: t('Dashboard.sidebar.dashboard.title'), + icon: , + href: Routes.Dashboard, + external: false, + }, { title: t('Dashboard.sidebar.ai.title'), icon: , @@ -389,24 +395,18 @@ export function getSidebarMainLinks(t: TranslationFunction): NestedMenuItem[] { }, { title: t('Dashboard.sidebar.settings.title'), - icon: , + icon: , items: [ { title: t('Dashboard.sidebar.settings.items.general.title'), - icon: , - href: Routes.HeroBlocks, - external: false, - }, - { - title: t('Dashboard.sidebar.settings.items.security.title'), - icon: , - href: Routes.PricingBlocks, + icon: , + href: Routes.SettingsGeneral, external: false, }, { title: t('Dashboard.sidebar.settings.items.billing.title'), icon: , - href: Routes.FeaturesBlocks, + href: Routes.SettingsBilling, external: false, } ], diff --git a/src/routes.ts b/src/routes.ts index 45d38d8..2e75f58 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -28,7 +28,9 @@ export enum Routes { ResetPassword = '/auth/reset-password', Dashboard = '/dashboard', - Settings = '/settings/general', + SettingsGeneral = '/settings/general', + SettingsSecurity = '/settings/security', + SettingsBilling = '/settings/billing', AIText = '/ai/text', AIImage = '/ai/image', diff --git a/src/styles/globals.css b/src/styles/globals.css index b0f5529..a9cde1a 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -8,7 +8,7 @@ /* @import "./theme-blue.css"; */ /* @import "./theme-violet.css"; */ /* @import "./theme-zinc.css"; */ - @import "./theme-blue.css"; + @import "./theme.css"; /* please notice that sidebar theme need to be set manually */ /* https://ui.shadcn.com/docs/components/sidebar#theming */