diff --git a/components.d.ts b/components.d.ts index d53d1af..d7f1ad4 100644 --- a/components.d.ts +++ b/components.d.ts @@ -12,9 +12,9 @@ export {} /* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { - IMaterialIconThemeGoogle: typeof import('~icons/material-icon-theme/google')['default'] IonApp: typeof import('@ionic/vue')['IonApp'] IonAvatar: typeof import('@ionic/vue')['IonAvatar'] + IonBackButton: typeof import('@ionic/vue')['IonBackButton'] IonButton: typeof import('@ionic/vue')['IonButton'] IonButtons: typeof import('@ionic/vue')['IonButtons'] IonCard: typeof import('@ionic/vue')['IonCard'] @@ -26,13 +26,13 @@ declare module 'vue' { IonHeader: typeof import('@ionic/vue')['IonHeader'] IonIcon: typeof import('@ionic/vue')['IonIcon'] IonInputOtp: typeof import('@ionic/vue')['IonInputOtp'] - IonItem: typeof import('@ionic/vue')['IonItem'] IonLabel: typeof import('@ionic/vue')['IonLabel'] IonPage: typeof import('@ionic/vue')['IonPage'] IonRouterOutlet: typeof import('@ionic/vue')['IonRouterOutlet'] IonTabBar: typeof import('@ionic/vue')['IonTabBar'] IonTabButton: typeof import('@ionic/vue')['IonTabButton'] IonTabs: typeof import('@ionic/vue')['IonTabs'] + IonText: typeof import('@ionic/vue')['IonText'] IonTitle: typeof import('@ionic/vue')['IonTitle'] IonToolbar: typeof import('@ionic/vue')['IonToolbar'] LayoutDefault: typeof import('./src/components/layout/default.vue')['default'] @@ -46,9 +46,9 @@ declare module 'vue' { // For TSX support declare global { - const IMaterialIconThemeGoogle: typeof import('~icons/material-icon-theme/google')['default'] const IonApp: typeof import('@ionic/vue')['IonApp'] const IonAvatar: typeof import('@ionic/vue')['IonAvatar'] + const IonBackButton: typeof import('@ionic/vue')['IonBackButton'] const IonButton: typeof import('@ionic/vue')['IonButton'] const IonButtons: typeof import('@ionic/vue')['IonButtons'] const IonCard: typeof import('@ionic/vue')['IonCard'] @@ -60,13 +60,13 @@ declare global { const IonHeader: typeof import('@ionic/vue')['IonHeader'] const IonIcon: typeof import('@ionic/vue')['IonIcon'] const IonInputOtp: typeof import('@ionic/vue')['IonInputOtp'] - const IonItem: typeof import('@ionic/vue')['IonItem'] const IonLabel: typeof import('@ionic/vue')['IonLabel'] const IonPage: typeof import('@ionic/vue')['IonPage'] const IonRouterOutlet: typeof import('@ionic/vue')['IonRouterOutlet'] const IonTabBar: typeof import('@ionic/vue')['IonTabBar'] const IonTabButton: typeof import('@ionic/vue')['IonTabButton'] const IonTabs: typeof import('@ionic/vue')['IonTabs'] + const IonText: typeof import('@ionic/vue')['IonText'] const IonTitle: typeof import('@ionic/vue')['IonTitle'] const IonToolbar: typeof import('@ionic/vue')['IonToolbar'] const LayoutDefault: typeof import('./src/components/layout/default.vue')['default'] diff --git a/src/router/index.ts b/src/router/index.ts index 33a9bcd..183e0d1 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -6,6 +6,10 @@ const routes: Array = [ path: "/", redirect: "/layout/riwa", }, + { + path: "/:pathMatch(.*)*", + redirect: "/layout/riwa", + }, { path: "/layout", component: () => import("@/components/layout/default.vue"), @@ -28,6 +32,10 @@ const routes: Array = [ }, ], }, + { + path: "/onchain-address", + component: () => import("@/views/onchain-address/index.vue"), + }, ]; const router = createRouter({ diff --git a/src/theme/variables.css b/src/theme/variables.css index 05b00ae..548dd84 100644 --- a/src/theme/variables.css +++ b/src/theme/variables.css @@ -1,6 +1,71 @@ /* For information on how to create your own theme, please refer to: http://ionicframework.com/docs/theming/ */ +:root { + --ion-color-primary: #0d0d0d; + --ion-color-primary-rgb: 13, 13, 13; + --ion-color-primary-contrast: #ffffff; + --ion-color-primary-contrast-rgb: 255, 255, 255; + --ion-color-primary-shade: #0b0b0b; + --ion-color-primary-tint: #252525; + + --ion-color-secondary: #4a4a4a; + --ion-color-secondary-rgb: 74, 74, 74; + --ion-color-secondary-contrast: #ffffff; + --ion-color-secondary-contrast-rgb: 255, 255, 255; + --ion-color-secondary-shade: #414141; + --ion-color-secondary-tint: #5c5c5c; + + --ion-color-tertiary: #666666; + --ion-color-tertiary-rgb: 102, 102, 102; + --ion-color-tertiary-contrast: #ffffff; + --ion-color-tertiary-contrast-rgb: 255, 255, 255; + --ion-color-tertiary-shade: #5a5a5a; + --ion-color-tertiary-tint: #757575; + + --ion-color-success: #2dd55b; + --ion-color-success-rgb: 45, 213, 91; + --ion-color-success-contrast: #000000; + --ion-color-success-contrast-rgb: 0, 0, 0; + --ion-color-success-shade: #28bb50; + --ion-color-success-tint: #42d96b; + + --ion-color-warning: #ffc409; + --ion-color-warning-rgb: 255, 196, 9; + --ion-color-warning-contrast: #000000; + --ion-color-warning-contrast-rgb: 0, 0, 0; + --ion-color-warning-shade: #e0ac08; + --ion-color-warning-tint: #ffca22; + + --ion-color-danger: #c5000f; + --ion-color-danger-rgb: 197, 0, 15; + --ion-color-danger-contrast: #ffffff; + --ion-color-danger-contrast-rgb: 255, 255, 255; + --ion-color-danger-shade: #ad000d; + --ion-color-danger-tint: #cb1a27; + + --ion-color-light: #f6f8fc; + --ion-color-light-rgb: 246, 248, 252; + --ion-color-light-contrast: #000000; + --ion-color-light-contrast-rgb: 0, 0, 0; + --ion-color-light-shade: #d8dade; + --ion-color-light-tint: #f7f9fc; + + --ion-color-medium: #5f5f5f; + --ion-color-medium-rgb: 95, 95, 95; + --ion-color-medium-contrast: #ffffff; + --ion-color-medium-contrast-rgb: 255, 255, 255; + --ion-color-medium-shade: #545454; + --ion-color-medium-tint: #6f6f6f; + + --ion-color-dark: #2f2f2f; + --ion-color-dark-rgb: 47, 47, 47; + --ion-color-dark-contrast: #ffffff; + --ion-color-dark-contrast-rgb: 255, 255, 255; + --ion-color-dark-shade: #292929; + --ion-color-dark-tint: #444444; +} + :root { --ion-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", diff --git a/src/views/onchain-address/index.vue b/src/views/onchain-address/index.vue new file mode 100644 index 0000000..905af72 --- /dev/null +++ b/src/views/onchain-address/index.vue @@ -0,0 +1,127 @@ + + + + + diff --git a/src/views/user/components/user-info.vue b/src/views/user/components/user-info.vue index 6973011..aef1973 100644 --- a/src/views/user/components/user-info.vue +++ b/src/views/user/components/user-info.vue @@ -19,7 +19,7 @@ const { user } = useAuth(); -