From 28182cac642071236148383f987288e2ea545807 Mon Sep 17 00:00:00 2001 From: bietiaop <1527109126@qq.com> Date: Fri, 31 Jan 2025 12:07:57 +0800 Subject: [PATCH] =?UTF-8?q?chore(dep):=20=E6=9B=B4=E6=96=B0webui=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- napcat.webui/package.json | 50 ++++++++++++++--------------- napcat.webui/src/styles/globals.css | 39 ++++++++++++---------- 2 files changed, 47 insertions(+), 42 deletions(-) diff --git a/napcat.webui/package.json b/napcat.webui/package.json index c2f38c28..0d1d8476 100644 --- a/napcat.webui/package.json +++ b/napcat.webui/package.json @@ -38,8 +38,8 @@ "@heroui/tooltip": "2.2.8", "@monaco-editor/loader": "^1.4.0", "@monaco-editor/react": "4.7.0-rc.0", - "@react-aria/visually-hidden": "3.8.18", - "@reduxjs/toolkit": "^2.5.0", + "@react-aria/visually-hidden": "^3.8.19", + "@reduxjs/toolkit": "^2.5.1", "@uidotdev/usehooks": "^2.4.1", "@xterm/addon-fit": "^0.10.0", "@xterm/addon-web-links": "^0.11.0", @@ -47,17 +47,17 @@ "@xterm/xterm": "^5.5.0", "ahooks": "^3.8.4", "axios": "^1.7.9", - "clsx": "2.1.1", + "clsx": "^2.1.1", "echarts": "^5.5.1", "event-source-polyfill": "^1.0.31", - "framer-motion": "^11.15.0", + "framer-motion": "^12.0.6", "monaco-editor": "^0.52.2", - "motion": "^11.15.0", + "motion": "^12.0.6", "qface": "^1.4.1", "qrcode.react": "^4.2.0", "quill": "^2.0.3", - "react": "19.0.0", - "react-dom": "19.0.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", "react-error-boundary": "^5.0.0", "react-hook-form": "^7.54.2", "react-hot-toast": "^2.4.1", @@ -65,41 +65,41 @@ "react-markdown": "^9.0.3", "react-redux": "^9.2.0", "react-responsive": "^10.0.0", - "react-router-dom": "7.1.0", + "react-router-dom": "^7.1.4", "react-use-websocket": "^4.11.1", "react-window": "^1.8.11", "remark-gfm": "^4.0.0", - "tailwind-variants": "0.3.0", - "tailwindcss": "3.4.17", + "tailwind-variants": "^0.3.0", + "tailwindcss": "^3.4.17", "zod": "^3.24.1" }, "devDependencies": { - "@eslint/js": "^9.17.0", + "@eslint/js": "^9.19.0", "@react-types/shared": "^3.26.0", - "@trivago/prettier-plugin-sort-imports": "^5.2.0", + "@trivago/prettier-plugin-sort-imports": "^5.2.2", "@types/event-source-polyfill": "^1.0.5", "@types/fabric": "^5.3.9", - "@types/node": "22.10.2", - "@types/react": "19.0.2", - "@types/react-dom": "19.0.2", + "@types/node": "^22.12.0", + "@types/react": "^19.0.8", + "@types/react-dom": "^19.0.3", "@types/react-window": "^1.8.8", - "@typescript-eslint/eslint-plugin": "8.18.1", - "@typescript-eslint/parser": "8.18.1", + "@typescript-eslint/eslint-plugin": "^8.22.0", + "@typescript-eslint/parser": "^8.22.0", "@vitejs/plugin-react": "^4.3.4", - "autoprefixer": "10.4.20", - "eslint": "^9.17.0", - "eslint-config-prettier": "9.1.0", + "autoprefixer": "^10.4.20", + "eslint": "^9.19.0", + "eslint-config-prettier": "^10.0.1", "eslint-plugin-import": "^2.31.0", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-node": "^11.1.0", - "eslint-plugin-prettier": "5.2.1", + "eslint-plugin-prettier": "5.2.3", "eslint-plugin-react": "^7.37.2", "eslint-plugin-react-hooks": "^5.1.0", - "eslint-plugin-unused-imports": "4.1.4", + "eslint-plugin-unused-imports": "^4.1.4", "globals": "^15.14.0", - "postcss": "8.4.49", - "prettier": "3.4.2", - "typescript": "5.7.2", + "postcss": "^8.5.1", + "prettier": "^3.4.2", + "typescript": "^5.7.3", "vite": "^6.0.5", "vite-plugin-static-copy": "^2.2.0", "vite-tsconfig-paths": "^5.1.4" diff --git a/napcat.webui/src/styles/globals.css b/napcat.webui/src/styles/globals.css index bd8231bc..adae56c1 100644 --- a/napcat.webui/src/styles/globals.css +++ b/napcat.webui/src/styles/globals.css @@ -1,15 +1,26 @@ -@import url("./fonts.css"); +@import url('./fonts.css'); @tailwind base; @tailwind components; @tailwind utilities; + body { - font-family: PingFang SC,"Harmony",Helvetica Neue,Microsoft YaHei,sans-serif !important; + font-family: + PingFang SC, + 'Harmony', + Helvetica Neue, + Microsoft YaHei, + sans-serif !important; } @layer components { .hm-medium { - font-family: PingFang SC,"Harmony",Helvetica Neue,Microsoft YaHei,sans-serif !important; + font-family: + PingFang SC, + 'Harmony', + Helvetica Neue, + Microsoft YaHei, + sans-serif !important; @apply font-bold; } .font-ubuntu { @@ -51,7 +62,8 @@ body { overflow: hidden !important; } -.monaco-editor, .monaco-editor-background { +.monaco-editor, +.monaco-editor-background { background-color: transparent !important; } @@ -77,7 +89,12 @@ body { } .context-view.monaco-menu-container * { - font-family: PingFang SC,"Harmony",Helvetica Neue,Microsoft YaHei,sans-serif !important; + font-family: + PingFang SC, + 'Harmony', + Helvetica Neue, + Microsoft YaHei, + sans-serif !important; } .ql-hidden { @@ -86,15 +103,3 @@ body { .ql-editor img { @apply inline-block; } -/* input.ql-image { - @apply hidden; -} -.ql-image svg { - fill: none; -} -.ql-fill { - fill: currentColor; -} -.ql-stroke { - stroke: currentColor; -} */