Skip to content

Commit

Permalink
adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Nov 24, 2024
1 parent 01c2b96 commit f1cfa97
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

### Features

- 连接详情支持复制规则
- 支持编辑/查看外部资源
- 支持重置应用

### Bug Fixes

- 修复 Sub-Store 代理问题
- 实时保存窗口位置
- 修复某些系统下应用白屏的问题
8 changes: 5 additions & 3 deletions src/renderer/src/components/resources/proxy-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import useSWR from 'swr'
import SettingCard from '../base/base-setting-card'
import SettingItem from '../base/base-setting-item'
import { Button, Chip } from '@nextui-org/react'
import { IoMdRefresh, IoMdEye } from 'react-icons/io'
import { IoMdRefresh } from 'react-icons/io'
import { CgLoadbarDoc } from 'react-icons/cg'
import { MdEditDocument } from 'react-icons/md'
import dayjs from 'dayjs'
Expand Down Expand Up @@ -116,11 +116,12 @@ const ProxyProvider: React.FC = () => {
>
<div className="flex h-[32px] leading-[32px] text-foreground-500">
<div>{dayjs(provider.updatedAt).fromNow()}</div>
<Button isIconOnly className="ml-2" size="sm">
{/* <Button isIconOnly className="ml-2" size="sm">
<IoMdEye className="text-lg" />
</Button>
</Button> */}
<Button
isIconOnly
title={provider.vehicleType == 'File' ? '编辑' : '查看'}
className="ml-2"
size="sm"
onPress={() => {
Expand All @@ -136,6 +137,7 @@ const ProxyProvider: React.FC = () => {
</Button>
<Button
isIconOnly
title="更新"
className="ml-2"
size="sm"
onPress={() => {
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/src/components/resources/rule-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const RuleProvider: React.FC = () => {
{provider.format !== 'MrsRule' && (
<Button
isIconOnly
title={provider.vehicleType == 'File' ? '编辑' : '查看'}
className="ml-2"
size="sm"
onPress={() => {
Expand All @@ -130,6 +131,7 @@ const RuleProvider: React.FC = () => {
)}
<Button
isIconOnly
title="更新"
className="ml-2"
size="sm"
onPress={() => {
Expand Down

0 comments on commit f1cfa97

Please sign in to comment.