diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 8322c8d..34d3d5e 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -156,8 +156,6 @@ declare global { const useAsyncQueue: typeof import('@vueuse/core').useAsyncQueue const useAsyncState: typeof import('@vueuse/core').useAsyncState const useAttrs: typeof import('vue').useAttrs - const useAuth: typeof import('./src/composables/useAuth').useAuth - const useBack: typeof import('./src/composables/useBack').useBack const useBase64: typeof import('@vueuse/core').useBase64 const useBattery: typeof import('@vueuse/core').useBattery const useBluetooth: typeof import('@vueuse/core').useBluetooth diff --git a/components.d.ts b/components.d.ts index 4c82edf..2286e4e 100644 --- a/components.d.ts +++ b/components.d.ts @@ -50,6 +50,7 @@ declare module 'vue' { IonSearchbar: typeof import('@ionic/vue')['IonSearchbar'] IonSelect: typeof import('@ionic/vue')['IonSelect'] IonSelectOption: typeof import('@ionic/vue')['IonSelectOption'] + IonSpinner: typeof import('@ionic/vue')['IonSpinner'] IonTabBar: typeof import('@ionic/vue')['IonTabBar'] IonTabButton: typeof import('@ionic/vue')['IonTabButton'] IonTabs: typeof import('@ionic/vue')['IonTabs'] @@ -104,6 +105,7 @@ declare global { const IonSearchbar: typeof import('@ionic/vue')['IonSearchbar'] const IonSelect: typeof import('@ionic/vue')['IonSelect'] const IonSelectOption: typeof import('@ionic/vue')['IonSelectOption'] + const IonSpinner: typeof import('@ionic/vue')['IonSpinner'] const IonTabBar: typeof import('@ionic/vue')['IonTabBar'] const IonTabButton: typeof import('@ionic/vue')['IonTabButton'] const IonTabs: typeof import('@ionic/vue')['IonTabs'] diff --git a/src/router/index.ts b/src/router/index.ts index 06e107c..40ad1c3 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -44,6 +44,11 @@ const routes: Array = [ }, ], }, + { + path: "/notify/:id", + props: true, + component: () => import("@/views/notify/detail.vue"), + }, { path: "/onchain-address", component: () => import("@/views/onchain-address/index.vue"), diff --git a/src/ui/divider/index.vue b/src/ui/divider/index.vue index 47bdd41..c6bf314 100644 --- a/src/ui/divider/index.vue +++ b/src/ui/divider/index.vue @@ -4,7 +4,7 @@ defineProps<{ text?: string }>(); @@ -20,7 +20,7 @@ defineProps<{ text?: string }>(); .divider::after { content: ""; flex: 1; - border-bottom: 1px solid var(--ion-color-medium); + border-bottom: 1px solid var(--ion-text-color-step-900); } .divider span { diff --git a/src/views/notify/detail.vue b/src/views/notify/detail.vue new file mode 100644 index 0000000..a2d1ed7 --- /dev/null +++ b/src/views/notify/detail.vue @@ -0,0 +1,87 @@ + + + + + diff --git a/src/views/notify/index.vue b/src/views/notify/index.vue index 305c293..0113fb5 100644 --- a/src/views/notify/index.vue +++ b/src/views/notify/index.vue @@ -4,7 +4,12 @@ import IconParkOutlineClearFormat from "~icons/icon-park-outline/clear-format"; import MaterialSymbolsAndroidContacts from "~icons/material-symbols/android-contacts"; import { mockClient } from "@/api"; +const router = useRouter(); const { data } = mockClient("notify.list"); + +function handleItemClick(id: number) { + router.push(`/notify/${id}`); +}