mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-15 19:22:31 +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,16 +164,19 @@ const Tun: React.FC = () => {
|
||||||
<Tab key="system" title="系统" />
|
<Tab key="system" title="系统" />
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
<SettingItem title="Tun 网卡名称" divider>
|
{platform !== 'darwin' && (
|
||||||
<Input
|
<SettingItem title="Tun 网卡名称" divider>
|
||||||
size="sm"
|
<Input
|
||||||
className="w-[100px]"
|
size="sm"
|
||||||
value={values.device}
|
className="w-[100px]"
|
||||||
onValueChange={(v) => {
|
value={values.device}
|
||||||
setValues({ ...values, device: v })
|
onValueChange={(v) => {
|
||||||
}}
|
setValues({ ...values, device: v })
|
||||||
/>
|
}}
|
||||||
</SettingItem>
|
/>
|
||||||
|
</SettingItem>
|
||||||
|
)}
|
||||||
|
|
||||||
<SettingItem title="严格路由" divider>
|
<SettingItem title="严格路由" divider>
|
||||||
<Switch
|
<Switch
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user