mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 11:42:19 +08:00
support drag window on modal dialog
Some checks are pending
Build / windows (arm64) (push) Waiting to run
Build / windows (ia32) (push) Waiting to run
Build / windows (x64) (push) Waiting to run
Build / windows7 (ia32) (push) Waiting to run
Build / windows7 (x64) (push) Waiting to run
Build / linux (arm64) (push) Waiting to run
Build / linux (x64) (push) Waiting to run
Build / macos (arm64) (push) Waiting to run
Build / macos (x64) (push) Waiting to run
Build / updater (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-bin) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron-bin) (push) Blocked by required conditions
Build / aur-git-updater (push) Waiting to run
Build / Update WinGet Package (push) Blocked by required conditions
Build / Update Homebrew cask (push) Blocked by required conditions
Some checks are pending
Build / windows (arm64) (push) Waiting to run
Build / windows (ia32) (push) Waiting to run
Build / windows (x64) (push) Waiting to run
Build / windows7 (ia32) (push) Waiting to run
Build / windows7 (x64) (push) Waiting to run
Build / linux (arm64) (push) Waiting to run
Build / linux (x64) (push) Waiting to run
Build / macos (arm64) (push) Waiting to run
Build / macos (x64) (push) Waiting to run
Build / updater (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-bin) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron-bin) (push) Blocked by required conditions
Build / aur-git-updater (push) Waiting to run
Build / Update WinGet Package (push) Blocked by required conditions
Build / Update Homebrew cask (push) Blocked by required conditions
This commit is contained in:
parent
704109daa4
commit
484f21fac4
|
@ -21,7 +21,7 @@ const BasePasswordModal: React.FC<Props> = (props) => {
|
|||
return (
|
||||
<Modal backdrop="blur" classNames={{ backdrop: 'top-[48px]' }} hideCloseButton isOpen={true}>
|
||||
<ModalContent>
|
||||
<ModalHeader className="flex">请输入root密码</ModalHeader>
|
||||
<ModalHeader className="flex app-drag">请输入root密码</ModalHeader>
|
||||
<ModalBody>
|
||||
<Input fullWidth type="password" value={password} onValueChange={setPassword} />
|
||||
</ModalBody>
|
||||
|
|
|
@ -21,7 +21,7 @@ const ConnectionDetailModal: React.FC<Props> = (props) => {
|
|||
scrollBehavior="inside"
|
||||
>
|
||||
<ModalContent className="flag-emoji break-all">
|
||||
<ModalHeader className="flex">连接详情</ModalHeader>
|
||||
<ModalHeader className="flex app-drag">连接详情</ModalHeader>
|
||||
<ModalBody>
|
||||
<SettingItem title="连接类型">
|
||||
{connection.metadata.type}({connection.metadata.network})
|
||||
|
|
|
@ -33,7 +33,7 @@ const InterfaceModal: React.FC<Props> = (props) => {
|
|||
scrollBehavior="inside"
|
||||
>
|
||||
<ModalContent>
|
||||
<ModalHeader className="flex">网络信息</ModalHeader>
|
||||
<ModalHeader className="flex app-drag">网络信息</ModalHeader>
|
||||
<ModalBody>
|
||||
{Object.entries(info).map(([key, value]) => {
|
||||
return (
|
||||
|
|
|
@ -30,7 +30,7 @@ const EditFileModal: React.FC<Props> = (props) => {
|
|||
scrollBehavior="inside"
|
||||
>
|
||||
<ModalContent className="h-full w-[calc(100%-100px)]">
|
||||
<ModalHeader className="flex pb-0">
|
||||
<ModalHeader className="flex pb-0 app-drag">
|
||||
编辑覆写{language === 'javascript' ? '脚本' : '配置'}
|
||||
</ModalHeader>
|
||||
<ModalBody className="h-full">
|
||||
|
|
|
@ -36,7 +36,7 @@ const EditInfoModal: React.FC<Props> = (props) => {
|
|||
scrollBehavior="inside"
|
||||
>
|
||||
<ModalContent>
|
||||
<ModalHeader className="flex">编辑信息</ModalHeader>
|
||||
<ModalHeader className="flex app-drag">编辑信息</ModalHeader>
|
||||
<ModalBody>
|
||||
<SettingItem title="名称">
|
||||
<Input
|
||||
|
|
|
@ -35,7 +35,7 @@ const ExecLogModal: React.FC<Props> = (props) => {
|
|||
scrollBehavior="inside"
|
||||
>
|
||||
<ModalContent>
|
||||
<ModalHeader className="flex">执行日志</ModalHeader>
|
||||
<ModalHeader className="flex app-drag">执行日志</ModalHeader>
|
||||
<ModalBody>
|
||||
{logs.map((log) => {
|
||||
return (
|
||||
|
|
|
@ -31,7 +31,7 @@ const EditFileModal: React.FC<Props> = (props) => {
|
|||
scrollBehavior="inside"
|
||||
>
|
||||
<ModalContent className="h-full w-[calc(100%-100px)]">
|
||||
<ModalHeader className="flex pb-0">
|
||||
<ModalHeader className="flex pb-0 app-drag">
|
||||
<div className="flex justify-start">
|
||||
<div className="flex items-center">编辑订阅</div>
|
||||
<small className="ml-2 text-default-500">
|
||||
|
@ -40,6 +40,7 @@ const EditFileModal: React.FC<Props> = (props) => {
|
|||
size="sm"
|
||||
color="primary"
|
||||
variant="light"
|
||||
className="app-nodrag"
|
||||
onPress={() => {
|
||||
navigate('/override')
|
||||
}}
|
||||
|
|
|
@ -56,7 +56,7 @@ const EditInfoModal: React.FC<Props> = (props) => {
|
|||
scrollBehavior="inside"
|
||||
>
|
||||
<ModalContent>
|
||||
<ModalHeader className="flex">编辑信息</ModalHeader>
|
||||
<ModalHeader className="flex app-drag">编辑信息</ModalHeader>
|
||||
<ModalBody>
|
||||
<SettingItem title="名称">
|
||||
<Input
|
||||
|
|
|
@ -30,7 +30,7 @@ const CSSEditorModal: React.FC<Props> = (props) => {
|
|||
scrollBehavior="inside"
|
||||
>
|
||||
<ModalContent className="h-full w-[calc(100%-100px)]">
|
||||
<ModalHeader className="flex pb-0">编辑主题</ModalHeader>
|
||||
<ModalHeader className="flex pb-0 app-drag">编辑主题</ModalHeader>
|
||||
<ModalBody className="h-full">
|
||||
<BaseEditor
|
||||
language="css"
|
||||
|
|
|
@ -21,7 +21,7 @@ const WebdavRestoreModal: React.FC<Props> = (props) => {
|
|||
scrollBehavior="inside"
|
||||
>
|
||||
<ModalContent>
|
||||
<ModalHeader className="flex">恢复备份</ModalHeader>
|
||||
<ModalHeader className="flex app-drag">恢复备份</ModalHeader>
|
||||
<ModalBody>
|
||||
{filenames.length === 0 ? (
|
||||
<div className="flex justify-center">还没有备份</div>
|
||||
|
|
|
@ -28,7 +28,7 @@ const ConfigViewer: React.FC<Props> = (props) => {
|
|||
scrollBehavior="inside"
|
||||
>
|
||||
<ModalContent className="h-full w-[calc(100%-100px)]">
|
||||
<ModalHeader className="flex pb-0">当前运行时配置</ModalHeader>
|
||||
<ModalHeader className="flex pb-0 app-drag">当前运行时配置</ModalHeader>
|
||||
<ModalBody className="h-full">
|
||||
<BaseEditor language="yaml" value={currData} readOnly={true} />
|
||||
</ModalBody>
|
||||
|
|
|
@ -21,7 +21,7 @@ const PacEditorModal: React.FC<Props> = (props) => {
|
|||
scrollBehavior="inside"
|
||||
>
|
||||
<ModalContent className="h-full w-[calc(100%-100px)]">
|
||||
<ModalHeader className="flex pb-0">编辑PAC脚本</ModalHeader>
|
||||
<ModalHeader className="flex pb-0 app-drag">编辑PAC脚本</ModalHeader>
|
||||
<ModalBody className="h-full">
|
||||
<BaseEditor
|
||||
language="javascript"
|
||||
|
|
|
@ -37,12 +37,12 @@ const UpdaterModal: React.FC<Props> = (props) => {
|
|||
scrollBehavior="inside"
|
||||
>
|
||||
<ModalContent className="h-full w-[calc(100%-100px)]">
|
||||
<ModalHeader className="flex justify-between">
|
||||
<ModalHeader className="flex justify-between app-drag">
|
||||
<div>v{version} 版本就绪</div>
|
||||
<Button
|
||||
color="primary"
|
||||
size="sm"
|
||||
className="flex"
|
||||
className="flex app-nodrag"
|
||||
onPress={() => {
|
||||
open(`https://github.com/mihomo-party-org/mihomo-party/releases/tag/v${version}`)
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user