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
|
||||
|
||||
- 内置 SubStore 服务
|
||||
- 记住连接排列顺序
|
||||
- 调整样式细节
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- 修复编辑器主题错误
|
||||
- 支持使用自建Sub-Store后端
|
||||
- 深度集成Sub-Store
|
||||
- 优化延迟测试逻辑
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "mihomo-party",
|
||||
"version": "1.2.6",
|
||||
"version": "1.2.7",
|
||||
"description": "Mihomo Party",
|
||||
"main": "./out/main/index.js",
|
||||
"author": "mihomo-party",
|
||||
|
|
|
@ -47,7 +47,9 @@ export async function patchControledMihomoConfig(patch: Partial<IMihomoConfig>):
|
|||
if (!useNameserverPolicy) {
|
||||
delete controledMihomoConfig?.dns?.['nameserver-policy']
|
||||
}
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
delete controledMihomoConfig?.tun?.device
|
||||
}
|
||||
if (patch['external-controller'] || patch.secret) {
|
||||
await getAxios(true)
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ const SubStore: React.FC = () => {
|
|||
variant="light"
|
||||
onPress={() => {
|
||||
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
|
||||
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>
|
||||
</>
|
||||
|
|
|
@ -164,16 +164,19 @@ const Tun: React.FC = () => {
|
|||
<Tab key="system" title="系统" />
|
||||
</Tabs>
|
||||
</SettingItem>
|
||||
<SettingItem title="Tun 网卡名称" divider>
|
||||
<Input
|
||||
size="sm"
|
||||
className="w-[100px]"
|
||||
value={values.device}
|
||||
onValueChange={(v) => {
|
||||
setValues({ ...values, device: v })
|
||||
}}
|
||||
/>
|
||||
</SettingItem>
|
||||
{platform !== 'darwin' && (
|
||||
<SettingItem title="Tun 网卡名称" divider>
|
||||
<Input
|
||||
size="sm"
|
||||
className="w-[100px]"
|
||||
value={values.device}
|
||||
onValueChange={(v) => {
|
||||
setValues({ ...values, device: v })
|
||||
}}
|
||||
/>
|
||||
</SettingItem>
|
||||
)}
|
||||
|
||||
<SettingItem title="严格路由" divider>
|
||||
<Switch
|
||||
size="sm"
|
||||
|
|
Loading…
Reference in New Issue
Block a user