From ed0ab5567754df4ce991db5150fe93d1c61f8f10 Mon Sep 17 00:00:00 2001 From: alsaze Date: Tue, 2 Dec 2025 15:38:28 +0300 Subject: [PATCH] init --- .env | 3 +- .env.developer | 3 +- Dockerfile | 1 + components/Gallery.vue | 41 ++++++++++++++++++- components/MapView.vue | 91 +++++++++++++++++++++++++++++++++++++++++ composables/useMock.ts | 32 +++++++++++++++ nuxt.config.ts | 5 +++ package.json | 3 +- pages/nedvizhimost.vue | 2 +- pages/post/[id].vue | 12 +++++- public/tbilisi_1.avif | Bin 0 -> 82442 bytes public/tbilisi_2.avif | Bin 0 -> 31830 bytes public/tbilisi_3.avif | Bin 0 -> 37066 bytes public/tbilisi_4.avif | Bin 0 -> 71069 bytes public/tbilisi_5.avif | Bin 0 -> 84737 bytes public/tbilisi_6.avif | Bin 0 -> 86906 bytes public/tbilisi_7.avif | Bin 0 -> 12083 bytes yarn.lock | 67 ++++++++++++++++++++++++++++++ 18 files changed, 253 insertions(+), 7 deletions(-) create mode 100644 components/MapView.vue create mode 100644 public/tbilisi_1.avif create mode 100644 public/tbilisi_2.avif create mode 100644 public/tbilisi_3.avif create mode 100644 public/tbilisi_4.avif create mode 100644 public/tbilisi_5.avif create mode 100644 public/tbilisi_6.avif create mode 100644 public/tbilisi_7.avif diff --git a/.env b/.env index 96d7dad..5d9467f 100644 --- a/.env +++ b/.env @@ -1 +1,2 @@ -VITE_BASE_URL=http://localhost:3000 \ No newline at end of file +VITE_BASE_URL=http://localhost:3000 +VITE_YANDEX_MAPS_KEY=13f4c06b-cb7e-4eeb-81f1-af52f12587b2 \ No newline at end of file diff --git a/.env.developer b/.env.developer index 96d7dad..5d9467f 100644 --- a/.env.developer +++ b/.env.developer @@ -1 +1,2 @@ -VITE_BASE_URL=http://localhost:3000 \ No newline at end of file +VITE_BASE_URL=http://localhost:3000 +VITE_YANDEX_MAPS_KEY=13f4c06b-cb7e-4eeb-81f1-af52f12587b2 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 116c4a6..091eb6e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ COPY --from=build /app/.output/ ./ ENV PORT=80 ENV VITE_BASE_URL=https://rental.koptilnya.xyz +VITE_YANDEX_MAPS_KEY=13f4c06b-cb7e-4eeb-81f1-af52f12587b2 EXPOSE 80 diff --git a/components/Gallery.vue b/components/Gallery.vue index e8dabc3..2775f53 100644 --- a/components/Gallery.vue +++ b/components/Gallery.vue @@ -1,10 +1,12 @@ + + diff --git a/composables/useMock.ts b/composables/useMock.ts index a037f00..f67cf0f 100644 --- a/composables/useMock.ts +++ b/composables/useMock.ts @@ -58,6 +58,38 @@ export const useMock = () => { }, ], }, + { + id: 133423414, + title: 'Лофт с проектором — Руставели', + description: 'Историческая стильная квартира с проектором в спальне, уютным балконом и неоновыми огнями:) Он расположен в 200-летнем здании культурного наследия, которое расположено в исторической части города, рядом с Тбилисской государственной консерваторией (по вечерам вы можете услышать живую музыку, сидя на балконе). В этом районе есть целые театры, музеи, пабы, рестораны и магазины. В нескольких минутах ходьбы от проспекта Руставели и площади Свободы, автобусной остановки/от аэропорта, двух станций метро.', + category: 'nedvizhimost', + coordinates: [44.770495496222274, 41.716244387476706], + address: 'Грузия, Тбилиси улица пушкина дом калатушкина квартира 10', + previewImage: { + src: '/tbilisi_1.avif', + }, + images: [ + { + src: '/tbilisi_2.avif', + }, + { + src: '/tbilisi_3.avif', + }, + { + src: '/tbilisi_4.avif', + }, + { + src: '/tbilisi_5.avif', + }, + { + src: '/tbilisi_6.avif', + }, + { + src: '/tbilisi_7.avif', + }, + ], + }, + ] const cartById = (id?: string) => diff --git a/nuxt.config.ts b/nuxt.config.ts index 82f20e9..af3f13d 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,5 +1,6 @@ // https://nuxt.com/docs/api/configuration/nuxt-config import { createResolver } from '@nuxt/kit' +import { process } from 'std-env' const { resolve } = createResolver(import.meta.url) @@ -19,7 +20,11 @@ export default defineNuxtConfig({ autoImports: true, }, ], + 'vue-yandex-maps/nuxt', ], + yandexMaps: { + apikey: process.env.VITE_YANDEX_MAPS_KEY, + }, css: ['~/assets/css/main.css', '~/assets/scss/main.scss'], build: { transpile: ['gsap'], diff --git a/package.json b/package.json index 39a0aec..8baed9d 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "swiper": "^12.0.2", "typescript": "^5.6.3", "vue": "^3.5.17", - "vue-router": "^4.5.1" + "vue-router": "^4.5.1", + "vue-yandex-maps": "^2.2.3" }, "devDependencies": { "@antfu/eslint-config": "^4.13.2", diff --git a/pages/nedvizhimost.vue b/pages/nedvizhimost.vue index ac980e5..e27fdc2 100644 --- a/pages/nedvizhimost.vue +++ b/pages/nedvizhimost.vue @@ -87,7 +87,7 @@ const services = [ ] const { cartByCategory } = useMock() -const previewItems = computed(() => cartByCategory('transport')) +const previewItems = computed(() => cartByCategory('nedvizhimost'))