This commit is contained in:
pompurin404 2024-09-04 00:10:30 +08:00
parent 044b676464
commit d2957aebf5
No known key found for this signature in database
5 changed files with 26 additions and 17 deletions

View File

@ -5,3 +5,9 @@
### New Features ### New Features
- 内置 SubStore 服务 - 内置 SubStore 服务
- 记住连接排列顺序
- 调整样式细节
### Bug Fixes
- 修复编辑器主题错误

View File

@ -1,6 +1,6 @@
{ {
"name": "mihomo-party", "name": "mihomo-party",
"version": "1.2.5", "version": "1.2.6",
"description": "Mihomo Party", "description": "Mihomo Party",
"main": "./out/main/index.js", "main": "./out/main/index.js",
"author": "mihomo-party", "author": "mihomo-party",

View File

@ -6,6 +6,9 @@ export const defaultConfig: IAppConfig = {
proxyInTray: true, proxyInTray: true,
maxLogDays: 7, maxLogDays: 7,
proxyCols: 'auto', proxyCols: 'auto',
connectionDirection: 'asc',
connectionOrderBy: 'time',
useSubStore: true,
proxyDisplayMode: 'simple', proxyDisplayMode: 'simple',
proxyDisplayOrder: 'default', proxyDisplayOrder: 'default',
autoCheckUpdate: true, autoCheckUpdate: true,

View File

@ -193,6 +193,21 @@ const Profiles: React.FC = () => {
> >
</Button> </Button>
{useSubStore && (
<Button
title="SubStore"
onPress={async () => {
const port = await subStorePort()
open(`https://sub-store.vercel.app/subs?api=http://127.0.0.1:${port}`)
}}
className="ml-2"
size="sm"
isIconOnly
color="primary"
>
<SubStoreIcon />
</Button>
)}
<Dropdown> <Dropdown>
<DropdownTrigger> <DropdownTrigger>
<Button className="ml-2" size="sm" isIconOnly color="primary"> <Button className="ml-2" size="sm" isIconOnly color="primary">
@ -225,21 +240,6 @@ const Profiles: React.FC = () => {
<DropdownItem key="new"></DropdownItem> <DropdownItem key="new"></DropdownItem>
</DropdownMenu> </DropdownMenu>
</Dropdown> </Dropdown>
{useSubStore && (
<Button
title="SubStore"
onPress={async () => {
const port = await subStorePort()
open(`https://sub-store.vercel.app/subs?api=http://127.0.0.1:${port}`)
}}
className="ml-2"
size="sm"
isIconOnly
color="primary"
>
<SubStoreIcon />
</Button>
)}
</div> </div>
<Divider /> <Divider />
</div> </div>

View File

@ -219,7 +219,7 @@ interface IAppConfig {
proxyCols: 'auto' | '1' | '2' | '3' | '4' proxyCols: 'auto' | '1' | '2' | '3' | '4'
connectionDirection: 'asc' | 'desc' connectionDirection: 'asc' | 'desc'
connectionOrderBy: 'time' | 'upload' | 'download' | 'uploadSpeed' | 'downloadSpeed' connectionOrderBy: 'time' | 'upload' | 'download' | 'uploadSpeed' | 'downloadSpeed'
useSubStore?: boolean useSubStore: boolean
autoSetDNS?: boolean autoSetDNS?: boolean
originDNS?: string originDNS?: string
useWindowFrame: boolean useWindowFrame: boolean