Explorar o código

fix: minor glitches (#900)

* feat: show actual proxy name instead of proxy group when hovering on a group outbound

* fix: open empty edit form and save will cause `UID not found`

* chore: tauri.conf.json json schema

* chore: missing locales
dongchengjie hai 1 ano
pai
achega
f71b51e64a

+ 1 - 0
src-tauri/tauri.conf.json

@@ -1,4 +1,5 @@
 {
+  "$schema": "../node_modules/@tauri-apps/cli/schema.json",
   "package": {
     "productName": "Clash Verge",
     "version": "1.5.11"

+ 2 - 0
src-tauri/tauri.linux.conf.json

@@ -1,9 +1,11 @@
 {
+  "$schema": "../node_modules/@tauri-apps/cli/schema.json",
   "tauri": {
     "systemTray": {
       "iconPath": "icons/tray-icon.png"
     },
     "bundle": {
+      "identifier": "io.github.clash-verge-rev.clash-verge-rev",
       "targets": ["deb", "appimage", "updater"],
       "deb": {
         "depends": ["openssl"],

+ 2 - 0
src-tauri/tauri.macos.conf.json

@@ -1,10 +1,12 @@
 {
+  "$schema": "../node_modules/@tauri-apps/cli/schema.json",
   "tauri": {
     "systemTray": {
       "iconPath": "icons/mac-tray-icon.png",
       "iconAsTemplate": true
     },
     "bundle": {
+      "identifier": "io.github.clash-verge-rev.clash-verge-rev",
       "targets": ["app", "dmg", "updater"],
       "macOS": {
         "frameworks": [],

+ 2 - 0
src-tauri/tauri.windows.conf.json

@@ -1,9 +1,11 @@
 {
+  "$schema": "../node_modules/@tauri-apps/cli/schema.json",
   "tauri": {
     "systemTray": {
       "iconPath": "icons/tray-icon.png"
     },
     "bundle": {
+      "identifier": "io.github.clash-verge-rev.clash-verge-rev",
       "targets": ["nsis", "updater"],
       "windows": {
         "certificateThumbprint": null,

+ 0 - 1
src/components/proxy/proxy-groups.tsx

@@ -8,7 +8,6 @@ import {
   deleteConnection,
   getGroupProxyDelays,
 } from "@/services/api";
-import { Box } from "@mui/material";
 import { useProfiles } from "@/hooks/use-profiles";
 import { useVerge } from "@/hooks/use-verge";
 import { BaseEmpty } from "../base";

+ 4 - 1
src/components/proxy/proxy-item-mini.tsx

@@ -86,7 +86,10 @@ export const ProxyItemMini = (props: Props) => {
         },
       ]}
     >
-      <Box title={proxy.name} sx={{ overflow: "hidden" }}>
+      <Box
+        title={`${proxy.name}\n${proxy.now ?? ""}`}
+        sx={{ overflow: "hidden" }}
+      >
         <Typography
           variant="body2"
           component="div"

+ 0 - 1
src/components/test/test-item.tsx

@@ -104,7 +104,6 @@ export const TestItem = (props: Props) => {
       }}
     >
       <TestBox
-        onClick={onEditTest}
         onContextMenu={(event) => {
           const { clientX, clientY } = event;
           setPosition({ top: clientY, left: clientX });

+ 2 - 0
src/locales/en.json

@@ -18,6 +18,8 @@
   "direct": "direct",
   "script": "script",
 
+  "Create Test": "Create Test",
+  "Edit Test": "Edit Test",
   "Edit": "Edit",
   "Icon": "Icon",
   "Test URL": "Test URL",

+ 2 - 0
src/locales/ru.json

@@ -18,6 +18,8 @@
   "direct": "прямой",
   "script": "скриптовый",
 
+  "Create Test": "Создать тест",
+  "Edit Test": "Редактировать тест",
   "Edit": "Редактировать",
   "Icon": "Икона",
   "Test URL": "Тестовый URL",

+ 2 - 0
src/locales/zh.json

@@ -18,6 +18,8 @@
   "direct": "直连",
   "script": "脚本",
 
+  "Create Test": "新建测试",
+  "Edit Test": "编辑测试",
   "Edit": "编辑",
   "Icon": "图标",
   "Test URL": "测试地址",