From bc29129546cc219bdc0a2c75bbf3cdf955c28e5e Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Thu, 13 Jun 2024 19:10:03 +0200 Subject: [PATCH 01/35] Changed ways to access calendars --- components/calendar/Calendar.vue | 54 +++++++++++----- components/global/Spacing.vue | 5 ++ components/global/user/CTA.vue | 2 +- models/World.ts | 5 +- .../Dashboard.vue => pages/i/index.vue | 31 +++++++-- .../[id].vue => i/world/[id]/calendar.vue} | 0 pages/i/world/[id]/index.vue | 64 +++++++++++++++++++ pages/profile.vue | 25 -------- server/api/characters/query.get.ts | 2 +- server/api/worlds/index.get.ts | 10 --- server/api/worlds/query.get.ts | 30 +++++++++ stores/CalendarStore.ts | 26 ++++++-- 12 files changed, 191 insertions(+), 63 deletions(-) create mode 100644 components/global/Spacing.vue rename components/profile/Dashboard.vue => pages/i/index.vue (88%) rename pages/{calendar/[id].vue => i/world/[id]/calendar.vue} (100%) create mode 100644 pages/i/world/[id]/index.vue delete mode 100644 pages/profile.vue delete mode 100644 server/api/worlds/index.get.ts create mode 100644 server/api/worlds/query.get.ts diff --git a/components/calendar/Calendar.vue b/components/calendar/Calendar.vue index cf5c9b8..2dbf0ee 100644 --- a/components/calendar/Calendar.vue +++ b/components/calendar/Calendar.vue @@ -2,7 +2,7 @@ import { useCalendar } from '@/stores/CalendarStore' import { computed, type Component, type ComputedRef } from 'vue' -import { PhMagnifyingGlass } from '@phosphor-icons/vue' +import { PhCircleNotch, PhMagnifyingGlass } from '@phosphor-icons/vue' import MonthlyLayout from './state/monthly/Layout.vue' import CenturyLayout from './state/centennially/Layout.vue' import DecadeLayout from './state/decennially/Layout.vue' @@ -15,9 +15,11 @@ const { setCalendarId, setMonths, setDefaultDate, currentConfig, selectedDate, j const { setEvents, setCategories } = useCalendarEvents() const { setCharacters } = useCharacters() -const { data: calendar, pending: calPending, refresh: calRefresh } = await useLazyFetch(`/api/calendars/query?world_id=${worldId}`) -const { data: characters, pending: charPending, refresh: charRefresh } = await useLazyFetch(`/api/characters/query?world_id=${worldId}`) -const { data: categories, pending: categoryPending, refresh: categoryRefresh } = await useLazyFetch(`/api/calendars/categories/query`) +const { months } = storeToRefs(useCalendar()) + +const { data: calendar, pending: calPending, refresh: calRefresh } = useFetch(`/api/calendars/query?world_id=${worldId}`) +const { data: characters, pending: charPending, refresh: charRefresh } = useFetch(`/api/characters/query?world_id=${worldId}`) +const { data: categories, pending: categoryPending, refresh: categoryRefresh } = useFetch(`/api/calendars/categories/query`) if (!calendar.value) { await calRefresh() @@ -119,24 +121,44 @@ onMounted(() => { + + diff --git a/components/global/Spacing.vue b/components/global/Spacing.vue new file mode 100644 index 0000000..d847420 --- /dev/null +++ b/components/global/Spacing.vue @@ -0,0 +1,5 @@ + diff --git a/components/global/user/CTA.vue b/components/global/user/CTA.vue index d2618db..d068c6a 100644 --- a/components/global/user/CTA.vue +++ b/components/global/user/CTA.vue @@ -43,7 +43,7 @@ async function handleLogout() { } function gotoProfilePage() { - router.push({ path: '/profile' }) + router.push({ path: '/i' }) closeMenu() } diff --git a/models/World.ts b/models/World.ts index 0daa2f0..3aabc60 100644 --- a/models/World.ts +++ b/models/World.ts @@ -1,7 +1,10 @@ +import type { Calendar } from "./CalendarConfig" + export interface World { id: number uuid: string name: string description?: string - color?: string + color?: string, + calendars?: Calendar[] } diff --git a/components/profile/Dashboard.vue b/pages/i/index.vue similarity index 88% rename from components/profile/Dashboard.vue rename to pages/i/index.vue index 17b9a6f..7f37283 100644 --- a/components/profile/Dashboard.vue +++ b/pages/i/index.vue @@ -1,23 +1,44 @@ diff --git a/server/api/worlds/query.get.ts b/server/api/worlds/query.get.ts index 4e81048..603dae8 100644 --- a/server/api/worlds/query.get.ts +++ b/server/api/worlds/query.get.ts @@ -23,6 +23,8 @@ export default defineEventHandler(async (event) => { } if (query.id) { + // const eventNb = await client.from('worlds').select('events:calendars(calendar_events(id))').order('events_count') + return output.eq('id', query.id).single() } From 12bf5139dae84bee83351122cfbf713c95de2883 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Mon, 24 Jun 2024 18:01:39 +0200 Subject: [PATCH 04/35] Added tabs to form --- components/calendar/form/Create.vue | 244 ++++++++++++++++++ components/calendar/form/CreateEvent.vue | 3 +- .../ui/alert-dialog/AlertDialogContent.vue | 4 +- models/CalendarConfig.ts | 16 +- models/CalendarMonth.ts | 10 +- models/Date.ts | 2 +- package.json | 2 + pages/i/world/[id]/index.vue | 41 ++- pnpm-lock.yaml | 129 ++++++--- server/api/calendars/create.post.ts | 42 +++ 10 files changed, 444 insertions(+), 49 deletions(-) create mode 100644 components/calendar/form/Create.vue create mode 100644 server/api/calendars/create.post.ts diff --git a/components/calendar/form/Create.vue b/components/calendar/form/Create.vue new file mode 100644 index 0000000..30bbff9 --- /dev/null +++ b/components/calendar/form/Create.vue @@ -0,0 +1,244 @@ + + + diff --git a/components/calendar/form/CreateEvent.vue b/components/calendar/form/CreateEvent.vue index 755e963..69b6d9f 100644 --- a/components/calendar/form/CreateEvent.vue +++ b/components/calendar/form/CreateEvent.vue @@ -104,7 +104,8 @@ function handleCancel() { name="new-event-title" required placeholder="Titre de l'évènement" - class="w-full -my-1 py-1 -mx-1 px-1 text-lg border-b-[1px] bg-transparent focus-visible:outline-none focus-visible:border-blue-600"> + class="w-full -my-1 py-1 -mx-1 px-1 text-lg border-b-[1px] bg-transparent focus-visible:outline-none focus-visible:border-blue-600" + >
diff --git a/components/ui/alert-dialog/AlertDialogContent.vue b/components/ui/alert-dialog/AlertDialogContent.vue index 9f09909..91c0b7e 100644 --- a/components/ui/alert-dialog/AlertDialogContent.vue +++ b/components/ui/alert-dialog/AlertDialogContent.vue @@ -25,13 +25,13 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6078893..0ca7842 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@nuxt/eslint': specifier: ^0.3.12 - version: 0.3.12(eslint@8.57.0)(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(typescript@5.4.5)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) + version: 0.3.12(eslint@8.57.0)(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(sortablejs@1.15.2)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(typescript@5.4.5)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) '@phosphor-icons/vue': specifier: ^2.2.1 version: 2.2.1(vue@3.4.27(typescript@5.4.5)) @@ -20,9 +20,12 @@ importers: '@vueuse/core': specifier: ^10.9.0 version: 10.9.0(vue@3.4.27(typescript@5.4.5)) + '@vueuse/integrations': + specifier: ^10.11.0 + version: 10.11.0(focus-trap@7.5.4)(sortablejs@1.15.2)(vue@3.4.27(typescript@5.4.5)) '@vueuse/nuxt': specifier: ^10.9.0 - version: 10.9.0(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(vue@3.4.27(typescript@5.4.5)) + version: 10.9.0(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(sortablejs@1.15.2)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(vue@3.4.27(typescript@5.4.5)) class-variance-authority: specifier: ^0.7.0 version: 0.7.0 @@ -34,7 +37,7 @@ importers: version: 0.364.0(vue@3.4.27(typescript@5.4.5)) nuxt: specifier: ^3.7.0 - version: 3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) + version: 3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(sortablejs@1.15.2)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) pinia: specifier: ^2.1.7 version: 2.1.7(typescript@5.4.5)(vue@3.4.27(typescript@5.4.5)) @@ -44,6 +47,9 @@ importers: shadcn-nuxt: specifier: ^0.10.4 version: 0.10.4(rollup@4.17.2) + sortablejs: + specifier: ^1 + version: 1.15.2 tailwind-merge: specifier: ^2.3.0 version: 2.3.0 @@ -1466,24 +1472,27 @@ packages: '@vueuse/components@10.9.0': resolution: {integrity: sha512-BHQpA0yIi3y7zKa1gYD0FUzLLkcRTqVhP8smnvsCK6GFpd94Nziq1XVPD7YpFeho0k5BzbBiNZF7V/DpkJ967A==} + '@vueuse/core@10.11.0': + resolution: {integrity: sha512-x3sD4Mkm7PJ+pcq3HX8PLPBadXCAlSDR/waK87dz0gQE+qJnaaFhc/dZVfJz+IUYzTMVGum2QlR7ImiJQN4s6g==} + '@vueuse/core@10.9.0': resolution: {integrity: sha512-/1vjTol8SXnx6xewDEKfS0Ra//ncg4Hb0DaZiwKf7drgfMsKFExQ+FnnENcN6efPen+1kIzhLQoGSy0eDUVOMg==} - '@vueuse/integrations@10.9.0': - resolution: {integrity: sha512-acK+A01AYdWSvL4BZmCoJAcyHJ6EqhmkQEXbQLwev1MY7NBnS+hcEMx/BzVoR9zKI+UqEPMD9u6PsyAuiTRT4Q==} + '@vueuse/integrations@10.11.0': + resolution: {integrity: sha512-Pp6MtWEIr+NDOccWd8j59Kpjy5YDXogXI61Kb1JxvSfVBO8NzFQkmrKmSZz47i+ZqHnIzxaT38L358yDHTncZg==} peerDependencies: - async-validator: '*' - axios: '*' - change-case: '*' - drauu: '*' - focus-trap: '*' - fuse.js: '*' - idb-keyval: '*' - jwt-decode: '*' - nprogress: '*' - qrcode: '*' - sortablejs: '*' - universal-cookie: '*' + async-validator: ^4 + axios: ^1 + change-case: ^4 + drauu: ^0.3 + focus-trap: ^7 + fuse.js: ^6 + idb-keyval: ^6 + jwt-decode: ^3 + nprogress: ^0.2 + qrcode: ^1.5 + sortablejs: ^1 + universal-cookie: ^6 peerDependenciesMeta: async-validator: optional: true @@ -1510,6 +1519,9 @@ packages: universal-cookie: optional: true + '@vueuse/metadata@10.11.0': + resolution: {integrity: sha512-kQX7l6l8dVWNqlqyN3ePW3KmjCQO3ZMgXuBMddIu83CmucrsBfXlH+JoviYyRBws/yLTQO8g3Pbw+bdIoVm4oQ==} + '@vueuse/metadata@10.9.0': resolution: {integrity: sha512-iddNbg3yZM0X7qFY2sAotomgdHK7YJ6sKUvQqbvwnf7TmaVPxS4EJydcNsVejNdS8iWCtDk+fYXr7E32nyTnGA==} @@ -1518,6 +1530,9 @@ packages: peerDependencies: nuxt: ^3.0.0 + '@vueuse/shared@10.11.0': + resolution: {integrity: sha512-fyNoIXEq3PfX1L3NkNhtVQUSRtqYwJtJg+Bp9rIzculIZWHTkKSysujrOk2J+NrRulLTQH9+3gGSfYLWSEWU1A==} + '@vueuse/shared@10.9.0': resolution: {integrity: sha512-Uud2IWncmAfJvRaFYzv5OHDli+FbOzxiVEQdLCKQKLyhz94PIyFC3CHcH7EDMwIn8NPtD06+PNbC/PiO0LGLtw==} @@ -4044,6 +4059,9 @@ packages: resolution: {integrity: sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==} engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} + sortablejs@1.15.2: + resolution: {integrity: sha512-FJF5jgdfvoKn1MAKSdGs33bIqLi3LmsgVTliuX6iITj834F+JRQZN90Z93yql8h0K2t0RwDPBmxwlbZfDcxNZA==} + source-map-js@1.2.0: resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} engines: {node: '>=0.10.0'} @@ -4596,6 +4614,17 @@ packages: '@vue/composition-api': optional: true + vue-demi@0.14.8: + resolution: {integrity: sha512-Uuqnk9YE9SsWeReYqK2alDI5YzciATE0r2SkA6iMAtuXvNTMNACJLJEXNXaEy94ECuBe4Sk6RzRU80kjdbIo1Q==} + engines: {node: '>=12'} + hasBin: true + peerDependencies: + '@vue/composition-api': ^1.0.0-rc.1 + vue: ^3.0.0-0 || ^2.6.0 + peerDependenciesMeta: + '@vue/composition-api': + optional: true + vue-devtools-stub@0.1.0: resolution: {integrity: sha512-RutnB7X8c5hjq39NceArgXg28WZtZpGc3+J16ljMiYnFhKvd8hITxSWQSQ5bvldxMDU6gG5mkxl1MTQLXckVSQ==} @@ -5360,12 +5389,12 @@ snapshots: '@nuxt/devalue@2.0.2': {} - '@nuxt/devtools-kit@1.3.1(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))': + '@nuxt/devtools-kit@1.3.1(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(sortablejs@1.15.2)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))': dependencies: '@nuxt/kit': 3.11.2(rollup@4.17.2) '@nuxt/schema': 3.11.2(rollup@4.17.2) execa: 7.2.0 - nuxt: 3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) + nuxt: 3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(sortablejs@1.15.2)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) vite: 5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0) transitivePeerDependencies: - rollup @@ -5384,13 +5413,13 @@ snapshots: rc9: 2.1.2 semver: 7.6.2 - '@nuxt/devtools@1.3.1(@unocss/reset@0.60.2)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5))': + '@nuxt/devtools@1.3.1(@unocss/reset@0.60.2)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(sortablejs@1.15.2)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(sortablejs@1.15.2)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5))': dependencies: '@antfu/utils': 0.7.8 - '@nuxt/devtools-kit': 1.3.1(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) + '@nuxt/devtools-kit': 1.3.1(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(sortablejs@1.15.2)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) '@nuxt/devtools-wizard': 1.3.1 '@nuxt/kit': 3.11.2(rollup@4.17.2) - '@vue/devtools-applet': 7.1.3(@unocss/reset@0.60.2)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)) + '@vue/devtools-applet': 7.1.3(@unocss/reset@0.60.2)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(sortablejs@1.15.2)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)) '@vue/devtools-core': 7.1.3(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)) '@vue/devtools-kit': 7.1.3(vue@3.4.27(typescript@5.4.5)) birpc: 0.2.17 @@ -5408,7 +5437,7 @@ snapshots: launch-editor: 2.6.1 local-pkg: 0.5.0 magicast: 0.3.4 - nuxt: 3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) + nuxt: 3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(sortablejs@1.15.2)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) nypm: 0.3.8 ohash: 1.1.3 pacote: 18.0.6 @@ -5481,10 +5510,10 @@ snapshots: - supports-color - typescript - '@nuxt/eslint@0.3.12(eslint@8.57.0)(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(typescript@5.4.5)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))': + '@nuxt/eslint@0.3.12(eslint@8.57.0)(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(sortablejs@1.15.2)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(typescript@5.4.5)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))': dependencies: '@eslint/config-inspector': 0.4.8(eslint@8.57.0) - '@nuxt/devtools-kit': 1.3.1(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) + '@nuxt/devtools-kit': 1.3.1(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(sortablejs@1.15.2)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) '@nuxt/eslint-config': 0.3.12(eslint@8.57.0)(typescript@5.4.5) '@nuxt/eslint-plugin': 0.3.12(eslint@8.57.0)(typescript@5.4.5) '@nuxt/kit': 3.11.2(rollup@4.17.2) @@ -6507,12 +6536,12 @@ snapshots: '@vue/devtools-api@6.6.1': {} - '@vue/devtools-applet@7.1.3(@unocss/reset@0.60.2)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5))': + '@vue/devtools-applet@7.1.3(@unocss/reset@0.60.2)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(sortablejs@1.15.2)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5))': dependencies: '@vue/devtools-core': 7.1.3(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)) '@vue/devtools-kit': 7.1.3(vue@3.4.27(typescript@5.4.5)) '@vue/devtools-shared': 7.1.3 - '@vue/devtools-ui': 7.1.3(@unocss/reset@0.60.2)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vue@3.4.27(typescript@5.4.5)) + '@vue/devtools-ui': 7.1.3(@unocss/reset@0.60.2)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(sortablejs@1.15.2)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vue@3.4.27(typescript@5.4.5)) lodash-es: 4.17.21 perfect-debounce: 1.0.0 shiki: 1.3.0 @@ -6562,13 +6591,13 @@ snapshots: dependencies: rfdc: 1.3.1 - '@vue/devtools-ui@7.1.3(@unocss/reset@0.60.2)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vue@3.4.27(typescript@5.4.5))': + '@vue/devtools-ui@7.1.3(@unocss/reset@0.60.2)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(sortablejs@1.15.2)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vue@3.4.27(typescript@5.4.5))': dependencies: '@unocss/reset': 0.60.2 '@vue/devtools-shared': 7.1.3 '@vueuse/components': 10.9.0(vue@3.4.27(typescript@5.4.5)) '@vueuse/core': 10.9.0(vue@3.4.27(typescript@5.4.5)) - '@vueuse/integrations': 10.9.0(focus-trap@7.5.4)(vue@3.4.27(typescript@5.4.5)) + '@vueuse/integrations': 10.11.0(focus-trap@7.5.4)(sortablejs@1.15.2)(vue@3.4.27(typescript@5.4.5)) colord: 2.9.3 floating-vue: 5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)) focus-trap: 7.5.4 @@ -6620,6 +6649,16 @@ snapshots: - '@vue/composition-api' - vue + '@vueuse/core@10.11.0(vue@3.4.27(typescript@5.4.5))': + dependencies: + '@types/web-bluetooth': 0.0.20 + '@vueuse/metadata': 10.11.0 + '@vueuse/shared': 10.11.0(vue@3.4.27(typescript@5.4.5)) + vue-demi: 0.14.8(vue@3.4.27(typescript@5.4.5)) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + '@vueuse/core@10.9.0(vue@3.4.27(typescript@5.4.5))': dependencies: '@types/web-bluetooth': 0.0.20 @@ -6630,26 +6669,29 @@ snapshots: - '@vue/composition-api' - vue - '@vueuse/integrations@10.9.0(focus-trap@7.5.4)(vue@3.4.27(typescript@5.4.5))': + '@vueuse/integrations@10.11.0(focus-trap@7.5.4)(sortablejs@1.15.2)(vue@3.4.27(typescript@5.4.5))': dependencies: - '@vueuse/core': 10.9.0(vue@3.4.27(typescript@5.4.5)) - '@vueuse/shared': 10.9.0(vue@3.4.27(typescript@5.4.5)) - vue-demi: 0.14.7(vue@3.4.27(typescript@5.4.5)) + '@vueuse/core': 10.11.0(vue@3.4.27(typescript@5.4.5)) + '@vueuse/shared': 10.11.0(vue@3.4.27(typescript@5.4.5)) + vue-demi: 0.14.8(vue@3.4.27(typescript@5.4.5)) optionalDependencies: focus-trap: 7.5.4 + sortablejs: 1.15.2 transitivePeerDependencies: - '@vue/composition-api' - vue + '@vueuse/metadata@10.11.0': {} + '@vueuse/metadata@10.9.0': {} - '@vueuse/nuxt@10.9.0(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(vue@3.4.27(typescript@5.4.5))': + '@vueuse/nuxt@10.9.0(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(sortablejs@1.15.2)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(vue@3.4.27(typescript@5.4.5))': dependencies: '@nuxt/kit': 3.11.2(rollup@4.17.2) '@vueuse/core': 10.9.0(vue@3.4.27(typescript@5.4.5)) '@vueuse/metadata': 10.9.0 local-pkg: 0.5.0 - nuxt: 3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) + nuxt: 3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(sortablejs@1.15.2)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)) vue-demi: 0.14.7(vue@3.4.27(typescript@5.4.5)) transitivePeerDependencies: - '@vue/composition-api' @@ -6657,6 +6699,13 @@ snapshots: - supports-color - vue + '@vueuse/shared@10.11.0(vue@3.4.27(typescript@5.4.5))': + dependencies: + vue-demi: 0.14.8(vue@3.4.27(typescript@5.4.5)) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + '@vueuse/shared@10.9.0(vue@3.4.27(typescript@5.4.5))': dependencies: vue-demi: 0.14.7(vue@3.4.27(typescript@5.4.5)) @@ -8616,10 +8665,10 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)): + nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(sortablejs@1.15.2)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)): dependencies: '@nuxt/devalue': 2.0.2 - '@nuxt/devtools': 1.3.1(@unocss/reset@0.60.2)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)) + '@nuxt/devtools': 1.3.1(@unocss/reset@0.60.2)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(nuxt@3.11.2(@opentelemetry/api@1.8.0)(@parcel/watcher@2.4.1)(@types/node@20.12.11)(@unocss/reset@0.60.2)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.17.2))(vue@3.4.27(typescript@5.4.5)))(ioredis@5.4.1)(optionator@0.9.4)(rollup@4.17.2)(sass@1.77.1)(sortablejs@1.15.2)(terser@5.31.0)(typescript@5.4.5)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(rollup@4.17.2)(sortablejs@1.15.2)(unocss@0.60.2(postcss@8.4.38)(rollup@4.17.2)(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0)))(vite@5.2.11(@types/node@20.12.11)(sass@1.77.1)(terser@5.31.0))(vue@3.4.27(typescript@5.4.5)) '@nuxt/kit': 3.11.2(rollup@4.17.2) '@nuxt/schema': 3.11.2(rollup@4.17.2) '@nuxt/telemetry': 2.5.4(rollup@4.17.2) @@ -9480,6 +9529,8 @@ snapshots: ip-address: 9.0.5 smart-buffer: 4.2.0 + sortablejs@1.15.2: {} + source-map-js@1.2.0: {} source-map-support@0.5.21: @@ -10083,6 +10134,10 @@ snapshots: dependencies: vue: 3.4.27(typescript@5.4.5) + vue-demi@0.14.8(vue@3.4.27(typescript@5.4.5)): + dependencies: + vue: 3.4.27(typescript@5.4.5) + vue-devtools-stub@0.1.0: {} vue-eslint-parser@9.4.2(eslint@8.57.0): diff --git a/server/api/calendars/create.post.ts b/server/api/calendars/create.post.ts new file mode 100644 index 0000000..bedafda --- /dev/null +++ b/server/api/calendars/create.post.ts @@ -0,0 +1,42 @@ +import { serverSupabaseClient } from "#supabase/server"; +// import type { Calendar} from "~/models/CalendarConfig"; +import { postCalendarSchema } from "~/models/CalendarConfig"; + +export default defineEventHandler(async (event) => { + const client = await serverSupabaseClient(event) + const { data: bodyData, error: schemaError } = await readValidatedBody(event, body => postCalendarSchema.safeParse(body)) + + if (schemaError) { + console.log(bodyData) + console.log(schemaError) + throw createError({ + cause: 'Utilisateur', + fatal: false, + message: "Le schéma de la requête n'est pas complet ou mal renseigné.", + status: 401, + }) + } + + let calendarObject: any + + // First insert the calendar + try { + const { data, error } = await client + .from('calendars') + .insert( + { + name: bodyData.name, + today: bodyData.today, + color: bodyData.color, + world_id: bodyData.worldId + } as never + ) + .select(`id`) + .single() + console.log(data) + + if (error) throw error + } catch (err) { + console.log(err) + } +}) From 0d57c707196ab6e9d167b761b1b2eb00e96934e2 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Mon, 24 Jun 2024 18:33:38 +0200 Subject: [PATCH 05/35] Moved month list to sub component This is better in the long run, but it also solves the problem with useSortable ; the composable required a rerender while it's in a tabs layer --- components/calendar/form/Create.vue | 122 +----------------------- components/calendar/input/MonthList.vue | 117 +++++++++++++++++++++++ 2 files changed, 120 insertions(+), 119 deletions(-) create mode 100644 components/calendar/input/MonthList.vue diff --git a/components/calendar/form/Create.vue b/components/calendar/form/Create.vue index 30bbff9..f609d7e 100644 --- a/components/calendar/form/Create.vue +++ b/components/calendar/form/Create.vue @@ -1,9 +1,7 @@ + + From 72441202190003ac3b280aa95dcdc29cea805ce1 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Sat, 17 Aug 2024 11:33:42 +0200 Subject: [PATCH 06/35] Added day selection and revamped modal structure --- components/calendar/form/Create.vue | 85 ++++++--------- components/calendar/input/MonthList.vue | 126 ++++++++++++---------- components/calendar/input/TodaySelect.vue | 69 ++++++++++++ models/CalendarConfig.ts | 3 +- models/CalendarMonth.ts | 3 +- pages/i/world/[id]/index.vue | 4 +- server/api/calendars/create.post.ts | 65 ++++++++++- 7 files changed, 243 insertions(+), 112 deletions(-) create mode 100644 components/calendar/input/TodaySelect.vue diff --git a/components/calendar/form/Create.vue b/components/calendar/form/Create.vue index f609d7e..16e0df2 100644 --- a/components/calendar/form/Create.vue +++ b/components/calendar/form/Create.vue @@ -1,9 +1,9 @@ diff --git a/components/calendar/form/Create.vue b/components/calendar/form/Create.vue index 2d1ca9d..76578e7 100644 --- a/components/calendar/form/Create.vue +++ b/components/calendar/form/Create.vue @@ -1,6 +1,6 @@ @@ -107,7 +118,12 @@ function handleFormCancel() { Annuler - + + + + + + Créer From 1985ffdbe9adfe40b945a3e46ce704d39799dfbc Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Sat, 24 Aug 2024 22:34:51 +0200 Subject: [PATCH 27/35] Added realtime subcription to calendar page --- pages/i/world/[id].vue | 59 ++++++++++++++++++++++++++++- supabase/migrations/202401_init.sql | 3 ++ 2 files changed, 61 insertions(+), 1 deletion(-) diff --git a/pages/i/world/[id].vue b/pages/i/world/[id].vue index 0119727..3e228fe 100644 --- a/pages/i/world/[id].vue +++ b/pages/i/world/[id].vue @@ -1,13 +1,16 @@ diff --git a/server/api/calendars/[id].delete.ts b/server/api/calendars/[id].delete.ts new file mode 100644 index 0000000..3027393 --- /dev/null +++ b/server/api/calendars/[id].delete.ts @@ -0,0 +1,41 @@ +import { z } from 'zod' +import { serverSupabaseClient } from "#supabase/server" +import type { Calendar } from "~/models/CalendarConfig" + +const paramsSchema = z.object({ + id: z.number({ coerce: true }).positive().int() +}) + +export default defineEventHandler(async (event) => { + const client = await serverSupabaseClient(event) + + const { data: params, error: paramsError} = await getValidatedRouterParams(event, paramsSchema.safeParse) + + if (paramsError) { + throw createError({ + cause: 'Utilisateur', + fatal: false, + message: "L'identifiant du calendrier est manquant ou mal renseigné.", + status: 401, + }) + } + + try { + const { data, error } = await client + .from('calendars') + .delete() + .eq('id', params.id) + .maybeSingle() + + if (error) throw error + + return data + } catch (err) { + throw createError({ + cause: 'Serveur', + status: 500, + fatal: false, + message: 'Une erreur inconnue est survenue.' + }) + } +}) diff --git a/supabase/migrations/202401_init.sql b/supabase/migrations/202401_init.sql index 746cf05..058a91c 100644 --- a/supabase/migrations/202401_init.sql +++ b/supabase/migrations/202401_init.sql @@ -175,19 +175,25 @@ create policy "Allow individual insert access for GMs" on public.worlds for inse create policy "Allow individual update access for GMs" on public.worlds for update using ( auth.uid() = gm_id ); -- Calendar policies -create policy "Allow individual read access for GMs" on public.calendars for select using ( +create policy "Allow GMs to see their calendars" on public.calendars for select using ( exists ( select 1 from worlds where worlds.id = calendars.world_id ) ); -create policy "Allow individual insert access for GMs" on public.calendars for insert with check ( +create policy "Allow GMs to add calendars to their worldd" on public.calendars for insert with check ( exists ( select 1 from worlds where worlds.id = calendars.world_id ) ); -create policy "Allow individual update access for GMs" on public.calendars for update with check ( +create policy "Allow GMs to edit their calendars" on public.calendars for update with check ( + exists ( + select 1 from worlds + where worlds.id = calendars.world_id + ) +); +create policy "Allow GMs to delete their calendars" on public.calendars for delete using ( exists ( select 1 from worlds where worlds.id = calendars.world_id From 5a47cb3563cb5309d9e68ba28c5f7058653696dd Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Sun, 25 Aug 2024 14:14:40 +0200 Subject: [PATCH 29/35] Changed quote styles --- app.vue | 18 +-- components/calendar/Calendar.vue | 24 ++-- components/calendar/CalendarCurrentDate.vue | 6 +- components/calendar/CalendarEvent.vue | 10 +- components/calendar/CalendarEventDetails.vue | 16 +-- components/calendar/CalendarMenu.vue | 4 +- components/calendar/CalendarMenuNav.vue | 78 +++++----- components/calendar/CalendarMenuSubnav.vue | 18 +-- components/calendar/CalendarMenuToday.vue | 4 +- components/calendar/CalendarSwitch.vue | 6 +- components/calendar/SearchMode.ts | 2 +- components/calendar/dialog/Create.vue | 10 +- components/calendar/dialog/Delete.vue | 10 +- components/calendar/form/Create.vue | 22 +-- components/calendar/form/CreateEvent.vue | 4 +- components/calendar/form/DeleteEvent.vue | 2 +- components/calendar/form/UpdateEvent.vue | 4 +- components/calendar/input/EventCategories.vue | 8 +- components/calendar/input/EventCategory.vue | 8 +- components/calendar/input/MonthList.vue | 14 +- components/calendar/input/RPGDate.vue | 8 +- components/calendar/input/TodaySelect.vue | 6 +- components/calendar/search/CalendarSearch.vue | 54 +++---- .../search/lists/CharacterCallout.vue | 14 +- .../calendar/search/lists/EventCallout.vue | 12 +- .../calendar/search/lists/SearchList.vue | 20 +-- components/calendar/state/monthly/DayTile.vue | 12 +- components/calendar/state/monthly/Layout.vue | 4 +- components/calendar/state/yearly/DayTile.vue | 6 +- components/calendar/state/yearly/Layout.vue | 4 +- .../calendar/state/yearly/MonthTile.vue | 2 +- components/global/Spacing.vue | 8 +- components/global/sidebar/Sidebar.vue | 6 +- components/global/user/CTA.vue | 12 +- components/ui/alert-dialog/AlertDialog.vue | 2 +- .../ui/alert-dialog/AlertDialogAction.vue | 10 +- .../ui/alert-dialog/AlertDialogCancel.vue | 10 +- .../ui/alert-dialog/AlertDialogContent.vue | 8 +- .../alert-dialog/AlertDialogDescription.vue | 8 +- .../ui/alert-dialog/AlertDialogFooter.vue | 6 +- .../ui/alert-dialog/AlertDialogHeader.vue | 6 +- .../ui/alert-dialog/AlertDialogTitle.vue | 8 +- .../ui/alert-dialog/AlertDialogTrigger.vue | 2 +- components/ui/alert-dialog/index.ts | 18 +-- components/ui/avatar/Avatar.vue | 18 +-- components/ui/avatar/AvatarFallback.vue | 2 +- components/ui/avatar/AvatarImage.vue | 2 +- components/ui/avatar/index.ts | 20 +-- components/ui/badge/Badge.vue | 10 +- components/ui/badge/index.ts | 16 +-- components/ui/button/Button.vue | 16 +-- components/ui/button/index.ts | 32 ++--- components/ui/card/Card.vue | 6 +- components/ui/card/CardContent.vue | 6 +- components/ui/card/CardDescription.vue | 6 +- components/ui/card/CardFooter.vue | 6 +- components/ui/card/CardHeader.vue | 6 +- components/ui/card/CardTitle.vue | 6 +- components/ui/card/index.ts | 12 +- components/ui/checkbox/Checkbox.vue | 12 +- components/ui/checkbox/index.ts | 2 +- components/ui/command/Command.vue | 12 +- components/ui/command/CommandDialog.vue | 8 +- components/ui/command/CommandEmpty.vue | 10 +- components/ui/command/CommandGroup.vue | 10 +- components/ui/command/CommandInput.vue | 10 +- components/ui/command/CommandItem.vue | 10 +- components/ui/command/CommandList.vue | 10 +- components/ui/command/CommandSeparator.vue | 10 +- components/ui/command/CommandShortcut.vue | 6 +- components/ui/command/index.ts | 20 +-- components/ui/dialog/Dialog.vue | 2 +- components/ui/dialog/DialogClose.vue | 2 +- components/ui/dialog/DialogContent.vue | 10 +- components/ui/dialog/DialogDescription.vue | 8 +- components/ui/dialog/DialogFooter.vue | 6 +- components/ui/dialog/DialogHeader.vue | 6 +- components/ui/dialog/DialogScrollContent.vue | 10 +- components/ui/dialog/DialogTitle.vue | 8 +- components/ui/dialog/DialogTrigger.vue | 2 +- components/ui/dialog/index.ts | 18 +-- components/ui/dropdown-menu/DropdownMenu.vue | 2 +- .../DropdownMenuCheckboxItem.vue | 10 +- .../ui/dropdown-menu/DropdownMenuContent.vue | 8 +- .../ui/dropdown-menu/DropdownMenuGroup.vue | 2 +- .../ui/dropdown-menu/DropdownMenuItem.vue | 8 +- .../ui/dropdown-menu/DropdownMenuLabel.vue | 8 +- .../dropdown-menu/DropdownMenuRadioGroup.vue | 2 +- .../dropdown-menu/DropdownMenuRadioItem.vue | 10 +- .../dropdown-menu/DropdownMenuSeparator.vue | 8 +- .../ui/dropdown-menu/DropdownMenuShortcut.vue | 6 +- .../ui/dropdown-menu/DropdownMenuSub.vue | 2 +- .../dropdown-menu/DropdownMenuSubContent.vue | 8 +- .../dropdown-menu/DropdownMenuSubTrigger.vue | 10 +- .../ui/dropdown-menu/DropdownMenuTrigger.vue | 2 +- components/ui/dropdown-menu/index.ts | 30 ++-- components/ui/input/Input.vue | 14 +- components/ui/input/index.ts | 2 +- components/ui/label/Label.vue | 8 +- components/ui/label/index.ts | 2 +- .../ui/pagination/PaginationEllipsis.vue | 10 +- components/ui/pagination/PaginationFirst.vue | 12 +- components/ui/pagination/PaginationLast.vue | 12 +- components/ui/pagination/PaginationNext.vue | 12 +- components/ui/pagination/PaginationPrev.vue | 12 +- components/ui/pagination/index.ts | 12 +- components/ui/popover/Popover.vue | 4 +- components/ui/popover/PopoverContent.vue | 10 +- components/ui/popover/PopoverTrigger.vue | 2 +- components/ui/popover/index.ts | 6 +- components/ui/progress/Progress.vue | 8 +- components/ui/progress/index.ts | 2 +- components/ui/select/Select.vue | 4 +- components/ui/select/SelectContent.vue | 12 +- components/ui/select/SelectGroup.vue | 8 +- components/ui/select/SelectItem.vue | 10 +- components/ui/select/SelectItemText.vue | 2 +- components/ui/select/SelectLabel.vue | 8 +- .../ui/select/SelectScrollDownButton.vue | 10 +- components/ui/select/SelectScrollUpButton.vue | 10 +- components/ui/select/SelectSeparator.vue | 8 +- components/ui/select/SelectTrigger.vue | 10 +- components/ui/select/SelectValue.vue | 2 +- components/ui/select/index.ts | 22 +-- components/ui/skeleton/Skeleton.vue | 6 +- components/ui/skeleton/index.ts | 2 +- components/ui/switch/Switch.vue | 8 +- components/ui/switch/index.ts | 2 +- components/ui/tabs/Tabs.vue | 4 +- components/ui/tabs/TabsContent.vue | 8 +- components/ui/tabs/TabsList.vue | 8 +- components/ui/tabs/TabsTrigger.vue | 8 +- components/ui/tabs/index.ts | 8 +- components/ui/tags-input/TagsInput.vue | 8 +- components/ui/tags-input/TagsInputInput.vue | 8 +- components/ui/tags-input/TagsInputItem.vue | 8 +- .../ui/tags-input/TagsInputItemDelete.vue | 10 +- .../ui/tags-input/TagsInputItemText.vue | 8 +- components/ui/tags-input/index.ts | 10 +- components/ui/toggle-group/ToggleGroup.vue | 18 +-- .../ui/toggle-group/ToggleGroupItem.vue | 18 +-- components/ui/toggle-group/index.ts | 4 +- components/ui/toggle/Toggle.vue | 18 +-- components/ui/toggle/index.ts | 20 +-- components/ui/tooltip/Tooltip.vue | 2 +- components/ui/tooltip/TooltipContent.vue | 8 +- components/ui/tooltip/TooltipProvider.vue | 2 +- components/ui/tooltip/TooltipTrigger.vue | 2 +- components/ui/tooltip/index.ts | 8 +- eslint.config.mjs | 19 +-- lib/utils.ts | 4 +- models/CalendarConfig.ts | 2 +- models/CalendarEvent.ts | 8 +- models/CalendarMonth.ts | 2 +- models/Category.ts | 4 +- models/Characters.ts | 6 +- models/Date.ts | 2 +- nuxt.config.ts | 26 ++-- pages/i/calendar/[id].vue | 16 +-- pages/i/world/[id].vue | 28 ++-- pages/index.vue | 2 +- server/api/calendars/[id].delete.ts | 12 +- server/api/calendars/categories/query.get.ts | 8 +- server/api/calendars/create.post.ts | 22 +-- server/api/calendars/events/[id].delete.ts | 12 +- server/api/calendars/events/[id].patch.ts | 14 +- server/api/calendars/events/create.post.ts | 8 +- server/api/calendars/events/query.get.ts | 6 +- server/api/calendars/months/[id].delete.ts | 12 +- server/api/calendars/months/[id].patch.ts | 14 +- server/api/calendars/months/create.post.ts | 8 +- server/api/calendars/months/query.get.ts | 6 +- server/api/calendars/query.get.ts | 10 +- server/api/characters/query.get.ts | 6 +- server/api/worlds/query.get.ts | 12 +- stores/CalendarStore.ts | 136 +++++++++--------- stores/CharacterStore.ts | 6 +- stores/EventStore.ts | 48 +++---- stores/UiStore.ts | 2 +- tailwind.config.js | 10 +- 180 files changed, 949 insertions(+), 948 deletions(-) diff --git a/app.vue b/app.vue index 3dfef03..f3eb9f3 100644 --- a/app.vue +++ b/app.vue @@ -1,12 +1,12 @@ diff --git a/components/calendar/CalendarMenuNav.vue b/components/calendar/CalendarMenuNav.vue index 3593ee0..45a8ac9 100644 --- a/components/calendar/CalendarMenuNav.vue +++ b/components/calendar/CalendarMenuNav.vue @@ -1,13 +1,13 @@ diff --git a/components/calendar/dialog/Delete.vue b/components/calendar/dialog/Delete.vue index d90fec9..f1accfe 100644 --- a/components/calendar/dialog/Delete.vue +++ b/components/calendar/dialog/Delete.vue @@ -1,6 +1,6 @@ diff --git a/components/calendar/form/Create.vue b/components/calendar/form/Create.vue index 76578e7..f9fbb7d 100644 --- a/components/calendar/form/Create.vue +++ b/components/calendar/form/Create.vue @@ -1,16 +1,16 @@ diff --git a/components/calendar/form/CreateEvent.vue b/components/calendar/form/CreateEvent.vue index 2f6ab02..41153a0 100644 --- a/components/calendar/form/CreateEvent.vue +++ b/components/calendar/form/CreateEvent.vue @@ -1,6 +1,6 @@ diff --git a/components/calendar/search/lists/SearchList.vue b/components/calendar/search/lists/SearchList.vue index 257888c..ab43f09 100644 --- a/components/calendar/search/lists/SearchList.vue +++ b/components/calendar/search/lists/SearchList.vue @@ -1,13 +1,13 @@ diff --git a/components/ui/alert-dialog/AlertDialogHeader.vue b/components/ui/alert-dialog/AlertDialogHeader.vue index c61c449..b5e5540 100644 --- a/components/ui/alert-dialog/AlertDialogHeader.vue +++ b/components/ui/alert-dialog/AlertDialogHeader.vue @@ -1,9 +1,9 @@ diff --git a/components/ui/alert-dialog/AlertDialogTitle.vue b/components/ui/alert-dialog/AlertDialogTitle.vue index 50c583d..0498b1e 100644 --- a/components/ui/alert-dialog/AlertDialogTitle.vue +++ b/components/ui/alert-dialog/AlertDialogTitle.vue @@ -1,9 +1,9 @@ diff --git a/components/ui/alert-dialog/index.ts b/components/ui/alert-dialog/index.ts index 91d138a..6991bb7 100644 --- a/components/ui/alert-dialog/index.ts +++ b/components/ui/alert-dialog/index.ts @@ -1,9 +1,9 @@ -export { default as AlertDialog } from './AlertDialog.vue' -export { default as AlertDialogTrigger } from './AlertDialogTrigger.vue' -export { default as AlertDialogContent } from './AlertDialogContent.vue' -export { default as AlertDialogHeader } from './AlertDialogHeader.vue' -export { default as AlertDialogTitle } from './AlertDialogTitle.vue' -export { default as AlertDialogDescription } from './AlertDialogDescription.vue' -export { default as AlertDialogFooter } from './AlertDialogFooter.vue' -export { default as AlertDialogAction } from './AlertDialogAction.vue' -export { default as AlertDialogCancel } from './AlertDialogCancel.vue' +export { default as AlertDialog } from "./AlertDialog.vue" +export { default as AlertDialogTrigger } from "./AlertDialogTrigger.vue" +export { default as AlertDialogContent } from "./AlertDialogContent.vue" +export { default as AlertDialogHeader } from "./AlertDialogHeader.vue" +export { default as AlertDialogTitle } from "./AlertDialogTitle.vue" +export { default as AlertDialogDescription } from "./AlertDialogDescription.vue" +export { default as AlertDialogFooter } from "./AlertDialogFooter.vue" +export { default as AlertDialogAction } from "./AlertDialogAction.vue" +export { default as AlertDialogCancel } from "./AlertDialogCancel.vue" diff --git a/components/ui/avatar/Avatar.vue b/components/ui/avatar/Avatar.vue index 5b7b9fb..c479d77 100644 --- a/components/ui/avatar/Avatar.vue +++ b/components/ui/avatar/Avatar.vue @@ -1,16 +1,16 @@ diff --git a/components/ui/avatar/AvatarFallback.vue b/components/ui/avatar/AvatarFallback.vue index a671a21..440186b 100644 --- a/components/ui/avatar/AvatarFallback.vue +++ b/components/ui/avatar/AvatarFallback.vue @@ -1,5 +1,5 @@ diff --git a/components/ui/avatar/AvatarImage.vue b/components/ui/avatar/AvatarImage.vue index 43499fa..2f4eceb 100644 --- a/components/ui/avatar/AvatarImage.vue +++ b/components/ui/avatar/AvatarImage.vue @@ -1,5 +1,5 @@ diff --git a/components/ui/avatar/index.ts b/components/ui/avatar/index.ts index c4af1a6..9b393a2 100644 --- a/components/ui/avatar/index.ts +++ b/components/ui/avatar/index.ts @@ -1,21 +1,21 @@ -import { type VariantProps, cva } from 'class-variance-authority' +import { type VariantProps, cva } from "class-variance-authority" -export { default as Avatar } from './Avatar.vue' -export { default as AvatarImage } from './AvatarImage.vue' -export { default as AvatarFallback } from './AvatarFallback.vue' +export { default as Avatar } from "./Avatar.vue" +export { default as AvatarImage } from "./AvatarImage.vue" +export { default as AvatarFallback } from "./AvatarFallback.vue" export const avatarVariant = cva( - 'inline-flex items-center justify-center font-normal text-foreground select-none shrink-0 bg-secondary overflow-hidden', + "inline-flex items-center justify-center font-normal text-foreground select-none shrink-0 bg-secondary overflow-hidden", { variants: { size: { - sm: 'h-10 w-10 text-xs', - base: 'h-16 w-16 text-2xl', - lg: 'h-32 w-32 text-5xl', + sm: "h-10 w-10 text-xs", + base: "h-16 w-16 text-2xl", + lg: "h-32 w-32 text-5xl", }, shape: { - circle: 'rounded-full', - square: 'rounded-md', + circle: "rounded-full", + square: "rounded-md", }, }, }, diff --git a/components/ui/badge/Badge.vue b/components/ui/badge/Badge.vue index 2e8bdff..5b19716 100644 --- a/components/ui/badge/Badge.vue +++ b/components/ui/badge/Badge.vue @@ -1,11 +1,11 @@ diff --git a/components/ui/badge/index.ts b/components/ui/badge/index.ts index d90c2ef..9db7cf6 100644 --- a/components/ui/badge/index.ts +++ b/components/ui/badge/index.ts @@ -1,23 +1,23 @@ -import { type VariantProps, cva } from 'class-variance-authority' +import { type VariantProps, cva } from "class-variance-authority" -export { default as Badge } from './Badge.vue' +export { default as Badge } from "./Badge.vue" export const badgeVariants = cva( - 'inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2', + "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", { variants: { variant: { default: - 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80', + "border-transparent bg-primary text-primary-foreground hover:bg-primary/80", secondary: - 'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80', + "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80", destructive: - 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80', - outline: 'text-foreground', + "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80", + outline: "text-foreground", }, }, defaultVariants: { - variant: 'default', + variant: "default", }, }, ) diff --git a/components/ui/button/Button.vue b/components/ui/button/Button.vue index 6e56542..f366883 100644 --- a/components/ui/button/Button.vue +++ b/components/ui/button/Button.vue @@ -1,18 +1,18 @@ diff --git a/components/ui/button/index.ts b/components/ui/button/index.ts index eba3552..e782ef6 100644 --- a/components/ui/button/index.ts +++ b/components/ui/button/index.ts @@ -1,30 +1,30 @@ -import { type VariantProps, cva } from 'class-variance-authority' +import { type VariantProps, cva } from "class-variance-authority" -export { default as Button } from './Button.vue' +export { default as Button } from "./Button.vue" export const buttonVariants = cva( - 'inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50', + "inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", { variants: { variant: { - default: 'bg-primary text-primary-foreground hover:bg-primary/90', - destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90', - outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground', - secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80', - ghost: 'hover:bg-accent hover:text-accent-foreground', - link: 'text-primary underline-offset-4 hover:underline' + default: "bg-primary text-primary-foreground hover:bg-primary/90", + destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90", + outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground", + secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80", + ghost: "hover:bg-accent hover:text-accent-foreground", + link: "text-primary underline-offset-4 hover:underline" }, size: { - default: 'h-10 px-4 py-2', - xs: 'h-7 rounded-sm px-2 text-xs', - sm: 'h-9 rounded-md px-3 text-sm', - lg: 'h-11 rounded-md px-8', - icon: 'h-10 w-10' + default: "h-10 px-4 py-2", + xs: "h-7 rounded-sm px-2 text-xs", + sm: "h-9 rounded-md px-3 text-sm", + lg: "h-11 rounded-md px-8", + icon: "h-10 w-10" } }, defaultVariants: { - variant: 'default', - size: 'default' + variant: "default", + size: "default" } } ) diff --git a/components/ui/card/Card.vue b/components/ui/card/Card.vue index bc0ac40..ca0812f 100644 --- a/components/ui/card/Card.vue +++ b/components/ui/card/Card.vue @@ -1,9 +1,9 @@ diff --git a/components/ui/card/CardContent.vue b/components/ui/card/CardContent.vue index 785913a..4c4dfc7 100644 --- a/components/ui/card/CardContent.vue +++ b/components/ui/card/CardContent.vue @@ -1,9 +1,9 @@ diff --git a/components/ui/card/CardDescription.vue b/components/ui/card/CardDescription.vue index 52a5c90..ad948d6 100644 --- a/components/ui/card/CardDescription.vue +++ b/components/ui/card/CardDescription.vue @@ -1,9 +1,9 @@ diff --git a/components/ui/card/CardFooter.vue b/components/ui/card/CardFooter.vue index 1ed2efe..fad3928 100644 --- a/components/ui/card/CardFooter.vue +++ b/components/ui/card/CardFooter.vue @@ -1,9 +1,9 @@ diff --git a/components/ui/card/CardHeader.vue b/components/ui/card/CardHeader.vue index 951d227..119700c 100644 --- a/components/ui/card/CardHeader.vue +++ b/components/ui/card/CardHeader.vue @@ -1,9 +1,9 @@ diff --git a/components/ui/card/CardTitle.vue b/components/ui/card/CardTitle.vue index 842e168..d0c0ea7 100644 --- a/components/ui/card/CardTitle.vue +++ b/components/ui/card/CardTitle.vue @@ -1,9 +1,9 @@ diff --git a/components/ui/card/index.ts b/components/ui/card/index.ts index 8170483..450fe5c 100644 --- a/components/ui/card/index.ts +++ b/components/ui/card/index.ts @@ -1,6 +1,6 @@ -export { default as Card } from './Card.vue' -export { default as CardHeader } from './CardHeader.vue' -export { default as CardTitle } from './CardTitle.vue' -export { default as CardDescription } from './CardDescription.vue' -export { default as CardContent } from './CardContent.vue' -export { default as CardFooter } from './CardFooter.vue' +export { default as Card } from "./Card.vue" +export { default as CardHeader } from "./CardHeader.vue" +export { default as CardTitle } from "./CardTitle.vue" +export { default as CardDescription } from "./CardDescription.vue" +export { default as CardContent } from "./CardContent.vue" +export { default as CardFooter } from "./CardFooter.vue" diff --git a/components/ui/checkbox/Checkbox.vue b/components/ui/checkbox/Checkbox.vue index 4621bf7..6e848aa 100644 --- a/components/ui/checkbox/Checkbox.vue +++ b/components/ui/checkbox/Checkbox.vue @@ -1,11 +1,11 @@ diff --git a/components/ui/command/index.ts b/components/ui/command/index.ts index 95d4b5f..c59454c 100644 --- a/components/ui/command/index.ts +++ b/components/ui/command/index.ts @@ -1,11 +1,11 @@ -export { ComboboxPortal } from 'radix-vue' +export { ComboboxPortal } from "radix-vue" -export { default as Command } from './Command.vue' -export { default as CommandDialog } from './CommandDialog.vue' -export { default as CommandEmpty } from './CommandEmpty.vue' -export { default as CommandGroup } from './CommandGroup.vue' -export { default as CommandInput } from './CommandInput.vue' -export { default as CommandItem } from './CommandItem.vue' -export { default as CommandList } from './CommandList.vue' -export { default as CommandSeparator } from './CommandSeparator.vue' -export { default as CommandShortcut } from './CommandShortcut.vue' +export { default as Command } from "./Command.vue" +export { default as CommandDialog } from "./CommandDialog.vue" +export { default as CommandEmpty } from "./CommandEmpty.vue" +export { default as CommandGroup } from "./CommandGroup.vue" +export { default as CommandInput } from "./CommandInput.vue" +export { default as CommandItem } from "./CommandItem.vue" +export { default as CommandList } from "./CommandList.vue" +export { default as CommandSeparator } from "./CommandSeparator.vue" +export { default as CommandShortcut } from "./CommandShortcut.vue" diff --git a/components/ui/dialog/Dialog.vue b/components/ui/dialog/Dialog.vue index 7f26e47..9374bf3 100644 --- a/components/ui/dialog/Dialog.vue +++ b/components/ui/dialog/Dialog.vue @@ -4,7 +4,7 @@ import { type DialogRootEmits, type DialogRootProps, useForwardPropsEmits -} from 'radix-vue' +} from "radix-vue" const props = defineProps() const emits = defineEmits() diff --git a/components/ui/dialog/DialogClose.vue b/components/ui/dialog/DialogClose.vue index a64703e..7199c71 100644 --- a/components/ui/dialog/DialogClose.vue +++ b/components/ui/dialog/DialogClose.vue @@ -1,5 +1,5 @@ diff --git a/components/ui/dialog/DialogContent.vue b/components/ui/dialog/DialogContent.vue index 76ee2f7..8792702 100644 --- a/components/ui/dialog/DialogContent.vue +++ b/components/ui/dialog/DialogContent.vue @@ -1,5 +1,5 @@