feat(device): Modify IMEI to device identifier support

This commit is contained in:
web@ppanel
2025-02-13 22:28:45 +07:00
parent 4e7d249902
commit e3f9ef6ebe
99 changed files with 201 additions and 125 deletions
@@ -45,7 +45,7 @@ export default function NotifySettings() {
}
return (
<Card>
<Card className='min-w-60'>
<CardHeader className='bg-muted/50'>
<CardTitle className='flex items-center justify-between'>
{t('notify.notificationSettings')}
+1 -1
View File
@@ -4,7 +4,7 @@ import ThirdPartyAccounts from './third-party-accounts';
export default function Page() {
return (
<div className='flex flex-col gap-3 lg:flex-row lg:flex-wrap lg:*:flex-auto'>
<div className='flex flex-col gap-4 lg:flex-row lg:flex-wrap lg:*:flex-auto'>
<ThirdPartyAccounts />
<NotifySettings />
<ChangePassword />
@@ -193,7 +193,14 @@ export default function ThirdPartyAccounts() {
name: 'GitHub',
type: 'OAuth',
},
].filter((account) => oauth_methods?.includes(account.id));
{
id: 'device',
icon: 'mdi:devices',
name: 'Device',
type: 'OAuth',
},
];
// .filter((account) => oauth_methods?.includes(account.id));
const [editValues, setEditValues] = useState<Record<string, any>>({});
+1 -1
View File
@@ -42,7 +42,7 @@ export default function Page() {
].filter((method) => method.enabled);
const OAUTH_METHODS = oauth_methods?.filter(
(method) => !['mobile', 'email', 'imei'].includes(method),
(method) => !['mobile', 'email', 'device'].includes(method),
);
return (
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Úspěšně připojeno",
"change": "Změnit",
"confirm": "Potvrdit",
"device": {
"description": "Přihlásit se pomocí ID zařízení"
},
"email": {
"description": "Propojte svou e-mailovou adresu",
"invalid": "Zadejte platnou e-mailovou adresu",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Erfolgreich verbunden",
"change": "Ändern",
"confirm": "Bestätigen",
"device": {
"description": "Mit Geräte-ID anmelden"
},
"email": {
"description": "Verknüpfen Sie Ihre E-Mail-Adresse",
"invalid": "Bitte geben Sie eine gültige E-Mail-Adresse ein",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Successfully connected",
"change": "Change",
"confirm": "Confirm",
"device": {
"description": "Sign in with Device ID"
},
"email": {
"description": "Link your email address",
"invalid": "Please enter a valid email address",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Conectado con éxito",
"change": "Cambiar",
"confirm": "Confirmar",
"device": {
"description": "Iniciar sesión con ID de dispositivo"
},
"email": {
"description": "Vincula tu dirección de correo electrónico",
"invalid": "Por favor, introduce una dirección de correo electrónico válida",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Conectado con éxito",
"change": "Cambiar",
"confirm": "Confirmar",
"device": {
"description": "Iniciar sesión con el ID del dispositivo"
},
"email": {
"description": "Vincula tu dirección de correo electrónico",
"invalid": "Por favor, ingresa una dirección de correo electrónico válida",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "اتصال با موفقیت انجام شد",
"change": "تغییر",
"confirm": "تأیید",
"device": {
"description": "با شناسه دستگاه وارد شوید"
},
"email": {
"description": "ایمیل خود را لینک کنید",
"invalid": "لطفاً یک آدرس ایمیل معتبر وارد کنید",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Yhteys onnistui",
"change": "Vaihda",
"confirm": "Vahvista",
"device": {
"description": "Kirjaudu sisään laite-ID:llä"
},
"email": {
"description": "Linkitä sähköpostiosoitteesi",
"invalid": "Ole hyvä ja syötä voimassa oleva sähköpostiosoite",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Connecté avec succès",
"change": "Changer",
"confirm": "Confirmer",
"device": {
"description": "Se connecter avec l'ID de l'appareil"
},
"email": {
"description": "Liez votre adresse email",
"invalid": "Veuillez entrer une adresse email valide",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "सफलता से कनेक्ट किया गया",
"change": "बदलें",
"confirm": "पुष्टि करें",
"device": {
"description": "डिवाइस आईडी के साथ साइन इन करें"
},
"email": {
"description": "अपने ईमेल पते को लिंक करें",
"invalid": "कृपया एक मान्य ईमेल पता दर्ज करें",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Sikeresen csatlakozott",
"change": "Változtatás",
"confirm": "Megerősítés",
"device": {
"description": "Bejelentkezés Eszközazonosítóval"
},
"email": {
"description": "Kapcsold össze az email címed",
"invalid": "Kérlek, adj meg egy érvényes email címet",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "接続に成功しました",
"change": "変更",
"confirm": "確認",
"device": {
"description": "デバイスIDでサインイン"
},
"email": {
"description": "メールアドレスをリンクする",
"invalid": "有効なメールアドレスを入力してください",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "연결 성공",
"change": "변경",
"confirm": "확인",
"device": {
"description": "장치 ID로 로그인"
},
"email": {
"description": "이메일 주소를 연결하세요",
"invalid": "유효한 이메일 주소를 입력하세요",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Koblet til med suksess",
"change": "Endre",
"confirm": "Bekreft",
"device": {
"description": "Logg inn med enhets-ID"
},
"email": {
"description": "Koble e-postadressen din",
"invalid": "Vennligst skriv inn en gyldig e-postadresse",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Pomyślnie połączono",
"change": "Zmień",
"confirm": "Potwierdź",
"device": {
"description": "Zaloguj się za pomocą identyfikatora urządzenia"
},
"email": {
"description": "Połącz swój adres e-mail",
"invalid": "Proszę wprowadzić prawidłowy adres e-mail",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Conectado com sucesso",
"change": "Alterar",
"confirm": "Confirmar",
"device": {
"description": "Entrar com o ID do Dispositivo"
},
"email": {
"description": "Vincule seu endereço de email",
"invalid": "Por favor, insira um endereço de email válido",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Conectare reușită",
"change": "Schimbă",
"confirm": "Confirmă",
"device": {
"description": "Conectează-te cu ID-ul dispozitivului"
},
"email": {
"description": "Leagă adresa ta de email",
"invalid": "Te rugăm să introduci o adresă de email validă",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Успешно подключено",
"change": "Изменить",
"confirm": "Подтвердить",
"device": {
"description": "Войдите с помощью идентификатора устройства"
},
"email": {
"description": "Привязать ваш адрес электронной почты",
"invalid": "Пожалуйста, введите действительный адрес электронной почты",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "เชื่อมต่อสำเร็จ",
"change": "เปลี่ยนแปลง",
"confirm": "ยืนยัน",
"device": {
"description": "ลงชื่อเข้าใช้ด้วย Device ID"
},
"email": {
"description": "เชื่อมโยงที่อยู่อีเมลของคุณ",
"invalid": "กรุณากรอกที่อยู่อีเมลที่ถูกต้อง",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Bağlantı başarıyla kuruldu",
"change": "Değiştir",
"confirm": "Onayla",
"device": {
"description": "Cihaz Kimliği ile Giriş Yap"
},
"email": {
"description": "E-posta adresinizi bağlayın",
"invalid": "Lütfen geçerli bir e-posta adresi girin",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Успішно підключено",
"change": "Змінити",
"confirm": "Підтвердити",
"device": {
"description": "Увійдіть за допомогою ID пристрою"
},
"email": {
"description": "Прив'яжіть вашу електронну адресу",
"invalid": "Будь ласка, введіть дійсну електронну адресу",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "Kết nối thành công",
"change": "Thay Đổi",
"confirm": "Xác nhận",
"device": {
"description": "Đăng nhập bằng ID thiết bị"
},
"email": {
"description": "Liên kết địa chỉ email của bạn",
"invalid": "Vui lòng nhập một địa chỉ email hợp lệ",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "绑定成功",
"change": "更改",
"confirm": "确认",
"device": {
"description": "使用设备 ID 登录"
},
"email": {
"description": "绑定邮箱地址",
"invalid": "请输入有效的邮箱地址",
+3
View File
@@ -33,6 +33,9 @@
"bindSuccess": "成功連接",
"change": "更改",
"confirm": "確認",
"device": {
"description": "使用設備 ID 登入"
},
"email": {
"description": "綁定您的電子郵件地址",
"invalid": "請輸入有效的電子郵件地址",