From 5c0f5b2127faed952ca6c71f953208a276d3914d Mon Sep 17 00:00:00 2001 From: SikongJueluo Date: Mon, 7 Apr 2025 21:56:41 +0800 Subject: [PATCH] add more view for test --- src/App.vue | 4 +- src/client.ts | 16 -------- src/components/Sidebar.vue | 72 +++++++++++++++++++++++++++-------- src/components/UploadCard.vue | 20 +--------- src/views/JtagTest.vue | 15 +++++--- 5 files changed, 69 insertions(+), 58 deletions(-) delete mode 100644 src/client.ts diff --git a/src/App.vue b/src/App.vue index f8502b5..908e59e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,8 +6,8 @@ import { useThemeStore } from "./stores/theme"; const theme = useThemeStore(); const items = [ { id: 1, icon: iconMenu, text: "用户界面", page: "/user" }, - { id: 2, icon: iconMenu, text: "Component Test", page: "/test" }, - { id: 3, icon: iconMenu, text: "Jtag Test", page: "/test/jtag" }, + { id: 2, icon: iconMenu, text: "ComponentTest", page: "/test" }, + { id: 3, icon: iconMenu, text: "JtagTest", page: "/test/jtag" }, ]; diff --git a/src/client.ts b/src/client.ts deleted file mode 100644 index 365dbfc..0000000 --- a/src/client.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { createTRPCProxyClient, httpBatchLink } from '@trpc/client'; -import type { AppRouter } from '../server/router'; - -export const client = createTRPCProxyClient({ - links: [ - httpBatchLink({ - url: 'http://localhost:3002', - // You can pass any HTTP headers you wish here - async headers() { - return { - authorization: document.cookie, - }; - }, - }), - ], -}); diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 587a38f..1de2ee0 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -1,10 +1,18 @@ -