refactoring
Some checks failed
Deploy / build (push) Has been cancelled

This commit is contained in:
alsaze
2025-11-21 12:48:00 +03:00
parent 2984e3780a
commit 2e01f58e67
27 changed files with 403 additions and 445 deletions

View File

@@ -38,8 +38,8 @@
</template>
<script setup lang="ts">
import type { PickupPoint } from '#shared/yandex_pvz'
import type { PropType } from 'vue'
import type { PickupPoint } from '~/server/shared/types/yandex_pvz'
import { defineEmits } from 'vue'
defineProps<{ filteredPoints: PickupPoint[] }>()
@@ -59,8 +59,6 @@ const onSelectPoint = (pickupPoint: PickupPoint) => {
</script>
<style lang="scss">
@use '~/assets/scss/utils' as *;
.pickup-point-card {
position: relative;
width: 100%;

View File

@@ -52,7 +52,7 @@
</template>
<script setup lang="ts">
import type { IBspb } from '~/server/shared/types/bspb'
import type { BsbpCreateResponse } from '#shared/bsbp_create'
import { useMediaQuery } from '@vueuse/core'
defineProps({
@@ -73,7 +73,7 @@ const isMobile = useMediaQuery('(max-width: 1280px)', {
const { cart, cartSum } = useCart()
const createOrder = async () => {
const { data } = await useFetch<IBspb>('/api/bspb', {
const { data } = await useFetch<BsbpCreateResponse>('/api/bsbp_create', {
method: 'POST',
body: {
order: {

View File

@@ -93,8 +93,6 @@ function addToCartBtn() {
</script>
<style lang="scss">
@use '~/assets/scss/utils' as *;
.product-description {
width: 100%;
padding: 30px 30px 0;

View File

@@ -53,11 +53,11 @@
</template>
<script setup lang="ts">
import type { PickupPoint } from '#shared/yandex_pvz'
import type { LngLatBounds, YMap } from '@yandex/ymaps3-types'
import type { YMapLocationRequest } from '@yandex/ymaps3-types/imperative/YMap'
import type { YMapClusterer } from '@yandex/ymaps3-types/packages/clusterer'
import type { PropType } from 'vue'
import type { PickupPoint } from '~/server/shared/types/yandex_pvz'
import { IPvzMapFittingTabs, IPvzMapTabs } from '#shared/types'
import { useGeolocation, useMediaQuery } from '@vueuse/core'
import { computed, defineEmits, shallowRef } from 'vue'