This commit is contained in:
pompurin404 2024-09-04 19:59:11 +08:00
parent 6be794efe9
commit 72faa1e5c2
No known key found for this signature in database
5 changed files with 22 additions and 21 deletions

View File

@ -4,10 +4,6 @@
### New Features ### New Features
- 内置 SubStore 服务 - 支持使用自建Sub-Store后端
- 记住连接排列顺序 - 深度集成Sub-Store
- 调整样式细节 - 优化延迟测试逻辑
### Bug Fixes
- 修复编辑器主题错误

View File

@ -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",

View File

@ -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)
} }

View File

@ -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>
</> </>

View File

@ -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"