feat: integrar credenciais rustdesk aos acessos remotos
This commit is contained in:
parent
4079f67fcb
commit
07d631de40
5 changed files with 243 additions and 5 deletions
|
|
@ -359,8 +359,19 @@ const PHYSICAL_DISK_COLUMN_WIDTHS = [22, 32, 18, 16, 16, 22, 16] as const
|
|||
const NETWORK_HEADERS = ["Hostname", "Interface", "MAC", "IP", "Origem"] as const
|
||||
const NETWORK_COLUMN_WIDTHS = [22, 28, 22, 24, 18] as const
|
||||
|
||||
const REMOTE_ACCESS_HEADERS = ["Hostname", "Provedor", "Identificador", "URL", "Notas", "Última verificação", "Origem", "Metadados"] as const
|
||||
const REMOTE_ACCESS_COLUMN_WIDTHS = [22, 22, 24, 36, 28, 22, 16, 40] as const
|
||||
const REMOTE_ACCESS_HEADERS = [
|
||||
"Hostname",
|
||||
"Provedor",
|
||||
"Identificador",
|
||||
"Usuário",
|
||||
"Senha",
|
||||
"URL",
|
||||
"Notas",
|
||||
"Última verificação",
|
||||
"Origem",
|
||||
"Metadados",
|
||||
] as const
|
||||
const REMOTE_ACCESS_COLUMN_WIDTHS = [22, 22, 24, 24, 20, 32, 28, 22, 16, 36] as const
|
||||
|
||||
const SERVICE_HEADERS = ["Hostname", "Nome", "Exibição", "Status", "Origem"] as const
|
||||
const SERVICE_COLUMN_WIDTHS = [22, 28, 36, 18, 18] as const
|
||||
|
|
@ -756,6 +767,8 @@ function buildRemoteAccessRows(machines: MachineInventoryRecord[]): WorksheetRow
|
|||
machine.hostname,
|
||||
entry.provider ?? "—",
|
||||
entry.identifier ?? "—",
|
||||
entry.username ?? "—",
|
||||
entry.password ?? "—",
|
||||
entry.url ?? "—",
|
||||
entry.notes ?? "—",
|
||||
entry.lastVerifiedAt ? formatDateTime(entry.lastVerifiedAt) ?? "—" : "—",
|
||||
|
|
@ -1229,6 +1242,8 @@ function stringifyMetadata(metadata: Record<string, unknown> | null | undefined)
|
|||
type RemoteAccessNormalized = {
|
||||
provider: string | null
|
||||
identifier: string | null
|
||||
username: string | null
|
||||
password: string | null
|
||||
url: string | null
|
||||
notes: string | null
|
||||
lastVerifiedAt: number | null
|
||||
|
|
@ -1249,6 +1264,8 @@ function normalizeRemoteAccessEntry(
|
|||
return {
|
||||
provider: providerHint ?? null,
|
||||
identifier: isUrl ? null : trimmed,
|
||||
username: null,
|
||||
password: null,
|
||||
url: isUrl ? trimmed : null,
|
||||
notes: null,
|
||||
lastVerifiedAt: null,
|
||||
|
|
@ -1273,6 +1290,19 @@ function normalizeRemoteAccessEntry(
|
|||
ensureString(record["value"]) ??
|
||||
ensureString(record["label"]) ??
|
||||
null
|
||||
const username =
|
||||
ensureString(record["username"]) ??
|
||||
ensureString(record["user"]) ??
|
||||
ensureString(record["login"]) ??
|
||||
ensureString(record["email"]) ??
|
||||
ensureString(record["account"]) ??
|
||||
null
|
||||
const password =
|
||||
ensureString(record["password"]) ??
|
||||
ensureString(record["pass"]) ??
|
||||
ensureString(record["secret"]) ??
|
||||
ensureString(record["pin"]) ??
|
||||
null
|
||||
const url =
|
||||
ensureString(record["url"]) ??
|
||||
ensureString(record["link"]) ??
|
||||
|
|
@ -1296,6 +1326,8 @@ function normalizeRemoteAccessEntry(
|
|||
return {
|
||||
provider,
|
||||
identifier,
|
||||
username,
|
||||
password,
|
||||
url,
|
||||
notes,
|
||||
lastVerifiedAt,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue