From 34f1defb0bdcc93d3adfc1fd12fdf53a3b76d27a Mon Sep 17 00:00:00 2001 From: SpiritCat S Date: Fri, 6 Mar 2026 15:35:50 +0300 Subject: [PATCH 1/3] =?UTF-8?q?=D0=90=D0=BB=D1=8C=D1=84=D0=B0=20=D0=B2?= =?UTF-8?q?=D0=B5=D1=80=D1=81=D0=B8=D1=8F=20=D1=81=D0=B0=D0=B9=D1=82=D0=B0?= =?UTF-8?q?=201.1.=20=D0=9F=D0=B5=D1=80=D0=B5=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=B0=D0=BD=20header=20=D0=B4=D0=BE=20=D1=81=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D0=BE=D1=8F=D0=BD=D0=B8=D1=8F=20=D0=B1=D0=BB=D0=B8=D0=B7?= =?UTF-8?q?=D0=BA=D0=BE=D0=B3=D0=BE=20=D0=BA=20=D1=84=D0=B8=D0=BD=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D0=BE=D0=B9=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8?= =?UTF-8?q?=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 5 +- src/components/SiteHeader.vue | 265 +++++++++++++++++++++++++++++++--- 2 files changed, 248 insertions(+), 22 deletions(-) diff --git a/src/App.vue b/src/App.vue index 7e39460..6769403 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,6 @@ + \ No newline at end of file -- 2.30.2 From 0b78b5b95c1646e26168026800e9611da89941b3 Mon Sep 17 00:00:00 2001 From: SpiritCat S Date: Fri, 6 Mar 2026 15:52:08 +0300 Subject: [PATCH 2/3] =?UTF-8?q?=D0=90=D0=BB=D1=8C=D1=84=D0=B0=20=D0=B2?= =?UTF-8?q?=D0=B5=D1=80=D1=81=D0=B8=D1=8F=20=D1=81=D0=B0=D0=B9=D1=82=D0=B0?= =?UTF-8?q?=201.1.1.=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=B3=D0=BB=D0=BE=D0=B1=D0=B0=D0=BB=D1=8C=D0=B0=D1=8F?= =?UTF-8?q?=20=D1=82=D0=B5=D0=BC=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 20 +++++++++++++++++++- src/components/SiteHeader.vue | 23 +++-------------------- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/src/App.vue b/src/App.vue index 6769403..0629731 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ - - diff --git a/src/router/index.js b/src/router/index.js new file mode 100644 index 0000000..172bafa --- /dev/null +++ b/src/router/index.js @@ -0,0 +1,14 @@ +import { createRouter, createWebHistory } from 'vue-router' +import HomePage from '../pages/HomePage.vue' +import OrderPage from '../pages/OrderPage.vue' + +const routes = [ + { path: '/', redirect: '/moscow' }, + { path: '/:region', component: HomePage }, + { path: '/:region/order', component: OrderPage } +] + +export default createRouter({ + history: createWebHistory(), + routes +}) diff --git a/vite.config.js b/vite.config.js index d27aa78..974ad5b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,8 +5,13 @@ import vue from '@vitejs/plugin-vue' export default defineConfig({ plugins: [vue()], resolve: { - alias: { - 'vue': 'vue/dist/vue.esm-bundler.js' + alias: { + 'vue': 'vue/dist/vue.esm-bundler.js' + } + }, + server: { + proxy: { + '/api': 'http://localhost:3000' + } } -} }) -- 2.30.2