From 84c4f08dc2badde64f0d54fc666363c311aeb02b Mon Sep 17 00:00:00 2001 From: Seven Date: Wed, 14 Jan 2026 20:06:13 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=8E=B0=E8=B4=A7?= =?UTF-8?q?=E6=9C=BA=E5=99=A8=E4=BA=BA=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E6=9B=B4=E6=96=B0=E7=9B=B8=E5=85=B3=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E5=92=8C=E5=9B=BD=E9=99=85=E5=8C=96=E9=85=8D=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BC=96=E8=BE=91=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.test | 2 +- package.json | 3 +- pnpm-lock.yaml | 12 +- src/locales/langs/en-us.ts | 4 +- src/locales/langs/zh-cn.ts | 4 +- src/router/elegant/imports.ts | 1 + src/router/elegant/routes.ts | 41 +++- src/router/elegant/transform.ts | 2 + src/typings/elegant-router.d.ts | 4 + src/views/robot/spot/components/edit.vue | 230 +++++++++++++++++++++++ src/views/robot/spot/index.vue | 143 ++++++++++++++ 11 files changed, 426 insertions(+), 20 deletions(-) create mode 100644 src/views/robot/spot/components/edit.vue create mode 100644 src/views/robot/spot/index.vue diff --git a/.env.test b/.env.test index 56183a0..f673967 100644 --- a/.env.test +++ b/.env.test @@ -1,5 +1,5 @@ # backend service base url, test environment -VITE_SERVICE_BASE_URL=http://192.168.1.7:9528 +VITE_SERVICE_BASE_URL=https://riwa-api.riwsan1.com # other backend service base url, test environment VITE_OTHER_SERVICE_BASE_URL= `{}` diff --git a/package.json b/package.json index d4ad515..c5c075e 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "cleanup": "sa cleanup", "commit": "sa git-commit", "commit:zh": "sa git-commit -l=zh-cn", + "deploy:cloudflare": "wrangler pages deploy dist --project-name=riwa-admin --branch=main", "dev": "vite --mode test", "dev:prod": "vite --mode prod", "gen-route": "sa gen-route", @@ -50,7 +51,7 @@ "@better-scroll/core": "2.5.1", "@elysiajs/eden": "^1.4.5", "@iconify/vue": "5.0.0", - "@riwa/api-types": "http://192.168.1.7:9528/api/riwa-eden-0.0.135.tgz", + "@riwa/api-types": "http://192.168.1.7:9528/api/riwa-eden-0.0.143.tgz", "@sa/axios": "workspace:*", "@sa/color": "workspace:*", "@sa/hooks": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cf1cf16..9ec3af2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: specifier: 5.0.0 version: 5.0.0(vue@3.5.25(typescript@5.9.3)) '@riwa/api-types': - specifier: http://192.168.1.7:9528/api/riwa-eden-0.0.135.tgz - version: '@riwa/eden@http://192.168.1.7:9528/api/riwa-eden-0.0.135.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))' + specifier: http://192.168.1.7:9528/api/riwa-eden-0.0.143.tgz + version: '@riwa/eden@http://192.168.1.7:9528/api/riwa-eden-0.0.143.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))' '@sa/axios': specifier: workspace:* version: link:packages/axios @@ -1230,9 +1230,9 @@ packages: '@quansync/fs@0.1.6': resolution: {integrity: sha512-zoA8SqQO11qH9H8FCBR7NIbowYARIPmBz3nKjgAaOUDi/xPAAu1uAgebtV7KXHTc6CDZJVRZ1u4wIGvY5CWYaw==} - '@riwa/eden@http://192.168.1.7:9528/api/riwa-eden-0.0.135.tgz': - resolution: {tarball: http://192.168.1.7:9528/api/riwa-eden-0.0.135.tgz} - version: 0.0.135 + '@riwa/eden@http://192.168.1.7:9528/api/riwa-eden-0.0.143.tgz': + resolution: {tarball: http://192.168.1.7:9528/api/riwa-eden-0.0.143.tgz} + version: 0.0.143 peerDependencies: '@elysiajs/eden': ^1.4.5 @@ -5651,7 +5651,7 @@ snapshots: dependencies: quansync: 0.3.0 - '@riwa/eden@http://192.168.1.7:9528/api/riwa-eden-0.0.135.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))': + '@riwa/eden@http://192.168.1.7:9528/api/riwa-eden-0.0.143.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))': dependencies: '@elysiajs/eden': 1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)) diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index ddcb285..43a377b 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -248,7 +248,9 @@ const local: App.I18n.Schema = { tokenization: 'Tokenization Management', tokenization_product: 'Tokenization Product', notification: 'Notification Management', - news: 'News Management' + news: 'News Management', + robot: 'Robot Management', + robot_spot: 'Spot Robot' }, page: { login: { diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index b070de6..b27175d 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -244,7 +244,9 @@ const local: App.I18n.Schema = { tokenization: '代币化管理', tokenization_product: '代币化产品', notification: '通知管理', - news: '新闻管理' + news: '新闻管理', + robot: '机器人管理', + robot_spot: '现货机器人' }, page: { login: { diff --git a/src/router/elegant/imports.ts b/src/router/elegant/imports.ts index ba095be..976a261 100644 --- a/src/router/elegant/imports.ts +++ b/src/router/elegant/imports.ts @@ -26,6 +26,7 @@ export const views: Record Promise 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"), diff --git a/src/router/elegant/routes.ts b/src/router/elegant/routes.ts index 0f3c310..2868fe6 100644 --- a/src/router/elegant/routes.ts +++ b/src/router/elegant/routes.ts @@ -133,9 +133,30 @@ export const generatedRoutes: GeneratedRoute[] = [ meta: { title: 'notification', i18nKey: 'route.notification', - order: 7 + 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', @@ -225,6 +246,15 @@ export const generatedRoutes: GeneratedRoute[] = [ order: 4 }, children: [ + { + name: 'user_list', + path: '/user/list', + component: 'view.user_list', + meta: { + title: 'user_list', + i18nKey: 'route.user_list' + } + }, { name: 'user_bankcard', path: '/user/bankcard', @@ -234,15 +264,6 @@ export const generatedRoutes: GeneratedRoute[] = [ i18nKey: 'route.user_bankcard' } }, - { - name: 'user_list', - path: '/user/list', - component: 'view.user_list', - meta: { - title: 'user_list', - i18nKey: 'route.user_list' - } - } ] }, { diff --git a/src/router/elegant/transform.ts b/src/router/elegant/transform.ts index 2a8b4be..3055060 100644 --- a/src/router/elegant/transform.ts +++ b/src/router/elegant/transform.ts @@ -175,6 +175,8 @@ const routeMap: RouteMap = { "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", diff --git a/src/typings/elegant-router.d.ts b/src/typings/elegant-router.d.ts index 5422faf..e9f97db 100644 --- a/src/typings/elegant-router.d.ts +++ b/src/typings/elegant-router.d.ts @@ -29,6 +29,8 @@ declare module "@elegant-router/types" { "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"; @@ -85,6 +87,7 @@ declare module "@elegant-router/types" { | "login" | "news" | "notification" + | "robot" | "rwa" | "tokenization" | "transfer" @@ -117,6 +120,7 @@ declare module "@elegant-router/types" { | "home" | "news" | "notification" + | "robot_spot" | "rwa_product" | "rwa_producttype" | "rwa_subscribe" diff --git a/src/views/robot/spot/components/edit.vue b/src/views/robot/spot/components/edit.vue new file mode 100644 index 0000000..3818e11 --- /dev/null +++ b/src/views/robot/spot/components/edit.vue @@ -0,0 +1,230 @@ + + + + + diff --git a/src/views/robot/spot/index.vue b/src/views/robot/spot/index.vue new file mode 100644 index 0000000..eb493a7 --- /dev/null +++ b/src/views/robot/spot/index.vue @@ -0,0 +1,143 @@ + + + + +