File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { ref , onScopeDispose } from 'vue'
2
2
import type { Ref , Plugin as VuePlugin } from 'vue'
3
3
import { createHooks } from 'hookable'
4
-
4
+ import { usePage } from '@inertiajs/vue3'
5
+ import { useColorMode as useColorModeVueUse } from '@vueuse/core'
5
6
import appConfig from '#build/app.config'
6
7
import type { NuxtApp } from '#app'
7
- import { useColorMode as useColorModeVueUse } from '@vueuse/core'
8
- import { usePage } from '@inertiajs/vue3'
9
8
10
9
export { useHead } from '@unhead/vue'
11
10
@@ -16,6 +15,7 @@ export { useLocale } from '../composables/useLocale'
16
15
17
16
export const useRoute = ( ) => {
18
17
const page = usePage ( )
18
+
19
19
return {
20
20
fullPath : page . url
21
21
}
@@ -25,6 +25,10 @@ export const useRouter = () => {
25
25
26
26
}
27
27
28
+ export const clearError = ( ) => {
29
+
30
+ }
31
+
28
32
export const useColorMode = ( ) => {
29
33
if ( ! appConfig . colorMode ) {
30
34
return {
Original file line number Diff line number Diff line change 1
1
import { ref , onScopeDispose } from 'vue'
2
2
import type { Ref , Plugin as VuePlugin } from 'vue'
3
3
import { createHooks } from 'hookable'
4
-
4
+ import { useColorMode as useColorModeVueUse } from '@vueuse/core'
5
5
import appConfig from '#build/app.config'
6
6
import type { NuxtApp } from '#app'
7
- import { useColorMode as useColorModeVueUse } from '@vueuse/core'
8
7
9
8
export { useHead } from '@unhead/vue'
10
9
export { useRoute , useRouter } from 'vue-router'
@@ -14,6 +13,10 @@ export { defineShortcuts } from '../composables/defineShortcuts'
14
13
export { defineLocale } from '../composables/defineLocale'
15
14
export { useLocale } from '../composables/useLocale'
16
15
16
+ export const clearError = ( ) => {
17
+
18
+ }
19
+
17
20
export const useColorMode = ( ) => {
18
21
if ( ! appConfig . colorMode ) {
19
22
return {
You can’t perform that action at this time.
0 commit comments