diff --git a/app/components/Admin/ModalForm.vue b/app/components/Admin/ModalForm.vue new file mode 100644 index 0000000..9809aaa --- /dev/null +++ b/app/components/Admin/ModalForm.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/app/components/artist/Name.vue b/app/components/Artist/Name.vue similarity index 100% rename from app/components/artist/Name.vue rename to app/components/Artist/Name.vue diff --git a/app/composables/useApiFetch.ts b/app/composables/useApiFetch.ts index ffda4ce..ffc0241 100644 --- a/app/composables/useApiFetch.ts +++ b/app/composables/useApiFetch.ts @@ -3,9 +3,9 @@ import defu from "defu" export function useApiFetch( url: string | Request | Ref | (() => string | Request), - options: UseFetchOptions = {}, + options?: UseFetchOptions, authorize: boolean = true -) { +): ReturnType> { const baseUrl = import.meta.env.VITE_PUBLIC_BACKEND if (!baseUrl) throw new Error("BACKEND URL not set") @@ -39,10 +39,7 @@ export function useApiFetch( }, } - const config = defu(options || {}, defaults) as UseFetchOptions< - DataT, - ErrorT - > + const config: UseFetchOptions = defu(options ?? {}, defaults) // @ts-ignore return useFetch(url, config) diff --git a/app/ui/Modal.vue b/app/ui/Modal.vue index 66fc2c5..4fbad62 100644 --- a/app/ui/Modal.vue +++ b/app/ui/Modal.vue @@ -1,11 +1,13 @@