mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 19:57:55 +01:00
fix(vue): stub clearError
This commit is contained in:
@@ -1,11 +1,10 @@
|
|||||||
import { ref, onScopeDispose } from 'vue'
|
import { ref, onScopeDispose } from 'vue'
|
||||||
import type { Ref, Plugin as VuePlugin } from 'vue'
|
import type { Ref, Plugin as VuePlugin } from 'vue'
|
||||||
import { createHooks } from 'hookable'
|
import { createHooks } from 'hookable'
|
||||||
|
import { usePage } from '@inertiajs/vue3'
|
||||||
|
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
|
||||||
import appConfig from '#build/app.config'
|
import appConfig from '#build/app.config'
|
||||||
import type { NuxtApp } from '#app'
|
import type { NuxtApp } from '#app'
|
||||||
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
|
|
||||||
import { usePage } from '@inertiajs/vue3'
|
|
||||||
|
|
||||||
export { useHead } from '@unhead/vue'
|
export { useHead } from '@unhead/vue'
|
||||||
|
|
||||||
@@ -16,6 +15,7 @@ export { useLocale } from '../composables/useLocale'
|
|||||||
|
|
||||||
export const useRoute = () => {
|
export const useRoute = () => {
|
||||||
const page = usePage()
|
const page = usePage()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
fullPath: page.url
|
fullPath: page.url
|
||||||
}
|
}
|
||||||
@@ -25,6 +25,10 @@ export const useRouter = () => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const clearError = () => {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
export const useColorMode = () => {
|
export const useColorMode = () => {
|
||||||
if (!appConfig.colorMode) {
|
if (!appConfig.colorMode) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
import { ref, onScopeDispose } from 'vue'
|
import { ref, onScopeDispose } from 'vue'
|
||||||
import type { Ref, Plugin as VuePlugin } from 'vue'
|
import type { Ref, Plugin as VuePlugin } from 'vue'
|
||||||
import { createHooks } from 'hookable'
|
import { createHooks } from 'hookable'
|
||||||
|
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
|
||||||
import appConfig from '#build/app.config'
|
import appConfig from '#build/app.config'
|
||||||
import type { NuxtApp } from '#app'
|
import type { NuxtApp } from '#app'
|
||||||
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
|
|
||||||
|
|
||||||
export { useHead } from '@unhead/vue'
|
export { useHead } from '@unhead/vue'
|
||||||
export { useRoute, useRouter } from 'vue-router'
|
export { useRoute, useRouter } from 'vue-router'
|
||||||
@@ -14,6 +13,10 @@ export { defineShortcuts } from '../composables/defineShortcuts'
|
|||||||
export { defineLocale } from '../composables/defineLocale'
|
export { defineLocale } from '../composables/defineLocale'
|
||||||
export { useLocale } from '../composables/useLocale'
|
export { useLocale } from '../composables/useLocale'
|
||||||
|
|
||||||
|
export const clearError = () => {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
export const useColorMode = () => {
|
export const useColorMode = () => {
|
||||||
if (!appConfig.colorMode) {
|
if (!appConfig.colorMode) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user