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