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 (