diff --git a/apps/food/app/app.config.ts b/apps/food/app/app.config.ts
index 6eaedca4..d58bf16d 100644
--- a/apps/food/app/app.config.ts
+++ b/apps/food/app/app.config.ts
@@ -26,5 +26,12 @@ export default defineAppConfig({
undo: 'lucide:undo-2',
basket: 'lucide:shopping-basket',
maintenance: 'lucide:traffic-cone',
+ dashboard: 'lucide:layout-dashboard',
+ image: 'lucide:image',
+ box: 'lucide:box',
+ users: 'lucide:users',
+ list: 'lucide:layout-list',
+ checkouts: 'lucide:copy-check',
+ options: 'lucide:cog',
},
})
diff --git a/apps/food/app/assets/css/styles.css b/apps/food/app/assets/css/styles.css
index 107e4f09..3d577766 100644
--- a/apps/food/app/assets/css/styles.css
+++ b/apps/food/app/assets/css/styles.css
@@ -13,4 +13,9 @@ body {
.button-gradient {
background-color: #86efac;
background-image: linear-gradient(to bottom right, #fef3c7, #86efac);
+}
+
+.button-gradient-command-center {
+ background-color: #60a5fa;
+ background-image: linear-gradient(to bottom right, #dbeafe, #a5b4fc);
}
\ No newline at end of file
diff --git a/apps/food/app/components/cart/CartDeliveryInfo.vue b/apps/food/app/components/Cart/DeliveryInfo.vue
similarity index 100%
rename from apps/food/app/components/cart/CartDeliveryInfo.vue
rename to apps/food/app/components/Cart/DeliveryInfo.vue
diff --git a/apps/food/app/components/cart/CartDeliveryMethodSwitch.vue b/apps/food/app/components/Cart/DeliveryMethodSwitch.vue
similarity index 100%
rename from apps/food/app/components/cart/CartDeliveryMethodSwitch.vue
rename to apps/food/app/components/Cart/DeliveryMethodSwitch.vue
diff --git a/apps/food/app/components/cart/CartDrawer.vue b/apps/food/app/components/Cart/Drawer.vue
similarity index 100%
rename from apps/food/app/components/cart/CartDrawer.vue
rename to apps/food/app/components/Cart/Drawer.vue
diff --git a/apps/food/app/components/cart/CartEmpty.vue b/apps/food/app/components/Cart/Empty.vue
similarity index 100%
rename from apps/food/app/components/cart/CartEmpty.vue
rename to apps/food/app/components/Cart/Empty.vue
diff --git a/apps/food/app/components/cart/CartLine.vue b/apps/food/app/components/Cart/Line.vue
similarity index 100%
rename from apps/food/app/components/cart/CartLine.vue
rename to apps/food/app/components/Cart/Line.vue
diff --git a/apps/food/app/components/cart/CartLineCounter.vue b/apps/food/app/components/Cart/LineCounter.vue
similarity index 100%
rename from apps/food/app/components/cart/CartLineCounter.vue
rename to apps/food/app/components/Cart/LineCounter.vue
diff --git a/apps/food/app/components/cart/Cart.vue b/apps/food/app/components/Cart/index.vue
similarity index 100%
rename from apps/food/app/components/cart/Cart.vue
rename to apps/food/app/components/Cart/index.vue
diff --git a/apps/food/app/components/checkout/CheckoutDeliveryForm.vue b/apps/food/app/components/Checkout/DeliveryForm.vue
similarity index 100%
rename from apps/food/app/components/checkout/CheckoutDeliveryForm.vue
rename to apps/food/app/components/Checkout/DeliveryForm.vue
diff --git a/apps/food/app/components/checkout/CheckoutHeader.vue b/apps/food/app/components/Checkout/Header.vue
similarity index 100%
rename from apps/food/app/components/checkout/CheckoutHeader.vue
rename to apps/food/app/components/Checkout/Header.vue
diff --git a/apps/food/app/components/checkout/CheckoutLine.vue b/apps/food/app/components/Checkout/Line.vue
similarity index 100%
rename from apps/food/app/components/checkout/CheckoutLine.vue
rename to apps/food/app/components/Checkout/Line.vue
diff --git a/apps/food/app/components/CommandCenter/Header.vue b/apps/food/app/components/CommandCenter/Header.vue
new file mode 100644
index 00000000..f0ee06f2
--- /dev/null
+++ b/apps/food/app/components/CommandCenter/Header.vue
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+ К веб-сайту
+
+
+
+
+
+
diff --git a/apps/food/app/components/CommandCenter/Navigation.vue b/apps/food/app/components/CommandCenter/Navigation.vue
new file mode 100644
index 00000000..8329520e
--- /dev/null
+++ b/apps/food/app/components/CommandCenter/Navigation.vue
@@ -0,0 +1,68 @@
+
+
+
+
+
diff --git a/apps/food/app/components/CommandCenter/NavigationButton.vue b/apps/food/app/components/CommandCenter/NavigationButton.vue
new file mode 100644
index 00000000..1b22b8f4
--- /dev/null
+++ b/apps/food/app/components/CommandCenter/NavigationButton.vue
@@ -0,0 +1,20 @@
+
+
+
+ {{ label }}
+
+
+
+
diff --git a/apps/food/app/components/CommandCenter/StaffBar.vue b/apps/food/app/components/CommandCenter/StaffBar.vue
new file mode 100644
index 00000000..9ddf75ab
--- /dev/null
+++ b/apps/food/app/components/CommandCenter/StaffBar.vue
@@ -0,0 +1,13 @@
+
+
+
+
+ Привет, админ!
+
+
+
+ Продолжить работу
+
+
+
+
diff --git a/apps/food/app/components/navigation/NavigationButton.vue b/apps/food/app/components/Navigation/Button.vue
similarity index 100%
rename from apps/food/app/components/navigation/NavigationButton.vue
rename to apps/food/app/components/Navigation/Button.vue
diff --git a/apps/food/app/components/navigation/Navigation.vue b/apps/food/app/components/Navigation/index.vue
similarity index 100%
rename from apps/food/app/components/navigation/Navigation.vue
rename to apps/food/app/components/Navigation/index.vue
diff --git a/apps/food/app/composables/useCommandCenter.ts b/apps/food/app/composables/useCommandCenter.ts
new file mode 100644
index 00000000..349b5d70
--- /dev/null
+++ b/apps/food/app/composables/useCommandCenter.ts
@@ -0,0 +1,21 @@
+function _useCommandCenter() {
+ const route = useRoute()
+
+ const isNavbarOpened = ref(false)
+ const searchQuery = ref('')
+
+ watch(
+ () => route.fullPath,
+ () => {
+ isNavbarOpened.value = false
+ searchQuery.value = ''
+ },
+ )
+
+ return {
+ isNavbarOpened,
+ searchQuery,
+ }
+}
+
+export const useCommandCenter = createSharedComposable(_useCommandCenter)
diff --git a/apps/food/app/layouts/commandCenter.vue b/apps/food/app/layouts/commandCenter.vue
index ba4672f5..8a62b0d7 100644
--- a/apps/food/app/layouts/commandCenter.vue
+++ b/apps/food/app/layouts/commandCenter.vue
@@ -1,3 +1,14 @@
-
+
+
+
+
+
+
+
+
+
+
diff --git a/apps/food/app/layouts/default.vue b/apps/food/app/layouts/default.vue
index 33b7be97..ca3d97c2 100644
--- a/apps/food/app/layouts/default.vue
+++ b/apps/food/app/layouts/default.vue
@@ -3,7 +3,9 @@
+
+
@@ -22,4 +24,5 @@
diff --git a/apps/food/app/pages/checkout/index.vue b/apps/food/app/pages/checkout/index.vue
index 55d6e9d4..d1bf9201 100644
--- a/apps/food/app/pages/checkout/index.vue
+++ b/apps/food/app/pages/checkout/index.vue
@@ -65,8 +65,6 @@
diff --git a/apps/food/server/api/auth/sign-in.post.ts b/apps/food/server/api/auth/sign-in.post.ts
index d8661689..e99ef82a 100644
--- a/apps/food/server/api/auth/sign-in.post.ts
+++ b/apps/food/server/api/auth/sign-in.post.ts
@@ -30,7 +30,7 @@ export default defineEventHandler(async (event) => {
where: { id: credentials.userId },
})
if (!user) {
- throw createError({ statusCode: 401, statusMessage: 'Wrong login or password' })
+ throw createError({ statusCode: 401, statusMessage: 'No user found' })
}
await setUserSession(event, {