commit
126887c7ab
|
|
@ -97,6 +97,7 @@ declare global {
|
||||||
const useBase64: typeof import('@vueuse/core')['useBase64']
|
const useBase64: typeof import('@vueuse/core')['useBase64']
|
||||||
const useBattery: typeof import('@vueuse/core')['useBattery']
|
const useBattery: typeof import('@vueuse/core')['useBattery']
|
||||||
const useBreakpoints: typeof import('@vueuse/core')['useBreakpoints']
|
const useBreakpoints: typeof import('@vueuse/core')['useBreakpoints']
|
||||||
|
const useBroadcastChannel: typeof import('@vueuse/core')['useBroadcastChannel']
|
||||||
const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation']
|
const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation']
|
||||||
const useClamp: typeof import('@vueuse/core')['useClamp']
|
const useClamp: typeof import('@vueuse/core')['useClamp']
|
||||||
const useClipboard: typeof import('@vueuse/core')['useClipboard']
|
const useClipboard: typeof import('@vueuse/core')['useClipboard']
|
||||||
|
|
@ -105,6 +106,7 @@ declare global {
|
||||||
const useCounter: typeof import('@vueuse/core')['useCounter']
|
const useCounter: typeof import('@vueuse/core')['useCounter']
|
||||||
const useCssModule: typeof import('vue')['useCssModule']
|
const useCssModule: typeof import('vue')['useCssModule']
|
||||||
const useCssVar: typeof import('@vueuse/core')['useCssVar']
|
const useCssVar: typeof import('@vueuse/core')['useCssVar']
|
||||||
|
const useCssVars: typeof import('vue')['useCssVars']
|
||||||
const useCycleList: typeof import('@vueuse/core')['useCycleList']
|
const useCycleList: typeof import('@vueuse/core')['useCycleList']
|
||||||
const useDark: typeof import('@vueuse/core')['useDark']
|
const useDark: typeof import('@vueuse/core')['useDark']
|
||||||
const useDebounce: typeof import('@vueuse/core')['useDebounce']
|
const useDebounce: typeof import('@vueuse/core')['useDebounce']
|
||||||
|
|
@ -146,6 +148,7 @@ declare global {
|
||||||
const useManualRefHistory: typeof import('@vueuse/core')['useManualRefHistory']
|
const useManualRefHistory: typeof import('@vueuse/core')['useManualRefHistory']
|
||||||
const useMediaControls: typeof import('@vueuse/core')['useMediaControls']
|
const useMediaControls: typeof import('@vueuse/core')['useMediaControls']
|
||||||
const useMediaQuery: typeof import('@vueuse/core')['useMediaQuery']
|
const useMediaQuery: typeof import('@vueuse/core')['useMediaQuery']
|
||||||
|
const useMemoize: typeof import('@vueuse/core')['useMemoize']
|
||||||
const useMemory: typeof import('@vueuse/core')['useMemory']
|
const useMemory: typeof import('@vueuse/core')['useMemory']
|
||||||
const useMounted: typeof import('@vueuse/core')['useMounted']
|
const useMounted: typeof import('@vueuse/core')['useMounted']
|
||||||
const useMouse: typeof import('@vueuse/core')['useMouse']
|
const useMouse: typeof import('@vueuse/core')['useMouse']
|
||||||
|
|
@ -180,6 +183,7 @@ declare global {
|
||||||
const useSpeechSynthesis: typeof import('@vueuse/core')['useSpeechSynthesis']
|
const useSpeechSynthesis: typeof import('@vueuse/core')['useSpeechSynthesis']
|
||||||
const useStorage: typeof import('@vueuse/core')['useStorage']
|
const useStorage: typeof import('@vueuse/core')['useStorage']
|
||||||
const useStorageAsync: typeof import('@vueuse/core')['useStorageAsync']
|
const useStorageAsync: typeof import('@vueuse/core')['useStorageAsync']
|
||||||
|
const useStyleTag: typeof import('@vueuse/core')['useStyleTag']
|
||||||
const useSwipe: typeof import('@vueuse/core')['useSwipe']
|
const useSwipe: typeof import('@vueuse/core')['useSwipe']
|
||||||
const useTemplateRefsList: typeof import('@vueuse/core')['useTemplateRefsList']
|
const useTemplateRefsList: typeof import('@vueuse/core')['useTemplateRefsList']
|
||||||
const useTextSelection: typeof import('@vueuse/core')['useTextSelection']
|
const useTextSelection: typeof import('@vueuse/core')['useTextSelection']
|
||||||
|
|
@ -195,10 +199,12 @@ declare global {
|
||||||
const useTransition: typeof import('@vueuse/core')['useTransition']
|
const useTransition: typeof import('@vueuse/core')['useTransition']
|
||||||
const useUrlSearchParams: typeof import('@vueuse/core')['useUrlSearchParams']
|
const useUrlSearchParams: typeof import('@vueuse/core')['useUrlSearchParams']
|
||||||
const useUserMedia: typeof import('@vueuse/core')['useUserMedia']
|
const useUserMedia: typeof import('@vueuse/core')['useUserMedia']
|
||||||
|
const useVibrate: typeof import('@vueuse/core')['useVibrate']
|
||||||
const useVirtualList: typeof import('@vueuse/core')['useVirtualList']
|
const useVirtualList: typeof import('@vueuse/core')['useVirtualList']
|
||||||
const useVModel: typeof import('@vueuse/core')['useVModel']
|
const useVModel: typeof import('@vueuse/core')['useVModel']
|
||||||
const useVModels: typeof import('@vueuse/core')['useVModels']
|
const useVModels: typeof import('@vueuse/core')['useVModels']
|
||||||
const useWakeLock: typeof import('@vueuse/core')['useWakeLock']
|
const useWakeLock: typeof import('@vueuse/core')['useWakeLock']
|
||||||
|
const useWebNotification: typeof import('@vueuse/core')['useWebNotification']
|
||||||
const useWebSocket: typeof import('@vueuse/core')['useWebSocket']
|
const useWebSocket: typeof import('@vueuse/core')['useWebSocket']
|
||||||
const useWebWorker: typeof import('@vueuse/core')['useWebWorker']
|
const useWebWorker: typeof import('@vueuse/core')['useWebWorker']
|
||||||
const useWebWorkerFn: typeof import('@vueuse/core')['useWebWorkerFn']
|
const useWebWorkerFn: typeof import('@vueuse/core')['useWebWorkerFn']
|
||||||
|
|
|
||||||
|
|
@ -10,16 +10,14 @@ declare module 'vue' {
|
||||||
BiGithub: typeof import('~icons/bi/github')['default']
|
BiGithub: typeof import('~icons/bi/github')['default']
|
||||||
BiInstagram: typeof import('~icons/bi/instagram')['default']
|
BiInstagram: typeof import('~icons/bi/instagram')['default']
|
||||||
BiTwitter: typeof import('~icons/bi/twitter')['default']
|
BiTwitter: typeof import('~icons/bi/twitter')['default']
|
||||||
CarbonCampsite: typeof import('~icons/carbon/campsite')['default']
|
|
||||||
CarbonDicomOverlay: typeof import('~icons/carbon/dicom-overlay')['default']
|
CarbonDicomOverlay: typeof import('~icons/carbon/dicom-overlay')['default']
|
||||||
CarbonLanguage: typeof import('~icons/carbon/language')['default']
|
CarbonWarning: typeof import('~icons/carbon/warning')['default']
|
||||||
CarbonLogoGithub: typeof import('~icons/carbon/logo-github')['default']
|
|
||||||
CarbonMoon: typeof import('~icons/carbon/moon')['default']
|
|
||||||
CarbonSun: typeof import('~icons/carbon/sun')['default']
|
|
||||||
ClarityNoteSolid: typeof import('~icons/clarity/note-solid')['default']
|
ClarityNoteSolid: typeof import('~icons/clarity/note-solid')['default']
|
||||||
Counter: typeof import('./components/Counter.vue')['default']
|
Counter: typeof import('./components/Counter.vue')['default']
|
||||||
|
'Ei:spinner3': typeof import('~icons/ei/spinner3')['default']
|
||||||
EntypoMail: typeof import('~icons/entypo/mail')['default']
|
EntypoMail: typeof import('~icons/entypo/mail')['default']
|
||||||
Footer: typeof import('./components/Footer.vue')['default']
|
Footer: typeof import('./components/Footer.vue')['default']
|
||||||
|
'Ic:baselineError': typeof import('~icons/ic/baseline-error')['default']
|
||||||
IonBulb: typeof import('~icons/ion/bulb')['default']
|
IonBulb: typeof import('~icons/ion/bulb')['default']
|
||||||
Navbar: typeof import('./components/Navbar.vue')['default']
|
Navbar: typeof import('./components/Navbar.vue')['default']
|
||||||
README: typeof import('./components/README.md')['default']
|
README: typeof import('./components/README.md')['default']
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ export const usePostStore = defineStore('post', () => {
|
||||||
postList.value = []
|
postList.value = []
|
||||||
errors.value = []
|
errors.value = []
|
||||||
loading.value = true
|
loading.value = true
|
||||||
const result = await fetch('https://api.flycro.me/items/Post')
|
const result = await fetch('https://api.flycro.me/items/Post?sort=-date_created')
|
||||||
if (!result.ok) errors.value.push({ message: 'Failed to fetch posts' })
|
if (!result.ok) errors.value.push({ message: 'Failed to fetch posts' })
|
||||||
const data = await result.json()
|
const data = await result.json()
|
||||||
data.data.forEach((item) => {
|
data.data.forEach((item) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue