mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-12-05 14:10:18 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2cf7a048cf | ||
|
|
3dbb71a076 | ||
|
|
ddf6760543 | ||
|
|
a6fa323f33 | ||
|
|
2df8f1acdb | ||
|
|
74a3290abc |
+15
-1
@@ -1,4 +1,18 @@
|
|||||||
## 1.5.10
|
## v1.5.11
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- Meta(mihomo)内核更新 1.18.2
|
||||||
|
|
||||||
|
### Bugs Fixes
|
||||||
|
|
||||||
|
- 升级图标无法点击的问题
|
||||||
|
- 卸载时检查安装目录是否为空
|
||||||
|
- 代理界面图标重合的问题
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## v1.5.10
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "clash-verge",
|
"name": "clash-verge",
|
||||||
"version": "1.5.10",
|
"version": "1.5.11",
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "tauri dev",
|
"dev": "tauri dev",
|
||||||
|
|||||||
Generated
+1
-1
@@ -749,7 +749,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clash-verge"
|
name = "clash-verge"
|
||||||
version = "1.5.10"
|
version = "1.5.11"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"auto-launch",
|
"auto-launch",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "clash-verge"
|
name = "clash-verge"
|
||||||
version = "1.5.10"
|
version = "1.5.11"
|
||||||
description = "clash verge"
|
description = "clash verge"
|
||||||
authors = ["zzzgydi", "wonfen", "MystiPanda"]
|
authors = ["zzzgydi", "wonfen", "MystiPanda"]
|
||||||
license = "GPL-3.0-only"
|
license = "GPL-3.0-only"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "Clash Verge",
|
"productName": "Clash Verge",
|
||||||
"version": "1.5.10"
|
"version": "1.5.11"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"distDir": "../dist",
|
"distDir": "../dist",
|
||||||
|
|||||||
@@ -743,6 +743,30 @@ Function un.onInit
|
|||||||
|
|
||||||
!insertmacro MUI_UNGETLANGUAGE
|
!insertmacro MUI_UNGETLANGUAGE
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
Function un.isDirectoryEmpty
|
||||||
|
Exch $0
|
||||||
|
Push $1
|
||||||
|
Push $2
|
||||||
|
StrCpy $2 0
|
||||||
|
FindFirst $1 $2 "$0\*.*"
|
||||||
|
loop:
|
||||||
|
StrCmp $2 "" done
|
||||||
|
StrCmp $2 "." next
|
||||||
|
StrCmp $2 ".." next
|
||||||
|
StrCpy $0 0
|
||||||
|
goto done
|
||||||
|
next:
|
||||||
|
FindNext $1 $2
|
||||||
|
goto loop
|
||||||
|
done:
|
||||||
|
FindClose $1
|
||||||
|
StrCmp $2 "" 0 +2
|
||||||
|
StrCpy $0 1
|
||||||
|
Pop $2
|
||||||
|
Pop $1
|
||||||
|
Exch $0
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
Section Uninstall
|
Section Uninstall
|
||||||
!insertmacro CheckIfAppIsRunning
|
!insertmacro CheckIfAppIsRunning
|
||||||
@@ -756,7 +780,7 @@ Section Uninstall
|
|||||||
{{#each resources}}
|
{{#each resources}}
|
||||||
Delete "$INSTDIR\\{{this.[1]}}"
|
Delete "$INSTDIR\\{{this.[1]}}"
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
Delete "$INSTDIR\resources"
|
||||||
; Delete external binaries
|
; Delete external binaries
|
||||||
{{#each binaries}}
|
{{#each binaries}}
|
||||||
Delete "$INSTDIR\\{{this}}"
|
Delete "$INSTDIR\\{{this}}"
|
||||||
@@ -765,13 +789,14 @@ Section Uninstall
|
|||||||
; Delete uninstaller
|
; Delete uninstaller
|
||||||
Delete "$INSTDIR\uninstall.exe"
|
Delete "$INSTDIR\uninstall.exe"
|
||||||
|
|
||||||
${If} $DeleteAppDataCheckboxState == 1
|
; Remove InstallDir
|
||||||
|
Push "$INSTDIR"
|
||||||
|
Call un.isDirectoryEmpty
|
||||||
|
Pop $0
|
||||||
|
${If} $0 == 1
|
||||||
RMDir /R /REBOOTOK "$INSTDIR"
|
RMDir /R /REBOOTOK "$INSTDIR"
|
||||||
${Else}
|
${Else}
|
||||||
{{#each resources_ancestors}}
|
MessageBox MB_OK "Install Directory is not Empty, Please remove it manually."
|
||||||
RMDir /REBOOTOK "$INSTDIR\\{{this}}"
|
|
||||||
{{/each}}
|
|
||||||
RMDir "$INSTDIR"
|
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
; Remove start menu shortcut
|
; Remove start menu shortcut
|
||||||
|
|||||||
@@ -28,13 +28,11 @@
|
|||||||
// $maxLogo: 100px;
|
// $maxLogo: 100px;
|
||||||
|
|
||||||
.the-logo {
|
.the-logo {
|
||||||
app-region: drag;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
flex: 1 0 58px;
|
flex: 1 0 58px;
|
||||||
// width: 100%;
|
// width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 0px 20px;
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
@@ -62,7 +60,7 @@
|
|||||||
.the-newbtn {
|
.the-newbtn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
top: 0px;
|
top: 15px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 2px 4px;
|
padding: 2px 4px;
|
||||||
transform: scale(0.8);
|
transform: scale(0.8);
|
||||||
@@ -103,6 +101,7 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
.the-dragbar {
|
.the-dragbar {
|
||||||
|
margin-top: 5px;
|
||||||
app-region: drag;
|
app-region: drag;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -127,7 +126,11 @@
|
|||||||
|
|
||||||
.layout__left .the-logo {
|
.layout__left .the-logo {
|
||||||
flex: 1 0 58px;
|
flex: 1 0 58px;
|
||||||
padding-top: 40px;
|
margin-top: 10px;
|
||||||
|
margin-left: 10px;
|
||||||
|
padding-top: 30px;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 20px;
|
||||||
padding-bottom: 16px;
|
padding-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,8 @@ export const ProxyRender = (props: RenderProps) => {
|
|||||||
|
|
||||||
async function initIconCachePath() {
|
async function initIconCachePath() {
|
||||||
if (group.icon && group.icon.trim().startsWith("http")) {
|
if (group.icon && group.icon.trim().startsWith("http")) {
|
||||||
const fileName = getFileName(group.icon);
|
const fileName =
|
||||||
|
group.name.replaceAll(" ", "") + "-" + getFileName(group.icon);
|
||||||
const iconPath = await downloadIconCache(group.icon, fileName);
|
const iconPath = await downloadIconCache(group.icon, fileName);
|
||||||
setIconCachePath(convertFileSrc(iconPath));
|
setIconCachePath(convertFileSrc(iconPath));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ import { LayoutViewer } from "./mods/layout-viewer";
|
|||||||
import { UpdateViewer } from "./mods/update-viewer";
|
import { UpdateViewer } from "./mods/update-viewer";
|
||||||
import getSystem from "@/utils/get-system";
|
import getSystem from "@/utils/get-system";
|
||||||
import { routers } from "@/pages/_routers";
|
import { routers } from "@/pages/_routers";
|
||||||
import { appWindow } from "@tauri-apps/api/window";
|
|
||||||
interface Props {
|
interface Props {
|
||||||
onError?: (err: Error) => void;
|
onError?: (err: Error) => void;
|
||||||
}
|
}
|
||||||
@@ -97,6 +97,7 @@ const SettingVerge = ({ onError }: Props) => {
|
|||||||
<MenuItem value="zh">中文</MenuItem>
|
<MenuItem value="zh">中文</MenuItem>
|
||||||
<MenuItem value="en">English</MenuItem>
|
<MenuItem value="en">English</MenuItem>
|
||||||
<MenuItem value="ru">Русский</MenuItem>
|
<MenuItem value="ru">Русский</MenuItem>
|
||||||
|
<MenuItem value="fa">فارسی</MenuItem>
|
||||||
</Select>
|
</Select>
|
||||||
</GuardState>
|
</GuardState>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import { Notice } from "@/components/base";
|
|||||||
import { TestBox } from "./test-box";
|
import { TestBox } from "./test-box";
|
||||||
import delayManager from "@/services/delay";
|
import delayManager from "@/services/delay";
|
||||||
import { cmdTestDelay, downloadIconCache } from "@/services/cmds";
|
import { cmdTestDelay, downloadIconCache } from "@/services/cmds";
|
||||||
import { listen, Event, UnlistenFn } from "@tauri-apps/api/event";
|
import { listen, UnlistenFn } from "@tauri-apps/api/event";
|
||||||
import { convertFileSrc } from "@tauri-apps/api/tauri";
|
import { convertFileSrc } from "@tauri-apps/api/tauri";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
@@ -48,7 +48,7 @@ export const TestItem = (props: Props) => {
|
|||||||
|
|
||||||
async function initIconCachePath() {
|
async function initIconCachePath() {
|
||||||
if (icon && icon.trim().startsWith("http")) {
|
if (icon && icon.trim().startsWith("http")) {
|
||||||
const fileName = getFileName(icon);
|
const fileName = uid + "-" + getFileName(icon);
|
||||||
const iconPath = await downloadIconCache(icon, fileName);
|
const iconPath = await downloadIconCache(icon, fileName);
|
||||||
setIconCachePath(convertFileSrc(iconPath));
|
setIconCachePath(convertFileSrc(iconPath));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
@@ -3,16 +3,19 @@ import { initReactI18next } from "react-i18next";
|
|||||||
import en from "@/locales/en.json";
|
import en from "@/locales/en.json";
|
||||||
import ru from "@/locales/ru.json";
|
import ru from "@/locales/ru.json";
|
||||||
import zh from "@/locales/zh.json";
|
import zh from "@/locales/zh.json";
|
||||||
|
import fa from "@/locales/fa.json";
|
||||||
|
|
||||||
const resources = {
|
const resources = {
|
||||||
en: { translation: en },
|
en: { translation: en },
|
||||||
ru: { translation: ru },
|
ru: { translation: ru },
|
||||||
zh: { translation: zh },
|
zh: { translation: zh },
|
||||||
|
fa: { translation: fa },
|
||||||
};
|
};
|
||||||
|
|
||||||
i18n.use(initReactI18next).init({
|
i18n.use(initReactI18next).init({
|
||||||
resources,
|
resources,
|
||||||
lng: "en",
|
lng: "en",
|
||||||
|
fallbackLng: "en",
|
||||||
interpolation: {
|
interpolation: {
|
||||||
escapeValue: false,
|
escapeValue: false,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user