From 9b7ef744082685023216f667cd10bedf662b8aea Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Fri, 30 Aug 2024 14:24:42 +0200 Subject: [PATCH] Working on arthome --- app/components/App/Header.vue | 1 - app/composables/tabs.ts | 1 - server/api/tabs/[id].put.ts | 1 - types/types.ts | 17 ----------------- 4 files changed, 20 deletions(-) diff --git a/app/components/App/Header.vue b/app/components/App/Header.vue index f310995..4db4660 100644 --- a/app/components/App/Header.vue +++ b/app/components/App/Header.vue @@ -17,7 +17,6 @@ const items = [ label: 'Settings', icon: 'i-ph:gear-six-duotone', action: () => { - console.log('Settings') isSettingsOpen.value = true }, }, { diff --git a/app/composables/tabs.ts b/app/composables/tabs.ts index 19f0013..098fb26 100644 --- a/app/composables/tabs.ts +++ b/app/composables/tabs.ts @@ -21,7 +21,6 @@ export async function useTabs() { } async function updateTab(tab: UpdateTabSchema) { - console.log(tab) await $fetch(`/api/tabs/${tab.id}`, { method: 'PUT', body: JSON.stringify(tab), diff --git a/server/api/tabs/[id].put.ts b/server/api/tabs/[id].put.ts index b5aafd3..7cfe246 100644 --- a/server/api/tabs/[id].put.ts +++ b/server/api/tabs/[id].put.ts @@ -4,7 +4,6 @@ import { UpdateTabSchema } from '~~/types/types' export default defineEventHandler(async (event) => { try { const { id } = await getRouterParams(event) - console.log(await readBody(event)) const body = await useValidatedBody(event, UpdateTabSchema) await useDrizzle() .update(tables.tabs) diff --git a/types/types.ts b/types/types.ts index 2ee3530..cb21b69 100644 --- a/types/types.ts +++ b/types/types.ts @@ -1,4 +1,3 @@ -import type { ParsedContent } from '@nuxt/content' import { z } from 'zod' export const COLORS = ['gray', 'slate', 'zinc', 'neutral', 'stone', 'red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose'] @@ -61,22 +60,6 @@ export interface TabType { link: string } -// todo: delete -export interface AppType extends ParsedContent { - primary?: boolean - name: string - nuxt?: string - url: string - icon: string - color: string - tags: Tag[] -} - -export interface Tag { - name: string - color: string -} - export interface OpenWeatherType { weather: Array<{ description: string