diff --git a/index.html b/index.html index e6148a5..a3f4145 100644 --- a/index.html +++ b/index.html @@ -127,11 +127,99 @@ } - + -
@@ -139,6 +227,7 @@

Yummy Admin

Free Vue 3 Dashboard

+ diff --git a/src/components.d.ts b/src/components.d.ts index b960c41..a492c29 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -40,7 +40,6 @@ declare module 'vue' { NBreadcrumb: typeof import('naive-ui')['NBreadcrumb'] NBreadcrumbItem: typeof import('naive-ui')['NBreadcrumbItem'] NButton: typeof import('naive-ui')['NButton'] - NColorPicker: typeof import('naive-ui')['NColorPicker'] NConfigProvider: typeof import('naive-ui')['NConfigProvider'] NDataTable: typeof import('naive-ui')['NDataTable'] NDialogProvider: typeof import('naive-ui')['NDialogProvider'] @@ -56,7 +55,6 @@ declare module 'vue' { NLayoutSider: typeof import('naive-ui')['NLayoutSider'] NMenu: typeof import('naive-ui')['NMenu'] NMessageProvider: typeof import('naive-ui')['NMessageProvider'] - NModal: typeof import('naive-ui')['NModal'] NNotificationProvider: typeof import('naive-ui')['NNotificationProvider'] Notifications: typeof import('./components/Navbar/Notifications.vue')['default'] NPageHeader: typeof import('naive-ui')['NPageHeader'] @@ -66,7 +64,6 @@ declare module 'vue' { NTag: typeof import('naive-ui')['NTag'] NTooltip: typeof import('naive-ui')['NTooltip'] NTreeSelect: typeof import('naive-ui')['NTreeSelect'] - NUpload: typeof import('naive-ui')['NUpload'] OrderManagement: typeof import('./components/Orders/OrderManagement.vue')['default'] PersianIcon: typeof import('./components/CustomIcons/PersianIcon.vue')['default'] ProductsManagement: typeof import('./components/Products/ProductsManagement.vue')['default'] diff --git a/src/components/Category/CategoryManagement.vue b/src/components/Category/CategoryManagement.vue index cc846a3..d270ebf 100644 --- a/src/components/Category/CategoryManagement.vue +++ b/src/components/Category/CategoryManagement.vue @@ -12,7 +12,7 @@ const { renderDeleteActionButton, renderActionButton } = useRender() const layout = useLayoutStore() const { dialogPlacement } = storeToRefs(layout) const { t } = useI18n() -const collapsed = ref(false) +const collapsed = ref(useWindowSize().width.value < 600) const store = useCategoryStore() const message = useMessage() diff --git a/src/components/Navbar/Navbar.vue b/src/components/Navbar/Navbar.vue index 1cf6983..0bcc986 100644 --- a/src/components/Navbar/Navbar.vue +++ b/src/components/Navbar/Navbar.vue @@ -2,26 +2,35 @@ import { PanelLeftContract24Regular as CollapseIcon, PanelLeftExpand20Regular as ExpandIcon, + Navigation20Regular as MenuIcon, } from '@vicons/fluent' import { storeToRefs } from 'pinia' const layoutStore = useLayoutStore() -const { collapsed, isRtl } = storeToRefs(layoutStore) +const { collapsed, isRtl, mobileMode } = storeToRefs(layoutStore)