mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 11:42:19 +08:00
1.2.7
This commit is contained in:
parent
6be794efe9
commit
72faa1e5c2
10
changelog.md
10
changelog.md
|
@ -4,10 +4,6 @@
|
||||||
|
|
||||||
### New Features
|
### New Features
|
||||||
|
|
||||||
- 内置 SubStore 服务
|
- 支持使用自建Sub-Store后端
|
||||||
- 记住连接排列顺序
|
- 深度集成Sub-Store
|
||||||
- 调整样式细节
|
- 优化延迟测试逻辑
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- 修复编辑器主题错误
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mihomo-party",
|
"name": "mihomo-party",
|
||||||
"version": "1.2.6",
|
"version": "1.2.7",
|
||||||
"description": "Mihomo Party",
|
"description": "Mihomo Party",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": "mihomo-party",
|
"author": "mihomo-party",
|
||||||
|
|
|
@ -47,7 +47,9 @@ export async function patchControledMihomoConfig(patch: Partial<IMihomoConfig>):
|
||||||
if (!useNameserverPolicy) {
|
if (!useNameserverPolicy) {
|
||||||
delete controledMihomoConfig?.dns?.['nameserver-policy']
|
delete controledMihomoConfig?.dns?.['nameserver-policy']
|
||||||
}
|
}
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
|
delete controledMihomoConfig?.tun?.device
|
||||||
|
}
|
||||||
if (patch['external-controller'] || patch.secret) {
|
if (patch['external-controller'] || patch.secret) {
|
||||||
await getAxios(true)
|
await getAxios(true)
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ const SubStore: React.FC = () => {
|
||||||
variant="light"
|
variant="light"
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
open(
|
open(
|
||||||
`https://sub-store.vercel.app/subs?api=${useCustomSubStore ? customSubStoreUrl : `http://127.0.0.1:${port}`}`
|
`https://sub-store.vercel.app?api=${useCustomSubStore ? customSubStoreUrl : `http://127.0.0.1:${port}`}`
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
@ -42,7 +42,7 @@ const SubStore: React.FC = () => {
|
||||||
>
|
>
|
||||||
<iframe
|
<iframe
|
||||||
className="w-full h-full"
|
className="w-full h-full"
|
||||||
src={`https://sub-store.vercel.app/subs?api=${useCustomSubStore ? customSubStoreUrl : `http://127.0.0.1:${port}`}`}
|
src={`https://sub-store.vercel.app?api=${useCustomSubStore ? customSubStoreUrl : `http://127.0.0.1:${port}`}`}
|
||||||
/>
|
/>
|
||||||
</BasePage>
|
</BasePage>
|
||||||
</>
|
</>
|
||||||
|
|
|
@ -164,6 +164,7 @@ const Tun: React.FC = () => {
|
||||||
<Tab key="system" title="系统" />
|
<Tab key="system" title="系统" />
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
|
{platform !== 'darwin' && (
|
||||||
<SettingItem title="Tun 网卡名称" divider>
|
<SettingItem title="Tun 网卡名称" divider>
|
||||||
<Input
|
<Input
|
||||||
size="sm"
|
size="sm"
|
||||||
|
@ -174,6 +175,8 @@ const Tun: React.FC = () => {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
|
)}
|
||||||
|
|
||||||
<SettingItem title="严格路由" divider>
|
<SettingItem title="严格路由" divider>
|
||||||
<Switch
|
<Switch
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user