mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-26 20:50:30 +08:00
Remove unused code
This commit is contained in:
parent
5a84d6485e
commit
f54ffcf42b
@ -1,43 +0,0 @@
|
|||||||
import {
|
|
||||||
Modal,
|
|
||||||
ModalContent,
|
|
||||||
ModalHeader,
|
|
||||||
ModalBody,
|
|
||||||
ModalFooter,
|
|
||||||
Button,
|
|
||||||
Input
|
|
||||||
} from '@heroui/react'
|
|
||||||
import React, { useState } from 'react'
|
|
||||||
import { useTranslation } from 'react-i18next'
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
onCancel: () => void
|
|
||||||
onConfirm: (script: string) => void
|
|
||||||
}
|
|
||||||
|
|
||||||
const BasePasswordModal: React.FC<Props> = (props) => {
|
|
||||||
const { t } = useTranslation()
|
|
||||||
const { onCancel, onConfirm } = props
|
|
||||||
const [password, setPassword] = useState('')
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Modal backdrop="blur" classNames={{ backdrop: 'top-[48px]' }} hideCloseButton isOpen={true}>
|
|
||||||
<ModalContent>
|
|
||||||
<ModalHeader className="flex app-drag">{t('common.enterAdminPassword')}</ModalHeader>
|
|
||||||
<ModalBody>
|
|
||||||
<Input fullWidth type="password" value={password} onValueChange={setPassword} />
|
|
||||||
</ModalBody>
|
|
||||||
<ModalFooter>
|
|
||||||
<Button size="sm" variant="light" onPress={onCancel}>
|
|
||||||
{t('common.cancel')}
|
|
||||||
</Button>
|
|
||||||
<Button size="sm" color="primary" onPress={() => onConfirm(password)}>
|
|
||||||
{t('common.confirm')}
|
|
||||||
</Button>
|
|
||||||
</ModalFooter>
|
|
||||||
</ModalContent>
|
|
||||||
</Modal>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default BasePasswordModal
|
|
||||||
@ -15,7 +15,6 @@
|
|||||||
"common.default": "Default",
|
"common.default": "Default",
|
||||||
"common.close": "Close",
|
"common.close": "Close",
|
||||||
"common.pinWindow": "Pin Window",
|
"common.pinWindow": "Pin Window",
|
||||||
"common.enterAdminPassword": "Please enter the administrator password",
|
|
||||||
"common.next": "Next",
|
"common.next": "Next",
|
||||||
"common.prev": "Previous",
|
"common.prev": "Previous",
|
||||||
"common.done": "Done",
|
"common.done": "Done",
|
||||||
|
|||||||
@ -15,7 +15,6 @@
|
|||||||
"common.default": "پیشفرض",
|
"common.default": "پیشفرض",
|
||||||
"common.close": "بستن",
|
"common.close": "بستن",
|
||||||
"common.pinWindow": "پین کردن پنجره",
|
"common.pinWindow": "پین کردن پنجره",
|
||||||
"common.enterAdminPassword": "الرجاء إدخال كلمة مرور المسؤول",
|
|
||||||
"common.next": "بعدی",
|
"common.next": "بعدی",
|
||||||
"common.prev": "قبلی",
|
"common.prev": "قبلی",
|
||||||
"common.done": "انجام شد",
|
"common.done": "انجام شد",
|
||||||
|
|||||||
@ -15,7 +15,6 @@
|
|||||||
"common.default": "По умолчанию",
|
"common.default": "По умолчанию",
|
||||||
"common.close": "Закрыть",
|
"common.close": "Закрыть",
|
||||||
"common.pinWindow": "Закрепить окно",
|
"common.pinWindow": "Закрепить окно",
|
||||||
"common.enterAdminPassword": "Введите пароль администратора",
|
|
||||||
"common.next": "Далее",
|
"common.next": "Далее",
|
||||||
"common.prev": "Назад",
|
"common.prev": "Назад",
|
||||||
"common.done": "Готово",
|
"common.done": "Готово",
|
||||||
|
|||||||
@ -15,7 +15,6 @@
|
|||||||
"common.default": "默认",
|
"common.default": "默认",
|
||||||
"common.close": "关闭",
|
"common.close": "关闭",
|
||||||
"common.pinWindow": "窗口置顶",
|
"common.pinWindow": "窗口置顶",
|
||||||
"common.enterAdminPassword": "请输入管理员密码",
|
|
||||||
"common.next": "下一步",
|
"common.next": "下一步",
|
||||||
"common.prev": "上一步",
|
"common.prev": "上一步",
|
||||||
"common.done": "完成",
|
"common.done": "完成",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user