Skip to content

Commit

Permalink
1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Sep 3, 2024
1 parent 044b676 commit d2957ae
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 17 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
### New Features

- 内置 SubStore 服务
- 记住连接排列顺序
- 调整样式细节

### Bug Fixes

- 修复编辑器主题错误
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mihomo-party",
"version": "1.2.5",
"version": "1.2.6",
"description": "Mihomo Party",
"main": "./out/main/index.js",
"author": "mihomo-party",
Expand Down
3 changes: 3 additions & 0 deletions src/main/utils/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ export const defaultConfig: IAppConfig = {
proxyInTray: true,
maxLogDays: 7,
proxyCols: 'auto',
connectionDirection: 'asc',
connectionOrderBy: 'time',
useSubStore: true,
proxyDisplayMode: 'simple',
proxyDisplayOrder: 'default',
autoCheckUpdate: true,
Expand Down
30 changes: 15 additions & 15 deletions src/renderer/src/pages/profiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,21 @@ const Profiles: React.FC = () => {
>
导入
</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>
<DropdownTrigger>
<Button className="ml-2" size="sm" isIconOnly color="primary">
Expand Down Expand Up @@ -225,21 +240,6 @@ const Profiles: React.FC = () => {
<DropdownItem key="new">新建</DropdownItem>
</DropdownMenu>
</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>
<Divider />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/shared/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ interface IAppConfig {
proxyCols: 'auto' | '1' | '2' | '3' | '4'
connectionDirection: 'asc' | 'desc'
connectionOrderBy: 'time' | 'upload' | 'download' | 'uploadSpeed' | 'downloadSpeed'
useSubStore?: boolean
useSubStore: boolean
autoSetDNS?: boolean
originDNS?: string
useWindowFrame: boolean
Expand Down

0 comments on commit d2957ae

Please sign in to comment.