mirror of
https://github.com/remnawave/frontend.git
synced 2026-05-13 12:16:40 +00:00
feat: remove unused user fields from dashboard components
This commit is contained in:
parent
0795529293
commit
1871209225
5 changed files with 6 additions and 43 deletions
8
package-lock.json
generated
8
package-lock.json
generated
|
|
@ -35,7 +35,7 @@
|
|||
"@monaco-editor/react": "^4.7.0",
|
||||
"@noble/post-quantum": "^0.5.4",
|
||||
"@paralleldrive/cuid2": "3.3.0",
|
||||
"@remnawave/backend-contract": "2.6.45",
|
||||
"@remnawave/backend-contract": "2.6.46",
|
||||
"@remnawave/node-plugins": "^0.1.3",
|
||||
"@remnawave/subscription-page-types": "0.4.0",
|
||||
"@simplewebauthn/browser": "^13.2.2",
|
||||
|
|
@ -2988,9 +2988,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@remnawave/backend-contract": {
|
||||
"version": "2.6.45",
|
||||
"resolved": "https://registry.npmjs.org/@remnawave/backend-contract/-/backend-contract-2.6.45.tgz",
|
||||
"integrity": "sha512-HCtNaNCCkmzlzUpHF0wk1lOnMFFtHE0KYBhNdsihqSRF/s7mIwIoeJ1UdQ2IaGH2EA+XW7Kvc9jtcnIf5Qdt8g==",
|
||||
"version": "2.6.46",
|
||||
"resolved": "https://registry.npmjs.org/@remnawave/backend-contract/-/backend-contract-2.6.46.tgz",
|
||||
"integrity": "sha512-m852FsvKEbELVG9DMFsVUYVH6jPJ+Z2qreiGjXqL/fzI24ZODPUzaVmdHEHq95iFGTbI/koEBE2SMj9iuI6FUg==",
|
||||
"license": "AGPL-3.0-only",
|
||||
"dependencies": {
|
||||
"zod": "3.25.76"
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
"@monaco-editor/react": "^4.7.0",
|
||||
"@noble/post-quantum": "^0.5.4",
|
||||
"@paralleldrive/cuid2": "3.3.0",
|
||||
"@remnawave/backend-contract": "2.6.45",
|
||||
"@remnawave/backend-contract": "2.6.46",
|
||||
"@remnawave/node-plugins": "^0.1.3",
|
||||
"@remnawave/subscription-page-types": "0.4.0",
|
||||
"@simplewebauthn/browser": "^13.2.2",
|
||||
|
|
|
|||
|
|
@ -16,11 +16,9 @@ const DEFAULT_VISIBILITY: MRT_VisibilityState = {
|
|||
shortUuid: false,
|
||||
createdAt: false,
|
||||
subRevokedAt: false,
|
||||
subLastUserAgent: false,
|
||||
description: false,
|
||||
telegramId: false,
|
||||
email: false,
|
||||
subLastOpenedAt: false,
|
||||
uuid: false,
|
||||
externalSquadUuid: false,
|
||||
vlessUuid: false,
|
||||
|
|
@ -107,7 +105,7 @@ export const useUsersTableStore = create<IActions & IState>()(
|
|||
|
||||
{
|
||||
name: 'x-rmnw-users-table',
|
||||
version: 6,
|
||||
version: 7,
|
||||
storage: createJSONStorage(() => localStorage),
|
||||
partialize: (state) => ({
|
||||
columnVisibility: state.columnVisibility,
|
||||
|
|
|
|||
|
|
@ -322,34 +322,7 @@ export const useUserTableColumns = (
|
|||
align: 'center'
|
||||
}
|
||||
},
|
||||
{
|
||||
accessorKey: 'subLastUserAgent',
|
||||
header: t('use-table-columns.last-ua'),
|
||||
accessorFn: (originalRow) => originalRow.subLastUserAgent || '–',
|
||||
minSize: 250,
|
||||
size: 400,
|
||||
mantineTableBodyCellProps: {
|
||||
align: 'center'
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
accessorKey: 'subLastOpenedAt',
|
||||
header: t('use-table-columns.sub-last-opened-at'),
|
||||
accessorFn: (originalRow) =>
|
||||
originalRow.subLastOpenedAt
|
||||
? dayjs(originalRow.subLastOpenedAt).format('DD/MM/YYYY, HH:mm')
|
||||
: '–',
|
||||
minSize: 250,
|
||||
size: 400,
|
||||
|
||||
enableColumnFilterModes: false,
|
||||
enableColumnFilter: false,
|
||||
|
||||
mantineTableBodyCellProps: {
|
||||
align: 'center'
|
||||
}
|
||||
},
|
||||
{
|
||||
accessorKey: 'userTraffic.lifetimeUsedTrafficBytes',
|
||||
header: t('use-table-columns.lifetime-used'),
|
||||
|
|
|
|||
|
|
@ -231,14 +231,6 @@ export const DetailedUserInfoDrawerWidget = () => {
|
|||
value={formatDate(user.expireAt)}
|
||||
/>
|
||||
|
||||
<CopyableFieldShared
|
||||
label={t('detailed-user-info-drawer.widget.last-opened-at')}
|
||||
value={formatDate(user.subLastOpenedAt)}
|
||||
/>
|
||||
<CopyableFieldShared
|
||||
label={t('detailed-user-info-drawer.widget.last-user-agent')}
|
||||
value={user.subLastUserAgent || '—'}
|
||||
/>
|
||||
<CopyableFieldShared
|
||||
label={t('detailed-user-info-drawer.widget.revoked-at')}
|
||||
value={formatDate(user.subRevokedAt)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue