diff --git a/.env b/.env index 27d54e9..0a0ffb7 100644 --- a/.env +++ b/.env @@ -17,7 +17,7 @@ VITE_ICON_LOCAL_PREFIX=icon-local VITE_AUTH_ROUTE_MODE=static # static auth route home -VITE_ROUTE_HOME=asset +VITE_ROUTE_HOME=/home # default menu icon VITE_MENU_ICON=mdi:menu diff --git a/.env.test b/.env.test index f673967..8fbc8df 100644 --- a/.env.test +++ b/.env.test @@ -1,5 +1,5 @@ # backend service base url, test environment -VITE_SERVICE_BASE_URL=https://riwa-api.riwsan1.com +VITE_SERVICE_BASE_URL=http://192.168.1.2:9538 # other backend service base url, test environment VITE_OTHER_SERVICE_BASE_URL= `{}` diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index 43a377b..40ee8ac 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -228,29 +228,7 @@ const local: App.I18n.Schema = { 404: 'Page Not Found', 500: 'Server Error', 'iframe-page': 'Iframe', - home: 'Home', - deposit: 'Deposit', - deposit_fiat: 'Fiat Deposit', - withdraw: 'Withdraw', - withdraw_fiat: 'Fiat Withdraw', - rwa_producttype: 'Product Type', - rwa: 'RWA Management', - rwa_product: 'RWA Product', - rwa_subscribe: 'RWA Subscribe', - user: 'User Management', - bank: 'User Bank', - user_bankcard: 'User Bank Card', - user_list: 'User List', - transfer: 'Transfer', - withdraw_approved: 'Approved Withdraw', - asset: 'Asset Management', - 'tokenization_trading-pairs': 'Trading Pairs Management', - tokenization: 'Tokenization Management', - tokenization_product: 'Tokenization Product', - notification: 'Notification Management', - news: 'News Management', - robot: 'Robot Management', - robot_spot: 'Spot Robot' + home: 'Home' }, page: { login: { diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index b27175d..5aff07a 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -224,29 +224,7 @@ const local: App.I18n.Schema = { 404: '页面不存在', 500: '服务器错误', 'iframe-page': '外链页面', - home: '首页', - deposit: '充值管理', - deposit_fiat: '法币充值', - withdraw: '提现管理', - withdraw_fiat: '法币提现', - withdraw_approved: '已批准提现列表', - rwa: 'RWA管理', - rwa_product: 'RWA产品', - rwa_producttype: 'RWA产品类型', - rwa_subscribe: 'RWA申购记录', - user: '用户管理', - user_list: '用户列表', - user_bankcard: '用户银行卡', - bank: '银行管理', - transfer: '转账记录', - asset: '资产管理', - 'tokenization_trading-pairs': '交易对管理', - tokenization: '代币化管理', - tokenization_product: '代币化产品', - notification: '通知管理', - news: '新闻管理', - robot: '机器人管理', - robot_spot: '现货机器人' + home: '首页' }, page: { login: { diff --git a/src/router/elegant/imports.ts b/src/router/elegant/imports.ts index 976a261..ce1b9d7 100644 --- a/src/router/elegant/imports.ts +++ b/src/router/elegant/imports.ts @@ -20,21 +20,5 @@ export const views: Record Promise import("@/views/_builtin/500/index.vue"), "iframe-page": () => import("@/views/_builtin/iframe-page/[url].vue"), login: () => import("@/views/_builtin/login/index.vue"), - asset: () => import("@/views/asset/index.vue"), - bank: () => import("@/views/bank/index.vue"), - deposit_fiat: () => import("@/views/deposit/fiat/index.vue"), home: () => import("@/views/home/index.vue"), - news: () => import("@/views/news/index.vue"), - notification: () => import("@/views/notification/index.vue"), - robot_spot: () => import("@/views/robot/spot/index.vue"), - rwa_product: () => import("@/views/rwa/product/index.vue"), - rwa_producttype: () => import("@/views/rwa/productType/index.vue"), - rwa_subscribe: () => import("@/views/rwa/subscribe/index.vue"), - tokenization_product: () => import("@/views/tokenization/product/index.vue"), - "tokenization_trading-pairs": () => import("@/views/tokenization/trading-pairs/index.vue"), - transfer: () => import("@/views/transfer/index.vue"), - user_bankcard: () => import("@/views/user/bankcard/index.vue"), - user_list: () => import("@/views/user/list/index.vue"), - withdraw_approved: () => import("@/views/withdraw/approved/index.vue"), - withdraw_fiat: () => import("@/views/withdraw/fiat/index.vue"), }; diff --git a/src/router/elegant/routes.ts b/src/router/elegant/routes.ts index 3d3db00..5eeb4d6 100644 --- a/src/router/elegant/routes.ts +++ b/src/router/elegant/routes.ts @@ -39,56 +39,13 @@ export const generatedRoutes: GeneratedRoute[] = [ hideInMenu: true } }, - { - name: 'asset', - path: '/asset', - component: 'layout.base$view.asset', - meta: { - title: 'asset', - i18nKey: 'route.asset', - order: 2 - } - }, - { - name: 'bank', - path: '/bank', - component: 'layout.base$view.bank', - meta: { - title: 'bank', - i18nKey: 'route.bank', - order: 3 - } - }, - { - name: 'deposit', - path: '/deposit', - component: 'layout.base', - meta: { - title: 'deposit', - i18nKey: 'route.deposit', - order: 5 - }, - children: [ - { - name: 'deposit_fiat', - path: '/deposit/fiat', - component: 'view.deposit_fiat', - meta: { - title: 'deposit_fiat', - i18nKey: 'route.deposit_fiat' - } - } - ] - }, { name: 'home', path: '/home', component: 'layout.base$view.home', meta: { title: 'home', - i18nKey: 'route.home', - icon: 'mdi:monitor-dashboard', - order: 1 + i18nKey: 'route.home' } }, { @@ -115,187 +72,5 @@ export const generatedRoutes: GeneratedRoute[] = [ constant: true, hideInMenu: true } - }, - { - name: 'news', - path: '/news', - component: 'layout.base$view.news', - meta: { - title: 'news', - i18nKey: 'route.news', - order: 8 - } - }, - { - name: 'notification', - path: '/notification', - component: 'layout.base$view.notification', - meta: { - title: 'notification', - i18nKey: 'route.notification', - order: 9 - } - }, - { - name: 'robot', - path: '/robot', - component: 'layout.base', - meta: { - title: 'robot', - i18nKey: 'route.robot', - order: 7 - }, - children: [ - { - name: 'robot_spot', - path: '/robot/spot', - component: 'view.robot_spot', - meta: { - title: 'robot_spot', - i18nKey: 'route.robot_spot' - } - } - ] - }, - { - name: 'rwa', - path: '/rwa', - component: 'layout.base', - meta: { - title: 'rwa', - i18nKey: 'route.rwa', - order: 5 - }, - children: [ - { - name: 'rwa_product', - path: '/rwa/product', - component: 'view.rwa_product', - meta: { - title: 'rwa_product', - i18nKey: 'route.rwa_product' - } - }, - { - name: 'rwa_producttype', - path: '/rwa/producttype', - component: 'view.rwa_producttype', - meta: { - title: 'rwa_producttype', - i18nKey: 'route.rwa_producttype' - } - }, - { - name: 'rwa_subscribe', - path: '/rwa/subscribe', - component: 'view.rwa_subscribe', - meta: { - title: 'rwa_subscribe', - i18nKey: 'route.rwa_subscribe' - } - } - ] - }, - { - name: 'tokenization', - path: '/tokenization', - component: 'layout.base', - meta: { - title: '代币化管理', - i18nKey: 'route.tokenization', - order: 6 - }, - children: [ - { - name: 'tokenization_product', - path: '/tokenization/product', - component: 'view.tokenization_product', - meta: { - title: '代币化产品', - i18nKey: 'route.tokenization_product' - } - }, - { - name: 'tokenization_trading-pairs', - path: '/tokenization/trading-pairs', - component: 'view.tokenization_trading-pairs', - meta: { - title: 'tokenization_trading-pairs', - i18nKey: 'route.tokenization_trading-pairs' - } - } - ] - }, - { - name: 'transfer', - path: '/transfer', - component: 'layout.base$view.transfer', - meta: { - title: 'transfer', - i18nKey: 'route.transfer', - order: 3 - } - }, - { - name: 'user', - path: '/user', - component: 'layout.base', - meta: { - title: 'user', - i18nKey: 'route.user', - order: 4 - }, - children: [ - { - name: 'user_bankcard', - path: '/user/bankcard', - component: 'view.user_bankcard', - meta: { - title: 'user_bankcard', - i18nKey: 'route.user_bankcard' - } - }, - { - name: 'user_list', - path: '/user/list', - component: 'view.user_list', - meta: { - title: 'user_list', - i18nKey: 'route.user_list' - } - } - ] - }, - { - name: 'withdraw', - path: '/withdraw', - component: 'layout.base', - meta: { - title: 'withdraw', - i18nKey: 'route.withdraw', - order: 3 - }, - children: [ - { - name: 'withdraw_approved', - path: '/withdraw/approved', - component: 'view.withdraw_approved', - meta: { - title: 'withdraw_approved', - i18nKey: 'route.withdraw_approved', - order: 2 - } - }, - { - name: 'withdraw_fiat', - path: '/withdraw/fiat', - component: 'view.withdraw_fiat', - meta: { - title: 'withdraw_fiat', - i18nKey: 'route.withdraw_fiat', - order: 1 - } - } - ] } ]; diff --git a/src/router/elegant/transform.ts b/src/router/elegant/transform.ts index 3055060..ba89257 100644 --- a/src/router/elegant/transform.ts +++ b/src/router/elegant/transform.ts @@ -166,31 +166,9 @@ const routeMap: RouteMap = { "403": "/403", "404": "/404", "500": "/500", - "asset": "/asset", - "bank": "/bank", - "deposit": "/deposit", - "deposit_fiat": "/deposit/fiat", "home": "/home", "iframe-page": "/iframe-page/:url", - "login": "/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?", - "news": "/news", - "notification": "/notification", - "robot": "/robot", - "robot_spot": "/robot/spot", - "rwa": "/rwa", - "rwa_product": "/rwa/product", - "rwa_producttype": "/rwa/producttype", - "rwa_subscribe": "/rwa/subscribe", - "tokenization": "/tokenization", - "tokenization_product": "/tokenization/product", - "tokenization_trading-pairs": "/tokenization/trading-pairs", - "transfer": "/transfer", - "user": "/user", - "user_bankcard": "/user/bankcard", - "user_list": "/user/list", - "withdraw": "/withdraw", - "withdraw_approved": "/withdraw/approved", - "withdraw_fiat": "/withdraw/fiat" + "login": "/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?" }; /** diff --git a/src/typings/elegant-router.d.ts b/src/typings/elegant-router.d.ts index e9f97db..6302513 100644 --- a/src/typings/elegant-router.d.ts +++ b/src/typings/elegant-router.d.ts @@ -20,31 +20,9 @@ declare module "@elegant-router/types" { "403": "/403"; "404": "/404"; "500": "/500"; - "asset": "/asset"; - "bank": "/bank"; - "deposit": "/deposit"; - "deposit_fiat": "/deposit/fiat"; "home": "/home"; "iframe-page": "/iframe-page/:url"; "login": "/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?"; - "news": "/news"; - "notification": "/notification"; - "robot": "/robot"; - "robot_spot": "/robot/spot"; - "rwa": "/rwa"; - "rwa_product": "/rwa/product"; - "rwa_producttype": "/rwa/producttype"; - "rwa_subscribe": "/rwa/subscribe"; - "tokenization": "/tokenization"; - "tokenization_product": "/tokenization/product"; - "tokenization_trading-pairs": "/tokenization/trading-pairs"; - "transfer": "/transfer"; - "user": "/user"; - "user_bankcard": "/user/bankcard"; - "user_list": "/user/list"; - "withdraw": "/withdraw"; - "withdraw_approved": "/withdraw/approved"; - "withdraw_fiat": "/withdraw/fiat"; }; /** @@ -79,20 +57,9 @@ declare module "@elegant-router/types" { | "403" | "404" | "500" - | "asset" - | "bank" - | "deposit" | "home" | "iframe-page" | "login" - | "news" - | "notification" - | "robot" - | "rwa" - | "tokenization" - | "transfer" - | "user" - | "withdraw" >; /** @@ -114,23 +81,7 @@ declare module "@elegant-router/types" { | "500" | "iframe-page" | "login" - | "asset" - | "bank" - | "deposit_fiat" | "home" - | "news" - | "notification" - | "robot_spot" - | "rwa_product" - | "rwa_producttype" - | "rwa_subscribe" - | "tokenization_product" - | "tokenization_trading-pairs" - | "transfer" - | "user_bankcard" - | "user_list" - | "withdraw_approved" - | "withdraw_fiat" >; /** diff --git a/src/views/asset/components/add.vue b/src/views/asset/components/add.vue deleted file mode 100644 index f87a6ab..0000000 --- a/src/views/asset/components/add.vue +++ /dev/null @@ -1,213 +0,0 @@ - - - - - diff --git a/src/views/asset/components/edit.vue b/src/views/asset/components/edit.vue deleted file mode 100644 index e751edf..0000000 --- a/src/views/asset/components/edit.vue +++ /dev/null @@ -1,218 +0,0 @@ - - - - - diff --git a/src/views/asset/index.vue b/src/views/asset/index.vue deleted file mode 100644 index 4280202..0000000 --- a/src/views/asset/index.vue +++ /dev/null @@ -1,242 +0,0 @@ - - - - - diff --git a/src/views/bank/components/add.vue b/src/views/bank/components/add.vue deleted file mode 100644 index 1bc206a..0000000 --- a/src/views/bank/components/add.vue +++ /dev/null @@ -1,121 +0,0 @@ - - - - - diff --git a/src/views/bank/components/edit.vue b/src/views/bank/components/edit.vue deleted file mode 100644 index 30f1e05..0000000 --- a/src/views/bank/components/edit.vue +++ /dev/null @@ -1,106 +0,0 @@ - - - - - diff --git a/src/views/bank/index.vue b/src/views/bank/index.vue deleted file mode 100644 index e621d42..0000000 --- a/src/views/bank/index.vue +++ /dev/null @@ -1,146 +0,0 @@ - - - - - diff --git a/src/views/deposit/fiat/index.vue b/src/views/deposit/fiat/index.vue deleted file mode 100644 index f327049..0000000 --- a/src/views/deposit/fiat/index.vue +++ /dev/null @@ -1,140 +0,0 @@ - - - - - diff --git a/src/views/news/components/add.vue b/src/views/news/components/add.vue deleted file mode 100644 index 35da2f0..0000000 --- a/src/views/news/components/add.vue +++ /dev/null @@ -1,236 +0,0 @@ - - - - - diff --git a/src/views/news/components/edit.vue b/src/views/news/components/edit.vue deleted file mode 100644 index 06b3f06..0000000 --- a/src/views/news/components/edit.vue +++ /dev/null @@ -1,238 +0,0 @@ - - - - - diff --git a/src/views/news/index.vue b/src/views/news/index.vue deleted file mode 100644 index 45bbfad..0000000 --- a/src/views/news/index.vue +++ /dev/null @@ -1,202 +0,0 @@ - - - - - diff --git a/src/views/notification/components/add.vue b/src/views/notification/components/add.vue deleted file mode 100644 index fad917b..0000000 --- a/src/views/notification/components/add.vue +++ /dev/null @@ -1,215 +0,0 @@ - - - - - diff --git a/src/views/notification/index.vue b/src/views/notification/index.vue deleted file mode 100644 index fe12004..0000000 --- a/src/views/notification/index.vue +++ /dev/null @@ -1,147 +0,0 @@ - - - - - diff --git a/src/views/robot/spot/components/edit.vue b/src/views/robot/spot/components/edit.vue deleted file mode 100644 index 3818e11..0000000 --- a/src/views/robot/spot/components/edit.vue +++ /dev/null @@ -1,230 +0,0 @@ - - - - - diff --git a/src/views/robot/spot/index.vue b/src/views/robot/spot/index.vue deleted file mode 100644 index eb493a7..0000000 --- a/src/views/robot/spot/index.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - - - diff --git a/src/views/rwa/product/components/add-edition.vue b/src/views/rwa/product/components/add-edition.vue deleted file mode 100644 index 170e52f..0000000 --- a/src/views/rwa/product/components/add-edition.vue +++ /dev/null @@ -1,192 +0,0 @@ - - - - - diff --git a/src/views/rwa/product/components/add.vue b/src/views/rwa/product/components/add.vue deleted file mode 100644 index 246a0d4..0000000 --- a/src/views/rwa/product/components/add.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - - - diff --git a/src/views/rwa/product/components/allocations.vue b/src/views/rwa/product/components/allocations.vue deleted file mode 100644 index 1816c54..0000000 --- a/src/views/rwa/product/components/allocations.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - - - diff --git a/src/views/rwa/product/components/edit-edition.vue b/src/views/rwa/product/components/edit-edition.vue deleted file mode 100644 index bfb4ba1..0000000 --- a/src/views/rwa/product/components/edit-edition.vue +++ /dev/null @@ -1,175 +0,0 @@ - - - - - diff --git a/src/views/rwa/product/components/edit.vue b/src/views/rwa/product/components/edit.vue deleted file mode 100644 index 7f74997..0000000 --- a/src/views/rwa/product/components/edit.vue +++ /dev/null @@ -1,148 +0,0 @@ - - - - - diff --git a/src/views/rwa/product/components/editions.vue b/src/views/rwa/product/components/editions.vue deleted file mode 100644 index e424111..0000000 --- a/src/views/rwa/product/components/editions.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - - diff --git a/src/views/rwa/product/components/tokenization.vue b/src/views/rwa/product/components/tokenization.vue deleted file mode 100644 index dd9595b..0000000 --- a/src/views/rwa/product/components/tokenization.vue +++ /dev/null @@ -1,214 +0,0 @@ - - - - - diff --git a/src/views/rwa/product/index.vue b/src/views/rwa/product/index.vue deleted file mode 100644 index 9a3d789..0000000 --- a/src/views/rwa/product/index.vue +++ /dev/null @@ -1,311 +0,0 @@ - - - - - diff --git a/src/views/rwa/producttype/components/add.vue b/src/views/rwa/producttype/components/add.vue deleted file mode 100644 index 3c1c9b6..0000000 --- a/src/views/rwa/producttype/components/add.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - - - diff --git a/src/views/rwa/producttype/components/edit.vue b/src/views/rwa/producttype/components/edit.vue deleted file mode 100644 index 19d79e9..0000000 --- a/src/views/rwa/producttype/components/edit.vue +++ /dev/null @@ -1,73 +0,0 @@ - - - - - diff --git a/src/views/rwa/producttype/index.vue b/src/views/rwa/producttype/index.vue deleted file mode 100644 index 1fb052a..0000000 --- a/src/views/rwa/producttype/index.vue +++ /dev/null @@ -1,121 +0,0 @@ - - - - - diff --git a/src/views/rwa/subscribe/index.vue b/src/views/rwa/subscribe/index.vue deleted file mode 100644 index a7331f7..0000000 --- a/src/views/rwa/subscribe/index.vue +++ /dev/null @@ -1,95 +0,0 @@ - - - - - diff --git a/src/views/tokenization/product/components/lock-options.vue b/src/views/tokenization/product/components/lock-options.vue deleted file mode 100644 index 55014c2..0000000 --- a/src/views/tokenization/product/components/lock-options.vue +++ /dev/null @@ -1,166 +0,0 @@ - - - - - diff --git a/src/views/tokenization/product/index.vue b/src/views/tokenization/product/index.vue deleted file mode 100644 index 7699f40..0000000 --- a/src/views/tokenization/product/index.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - - - diff --git a/src/views/tokenization/trading-pairs/components/add.vue b/src/views/tokenization/trading-pairs/components/add.vue deleted file mode 100644 index 3f8afbd..0000000 --- a/src/views/tokenization/trading-pairs/components/add.vue +++ /dev/null @@ -1,178 +0,0 @@ - - - - - diff --git a/src/views/tokenization/trading-pairs/components/edit.vue b/src/views/tokenization/trading-pairs/components/edit.vue deleted file mode 100644 index cb251be..0000000 --- a/src/views/tokenization/trading-pairs/components/edit.vue +++ /dev/null @@ -1,193 +0,0 @@ - - - - - diff --git a/src/views/tokenization/trading-pairs/index.vue b/src/views/tokenization/trading-pairs/index.vue deleted file mode 100644 index 4e11a90..0000000 --- a/src/views/tokenization/trading-pairs/index.vue +++ /dev/null @@ -1,251 +0,0 @@ - - - - - diff --git a/src/views/transfer/index.vue b/src/views/transfer/index.vue deleted file mode 100644 index e70cd55..0000000 --- a/src/views/transfer/index.vue +++ /dev/null @@ -1,140 +0,0 @@ - - - - - diff --git a/src/views/user/bankcard/components/edit.vue b/src/views/user/bankcard/components/edit.vue deleted file mode 100644 index 778434a..0000000 --- a/src/views/user/bankcard/components/edit.vue +++ /dev/null @@ -1,134 +0,0 @@ - - - - - diff --git a/src/views/user/bankcard/index.vue b/src/views/user/bankcard/index.vue deleted file mode 100644 index c0562f9..0000000 --- a/src/views/user/bankcard/index.vue +++ /dev/null @@ -1,135 +0,0 @@ - - - - - diff --git a/src/views/user/list/components/edit.vue b/src/views/user/list/components/edit.vue deleted file mode 100644 index b44fcf2..0000000 --- a/src/views/user/list/components/edit.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - - - diff --git a/src/views/user/list/index.vue b/src/views/user/list/index.vue deleted file mode 100644 index 0895cf7..0000000 --- a/src/views/user/list/index.vue +++ /dev/null @@ -1,132 +0,0 @@ - - - - - diff --git a/src/views/withdraw/approved/components/complete.vue b/src/views/withdraw/approved/components/complete.vue deleted file mode 100644 index 33a3369..0000000 --- a/src/views/withdraw/approved/components/complete.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - - - diff --git a/src/views/withdraw/approved/components/info.vue b/src/views/withdraw/approved/components/info.vue deleted file mode 100644 index 82e996a..0000000 --- a/src/views/withdraw/approved/components/info.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - - - diff --git a/src/views/withdraw/approved/index.vue b/src/views/withdraw/approved/index.vue deleted file mode 100644 index cd9cc81..0000000 --- a/src/views/withdraw/approved/index.vue +++ /dev/null @@ -1,163 +0,0 @@ - - - - - diff --git a/src/views/withdraw/fiat/index.vue b/src/views/withdraw/fiat/index.vue deleted file mode 100644 index 1bcea43..0000000 --- a/src/views/withdraw/fiat/index.vue +++ /dev/null @@ -1,190 +0,0 @@ - - - - -