diff --git a/app/composables/api.ts b/app/composables/api.ts deleted file mode 100644 index 4c827ac..0000000 --- a/app/composables/api.ts +++ /dev/null @@ -1,7 +0,0 @@ -export function useApplicationStatus(postingId: string) { - const auth = useAuth(); - return useFetch('/api/application-status', { - query: { postingId }, - immediate: auth.isSignedIn.value, - }); -} diff --git a/app/composables/applications.ts b/app/composables/applications.ts index 59e0f55..a1aa39c 100644 --- a/app/composables/applications.ts +++ b/app/composables/applications.ts @@ -60,3 +60,11 @@ export function useApplications() { applications, }; } + +export function useApplicationStatus(postingId: string) { + const auth = useAuth(); + return useFetch('/api/application-status', { + query: { postingId }, + immediate: auth.isSignedIn.value, + }); +} diff --git a/app/composables/onboarding.ts b/app/composables/onboarding.ts index e83af6a..14cd5ee 100644 --- a/app/composables/onboarding.ts +++ b/app/composables/onboarding.ts @@ -38,3 +38,7 @@ export function useOnboarding() { return { key, finishOnboarding }; } + +export function useOnboardingStatus() { + return useOnboardingStatusState(); +} diff --git a/app/composables/site-config.ts b/app/composables/remote-asset.ts similarity index 68% rename from app/composables/site-config.ts rename to app/composables/remote-asset.ts index bd5d604..239cb1f 100644 --- a/app/composables/site-config.ts +++ b/app/composables/remote-asset.ts @@ -4,7 +4,3 @@ export function useRemoteAsset(slug: string) { return { url }; } - -export function useOnboardingStatus() { - return useOnboardingStatusState(); -} diff --git a/app/composables/trix.ts b/app/composables/trix.ts deleted file mode 100644 index 1c34feb..0000000 --- a/app/composables/trix.ts +++ /dev/null @@ -1,21 +0,0 @@ -export function useTrix() { - useHead({ - link: [ - { - rel: 'stylesheet', - type: 'text/css', - href: 'https://unpkg.com/trix@2.0.8/dist/trix.css', - }, - ], - script: [ - { - type: 'text/javascript', - src: 'https://unpkg.com/trix@2.0.8/dist/trix.umd.min.js', - }, - ], - }); - - const input = ref(''); - - return { input }; -}