From 438d53218ae0250dd90d13cc3a67f9d559db2b0c Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Thu, 6 Jun 2024 10:43:59 +0300 Subject: [PATCH] parameter count --- app.vue | 47 +------------------- components/{calcmodel.vue => calcModels.vue} | 2 +- components/calcValues.vue | 16 +++++++ components/model/canvas.vue | 7 +-- types/index.d.ts | 43 +++++++++++++++++- 5 files changed, 65 insertions(+), 50 deletions(-) rename components/{calcmodel.vue => calcModels.vue} (97%) create mode 100644 components/calcValues.vue diff --git a/app.vue b/app.vue index 81f7322..eddadb5 100644 --- a/app.vue +++ b/app.vue @@ -3,53 +3,9 @@ const config = useRuntimeConfig() const apiBase = config.public.apiBase import k_logo from '@/assets/icons/logo.svg' - -type ApiKpType = { - id: number - title: string - content: string - url: string - meta_title: any - meta_description: string - keywords: any - is_indexed: boolean -} - -type ApiPagesType = { - id: number - title: string - menu_title: string - slug: string - external_link: string - content: string - image: string -} - -type ApiReviewsType = { - id: number - image: string - text: string - comment: string -} - -type ApiFooterType = { - id: number - text: string - small_text: boolean -} - -type ApiSocial_networkType = { - id: number - name: string - link: string - image: string -} - - import '@/assets/main.scss' const { data: seoData } = await useFetch(`${apiBase}/kp/1`) - useSeoMeta({ title: seoData.value?.title, ogTitle: seoData.value?.title, @@ -133,7 +89,8 @@ const toggleModal = () => {