From f57178dd21d39bd616e03f38983d8c220cb31135 Mon Sep 17 00:00:00 2001 From: Seven Date: Sun, 18 Jan 2026 04:12:58 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E4=BF=AE=E6=94=B9=20API=20=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E5=92=8C=E7=89=88=E6=9C=AC=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=85=85=E5=80=BC=E9=A1=B5=E9=9D=A2=EF=BC=8C=E9=9B=86=E6=88=90?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=96=B9=E5=BC=8F=E9=80=89=E6=8B=A9=E5=92=8C?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.test | 2 +- pnpm-lock.yaml | 14 +- pnpm-workspace.yaml | 2 +- src/router/index.ts | 5 + src/views/product/index.vue | 98 +++--- src/views/recharge/index.vue | 562 +++++++++++++++++++++++++++++++++++ 6 files changed, 617 insertions(+), 66 deletions(-) create mode 100644 src/views/recharge/index.vue diff --git a/.env.test b/.env.test index ddd900e..3cc5181 100644 --- a/.env.test +++ b/.env.test @@ -1 +1 @@ -VITE_API_URL=http://192.168.1.7:9527 \ No newline at end of file +VITE_API_URL=http://192.168.1.2:9538 \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dbe1c61..991bec0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -52,8 +52,8 @@ catalogs: specifier: 8.0.0 version: 8.0.0 '@capp/eden': - specifier: http://192.168.1.2:9538/api/capp-eden-0.0.6.tgz - version: 0.0.6 + specifier: http://192.168.1.2:9538/api/capp-eden-0.0.7.tgz + version: 0.0.7 '@cloudflare/workers-types': specifier: ^4.20260113.0 version: 4.20260116.0 @@ -298,7 +298,7 @@ importers: version: 8.0.0(@capacitor/core@8.0.0) '@capp/eden': specifier: 'catalog:' - version: http://192.168.1.2:9538/api/capp-eden-0.0.6.tgz(@elysiajs/eden@1.4.6(elysia@1.4.22(@sinclair/typebox@0.34.47)(exact-mirror@0.2.6(@sinclair/typebox@0.34.47))(file-type@21.3.0)(openapi-types@12.1.3)(typescript@5.9.3))) + version: http://192.168.1.2:9538/api/capp-eden-0.0.7.tgz(@elysiajs/eden@1.4.6(elysia@1.4.22(@sinclair/typebox@0.34.47)(exact-mirror@0.2.6(@sinclair/typebox@0.34.47))(file-type@21.3.0)(openapi-types@12.1.3)(typescript@5.9.3))) '@elysiajs/eden': specifier: 'catalog:' version: 1.4.6(elysia@1.4.22(@sinclair/typebox@0.34.47)(exact-mirror@0.2.6(@sinclair/typebox@0.34.47))(file-type@21.3.0)(openapi-types@12.1.3)(typescript@5.9.3)) @@ -1182,9 +1182,9 @@ packages: '@capacitor/synapse@1.0.4': resolution: {integrity: sha512-/C1FUo8/OkKuAT4nCIu/34ny9siNHr9qtFezu4kxm6GY1wNFxrCFWjfYx5C1tUhVGz3fxBABegupkpjXvjCHrw==} - '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.6.tgz': - resolution: {tarball: http://192.168.1.2:9538/api/capp-eden-0.0.6.tgz} - version: 0.0.6 + '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.7.tgz': + resolution: {tarball: http://192.168.1.2:9538/api/capp-eden-0.0.7.tgz} + version: 0.0.7 peerDependencies: '@elysiajs/eden': ^1.4.6 @@ -6903,7 +6903,7 @@ snapshots: '@capacitor/synapse@1.0.4': {} - '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.6.tgz(@elysiajs/eden@1.4.6(elysia@1.4.22(@sinclair/typebox@0.34.47)(exact-mirror@0.2.6(@sinclair/typebox@0.34.47))(file-type@21.3.0)(openapi-types@12.1.3)(typescript@5.9.3)))': + '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.7.tgz(@elysiajs/eden@1.4.6(elysia@1.4.22(@sinclair/typebox@0.34.47)(exact-mirror@0.2.6(@sinclair/typebox@0.34.47))(file-type@21.3.0)(openapi-types@12.1.3)(typescript@5.9.3)))': dependencies: '@elysiajs/eden': 1.4.6(elysia@1.4.22(@sinclair/typebox@0.34.47)(exact-mirror@0.2.6(@sinclair/typebox@0.34.47))(file-type@21.3.0)(openapi-types@12.1.3)(typescript@5.9.3)) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 0ececff..61913fd 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -18,7 +18,7 @@ catalog: '@capacitor/keyboard': 8.0.0 '@capacitor/share': ^8.0.0 '@capacitor/status-bar': 8.0.0 - '@capp/eden': http://192.168.1.2:9538/api/capp-eden-0.0.6.tgz + '@capp/eden': http://192.168.1.2:9538/api/capp-eden-0.0.7.tgz '@cloudflare/workers-types': ^4.20260113.0 '@elysiajs/eden': ^1.4.6 '@faker-js/faker': ^10.2.0 diff --git a/src/router/index.ts b/src/router/index.ts index 3aa90e2..eb6973d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -99,6 +99,11 @@ const routes: Array = [ component: () => import("@/views/asset_details/index.vue"), meta: { requiresAuth: true }, }, + { + path: "/recharge", + component: () => import("@/views/recharge/index.vue"), + meta: { requiresAuth: true }, + }, ]; const router = createRouter({ diff --git a/src/views/product/index.vue b/src/views/product/index.vue index 39e022c..433a7ab 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -1,4 +1,7 @@ + + + +