@attraccess/plugin-matter 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +14 -0
- package/dist/index.js +9460 -4069
- package/frontend/{__federation_expose_Plugin-AcefbZx2.js → __federation_expose_Plugin-BhusgEmE.js} +285 -241
- package/frontend/__federation_fn_import-BHGw2mzr.js +1 -0
- package/frontend/{_virtual___federation_fn_import-BXODRNto.js → _virtual___federation_fn_import-D2E5es2p.js} +2 -4
- package/frontend/remoteEntry.js +3 -71
- package/frontend/style.css +2 -49
- package/package.json +14 -12
- package/dist/migrations.js +0 -328
- package/frontend/__federation_fn_import-DAGm_xmC.js +0 -2
package/frontend/{__federation_expose_Plugin-AcefbZx2.js → __federation_expose_Plugin-BhusgEmE.js}
RENAMED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import { r as importShared } from "./_virtual___federation_fn_import-
|
|
2
|
-
|
|
3
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
1
|
+
import { r as importShared } from "./_virtual___federation_fn_import-D2E5es2p.js";
|
|
2
|
+
// \0rolldown/runtime.js
|
|
3
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
4
|
+
// backend/permission-keys.ts
|
|
5
|
+
var MATTER_DEVICES_READ = "matter.devices.read";
|
|
6
|
+
/** Any of these opens the Matter page. */
|
|
7
|
+
var MATTER_PAGE_PERMISSIONS = [MATTER_DEVICES_READ, "thread.network.read"];
|
|
4
8
|
var en_default = {
|
|
5
9
|
page: {
|
|
6
10
|
"title": "Matter",
|
|
7
11
|
"subtitle": "Connection to the Matter sidecar.",
|
|
8
12
|
"insecure": "Insecure connection",
|
|
9
|
-
"insecureText": "The sidecar is reached over plain http on a non-loopback address. The token travels unencrypted. Use https, or keep the sidecar on the same host."
|
|
13
|
+
"insecureText": "The sidecar is reached over plain http on a non-loopback address. The token travels unencrypted. Use https, or keep the sidecar on the same host.",
|
|
14
|
+
"insecureTextReadOnly": "The sidecar is reached over plain http on a non-loopback address. The token travels unencrypted. Ask an administrator to check the connection settings.",
|
|
15
|
+
"noDeviceAccess": "Matter devices are hidden",
|
|
16
|
+
"noDeviceAccessText": "Your permissions do not include viewing Matter devices. Ask an administrator for \"View Matter devices\" to see the connection, fabric and backup status."
|
|
10
17
|
},
|
|
11
18
|
status: {
|
|
12
19
|
"title": "Connection status",
|
|
@@ -36,13 +43,19 @@ var en_default = {
|
|
|
36
43
|
},
|
|
37
44
|
hint: {
|
|
38
45
|
"not_configured": "Enter the sidecar URL and token below to connect.",
|
|
46
|
+
"not_configuredReadOnly": "The Matter sidecar is not set up yet. An administrator needs to connect it.",
|
|
39
47
|
"connecting": "Connecting to the Matter sidecar…",
|
|
40
48
|
"connected": "The plugin is connected to the Matter sidecar.",
|
|
41
49
|
"unavailable": "The sidecar cannot be reached. Check that it is running and that the URL, port and firewall are correct. Attraccess retries automatically.",
|
|
50
|
+
"unavailableReadOnly": "The sidecar cannot be reached. Attraccess retries automatically. If this persists, ask an administrator to check the sidecar and the connection settings.",
|
|
42
51
|
"unauthorized": "The sidecar rejected the token. Check the token (also after a rotation) and enter it again.",
|
|
52
|
+
"unauthorizedReadOnly": "The sidecar rejected the token. An administrator needs to enter a valid token.",
|
|
43
53
|
"incompatible": "The versions do not match. Upgrade or downgrade Attraccess, the Matter plugin or the sidecar to the supported combination shown below.",
|
|
54
|
+
"incompatibleReadOnly": "The versions do not match the supported combination shown below. Ask an administrator to upgrade or downgrade Attraccess, the Matter plugin or the sidecar.",
|
|
44
55
|
"misconfigured": "The URL, the CA certificate or the TLS setup is invalid. Check the URL and path prefix, and that the CA matches the sidecar certificate.",
|
|
45
|
-
"
|
|
56
|
+
"misconfiguredReadOnly": "The URL, the CA certificate or the TLS setup is invalid. Ask an administrator to check the connection settings.",
|
|
57
|
+
"hostVersion": "This Attraccess version does not report its version. Upgrade Attraccess to {{attraccess}} or newer.",
|
|
58
|
+
"hostVersionReadOnly": "This Attraccess version does not report its version. Ask an administrator to upgrade Attraccess to {{attraccess}} or newer."
|
|
46
59
|
},
|
|
47
60
|
form: {
|
|
48
61
|
"title": "Connection settings",
|
|
@@ -51,6 +64,7 @@ var en_default = {
|
|
|
51
64
|
"urlDescription": "Use https for anything but the same host. A path prefix for a reverse proxy is allowed.",
|
|
52
65
|
"credential": "Token",
|
|
53
66
|
"credentialDescription": "The shared service token configured on the sidecar. It is never shown again after saving.",
|
|
67
|
+
"credentialReenter": "You changed the URL or the CA certificate, so enter the token again. A stored token is only sent to the endpoint it was entered for.",
|
|
54
68
|
"credentialConfigured": "Configured (last changed {{time}})",
|
|
55
69
|
"replace": "Replace",
|
|
56
70
|
"cancelReplace": "Keep current token",
|
|
@@ -69,14 +83,17 @@ var en_default = {
|
|
|
69
83
|
"removeError": "Removing failed",
|
|
70
84
|
"loadError": "The connection settings could not be loaded."
|
|
71
85
|
},
|
|
72
|
-
fabric: /* @__PURE__ */ JSON.parse("{\"title\":\"Fabric & backup\",\"statusTitle\":\"Fabric\",\"loadError\":\"The fabric status could not be loaded.\",\"none\":\"-\",\"cancel\":\"Cancel\",\"close\":\"Close\",\"reason\":\"Reason\",\"loading\":\"Loading the fabric status\",\"error\":{\"key_required\":\"This backup was encrypted with a different recovery key. Enter that recovery key.\",\"wrong_key\":\"The recovery key is wrong. Check it and try again.\",\"corrupt\":\"The backup is corrupt or has been modified and cannot be used.\",\"truncated\":\"The backup is incomplete, probably because the file was cut off. Download it again.\",\"incompatible_format\":\"This file is not a backup in a supported format.\",\"incompatible_schema\":\"The backup uses a storage schema version that this installation cannot restore.\",\"incompatible_migration\":\"The backup was made with a different plugin database version. Install the plugin version that created it.\",\"incompatible_version\":\"The plugin version must match the version that created the backup. Install that version first.\",\"stage_failed\":\"The sidecar could not prepare the backup. Your installation was left unchanged.\",\"fabric_exists\":\"The sidecar already has a fabric.\",\"recovery_required\":\"The fabric needs recovery first. Restore a backup, accept the sidecar's fabric or start a new fabric.\",\"recovery_not_required\":\"The fabric does not need recovery any more.\",\"busy\":\"The Matter sidecar is busy with another backup or restore. Try again shortly.\",\"sidecar_unavailable\":\"The sidecar cannot be reached. Try again when it is connected.\",\"sidecar_error\":\"The Matter sidecar refused the request.\",\"sidecar_not_empty\":\"A new fabric can only be started while the sidecar has no fabric.\",\"sidecar_not_initialized\":\"The sidecar has no healthy fabric to accept.\",\"insecure_transport\":\"The connection to the sidecar is plain HTTP to another machine. Backups and restores carry fabric secrets, so they need https or a sidecar on this machine.\",\"recovery_key_exists\":\"A recovery key already exists.\",\"recovery_key_mismatch\":\"That is no longer the current recovery key. Reload the page.\",\"no_recovery_key\":\"There is no recovery key yet. Generate one first.\",\"not_found\":\"This backup no longer exists.\",\"file_unreadable\":\"The file could not be read. Choose it again.\",\"validation_expired\":\"This check has expired. Validate the backup again.\",\"preflight_changed\":\"The sidecar changed since the backup was checked. Validate the backup again.\",\"confirmation_required\":\"Type the fabric ID to confirm.\",\"pre_restore_backup_failed\":\"The backup of the current fabric failed, so nothing was restored. Your installation was left unchanged.\",\"restore_failed\":\"The Matter sidecar could not apply or verify the backup. Your installation was left unchanged.\",\"rolled_back\":\"The restore failed and was rolled back. Your installation was left unchanged.\",\"rollback_failed\":\"The restore failed and the Matter sidecar could not be rolled back automatically, so its state is unknown. Check the sidecar, then restore the backup again.\",\"http\":\"The request failed (HTTP {{status}}).\"},\"blocked\":{\"unreachable\":\"The sidecar is not reachable.\",\"recovery\":\"Not available while the fabric needs recovery.\",\"noFabric\":\"There is no fabric to back up yet.\",\"noKey\":\"Generate a recovery key first.\",\"insecure\":\"Needs https or a sidecar on this machine: the connection is plain HTTP to another machine.\"},\"state\":{\"initialized\":\"Initialized\",\"uninitialized\":\"No fabric yet\",\"recovery_required\":\"Recovery required\",\"unknown\":\"Unknown\"},\"unreachable\":\"Sidecar not reachable\",\"unreachableText\":\"The fabric state is unknown until the plugin is connected to the sidecar.\",\"recoveryRequired\":\"The fabric does not match this installation\",\"recorded\":\"What Attraccess recorded\",\"storageReason\":{\"storage_unreadable\":\"The sidecar cannot read its storage.\",\"storage_corrupt\":\"The sidecar's storage is damaged.\",\"storage_incomplete\":\"The sidecar's storage is incomplete.\",\"schema_mismatch\":\"The sidecar's storage has a different schema version.\",\"metadata_missing\":\"The sidecar's storage metadata is missing.\",\"metadata_orphaned\":\"The sidecar's storage metadata has no fabric data.\",\"restore_interrupted\":\"A restore was interrupted. The previous storage was kept; restore a backup.\"},\"mismatch\":{\"unknown\":\"The sidecar's fabric differs from what Attraccess recorded.\",\"sidecar_uninitialized\":\"Attraccess knows a fabric, but the sidecar has none. Its storage was probably lost or replaced.\",\"fabric_changed\":\"The sidecar runs a different fabric than the one Attraccess recorded.\",\"generation_behind\":\"The sidecar's fabric is older than what Attraccess recorded. Its storage was probably restored from an old copy.\",\"generation_ahead\":\"The sidecar's fabric is newer than what Attraccess recorded. The sidecar changed without Attraccess.\",\"storage_instance_changed\":\"The sidecar's storage is a different instance than the one Attraccess recorded.\",\"sidecar_recovery_required\":\"The sidecar reports that it needs recovery.\"},\"uninitializedText\":\"The sidecar has no fabric yet. Create it to start commissioning devices.\",\"create\":\"Create fabric\",\"createHint\":\"Creates the Matter fabric on the sidecar, a recovery key and the first backup.\",\"restoreInstead\":\"Do you already have a backup of a Matter fabric, for example after reinstalling? Restore it instead of creating a new fabric, so devices stay controllable.\",\"createError\":\"The fabric could not be created\",\"fabricId\":\"Fabric ID\",\"generationLabel\":\"Fabric generation\",\"generation\":\"generation {{generation}}\",\"fingerprint\":\"Root certificate fingerprint\",\"fingerprintShowFull\":\"Show full fingerprint\",\"fingerprintShowShort\":\"Shorten fingerprint\",\"storageInstance\":\"Storage instance\",\"trigger\":{\"manual\":\"Manual\",\"fabric_created\":\"Fabric created\",\"restore\":\"After restore\",\"daily\":\"Daily\",\"fabric_changed\":\"Fabric changed\",\"pre_restore\":\"Before restore\"},\"key\":{\"cardTitle\":\"Recovery key\",\"title\":\"Your recovery key\",\"warningTitle\":\"Shown only once\",\"warning\":\"This key decrypts your backups. Without it, a backup cannot be restored. Attraccess cannot show it again. Store it somewhere safe, apart from the backups.\",\"keyId\":\"Key ID\",\"created\":\"Created\",\"copy\":\"Copy\",\"copied\":\"Copied\",\"copyFailed\":\"Copying failed. Select the key and copy it manually.\",\"download\":\"Download as .txt\",\"fileHeader\":\"Attraccess Matter recovery key. Keep it secret and safe.\",\"acknowledge\":\"I have stored the recovery key in a safe place.\",\"done\":\"Done\",\"missing\":\"No recovery key\",\"missingText\":\"Backups are encrypted with a recovery key. Generate one to enable backups.\",\"generate\":\"Generate recovery key\",\"generateError\":\"The recovery key could not be generated\",\"unacknowledged\":\"Recovery key not confirmed\",\"unacknowledgedText\":\"A recovery key was generated, but you did not confirm that you stored it. It cannot be shown again. Rotate it to get a new one.\",\"rotate\":\"Rotate recovery key\",\"rotateTitle\":\"Rotate the recovery key?\",\"rotateText\":\"A new key encrypts future backups. Existing backups still need the old key, so keep it until they are replaced. The new key is shown once.\",\"rotateConfirm\":\"Rotate\",\"rotateError\":\"The recovery key could not be rotated\"},\"backups\":{\"title\":\"Backups\",\"lastSuccessful\":\"Last successful backup\",\"never\":\"Never\",\"lastAttempt\":\"Last attempt\",\"nextRun\":\"Next scheduled run\",\"outcome\":{\"succeeded\":\"succeeded\",\"failed\":\"failed\"},\"failed\":\"The last backup failed\",\"reason\":{\"inconsistent\":\"The sidecar and the plugin disagree about the fabric, so no consistent backup can be made.\",\"sidecar_unavailable\":\"The Matter sidecar could not be reached.\",\"sidecar_busy\":\"The Matter sidecar is busy with another backup or restore. Try again shortly.\",\"insecure_transport\":\"Backups are refused over a plain HTTP connection to a remote sidecar. Use https or a local connection.\",\"no_recovery_key\":\"There is no recovery key yet.\",\"recovery_key_unreadable\":\"The stored recovery key cannot be read by this installation.\",\"recovery_required\":\"The fabric needs recovery first. No backup is made in this state.\",\"no_fabric\":\"There is no fabric to back up.\",\"sidecar_error\":\"The Matter sidecar could not produce a snapshot.\",\"internal\":\"The backup failed because of an internal error.\"},\"noReason\":\"No reason was reported.\",\"now\":\"Back up now\",\"error\":\"The backup failed\",\"empty\":\"No backups stored yet.\",\"stored\":\"Stored backups\",\"download\":\"Download\",\"downloadError\":\"The backup could not be downloaded\",\"retention\":\"The latest {{count}} backups are kept. Backup files are encrypted and need the recovery key to restore.\",\"inconsistentMark\":\"taken during recovery\"},\"restore\":{\"open\":\"Restore from backup\",\"title\":\"Restore from backup\",\"intro\":\"Validate a backup first. Nothing changes until you confirm.\",\"source\":\"Backup source\",\"fromStored\":\"Stored backup\",\"fromUpload\":\"Upload a file\",\"file\":\"Backup file (.attraccess-matter-backup)\",\"recoveryKey\":\"Recovery key\",\"recoveryKeyHint\":\"The key this backup was encrypted with.\",\"validate\":\"Validate\",\"validationFailed\":\"The backup cannot be restored\",\"error\":{\"empty\":\"The file is empty. Choose the backup file you downloaded.\",\"tooLarge\":\"The file is too large to upload here (at most 7 MB). Restore from a stored backup instead.\"},\"kind\":{\"plain\":\"Restore\",\"rollback\":\"Roll back to an earlier state\",\"replacement\":\"Replaces the current fabric\"},\"backupCreated\":\"Backup created\",\"pluginVersion\":\"Plugin version\",\"sidecarVersion\":\"Sidecar version\",\"backupFabric\":\"Backup fabric ID\",\"currentFabric\":\"Current fabric ID\",\"previewHint\":\"The backup is valid. Restoring replaces the fabric and the plugin's Matter data with the backup.\",\"previewHintBackup\":\"A backup of the current state is taken first.\",\"overwriteTitle\":\"This overwrites a working fabric\",\"overwriteText\":\"The sidecar currently runs a healthy fabric. Restoring replaces it. Devices commissioned after the backup was made will be lost and must be commissioned again.\",\"typeFabricId\":\"Type the current fabric ID {{fabricId}} to confirm\",\"confirm\":\"Restore now\",\"running\":\"Restoring. Do not close this page.\",\"successTitle\":\"Restore completed\",\"successText\":\"The fabric and the plugin data were restored and verified.\",\"failedTitle\":\"The restore failed\",\"fromStoredHint\":\"One of the backups this installation keeps.\",\"fromUploadHint\":\"A backup file you downloaded, for example after reinstalling.\",\"retryTitle\":\"Validate the backup again\",\"rollbackFailedTitle\":\"The restore failed and could not be rolled back\",\"inconsistentTitle\":\"This backup was taken during recovery\",\"inconsistentText\":\"When it was taken, the plugin's data and the sidecar's fabric did not match. Restoring it brings that mismatch back, and you will have to settle the recovery again afterwards.\"},\"recovery\":{\"title\":\"Recovery\",\"blocked\":\"Fabric changes are blocked\",\"blockedText\":\"Until you choose how to recover, creating a fabric and other fabric changes are blocked. Nothing is changed automatically.\",\"restoreTitle\":\"Restore from a backup\",\"restoreText\":\"Bring back the fabric and data from a stored or uploaded backup.\",\"restoreAction\":\"Restore from backup\",\"acceptTitle\":\"Use the sidecar's current fabric\",\"acceptText\":\"Treat the fabric the sidecar runs now as the correct one.\",\"acceptUnavailable\":\"Only available while the sidecar runs a healthy fabric.\",\"acceptAction\":\"Accept sidecar's fabric\",\"acceptConfirmTitle\":\"Accept the sidecar's fabric?\",\"acceptConfirmText\":\"Attraccess will treat the sidecar's current fabric as authoritative and forget what it recorded before. Devices tied to the old fabric are no longer controllable.\",\"acceptConfirm\":\"Accept\",\"newTitle\":\"Start a new fabric\",\"newText\":\"Create a new, empty fabric.\",\"newUnavailable\":\"Only available while the sidecar has no fabric.\",\"newAction\":\"Start new fabric\",\"newConfirmTitle\":\"Start a new fabric?\",\"newConfirmText\":\"Every device commissioned before must be factory-reset and commissioned again, because it belongs to the old fabric. This cannot be undone.\",\"newConfirm\":\"Start new fabric\",\"error\":\"The recovery action failed\"}}")
|
|
86
|
+
fabric: /* @__PURE__ */ JSON.parse("{\"title\":\"Fabric & backup\",\"statusTitle\":\"Fabric\",\"loadError\":\"The fabric status could not be loaded.\",\"none\":\"-\",\"cancel\":\"Cancel\",\"close\":\"Close\",\"reason\":\"Reason\",\"loading\":\"Loading the fabric status\",\"error\":{\"key_required\":\"This backup was encrypted with a different recovery key. Enter that recovery key.\",\"wrong_key\":\"The recovery key is wrong. Check it and try again.\",\"corrupt\":\"The backup is corrupt or has been modified and cannot be used.\",\"truncated\":\"The backup is incomplete, probably because the file was cut off. Download it again.\",\"incompatible_format\":\"This file is not a backup in a supported format.\",\"incompatible_schema\":\"The backup uses a storage schema version that this installation cannot restore.\",\"incompatible_migration\":\"The backup was made with a different plugin database version. Install the plugin version that created it.\",\"incompatible_version\":\"The plugin version must match the version that created the backup. Install that version first.\",\"stage_failed\":\"The sidecar could not prepare the backup. Your installation was left unchanged.\",\"fabric_exists\":\"The sidecar already has a fabric.\",\"recovery_required\":\"The fabric needs recovery first. Restore a backup, accept the sidecar's fabric or start a new fabric.\",\"recovery_not_required\":\"The fabric does not need recovery any more.\",\"busy\":\"The Matter sidecar is busy with another backup or restore. Try again shortly.\",\"sidecar_unavailable\":\"The sidecar cannot be reached. Try again when it is connected.\",\"sidecar_error\":\"The Matter sidecar refused the request.\",\"sidecar_not_empty\":\"A new fabric can only be started while the sidecar has no fabric.\",\"sidecar_not_initialized\":\"The sidecar has no healthy fabric to accept.\",\"insecure_transport\":\"The connection to the sidecar is plain HTTP to another machine. Backups and restores carry fabric secrets, so they need https or a sidecar on this machine.\",\"recovery_key_exists\":\"A recovery key already exists.\",\"recovery_key_mismatch\":\"That is no longer the current recovery key. Reload the page.\",\"no_recovery_key\":\"There is no recovery key yet. Generate one first.\",\"not_found\":\"This backup no longer exists.\",\"file_unreadable\":\"The file could not be read. Choose it again.\",\"validation_expired\":\"This check has expired. Validate the backup again.\",\"preflight_changed\":\"The sidecar changed since the backup was checked. Validate the backup again.\",\"confirmation_required\":\"Type the fabric ID to confirm.\",\"pre_restore_backup_failed\":\"The backup of the current fabric failed, so nothing was restored. Your installation was left unchanged.\",\"restore_failed\":\"The Matter sidecar could not apply or verify the backup. Your installation was left unchanged.\",\"rolled_back\":\"The restore failed and was rolled back. Your installation was left unchanged.\",\"rollback_failed\":\"The restore failed and the Matter sidecar could not be rolled back automatically, so its state is unknown. Check the sidecar, then restore the backup again.\",\"http\":\"The request failed (HTTP {{status}}).\"},\"blocked\":{\"unreachable\":\"The sidecar is not reachable.\",\"recovery\":\"Not available while the fabric needs recovery.\",\"noFabric\":\"There is no fabric to back up yet.\",\"noKey\":\"Generate a recovery key first.\",\"insecure\":\"Needs https or a sidecar on this machine: the connection is plain HTTP to another machine.\"},\"state\":{\"initialized\":\"Initialized\",\"uninitialized\":\"No fabric yet\",\"recovery_required\":\"Recovery required\",\"unknown\":\"Unknown\"},\"unreachable\":\"Sidecar not reachable\",\"unreachableText\":\"The fabric state is unknown until the plugin is connected to the sidecar.\",\"recoveryRequired\":\"The fabric does not match this installation\",\"recorded\":\"What Attraccess recorded\",\"storageReason\":{\"storage_unreadable\":\"The sidecar cannot read its storage.\",\"storage_corrupt\":\"The sidecar's storage is damaged.\",\"storage_incomplete\":\"The sidecar's storage is incomplete.\",\"schema_mismatch\":\"The sidecar's storage has a different schema version.\",\"metadata_missing\":\"The sidecar's storage metadata is missing.\",\"metadata_orphaned\":\"The sidecar's storage metadata has no fabric data.\",\"restore_interrupted\":\"A restore was interrupted. The previous storage was kept; restore a backup.\"},\"mismatch\":{\"unknown\":\"The sidecar's fabric differs from what Attraccess recorded.\",\"sidecar_uninitialized\":\"Attraccess knows a fabric, but the sidecar has none. Its storage was probably lost or replaced.\",\"fabric_changed\":\"The sidecar runs a different fabric than the one Attraccess recorded.\",\"generation_behind\":\"The sidecar's fabric is older than what Attraccess recorded. Its storage was probably restored from an old copy.\",\"generation_ahead\":\"The sidecar's fabric is newer than what Attraccess recorded. The sidecar changed without Attraccess.\",\"storage_instance_changed\":\"The sidecar's storage is a different instance than the one Attraccess recorded.\",\"sidecar_recovery_required\":\"The sidecar reports that it needs recovery.\"},\"uninitializedText\":\"The sidecar has no fabric yet. Create it to start commissioning devices.\",\"uninitializedTextReadOnly\":\"The sidecar has no fabric yet. An administrator needs to create it before devices can be commissioned.\",\"create\":\"Create fabric\",\"createHint\":\"Creates the Matter fabric on the sidecar, a recovery key and the first backup.\",\"restoreInstead\":\"Do you already have a backup of a Matter fabric, for example after reinstalling? Restore it instead of creating a new fabric, so devices stay controllable.\",\"createError\":\"The fabric could not be created\",\"fabricId\":\"Fabric ID\",\"generationLabel\":\"Fabric generation\",\"generation\":\"generation {{generation}}\",\"fingerprint\":\"Root certificate fingerprint\",\"fingerprintShowFull\":\"Show full fingerprint\",\"fingerprintShowShort\":\"Shorten fingerprint\",\"storageInstance\":\"Storage instance\",\"trigger\":{\"manual\":\"Manual\",\"fabric_created\":\"Fabric created\",\"restore\":\"After restore\",\"daily\":\"Daily\",\"fabric_changed\":\"Fabric changed\",\"pre_restore\":\"Before restore\"},\"key\":{\"cardTitle\":\"Recovery key\",\"title\":\"Your recovery key\",\"warningTitle\":\"Shown only once\",\"warning\":\"This key decrypts your backups. Without it, a backup cannot be restored. Attraccess cannot show it again. Store it somewhere safe, apart from the backups.\",\"keyId\":\"Key ID\",\"created\":\"Created\",\"copy\":\"Copy\",\"copied\":\"Copied\",\"copyFailed\":\"Copying failed. Select the key and copy it manually.\",\"download\":\"Download as .txt\",\"fileHeader\":\"Attraccess Matter recovery key. Keep it secret and safe.\",\"acknowledge\":\"I have stored the recovery key in a safe place.\",\"done\":\"Done\",\"missing\":\"No recovery key\",\"missingText\":\"Backups are encrypted with a recovery key. Generate one to enable backups.\",\"missingTextReadOnly\":\"Backups are encrypted with a recovery key. Until an administrator generates one, no backups are made.\",\"generate\":\"Generate recovery key\",\"generateError\":\"The recovery key could not be generated\",\"unacknowledged\":\"Recovery key not confirmed\",\"unacknowledgedText\":\"A recovery key was generated, but you did not confirm that you stored it. It cannot be shown again. Rotate it to get a new one.\",\"unacknowledgedTextReadOnly\":\"A recovery key was generated, but nobody confirmed that it was stored. An administrator needs to rotate it.\",\"rotate\":\"Rotate recovery key\",\"rotateTitle\":\"Rotate the recovery key?\",\"rotateText\":\"A new key encrypts future backups. Existing backups still need the old key, so keep it until they are replaced. The new key is shown once.\",\"rotateConfirm\":\"Rotate\",\"rotateError\":\"The recovery key could not be rotated\"},\"backups\":{\"title\":\"Backups\",\"lastSuccessful\":\"Last successful backup\",\"never\":\"Never\",\"lastAttempt\":\"Last attempt\",\"nextRun\":\"Next scheduled run\",\"outcome\":{\"succeeded\":\"succeeded\",\"failed\":\"failed\"},\"failed\":\"The last backup failed\",\"reason\":{\"inconsistent\":\"The sidecar and the plugin disagree about the fabric, so no consistent backup can be made.\",\"sidecar_unavailable\":\"The Matter sidecar could not be reached.\",\"sidecar_busy\":\"The Matter sidecar is busy with another backup or restore. Try again shortly.\",\"insecure_transport\":\"Backups are refused over a plain HTTP connection to a remote sidecar. Use https or a local connection.\",\"no_recovery_key\":\"There is no recovery key yet.\",\"recovery_key_unreadable\":\"The stored recovery key cannot be read by this installation.\",\"recovery_required\":\"The fabric needs recovery first. No backup is made in this state.\",\"no_fabric\":\"There is no fabric to back up.\",\"sidecar_error\":\"The Matter sidecar could not produce a snapshot.\",\"internal\":\"The backup failed because of an internal error.\"},\"noReason\":\"No reason was reported.\",\"now\":\"Back up now\",\"error\":\"The backup failed\",\"empty\":\"No backups stored yet.\",\"stored\":\"Stored backups\",\"download\":\"Download\",\"downloadError\":\"The backup could not be downloaded\",\"retention\":\"The latest {{count}} backups are kept. Backup files are encrypted and need the recovery key to restore.\",\"inconsistentMark\":\"taken during recovery\"},\"restore\":{\"open\":\"Restore from backup\",\"title\":\"Restore from backup\",\"intro\":\"Validate a backup first. Nothing changes until you confirm.\",\"source\":\"Backup source\",\"fromStored\":\"Stored backup\",\"fromUpload\":\"Upload a file\",\"file\":\"Backup file (.attraccess-matter-backup)\",\"recoveryKey\":\"Recovery key\",\"recoveryKeyHint\":\"The key this backup was encrypted with.\",\"validate\":\"Validate\",\"validationFailed\":\"The backup cannot be restored\",\"error\":{\"empty\":\"The file is empty. Choose the backup file you downloaded.\",\"tooLarge\":\"The file is too large to upload here (at most 7 MB). Restore from a stored backup instead.\"},\"kind\":{\"plain\":\"Restore\",\"rollback\":\"Roll back to an earlier state\",\"replacement\":\"Replaces the current fabric\"},\"backupCreated\":\"Backup created\",\"pluginVersion\":\"Plugin version\",\"sidecarVersion\":\"Sidecar version\",\"backupFabric\":\"Backup fabric ID\",\"currentFabric\":\"Current fabric ID\",\"previewHint\":\"The backup is valid. Restoring replaces the fabric and the plugin's Matter data with the backup.\",\"previewHintBackup\":\"A backup of the current state is taken first.\",\"overwriteTitle\":\"This overwrites a working fabric\",\"overwriteText\":\"The sidecar currently runs a healthy fabric. Restoring replaces it. Devices commissioned after the backup was made will be lost and must be commissioned again.\",\"typeFabricId\":\"Type the current fabric ID {{fabricId}} to confirm\",\"confirm\":\"Restore now\",\"running\":\"Restoring. Do not close this page.\",\"successTitle\":\"Restore completed\",\"successText\":\"The fabric and the plugin data were restored and verified.\",\"failedTitle\":\"The restore failed\",\"fromStoredHint\":\"One of the backups this installation keeps.\",\"fromUploadHint\":\"A backup file you downloaded, for example after reinstalling.\",\"retryTitle\":\"Validate the backup again\",\"rollbackFailedTitle\":\"The restore failed and could not be rolled back\",\"inconsistentTitle\":\"This backup was taken during recovery\",\"inconsistentText\":\"When it was taken, the plugin's data and the sidecar's fabric did not match. Restoring it brings that mismatch back, and you will have to settle the recovery again afterwards.\"},\"recovery\":{\"title\":\"Recovery\",\"blocked\":\"Fabric changes are blocked\",\"blockedText\":\"Until you choose how to recover, creating a fabric and other fabric changes are blocked. Nothing is changed automatically.\",\"restoreTitle\":\"Restore from a backup\",\"restoreText\":\"Bring back the fabric and data from a stored or uploaded backup.\",\"restoreAction\":\"Restore from backup\",\"acceptTitle\":\"Use the sidecar's current fabric\",\"acceptText\":\"Treat the fabric the sidecar runs now as the correct one.\",\"acceptUnavailable\":\"Only available while the sidecar runs a healthy fabric.\",\"acceptAction\":\"Accept sidecar's fabric\",\"acceptConfirmTitle\":\"Accept the sidecar's fabric?\",\"acceptConfirmText\":\"Attraccess will treat the sidecar's current fabric as authoritative and forget what it recorded before. Devices tied to the old fabric are no longer controllable.\",\"acceptConfirm\":\"Accept\",\"newTitle\":\"Start a new fabric\",\"newText\":\"Create a new, empty fabric.\",\"newUnavailable\":\"Only available while the sidecar has no fabric.\",\"newAction\":\"Start new fabric\",\"newConfirmTitle\":\"Start a new fabric?\",\"newConfirmText\":\"Every device commissioned before must be factory-reset and commissioned again, because it belongs to the old fabric. This cannot be undone.\",\"newConfirm\":\"Start new fabric\",\"error\":\"The recovery action failed\"}}")
|
|
73
87
|
};
|
|
74
88
|
var de_default = {
|
|
75
89
|
page: {
|
|
76
90
|
"title": "Matter",
|
|
77
91
|
"subtitle": "Verbindung zum Matter-Sidecar.",
|
|
78
92
|
"insecure": "Unsichere Verbindung",
|
|
79
|
-
"insecureText": "Der Sidecar wird über unverschlüsseltes http an einer Nicht-Loopback-Adresse erreicht. Das Token wird unverschlüsselt übertragen. Verwende https oder betreibe den Sidecar auf demselben Host."
|
|
93
|
+
"insecureText": "Der Sidecar wird über unverschlüsseltes http an einer Nicht-Loopback-Adresse erreicht. Das Token wird unverschlüsselt übertragen. Verwende https oder betreibe den Sidecar auf demselben Host.",
|
|
94
|
+
"insecureTextReadOnly": "Der Sidecar wird über unverschlüsseltes http an einer Nicht-Loopback-Adresse erreicht. Das Token wird unverschlüsselt übertragen. Bitte einen Administrator, die Verbindungseinstellungen zu prüfen.",
|
|
95
|
+
"noDeviceAccess": "Matter-Geräte sind ausgeblendet",
|
|
96
|
+
"noDeviceAccessText": "Deine Berechtigungen umfassen nicht das Anzeigen von Matter-Geräten. Bitte einen Administrator um „Matter-Geräte anzeigen“, um Verbindungs-, Fabric- und Backup-Status zu sehen."
|
|
80
97
|
},
|
|
81
98
|
status: {
|
|
82
99
|
"title": "Verbindungsstatus",
|
|
@@ -106,13 +123,19 @@ var de_default = {
|
|
|
106
123
|
},
|
|
107
124
|
hint: {
|
|
108
125
|
"not_configured": "Gib unten die Sidecar-URL und das Token ein, um die Verbindung herzustellen.",
|
|
126
|
+
"not_configuredReadOnly": "Der Matter-Sidecar ist noch nicht eingerichtet. Ein Administrator muss ihn verbinden.",
|
|
109
127
|
"connecting": "Verbindung zum Matter-Sidecar wird aufgebaut…",
|
|
110
128
|
"connected": "Das Plugin ist mit dem Matter-Sidecar verbunden.",
|
|
111
129
|
"unavailable": "Der Sidecar ist nicht erreichbar. Prüfe, ob er läuft und ob URL, Port und Firewall stimmen. Attraccess versucht es automatisch erneut.",
|
|
130
|
+
"unavailableReadOnly": "Der Sidecar ist nicht erreichbar. Attraccess versucht es automatisch erneut. Bleibt es dabei, bitte einen Administrator, den Sidecar und die Verbindungseinstellungen zu prüfen.",
|
|
112
131
|
"unauthorized": "Der Sidecar hat das Token abgelehnt. Prüfe das Token (auch nach einer Rotation) und gib es erneut ein.",
|
|
132
|
+
"unauthorizedReadOnly": "Der Sidecar hat das Token abgelehnt. Ein Administrator muss ein gültiges Token eingeben.",
|
|
113
133
|
"incompatible": "Die Versionen passen nicht zusammen. Bringe Attraccess, das Matter-Plugin oder den Sidecar per Update oder Downgrade auf die unten gezeigte unterstützte Kombination.",
|
|
134
|
+
"incompatibleReadOnly": "Die Versionen passen nicht zur unten gezeigten unterstützten Kombination. Bitte einen Administrator, Attraccess, das Matter-Plugin oder den Sidecar per Update oder Downgrade anzupassen.",
|
|
114
135
|
"misconfigured": "URL, CA-Zertifikat oder TLS-Einrichtung sind ungültig. Prüfe URL und Pfadpräfix sowie, ob die CA zum Sidecar-Zertifikat passt.",
|
|
115
|
-
"
|
|
136
|
+
"misconfiguredReadOnly": "URL, CA-Zertifikat oder TLS-Einrichtung sind ungültig. Bitte einen Administrator, die Verbindungseinstellungen zu prüfen.",
|
|
137
|
+
"hostVersion": "Diese Attraccess-Version meldet ihre Version nicht. Aktualisiere Attraccess auf {{attraccess}} oder neuer.",
|
|
138
|
+
"hostVersionReadOnly": "Diese Attraccess-Version meldet ihre Version nicht. Bitte einen Administrator, Attraccess auf {{attraccess}} oder neuer zu aktualisieren."
|
|
116
139
|
},
|
|
117
140
|
form: {
|
|
118
141
|
"title": "Verbindungseinstellungen",
|
|
@@ -121,6 +144,7 @@ var de_default = {
|
|
|
121
144
|
"urlDescription": "Verwende https, außer der Sidecar läuft auf demselben Host. Ein Pfadpräfix für einen Reverse-Proxy ist erlaubt.",
|
|
122
145
|
"credential": "Token",
|
|
123
146
|
"credentialDescription": "Das gemeinsame Service-Token, das am Sidecar konfiguriert ist. Nach dem Speichern wird es nie wieder angezeigt.",
|
|
147
|
+
"credentialReenter": "Du hast die URL oder das CA-Zertifikat geändert, gib das Token daher erneut ein. Ein gespeichertes Token wird nur an den Endpunkt gesendet, für den es eingegeben wurde.",
|
|
124
148
|
"credentialConfigured": "Konfiguriert (zuletzt geändert {{time}})",
|
|
125
149
|
"replace": "Ersetzen",
|
|
126
150
|
"cancelReplace": "Aktuelles Token behalten",
|
|
@@ -139,17 +163,15 @@ var de_default = {
|
|
|
139
163
|
"removeError": "Entfernen fehlgeschlagen",
|
|
140
164
|
"loadError": "Die Verbindungseinstellungen konnten nicht geladen werden."
|
|
141
165
|
},
|
|
142
|
-
fabric: /* @__PURE__ */ JSON.parse("{\"title\":\"Fabric & Backup\",\"statusTitle\":\"Fabric\",\"loadError\":\"Der Fabric-Status konnte nicht geladen werden.\",\"none\":\"-\",\"cancel\":\"Abbrechen\",\"close\":\"Schließen\",\"reason\":\"Grund\",\"loading\":\"Fabric-Status wird geladen\",\"error\":{\"key_required\":\"Dieses Backup wurde mit einem anderen Wiederherstellungsschlüssel verschlüsselt. Gib diesen Schlüssel ein.\",\"wrong_key\":\"Der Wiederherstellungsschlüssel ist falsch. Prüfe ihn und versuche es erneut.\",\"corrupt\":\"Das Backup ist beschädigt oder wurde verändert und kann nicht verwendet werden.\",\"truncated\":\"Das Backup ist unvollständig, vermutlich wurde die Datei abgeschnitten. Lade es erneut herunter.\",\"incompatible_format\":\"Diese Datei ist kein Backup in einem unterstützten Format.\",\"incompatible_schema\":\"Das Backup nutzt eine Speicherschema-Version, die diese Installation nicht wiederherstellen kann.\",\"incompatible_migration\":\"Das Backup wurde mit einer anderen Plugin-Datenbankversion erstellt. Installiere die Plugin-Version, die es erstellt hat.\",\"incompatible_version\":\"Die Plugin-Version muss mit der Version übereinstimmen, die das Backup erstellt hat. Installiere zuerst diese Version.\",\"stage_failed\":\"Der Sidecar konnte das Backup nicht vorbereiten. Deine Installation blieb unverändert.\",\"fabric_exists\":\"Der Sidecar hat bereits eine Fabric.\",\"recovery_required\":\"Die Fabric muss zuerst wiederhergestellt werden. Stelle ein Backup wieder her, übernimm die Fabric des Sidecars oder starte eine neue Fabric.\",\"recovery_not_required\":\"Die Fabric muss nicht mehr wiederhergestellt werden.\",\"busy\":\"Der Matter-Sidecar ist mit einem anderen Backup oder einer Wiederherstellung beschäftigt. Versuche es gleich noch einmal.\",\"sidecar_unavailable\":\"Der Sidecar ist nicht erreichbar. Versuche es erneut, sobald er verbunden ist.\",\"sidecar_error\":\"Der Matter-Sidecar hat die Anfrage abgelehnt.\",\"sidecar_not_empty\":\"Eine neue Fabric kann nur gestartet werden, solange der Sidecar keine Fabric hat.\",\"sidecar_not_initialized\":\"Der Sidecar hat keine gesunde Fabric, die übernommen werden könnte.\",\"insecure_transport\":\"Die Verbindung zum Sidecar ist unverschlüsseltes HTTP zu einem anderen Rechner. Backups und Wiederherstellungen enthalten Fabric-Geheimnisse und brauchen daher https oder einen Sidecar auf diesem Rechner.\",\"recovery_key_exists\":\"Es gibt bereits einen Wiederherstellungsschlüssel.\",\"recovery_key_mismatch\":\"Das ist nicht mehr der aktuelle Wiederherstellungsschlüssel. Lade die Seite neu.\",\"no_recovery_key\":\"Es gibt noch keinen Wiederherstellungsschlüssel. Erzeuge zuerst einen.\",\"not_found\":\"Dieses Backup existiert nicht mehr.\",\"file_unreadable\":\"Die Datei konnte nicht gelesen werden. Wähle sie erneut aus.\",\"validation_expired\":\"Diese Prüfung ist abgelaufen. Prüfe das Backup erneut.\",\"preflight_changed\":\"Der Sidecar hat sich seit der Prüfung des Backups verändert. Prüfe das Backup erneut.\",\"confirmation_required\":\"Gib zur Bestätigung die Fabric-ID ein.\",\"pre_restore_backup_failed\":\"Das Backup der aktuellen Fabric ist fehlgeschlagen, daher wurde nichts wiederhergestellt. Deine Installation blieb unverändert.\",\"restore_failed\":\"Der Matter-Sidecar konnte das Backup nicht anwenden oder prüfen. Deine Installation blieb unverändert.\",\"rolled_back\":\"Die Wiederherstellung ist fehlgeschlagen und wurde zurückgerollt. Deine Installation blieb unverändert.\",\"rollback_failed\":\"Die Wiederherstellung ist fehlgeschlagen und der Matter-Sidecar konnte nicht automatisch zurückgerollt werden, sein Zustand ist daher unbekannt. Prüfe den Sidecar und stelle das Backup dann erneut wieder her.\",\"http\":\"Die Anfrage ist fehlgeschlagen (HTTP {{status}}).\"},\"blocked\":{\"unreachable\":\"Der Sidecar ist nicht erreichbar.\",\"recovery\":\"Nicht verfügbar, solange die Fabric wiederhergestellt werden muss.\",\"noFabric\":\"Es gibt noch keine Fabric, die gesichert werden könnte.\",\"noKey\":\"Erzeuge zuerst einen Wiederherstellungsschlüssel.\",\"insecure\":\"Braucht https oder einen Sidecar auf diesem Rechner: Die Verbindung ist unverschlüsseltes HTTP zu einem anderen Rechner.\"},\"state\":{\"initialized\":\"Initialisiert\",\"uninitialized\":\"Noch keine Fabric\",\"recovery_required\":\"Wiederherstellung erforderlich\",\"unknown\":\"Unbekannt\"},\"unreachable\":\"Sidecar nicht erreichbar\",\"unreachableText\":\"Der Fabric-Zustand ist unbekannt, bis das Plugin mit dem Sidecar verbunden ist.\",\"recoveryRequired\":\"Die Fabric passt nicht zu dieser Installation\",\"recorded\":\"Von Attraccess gespeichert\",\"storageReason\":{\"storage_unreadable\":\"Der Sidecar kann seinen Speicher nicht lesen.\",\"storage_corrupt\":\"Der Speicher des Sidecars ist beschädigt.\",\"storage_incomplete\":\"Der Speicher des Sidecars ist unvollständig.\",\"schema_mismatch\":\"Der Speicher des Sidecars hat eine andere Schemaversion.\",\"metadata_missing\":\"Die Metadaten im Speicher des Sidecars fehlen.\",\"metadata_orphaned\":\"Die Metadaten im Speicher des Sidecars haben keine Fabric-Daten.\",\"restore_interrupted\":\"Eine Wiederherstellung wurde unterbrochen. Der vorherige Speicher blieb erhalten; stelle ein Backup wieder her.\"},\"mismatch\":{\"unknown\":\"Die Fabric des Sidecars weicht von der in Attraccess gespeicherten ab.\",\"sidecar_uninitialized\":\"Attraccess kennt eine Fabric, der Sidecar hat aber keine. Sein Speicher ging vermutlich verloren oder wurde ersetzt.\",\"fabric_changed\":\"Der Sidecar betreibt eine andere Fabric als die in Attraccess gespeicherte.\",\"generation_behind\":\"Die Fabric des Sidecars ist älter als die in Attraccess gespeicherte. Sein Speicher wurde vermutlich aus einer alten Kopie wiederhergestellt.\",\"generation_ahead\":\"Die Fabric des Sidecars ist neuer als die in Attraccess gespeicherte. Der Sidecar wurde ohne Attraccess verändert.\",\"storage_instance_changed\":\"Der Speicher des Sidecars ist eine andere Instanz als die in Attraccess gespeicherte.\",\"sidecar_recovery_required\":\"Der Sidecar meldet, dass er wiederhergestellt werden muss.\"},\"uninitializedText\":\"Der Sidecar hat noch keine Fabric. Lege sie an, um Geräte einzubinden.\",\"create\":\"Fabric anlegen\",\"createHint\":\"Legt die Matter-Fabric auf dem Sidecar, einen Wiederherstellungsschlüssel und das erste Backup an.\",\"restoreInstead\":\"Hast du schon ein Backup einer Matter-Fabric, zum Beispiel nach einer Neuinstallation? Stelle es wieder her, statt eine neue Fabric anzulegen, damit die Geräte steuerbar bleiben.\",\"createError\":\"Die Fabric konnte nicht angelegt werden\",\"fabricId\":\"Fabric-ID\",\"generationLabel\":\"Fabric-Generation\",\"generation\":\"Generation {{generation}}\",\"fingerprint\":\"Fingerabdruck des Root-Zertifikats\",\"fingerprintShowFull\":\"Ganzen Fingerabdruck zeigen\",\"fingerprintShowShort\":\"Fingerabdruck kürzen\",\"storageInstance\":\"Speicher-Instanz\",\"trigger\":{\"manual\":\"Manuell\",\"fabric_created\":\"Fabric angelegt\",\"restore\":\"Nach Wiederherstellung\",\"daily\":\"Täglich\",\"fabric_changed\":\"Fabric geändert\",\"pre_restore\":\"Vor Wiederherstellung\"},\"key\":{\"cardTitle\":\"Wiederherstellungsschlüssel\",\"title\":\"Dein Wiederherstellungsschlüssel\",\"warningTitle\":\"Wird nur einmal angezeigt\",\"warning\":\"Dieser Schlüssel entschlüsselt deine Backups. Ohne ihn lässt sich kein Backup wiederherstellen. Attraccess kann ihn nicht erneut anzeigen. Bewahre ihn sicher und getrennt von den Backups auf.\",\"keyId\":\"Schlüssel-ID\",\"created\":\"Erstellt\",\"copy\":\"Kopieren\",\"copied\":\"Kopiert\",\"copyFailed\":\"Kopieren fehlgeschlagen. Markiere den Schlüssel und kopiere ihn manuell.\",\"download\":\"Als .txt herunterladen\",\"fileHeader\":\"Attraccess Matter Wiederherstellungsschlüssel. Geheim und sicher aufbewahren.\",\"acknowledge\":\"Ich habe den Wiederherstellungsschlüssel sicher aufbewahrt.\",\"done\":\"Fertig\",\"missing\":\"Kein Wiederherstellungsschlüssel\",\"missingText\":\"Backups werden mit einem Wiederherstellungsschlüssel verschlüsselt. Erzeuge einen, um Backups zu aktivieren.\",\"generate\":\"Wiederherstellungsschlüssel erzeugen\",\"generateError\":\"Der Wiederherstellungsschlüssel konnte nicht erzeugt werden\",\"unacknowledged\":\"Wiederherstellungsschlüssel nicht bestätigt\",\"unacknowledgedText\":\"Es wurde ein Wiederherstellungsschlüssel erzeugt, aber du hast nicht bestätigt, ihn gesichert zu haben. Er kann nicht erneut angezeigt werden. Rotiere ihn, um einen neuen zu erhalten.\",\"rotate\":\"Wiederherstellungsschlüssel rotieren\",\"rotateTitle\":\"Wiederherstellungsschlüssel rotieren?\",\"rotateText\":\"Ein neuer Schlüssel verschlüsselt künftige Backups. Bestehende Backups brauchen weiterhin den alten Schlüssel, bewahre ihn also auf, bis sie ersetzt sind. Der neue Schlüssel wird einmal angezeigt.\",\"rotateConfirm\":\"Rotieren\",\"rotateError\":\"Der Wiederherstellungsschlüssel konnte nicht rotiert werden\"},\"backups\":{\"title\":\"Backups\",\"lastSuccessful\":\"Letztes erfolgreiches Backup\",\"never\":\"Nie\",\"lastAttempt\":\"Letzter Versuch\",\"nextRun\":\"Nächster geplanter Lauf\",\"outcome\":{\"succeeded\":\"erfolgreich\",\"failed\":\"fehlgeschlagen\"},\"failed\":\"Das letzte Backup ist fehlgeschlagen\",\"reason\":{\"inconsistent\":\"Sidecar und Plugin sind sich über die Fabric nicht einig, daher ist kein konsistentes Backup möglich.\",\"sidecar_unavailable\":\"Der Matter-Sidecar ist nicht erreichbar.\",\"sidecar_busy\":\"Der Matter-Sidecar ist mit einem anderen Backup oder einer Wiederherstellung beschäftigt. Versuche es gleich noch einmal.\",\"insecure_transport\":\"Backups werden über eine unverschlüsselte HTTP-Verbindung zu einem entfernten Sidecar abgelehnt. Nutze https oder eine lokale Verbindung.\",\"no_recovery_key\":\"Es gibt noch keinen Wiederherstellungsschlüssel.\",\"recovery_key_unreadable\":\"Der gespeicherte Wiederherstellungsschlüssel kann von dieser Installation nicht gelesen werden.\",\"recovery_required\":\"Die Fabric muss zuerst wiederhergestellt werden. In diesem Zustand wird kein Backup erstellt.\",\"no_fabric\":\"Es gibt keine Fabric, die gesichert werden könnte.\",\"sidecar_error\":\"Der Matter-Sidecar konnte keinen Snapshot erstellen.\",\"internal\":\"Das Backup ist wegen eines internen Fehlers fehlgeschlagen.\"},\"noReason\":\"Es wurde kein Grund gemeldet.\",\"now\":\"Jetzt sichern\",\"error\":\"Das Backup ist fehlgeschlagen\",\"empty\":\"Noch keine Backups gespeichert.\",\"stored\":\"Gespeicherte Backups\",\"download\":\"Herunterladen\",\"downloadError\":\"Das Backup konnte nicht heruntergeladen werden\",\"retention\":\"Die letzten {{count}} Backups werden aufbewahrt. Backup-Dateien sind verschlüsselt und brauchen zur Wiederherstellung den Wiederherstellungsschlüssel.\",\"inconsistentMark\":\"während einer Wiederherstellung erstellt\"},\"restore\":{\"open\":\"Aus Backup wiederherstellen\",\"title\":\"Aus Backup wiederherstellen\",\"intro\":\"Prüfe zuerst ein Backup. Es ändert sich nichts, bevor du bestätigst.\",\"source\":\"Backup-Quelle\",\"fromStored\":\"Gespeichertes Backup\",\"fromUpload\":\"Datei hochladen\",\"file\":\"Backup-Datei (.attraccess-matter-backup)\",\"recoveryKey\":\"Wiederherstellungsschlüssel\",\"recoveryKeyHint\":\"Der Schlüssel, mit dem dieses Backup verschlüsselt wurde.\",\"validate\":\"Prüfen\",\"validationFailed\":\"Das Backup kann nicht wiederhergestellt werden\",\"error\":{\"empty\":\"Die Datei ist leer. Wähle die heruntergeladene Backup-Datei.\",\"tooLarge\":\"Die Datei ist zu groß für den Upload (höchstens 7 MB). Stelle stattdessen aus einem gespeicherten Backup wieder her.\"},\"kind\":{\"plain\":\"Wiederherstellung\",\"rollback\":\"Zurück auf einen früheren Stand\",\"replacement\":\"Ersetzt die aktuelle Fabric\"},\"backupCreated\":\"Backup erstellt\",\"pluginVersion\":\"Plugin-Version\",\"sidecarVersion\":\"Sidecar-Version\",\"backupFabric\":\"Fabric-ID im Backup\",\"currentFabric\":\"Aktuelle Fabric-ID\",\"previewHint\":\"Das Backup ist gültig. Die Wiederherstellung ersetzt die Fabric und die Matter-Daten des Plugins durch das Backup.\",\"previewHintBackup\":\"Vorher wird ein Backup des aktuellen Zustands erstellt.\",\"overwriteTitle\":\"Das überschreibt eine funktionierende Fabric\",\"overwriteText\":\"Der Sidecar betreibt aktuell eine gesunde Fabric. Die Wiederherstellung ersetzt sie. Geräte, die nach dem Backup eingebunden wurden, gehen verloren und müssen neu eingebunden werden.\",\"typeFabricId\":\"Gib zur Bestätigung die aktuelle Fabric-ID {{fabricId}} ein\",\"confirm\":\"Jetzt wiederherstellen\",\"running\":\"Wiederherstellung läuft. Schließe diese Seite nicht.\",\"successTitle\":\"Wiederherstellung abgeschlossen\",\"successText\":\"Die Fabric und die Plugin-Daten wurden wiederhergestellt und geprüft.\",\"failedTitle\":\"Die Wiederherstellung ist fehlgeschlagen\",\"fromStoredHint\":\"Eines der Backups, die diese Installation aufbewahrt.\",\"fromUploadHint\":\"Eine heruntergeladene Backup-Datei, zum Beispiel nach einer Neuinstallation.\",\"retryTitle\":\"Prüfe das Backup erneut\",\"rollbackFailedTitle\":\"Die Wiederherstellung ist fehlgeschlagen und konnte nicht zurückgerollt werden\",\"inconsistentTitle\":\"Dieses Backup wurde während einer Wiederherstellung erstellt\",\"inconsistentText\":\"Als es erstellt wurde, passten die Daten des Plugins und die Fabric des Sidecars nicht zusammen. Stellst du es wieder her, kehrt diese Abweichung zurück, und du musst die Wiederherstellung danach erneut abschließen.\"},\"recovery\":{\"title\":\"Wiederherstellung\",\"blocked\":\"Fabric-Änderungen sind gesperrt\",\"blockedText\":\"Bis du dich für einen Weg entscheidest, sind das Anlegen einer Fabric und andere Fabric-Änderungen gesperrt. Es wird nichts automatisch geändert.\",\"restoreTitle\":\"Aus einem Backup wiederherstellen\",\"restoreText\":\"Fabric und Daten aus einem gespeicherten oder hochgeladenen Backup zurückholen.\",\"restoreAction\":\"Aus Backup wiederherstellen\",\"acceptTitle\":\"Aktuelle Fabric des Sidecars verwenden\",\"acceptText\":\"Die Fabric, die der Sidecar jetzt betreibt, als korrekt übernehmen.\",\"acceptUnavailable\":\"Nur verfügbar, solange der Sidecar eine gesunde Fabric betreibt.\",\"acceptAction\":\"Fabric des Sidecars übernehmen\",\"acceptConfirmTitle\":\"Fabric des Sidecars übernehmen?\",\"acceptConfirmText\":\"Attraccess betrachtet die aktuelle Fabric des Sidecars als maßgeblich und verwirft den bisher gespeicherten Stand. Geräte der alten Fabric sind nicht mehr steuerbar.\",\"acceptConfirm\":\"Übernehmen\",\"newTitle\":\"Neue Fabric starten\",\"newText\":\"Eine neue, leere Fabric anlegen.\",\"newUnavailable\":\"Nur verfügbar, solange der Sidecar keine Fabric hat.\",\"newAction\":\"Neue Fabric starten\",\"newConfirmTitle\":\"Neue Fabric starten?\",\"newConfirmText\":\"Jedes zuvor eingebundene Gerät muss auf Werkseinstellungen zurückgesetzt und neu eingebunden werden, da es zur alten Fabric gehört. Das lässt sich nicht rückgängig machen.\",\"newConfirm\":\"Neue Fabric starten\",\"error\":\"Die Wiederherstellungsaktion ist fehlgeschlagen\"}}")
|
|
166
|
+
fabric: /* @__PURE__ */ JSON.parse("{\"title\":\"Fabric & Backup\",\"statusTitle\":\"Fabric\",\"loadError\":\"Der Fabric-Status konnte nicht geladen werden.\",\"none\":\"-\",\"cancel\":\"Abbrechen\",\"close\":\"Schließen\",\"reason\":\"Grund\",\"loading\":\"Fabric-Status wird geladen\",\"error\":{\"key_required\":\"Dieses Backup wurde mit einem anderen Wiederherstellungsschlüssel verschlüsselt. Gib diesen Schlüssel ein.\",\"wrong_key\":\"Der Wiederherstellungsschlüssel ist falsch. Prüfe ihn und versuche es erneut.\",\"corrupt\":\"Das Backup ist beschädigt oder wurde verändert und kann nicht verwendet werden.\",\"truncated\":\"Das Backup ist unvollständig, vermutlich wurde die Datei abgeschnitten. Lade es erneut herunter.\",\"incompatible_format\":\"Diese Datei ist kein Backup in einem unterstützten Format.\",\"incompatible_schema\":\"Das Backup nutzt eine Speicherschema-Version, die diese Installation nicht wiederherstellen kann.\",\"incompatible_migration\":\"Das Backup wurde mit einer anderen Plugin-Datenbankversion erstellt. Installiere die Plugin-Version, die es erstellt hat.\",\"incompatible_version\":\"Die Plugin-Version muss mit der Version übereinstimmen, die das Backup erstellt hat. Installiere zuerst diese Version.\",\"stage_failed\":\"Der Sidecar konnte das Backup nicht vorbereiten. Deine Installation blieb unverändert.\",\"fabric_exists\":\"Der Sidecar hat bereits eine Fabric.\",\"recovery_required\":\"Die Fabric muss zuerst wiederhergestellt werden. Stelle ein Backup wieder her, übernimm die Fabric des Sidecars oder starte eine neue Fabric.\",\"recovery_not_required\":\"Die Fabric muss nicht mehr wiederhergestellt werden.\",\"busy\":\"Der Matter-Sidecar ist mit einem anderen Backup oder einer Wiederherstellung beschäftigt. Versuche es gleich noch einmal.\",\"sidecar_unavailable\":\"Der Sidecar ist nicht erreichbar. Versuche es erneut, sobald er verbunden ist.\",\"sidecar_error\":\"Der Matter-Sidecar hat die Anfrage abgelehnt.\",\"sidecar_not_empty\":\"Eine neue Fabric kann nur gestartet werden, solange der Sidecar keine Fabric hat.\",\"sidecar_not_initialized\":\"Der Sidecar hat keine gesunde Fabric, die übernommen werden könnte.\",\"insecure_transport\":\"Die Verbindung zum Sidecar ist unverschlüsseltes HTTP zu einem anderen Rechner. Backups und Wiederherstellungen enthalten Fabric-Geheimnisse und brauchen daher https oder einen Sidecar auf diesem Rechner.\",\"recovery_key_exists\":\"Es gibt bereits einen Wiederherstellungsschlüssel.\",\"recovery_key_mismatch\":\"Das ist nicht mehr der aktuelle Wiederherstellungsschlüssel. Lade die Seite neu.\",\"no_recovery_key\":\"Es gibt noch keinen Wiederherstellungsschlüssel. Erzeuge zuerst einen.\",\"not_found\":\"Dieses Backup existiert nicht mehr.\",\"file_unreadable\":\"Die Datei konnte nicht gelesen werden. Wähle sie erneut aus.\",\"validation_expired\":\"Diese Prüfung ist abgelaufen. Prüfe das Backup erneut.\",\"preflight_changed\":\"Der Sidecar hat sich seit der Prüfung des Backups verändert. Prüfe das Backup erneut.\",\"confirmation_required\":\"Gib zur Bestätigung die Fabric-ID ein.\",\"pre_restore_backup_failed\":\"Das Backup der aktuellen Fabric ist fehlgeschlagen, daher wurde nichts wiederhergestellt. Deine Installation blieb unverändert.\",\"restore_failed\":\"Der Matter-Sidecar konnte das Backup nicht anwenden oder prüfen. Deine Installation blieb unverändert.\",\"rolled_back\":\"Die Wiederherstellung ist fehlgeschlagen und wurde zurückgerollt. Deine Installation blieb unverändert.\",\"rollback_failed\":\"Die Wiederherstellung ist fehlgeschlagen und der Matter-Sidecar konnte nicht automatisch zurückgerollt werden, sein Zustand ist daher unbekannt. Prüfe den Sidecar und stelle das Backup dann erneut wieder her.\",\"http\":\"Die Anfrage ist fehlgeschlagen (HTTP {{status}}).\"},\"blocked\":{\"unreachable\":\"Der Sidecar ist nicht erreichbar.\",\"recovery\":\"Nicht verfügbar, solange die Fabric wiederhergestellt werden muss.\",\"noFabric\":\"Es gibt noch keine Fabric, die gesichert werden könnte.\",\"noKey\":\"Erzeuge zuerst einen Wiederherstellungsschlüssel.\",\"insecure\":\"Braucht https oder einen Sidecar auf diesem Rechner: Die Verbindung ist unverschlüsseltes HTTP zu einem anderen Rechner.\"},\"state\":{\"initialized\":\"Initialisiert\",\"uninitialized\":\"Noch keine Fabric\",\"recovery_required\":\"Wiederherstellung erforderlich\",\"unknown\":\"Unbekannt\"},\"unreachable\":\"Sidecar nicht erreichbar\",\"unreachableText\":\"Der Fabric-Zustand ist unbekannt, bis das Plugin mit dem Sidecar verbunden ist.\",\"recoveryRequired\":\"Die Fabric passt nicht zu dieser Installation\",\"recorded\":\"Von Attraccess gespeichert\",\"storageReason\":{\"storage_unreadable\":\"Der Sidecar kann seinen Speicher nicht lesen.\",\"storage_corrupt\":\"Der Speicher des Sidecars ist beschädigt.\",\"storage_incomplete\":\"Der Speicher des Sidecars ist unvollständig.\",\"schema_mismatch\":\"Der Speicher des Sidecars hat eine andere Schemaversion.\",\"metadata_missing\":\"Die Metadaten im Speicher des Sidecars fehlen.\",\"metadata_orphaned\":\"Die Metadaten im Speicher des Sidecars haben keine Fabric-Daten.\",\"restore_interrupted\":\"Eine Wiederherstellung wurde unterbrochen. Der vorherige Speicher blieb erhalten; stelle ein Backup wieder her.\"},\"mismatch\":{\"unknown\":\"Die Fabric des Sidecars weicht von der in Attraccess gespeicherten ab.\",\"sidecar_uninitialized\":\"Attraccess kennt eine Fabric, der Sidecar hat aber keine. Sein Speicher ging vermutlich verloren oder wurde ersetzt.\",\"fabric_changed\":\"Der Sidecar betreibt eine andere Fabric als die in Attraccess gespeicherte.\",\"generation_behind\":\"Die Fabric des Sidecars ist älter als die in Attraccess gespeicherte. Sein Speicher wurde vermutlich aus einer alten Kopie wiederhergestellt.\",\"generation_ahead\":\"Die Fabric des Sidecars ist neuer als die in Attraccess gespeicherte. Der Sidecar wurde ohne Attraccess verändert.\",\"storage_instance_changed\":\"Der Speicher des Sidecars ist eine andere Instanz als die in Attraccess gespeicherte.\",\"sidecar_recovery_required\":\"Der Sidecar meldet, dass er wiederhergestellt werden muss.\"},\"uninitializedText\":\"Der Sidecar hat noch keine Fabric. Lege sie an, um Geräte einzubinden.\",\"uninitializedTextReadOnly\":\"Der Sidecar hat noch keine Fabric. Ein Administrator muss sie anlegen, bevor Geräte eingebunden werden können.\",\"create\":\"Fabric anlegen\",\"createHint\":\"Legt die Matter-Fabric auf dem Sidecar, einen Wiederherstellungsschlüssel und das erste Backup an.\",\"restoreInstead\":\"Hast du schon ein Backup einer Matter-Fabric, zum Beispiel nach einer Neuinstallation? Stelle es wieder her, statt eine neue Fabric anzulegen, damit die Geräte steuerbar bleiben.\",\"createError\":\"Die Fabric konnte nicht angelegt werden\",\"fabricId\":\"Fabric-ID\",\"generationLabel\":\"Fabric-Generation\",\"generation\":\"Generation {{generation}}\",\"fingerprint\":\"Fingerabdruck des Root-Zertifikats\",\"fingerprintShowFull\":\"Ganzen Fingerabdruck zeigen\",\"fingerprintShowShort\":\"Fingerabdruck kürzen\",\"storageInstance\":\"Speicher-Instanz\",\"trigger\":{\"manual\":\"Manuell\",\"fabric_created\":\"Fabric angelegt\",\"restore\":\"Nach Wiederherstellung\",\"daily\":\"Täglich\",\"fabric_changed\":\"Fabric geändert\",\"pre_restore\":\"Vor Wiederherstellung\"},\"key\":{\"cardTitle\":\"Wiederherstellungsschlüssel\",\"title\":\"Dein Wiederherstellungsschlüssel\",\"warningTitle\":\"Wird nur einmal angezeigt\",\"warning\":\"Dieser Schlüssel entschlüsselt deine Backups. Ohne ihn lässt sich kein Backup wiederherstellen. Attraccess kann ihn nicht erneut anzeigen. Bewahre ihn sicher und getrennt von den Backups auf.\",\"keyId\":\"Schlüssel-ID\",\"created\":\"Erstellt\",\"copy\":\"Kopieren\",\"copied\":\"Kopiert\",\"copyFailed\":\"Kopieren fehlgeschlagen. Markiere den Schlüssel und kopiere ihn manuell.\",\"download\":\"Als .txt herunterladen\",\"fileHeader\":\"Attraccess Matter Wiederherstellungsschlüssel. Geheim und sicher aufbewahren.\",\"acknowledge\":\"Ich habe den Wiederherstellungsschlüssel sicher aufbewahrt.\",\"done\":\"Fertig\",\"missing\":\"Kein Wiederherstellungsschlüssel\",\"missingText\":\"Backups werden mit einem Wiederherstellungsschlüssel verschlüsselt. Erzeuge einen, um Backups zu aktivieren.\",\"missingTextReadOnly\":\"Backups werden mit einem Wiederherstellungsschlüssel verschlüsselt. Solange ein Administrator keinen erzeugt, entstehen keine Backups.\",\"generate\":\"Wiederherstellungsschlüssel erzeugen\",\"generateError\":\"Der Wiederherstellungsschlüssel konnte nicht erzeugt werden\",\"unacknowledged\":\"Wiederherstellungsschlüssel nicht bestätigt\",\"unacknowledgedText\":\"Es wurde ein Wiederherstellungsschlüssel erzeugt, aber du hast nicht bestätigt, ihn gesichert zu haben. Er kann nicht erneut angezeigt werden. Rotiere ihn, um einen neuen zu erhalten.\",\"unacknowledgedTextReadOnly\":\"Es wurde ein Wiederherstellungsschlüssel erzeugt, aber niemand hat bestätigt, ihn gesichert zu haben. Ein Administrator muss ihn rotieren.\",\"rotate\":\"Wiederherstellungsschlüssel rotieren\",\"rotateTitle\":\"Wiederherstellungsschlüssel rotieren?\",\"rotateText\":\"Ein neuer Schlüssel verschlüsselt künftige Backups. Bestehende Backups brauchen weiterhin den alten Schlüssel, bewahre ihn also auf, bis sie ersetzt sind. Der neue Schlüssel wird einmal angezeigt.\",\"rotateConfirm\":\"Rotieren\",\"rotateError\":\"Der Wiederherstellungsschlüssel konnte nicht rotiert werden\"},\"backups\":{\"title\":\"Backups\",\"lastSuccessful\":\"Letztes erfolgreiches Backup\",\"never\":\"Nie\",\"lastAttempt\":\"Letzter Versuch\",\"nextRun\":\"Nächster geplanter Lauf\",\"outcome\":{\"succeeded\":\"erfolgreich\",\"failed\":\"fehlgeschlagen\"},\"failed\":\"Das letzte Backup ist fehlgeschlagen\",\"reason\":{\"inconsistent\":\"Sidecar und Plugin sind sich über die Fabric nicht einig, daher ist kein konsistentes Backup möglich.\",\"sidecar_unavailable\":\"Der Matter-Sidecar ist nicht erreichbar.\",\"sidecar_busy\":\"Der Matter-Sidecar ist mit einem anderen Backup oder einer Wiederherstellung beschäftigt. Versuche es gleich noch einmal.\",\"insecure_transport\":\"Backups werden über eine unverschlüsselte HTTP-Verbindung zu einem entfernten Sidecar abgelehnt. Nutze https oder eine lokale Verbindung.\",\"no_recovery_key\":\"Es gibt noch keinen Wiederherstellungsschlüssel.\",\"recovery_key_unreadable\":\"Der gespeicherte Wiederherstellungsschlüssel kann von dieser Installation nicht gelesen werden.\",\"recovery_required\":\"Die Fabric muss zuerst wiederhergestellt werden. In diesem Zustand wird kein Backup erstellt.\",\"no_fabric\":\"Es gibt keine Fabric, die gesichert werden könnte.\",\"sidecar_error\":\"Der Matter-Sidecar konnte keinen Snapshot erstellen.\",\"internal\":\"Das Backup ist wegen eines internen Fehlers fehlgeschlagen.\"},\"noReason\":\"Es wurde kein Grund gemeldet.\",\"now\":\"Jetzt sichern\",\"error\":\"Das Backup ist fehlgeschlagen\",\"empty\":\"Noch keine Backups gespeichert.\",\"stored\":\"Gespeicherte Backups\",\"download\":\"Herunterladen\",\"downloadError\":\"Das Backup konnte nicht heruntergeladen werden\",\"retention\":\"Die letzten {{count}} Backups werden aufbewahrt. Backup-Dateien sind verschlüsselt und brauchen zur Wiederherstellung den Wiederherstellungsschlüssel.\",\"inconsistentMark\":\"während einer Wiederherstellung erstellt\"},\"restore\":{\"open\":\"Aus Backup wiederherstellen\",\"title\":\"Aus Backup wiederherstellen\",\"intro\":\"Prüfe zuerst ein Backup. Es ändert sich nichts, bevor du bestätigst.\",\"source\":\"Backup-Quelle\",\"fromStored\":\"Gespeichertes Backup\",\"fromUpload\":\"Datei hochladen\",\"file\":\"Backup-Datei (.attraccess-matter-backup)\",\"recoveryKey\":\"Wiederherstellungsschlüssel\",\"recoveryKeyHint\":\"Der Schlüssel, mit dem dieses Backup verschlüsselt wurde.\",\"validate\":\"Prüfen\",\"validationFailed\":\"Das Backup kann nicht wiederhergestellt werden\",\"error\":{\"empty\":\"Die Datei ist leer. Wähle die heruntergeladene Backup-Datei.\",\"tooLarge\":\"Die Datei ist zu groß für den Upload (höchstens 7 MB). Stelle stattdessen aus einem gespeicherten Backup wieder her.\"},\"kind\":{\"plain\":\"Wiederherstellung\",\"rollback\":\"Zurück auf einen früheren Stand\",\"replacement\":\"Ersetzt die aktuelle Fabric\"},\"backupCreated\":\"Backup erstellt\",\"pluginVersion\":\"Plugin-Version\",\"sidecarVersion\":\"Sidecar-Version\",\"backupFabric\":\"Fabric-ID im Backup\",\"currentFabric\":\"Aktuelle Fabric-ID\",\"previewHint\":\"Das Backup ist gültig. Die Wiederherstellung ersetzt die Fabric und die Matter-Daten des Plugins durch das Backup.\",\"previewHintBackup\":\"Vorher wird ein Backup des aktuellen Zustands erstellt.\",\"overwriteTitle\":\"Das überschreibt eine funktionierende Fabric\",\"overwriteText\":\"Der Sidecar betreibt aktuell eine gesunde Fabric. Die Wiederherstellung ersetzt sie. Geräte, die nach dem Backup eingebunden wurden, gehen verloren und müssen neu eingebunden werden.\",\"typeFabricId\":\"Gib zur Bestätigung die aktuelle Fabric-ID {{fabricId}} ein\",\"confirm\":\"Jetzt wiederherstellen\",\"running\":\"Wiederherstellung läuft. Schließe diese Seite nicht.\",\"successTitle\":\"Wiederherstellung abgeschlossen\",\"successText\":\"Die Fabric und die Plugin-Daten wurden wiederhergestellt und geprüft.\",\"failedTitle\":\"Die Wiederherstellung ist fehlgeschlagen\",\"fromStoredHint\":\"Eines der Backups, die diese Installation aufbewahrt.\",\"fromUploadHint\":\"Eine heruntergeladene Backup-Datei, zum Beispiel nach einer Neuinstallation.\",\"retryTitle\":\"Prüfe das Backup erneut\",\"rollbackFailedTitle\":\"Die Wiederherstellung ist fehlgeschlagen und konnte nicht zurückgerollt werden\",\"inconsistentTitle\":\"Dieses Backup wurde während einer Wiederherstellung erstellt\",\"inconsistentText\":\"Als es erstellt wurde, passten die Daten des Plugins und die Fabric des Sidecars nicht zusammen. Stellst du es wieder her, kehrt diese Abweichung zurück, und du musst die Wiederherstellung danach erneut abschließen.\"},\"recovery\":{\"title\":\"Wiederherstellung\",\"blocked\":\"Fabric-Änderungen sind gesperrt\",\"blockedText\":\"Bis du dich für einen Weg entscheidest, sind das Anlegen einer Fabric und andere Fabric-Änderungen gesperrt. Es wird nichts automatisch geändert.\",\"restoreTitle\":\"Aus einem Backup wiederherstellen\",\"restoreText\":\"Fabric und Daten aus einem gespeicherten oder hochgeladenen Backup zurückholen.\",\"restoreAction\":\"Aus Backup wiederherstellen\",\"acceptTitle\":\"Aktuelle Fabric des Sidecars verwenden\",\"acceptText\":\"Die Fabric, die der Sidecar jetzt betreibt, als korrekt übernehmen.\",\"acceptUnavailable\":\"Nur verfügbar, solange der Sidecar eine gesunde Fabric betreibt.\",\"acceptAction\":\"Fabric des Sidecars übernehmen\",\"acceptConfirmTitle\":\"Fabric des Sidecars übernehmen?\",\"acceptConfirmText\":\"Attraccess betrachtet die aktuelle Fabric des Sidecars als maßgeblich und verwirft den bisher gespeicherten Stand. Geräte der alten Fabric sind nicht mehr steuerbar.\",\"acceptConfirm\":\"Übernehmen\",\"newTitle\":\"Neue Fabric starten\",\"newText\":\"Eine neue, leere Fabric anlegen.\",\"newUnavailable\":\"Nur verfügbar, solange der Sidecar keine Fabric hat.\",\"newAction\":\"Neue Fabric starten\",\"newConfirmTitle\":\"Neue Fabric starten?\",\"newConfirmText\":\"Jedes zuvor eingebundene Gerät muss auf Werkseinstellungen zurückgesetzt und neu eingebunden werden, da es zur alten Fabric gehört. Das lässt sich nicht rückgängig machen.\",\"newConfirm\":\"Neue Fabric starten\",\"error\":\"Die Wiederherstellungsaktion ist fehlgeschlagen\"}}")
|
|
143
167
|
};
|
|
144
|
-
|
|
145
|
-
//#region frontend/src/i18n.ts
|
|
168
|
+
// frontend/src/i18n.ts
|
|
146
169
|
var { useTranslations } = await importShared("@attraccess/plugins-frontend-ui");
|
|
147
170
|
var useMatterTranslations = () => useTranslations({
|
|
148
171
|
en: en_default,
|
|
149
172
|
de: de_default
|
|
150
173
|
}, { escapeValues: false });
|
|
151
|
-
|
|
152
|
-
//#region ../../../libs/plugins-frontend-sdk/src/lib/frontend.api-client.ts
|
|
174
|
+
// ../../../libs/plugins-frontend-sdk/src/lib/frontend.api-client.ts
|
|
153
175
|
var BASE_URL_GLOBAL = "__ATTRACCESS_API_BASE_URL__";
|
|
154
176
|
/** The API origin the host is talking to. Falls back to the current origin. */
|
|
155
177
|
function getApiBaseUrl() {
|
|
@@ -208,8 +230,9 @@ function createPluginApiClient(basePath = "") {
|
|
|
208
230
|
}
|
|
209
231
|
};
|
|
210
232
|
}
|
|
211
|
-
|
|
212
|
-
|
|
233
|
+
// ../../../libs/plugins-frontend-sdk/src/lib/frontend.license.ts
|
|
234
|
+
var { useCallback: useCallback$5, useEffect: useEffect$3, useState: useState$7 } = await importShared("react");
|
|
235
|
+
// ../../../node_modules/.pnpm/react@19.3.1/node_modules/react/cjs/react-jsx-runtime.production.js
|
|
213
236
|
/**
|
|
214
237
|
* @license React
|
|
215
238
|
* react-jsx-runtime.production.js
|
|
@@ -243,8 +266,7 @@ var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((expor
|
|
|
243
266
|
exports.jsx = jsxProd;
|
|
244
267
|
exports.jsxs = jsxProd;
|
|
245
268
|
}));
|
|
246
|
-
|
|
247
|
-
//#region ../../../libs/plugins-frontend-sdk/src/lib/frontend.live-updates.tsx
|
|
269
|
+
// ../../../libs/plugins-frontend-sdk/src/lib/frontend.live-updates.tsx
|
|
248
270
|
var import_jsx_runtime = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
249
271
|
module.exports = require_react_jsx_runtime_production();
|
|
250
272
|
})))();
|
|
@@ -255,14 +277,16 @@ contexts[contextKey] ??= createContext(null);
|
|
|
255
277
|
var identityKey = Symbol.for("attraccess.plugin.live-updates.identity");
|
|
256
278
|
var identities = globalThis;
|
|
257
279
|
identities[identityKey] ??= createContext(null);
|
|
258
|
-
|
|
259
|
-
|
|
280
|
+
// ../../../libs/plugins-frontend-sdk/src/lib/frontend.pluggable.ts
|
|
281
|
+
/** Whether the signed-in user holds `permission`. False when signed out or when the host sends no permissions. */
|
|
282
|
+
function hasPluginAuthPermission(authData, permission) {
|
|
283
|
+
return (authData?.effectivePermissions ?? (authData?.user)?.effectivePermissions)?.includes(permission) ?? false;
|
|
284
|
+
}
|
|
285
|
+
// ../../../libs/plugins-frontend-sdk/src/lib/frontend.standard-drawer.tsx
|
|
260
286
|
var { StandardDrawer: SharedStandardDrawer } = await importShared("@attraccess/plugins-frontend-ui");
|
|
261
|
-
|
|
262
|
-
//#region ../../../libs/plugins-frontend-sdk/src/lib/frontend.standard-modal.tsx
|
|
287
|
+
// ../../../libs/plugins-frontend-sdk/src/lib/frontend.standard-modal.tsx
|
|
263
288
|
var { StandardModal: SharedStandardModal } = await importShared("@attraccess/plugins-frontend-ui");
|
|
264
|
-
|
|
265
|
-
//#region frontend/src/fabric-backup/api.ts
|
|
289
|
+
// frontend/src/fabric-backup/api.ts
|
|
266
290
|
/**
|
|
267
291
|
* An error response with the machine-readable `code` the backend sends next to its (English) message. The UI shows
|
|
268
292
|
* the translation of the code; the message is only a fallback and is empty when the response had none.
|
|
@@ -341,8 +365,7 @@ function readFileAsBase64(file) {
|
|
|
341
365
|
reader.readAsDataURL(file);
|
|
342
366
|
});
|
|
343
367
|
}
|
|
344
|
-
|
|
345
|
-
//#region frontend/src/fabric-backup/blockers.ts
|
|
368
|
+
// frontend/src/fabric-backup/blockers.ts
|
|
346
369
|
/**
|
|
347
370
|
* Why "Back up now" is disabled. The backend allows it for a reachable, initialized fabric outside recovery with a
|
|
348
371
|
* recovery key over a secure connection; the status does not carry the transport, so that is what remains.
|
|
@@ -359,8 +382,7 @@ function restoreBlocker({ actions, sidecar }) {
|
|
|
359
382
|
if (actions.canRestore) return null;
|
|
360
383
|
return sidecar.reachable ? "insecure" : "unreachable";
|
|
361
384
|
}
|
|
362
|
-
|
|
363
|
-
//#region frontend/src/fabric-backup/Field.tsx
|
|
385
|
+
// frontend/src/fabric-backup/Field.tsx
|
|
364
386
|
/** One label/value pair of a `<dl>` in the fabric & backup section. */
|
|
365
387
|
function Field$1({ label, children }) {
|
|
366
388
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -374,8 +396,7 @@ function Field$1({ label, children }) {
|
|
|
374
396
|
})]
|
|
375
397
|
});
|
|
376
398
|
}
|
|
377
|
-
|
|
378
|
-
//#region frontend/src/fabric-backup/useFormatSize.ts
|
|
399
|
+
// frontend/src/fabric-backup/useFormatSize.ts
|
|
379
400
|
var { useNumberFormatter } = await importShared("@attraccess/plugins-frontend-ui");
|
|
380
401
|
var { useCallback: useCallback$3 } = await importShared("react");
|
|
381
402
|
var ONE_DECIMAL = {
|
|
@@ -394,8 +415,7 @@ function useFormatSize() {
|
|
|
394
415
|
return `${formatDecimal(bytes / MIB)} MiB`;
|
|
395
416
|
}, [formatInteger, formatDecimal]);
|
|
396
417
|
}
|
|
397
|
-
|
|
398
|
-
//#region frontend/src/fabric-backup/BackupsCard.tsx
|
|
418
|
+
// frontend/src/fabric-backup/BackupsCard.tsx
|
|
399
419
|
var { Button: Button$6, StatusAlert: StatusAlert$9 } = await importShared("@attraccess/plugins-frontend-ui");
|
|
400
420
|
var { Card: Card$4 } = await importShared("@heroui/react");
|
|
401
421
|
var downloadAction = (item) => `download:${item.id}`;
|
|
@@ -441,7 +461,7 @@ function BackupActions({ status, pending, onBackup, onRestore }) {
|
|
|
441
461
|
}, hint))]
|
|
442
462
|
});
|
|
443
463
|
}
|
|
444
|
-
function StoredList({ status, pending, onDownload, formatDateTime }) {
|
|
464
|
+
function StoredList({ status, pending, onDownload, canManage, formatDateTime }) {
|
|
445
465
|
const { t } = useMatterTranslations();
|
|
446
466
|
const formatSize = useFormatSize();
|
|
447
467
|
const { stored } = status.backups;
|
|
@@ -466,7 +486,7 @@ function StoredList({ status, pending, onDownload, formatDateTime }) {
|
|
|
466
486
|
formatSize(item.sizeBytes),
|
|
467
487
|
!item.consistent && ` · ${t("fabric.backups.inconsistentMark")}`
|
|
468
488
|
]
|
|
469
|
-
})] }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$6, {
|
|
489
|
+
})] }), canManage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$6, {
|
|
470
490
|
variant: "tertiary",
|
|
471
491
|
isDisabled: pending !== null,
|
|
472
492
|
isPending: pending === downloadAction(item),
|
|
@@ -507,7 +527,7 @@ function BackupsCard(props) {
|
|
|
507
527
|
]
|
|
508
528
|
}),
|
|
509
529
|
lastAttempt?.outcome === "failed" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LastFailure, { reason: lastAttempt.reason }),
|
|
510
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(BackupActions, { ...props }),
|
|
530
|
+
props.canManage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BackupActions, { ...props }),
|
|
511
531
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoredList, { ...props }),
|
|
512
532
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
513
533
|
className: "mt:text-xs mt:text-muted",
|
|
@@ -517,8 +537,7 @@ function BackupsCard(props) {
|
|
|
517
537
|
})]
|
|
518
538
|
});
|
|
519
539
|
}
|
|
520
|
-
|
|
521
|
-
//#region frontend/src/fabric-backup/errors.ts
|
|
540
|
+
// frontend/src/fabric-backup/errors.ts
|
|
522
541
|
var { useCallback: useCallback$2 } = await importShared("react");
|
|
523
542
|
/** The machine-readable code of a failed fabric & backup request, if the backend sent one. */
|
|
524
543
|
var codeOf = (error) => error instanceof FabricApiError ? error.code : null;
|
|
@@ -538,11 +557,10 @@ function useErrorText() {
|
|
|
538
557
|
return error instanceof Error ? error.message : String(error);
|
|
539
558
|
}, [t, tExists]);
|
|
540
559
|
}
|
|
541
|
-
|
|
542
|
-
//#region frontend/src/fabric-backup/FabricStatusCard.tsx
|
|
560
|
+
// frontend/src/fabric-backup/FabricStatusCard.tsx
|
|
543
561
|
var { Button: Button$5, StatusAlert: StatusAlert$8 } = await importShared("@attraccess/plugins-frontend-ui");
|
|
544
562
|
var { Card: Card$3, Chip: Chip$2 } = await importShared("@heroui/react");
|
|
545
|
-
var { useState: useState$
|
|
563
|
+
var { useState: useState$6 } = await importShared("react");
|
|
546
564
|
/** The leading and trailing hex digits are enough to tell certificates apart; the whole value is one click away. */
|
|
547
565
|
var shortFingerprint = (value) => value.length > 28 ? `${value.slice(0, 16)}…${value.slice(-8)}` : value;
|
|
548
566
|
function stateChip(status) {
|
|
@@ -570,7 +588,7 @@ function stateChip(status) {
|
|
|
570
588
|
/** The shortened fingerprint, with the whole value as tooltip and behind a toggle (keyboard and touch reachable). */
|
|
571
589
|
function Fingerprint({ value }) {
|
|
572
590
|
const { t } = useMatterTranslations();
|
|
573
|
-
const [full, setFull] = useState$
|
|
591
|
+
const [full, setFull] = useState$6(false);
|
|
574
592
|
const short = shortFingerprint(value);
|
|
575
593
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
576
594
|
className: "mt:flex mt:flex-wrap mt:items-center mt:gap-2",
|
|
@@ -668,7 +686,7 @@ function FabricStatusCard(props) {
|
|
|
668
686
|
recovery.required && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RecoveryAlert, { status }),
|
|
669
687
|
uninitialized && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
670
688
|
"data-cy": "matter-fabric-uninitialized",
|
|
671
|
-
children: t("fabric.uninitializedText")
|
|
689
|
+
children: t(props.canManage ? "fabric.uninitializedText" : "fabric.uninitializedTextReadOnly")
|
|
672
690
|
}),
|
|
673
691
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("dl", {
|
|
674
692
|
className: "mt:grid mt:grid-cols-1 mt:gap-3 mt:sm:grid-cols-2",
|
|
@@ -707,17 +725,16 @@ function FabricStatusCard(props) {
|
|
|
707
725
|
})]
|
|
708
726
|
})]
|
|
709
727
|
}),
|
|
710
|
-
uninitialized && actions.canCreateFabric && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CreateActions, { ...props })
|
|
728
|
+
props.canManage && uninitialized && actions.canCreateFabric && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CreateActions, { ...props })
|
|
711
729
|
]
|
|
712
730
|
})]
|
|
713
731
|
});
|
|
714
732
|
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
var { Button: Button$4, StatusAlert: StatusAlert$7 } = await importShared("@attraccess/plugins-frontend-ui");
|
|
733
|
+
// frontend/src/fabric-backup/KeyCard.tsx
|
|
734
|
+
var { Button: Button$4, ConfirmableButton: ConfirmableButton$2, StatusAlert: StatusAlert$7 } = await importShared("@attraccess/plugins-frontend-ui");
|
|
718
735
|
var { Card: Card$2 } = await importShared("@heroui/react");
|
|
719
736
|
/** The recovery key's ID and state (never the key itself), with generate or rotate. */
|
|
720
|
-
function KeyCard({ status, busy, generating, onGenerateKey, onRotate, formatDateTime }) {
|
|
737
|
+
function KeyCard({ status, busy, generating, rotating, onGenerateKey, onRotate, canManage, formatDateTime }) {
|
|
721
738
|
const { t } = useMatterTranslations();
|
|
722
739
|
const { sidecar, recovery, recoveryKey } = status;
|
|
723
740
|
const initialized = sidecar.reachable && sidecar.state === "initialized";
|
|
@@ -740,20 +757,28 @@ function KeyCard({ status, busy, generating, onGenerateKey, onRotate, formatDate
|
|
|
740
757
|
status: "warning",
|
|
741
758
|
title: t("fabric.key.missing"),
|
|
742
759
|
"data-cy": "matter-key-missing",
|
|
743
|
-
children: t("fabric.key.missingText")
|
|
760
|
+
children: t(canManage ? "fabric.key.missingText" : "fabric.key.missingTextReadOnly")
|
|
744
761
|
}),
|
|
745
762
|
recoveryKey.present && !recoveryKey.acknowledged && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert$7, {
|
|
746
763
|
status: "warning",
|
|
747
764
|
title: t("fabric.key.unacknowledged"),
|
|
748
765
|
"data-cy": "matter-key-unacknowledged",
|
|
749
|
-
children: t("fabric.key.unacknowledgedText")
|
|
766
|
+
children: t(canManage ? "fabric.key.unacknowledgedText" : "fabric.key.unacknowledgedTextReadOnly")
|
|
750
767
|
}),
|
|
751
|
-
!recovery.required && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: recoveryKey.present ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
752
|
-
|
|
768
|
+
canManage && !recovery.required && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: recoveryKey.present ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ConfirmableButton$2, {
|
|
769
|
+
label: t("fabric.key.rotate"),
|
|
770
|
+
status: "warning",
|
|
753
771
|
isDisabled: busy || !initialized,
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
772
|
+
isPending: rotating,
|
|
773
|
+
onConfirm: onRotate,
|
|
774
|
+
confirm: {
|
|
775
|
+
title: t("fabric.key.rotateTitle"),
|
|
776
|
+
message: t("fabric.key.rotateText"),
|
|
777
|
+
confirmLabel: t("fabric.key.rotateConfirm"),
|
|
778
|
+
"data-cy": "matter-rotate-dialog",
|
|
779
|
+
confirmDataCy: "matter-rotate-confirm"
|
|
780
|
+
},
|
|
781
|
+
"data-cy": "matter-key-rotate"
|
|
757
782
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$4, {
|
|
758
783
|
isDisabled: busy || !initialized,
|
|
759
784
|
isPending: generating,
|
|
@@ -765,11 +790,10 @@ function KeyCard({ status, busy, generating, onGenerateKey, onRotate, formatDate
|
|
|
765
790
|
})]
|
|
766
791
|
});
|
|
767
792
|
}
|
|
768
|
-
|
|
769
|
-
//#region frontend/src/fabric-backup/RecoveryKeyModal.tsx
|
|
793
|
+
// frontend/src/fabric-backup/RecoveryKeyModal.tsx
|
|
770
794
|
var { Button: Button$3, StandardModal: StandardModal$1, StatusAlert: StatusAlert$6 } = await importShared("@attraccess/plugins-frontend-ui");
|
|
771
795
|
var { Checkbox, ModalBody: ModalBody$1, ModalFooter: ModalFooter$1, ModalHeader: ModalHeader$1, ModalHeading: ModalHeading$1 } = await importShared("@heroui/react");
|
|
772
|
-
var { useState: useState$
|
|
796
|
+
var { useState: useState$5 } = await importShared("react");
|
|
773
797
|
/**
|
|
774
798
|
* The one and only place the recovery key is visible. It cannot be dismissed (no close button, no Escape, no
|
|
775
799
|
* backdrop click) until the administrator confirms they stored the key; only then is the key forgotten.
|
|
@@ -777,10 +801,10 @@ var { useState: useState$6 } = await importShared("react");
|
|
|
777
801
|
function RecoveryKeyModal({ reveal, onAcknowledge, onDone }) {
|
|
778
802
|
const { t } = useMatterTranslations();
|
|
779
803
|
const errorText = useErrorText();
|
|
780
|
-
const [confirmed, setConfirmed] = useState$
|
|
781
|
-
const [copied, setCopied] = useState$
|
|
782
|
-
const [busy, setBusy] = useState$
|
|
783
|
-
const [error, setError] = useState$
|
|
804
|
+
const [confirmed, setConfirmed] = useState$5(false);
|
|
805
|
+
const [copied, setCopied] = useState$5(false);
|
|
806
|
+
const [busy, setBusy] = useState$5(false);
|
|
807
|
+
const [error, setError] = useState$5(null);
|
|
784
808
|
const copy = async () => {
|
|
785
809
|
try {
|
|
786
810
|
await navigator.clipboard.writeText(reveal.key);
|
|
@@ -883,104 +907,80 @@ function RecoveryKeyModal({ reveal, onAcknowledge, onDone }) {
|
|
|
883
907
|
]
|
|
884
908
|
});
|
|
885
909
|
}
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
var { Button: Button$2, StatusAlert: StatusAlert$5, StatusDialog: StatusDialog$2 } = await importShared("@attraccess/plugins-frontend-ui");
|
|
910
|
+
// frontend/src/fabric-backup/RecoveryPanel.tsx
|
|
911
|
+
var { Button: Button$2, ConfirmableButton: ConfirmableButton$1, StatusAlert: StatusAlert$5 } = await importShared("@attraccess/plugins-frontend-ui");
|
|
889
912
|
var { Card: Card$1 } = await importShared("@heroui/react");
|
|
890
|
-
var { useState: useState$5 } = await importShared("react");
|
|
891
913
|
/**
|
|
892
914
|
* Recovery options for a plugin in `recovery_required`. Each option is admin-confirmed; none runs automatically.
|
|
893
915
|
* An option the current sidecar state does not allow stays visible but disabled, with the reason.
|
|
894
916
|
*/
|
|
895
917
|
function RecoveryPanel({ status, pending, onRestore, onAcceptSidecar, onStartNew }) {
|
|
896
918
|
const { t } = useMatterTranslations();
|
|
897
|
-
const [confirm, setConfirm] = useState$5(null);
|
|
898
919
|
const canAccept = status.actions.canAcceptSidecar && status.sidecar.state === "initialized";
|
|
899
920
|
const canStartNew = status.actions.canStartNew && status.sidecar.state === "uninitialized";
|
|
900
921
|
const restoreBlocked = restoreBlocker(status);
|
|
901
922
|
const busy = pending !== null;
|
|
902
|
-
const run = async (action) => {
|
|
903
|
-
try {
|
|
904
|
-
await action();
|
|
905
|
-
} finally {
|
|
906
|
-
setConfirm(null);
|
|
907
|
-
}
|
|
908
|
-
};
|
|
909
923
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card$1, {
|
|
910
924
|
"data-cy": "matter-recovery-panel",
|
|
911
|
-
children: [
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
"data-cy": "matter-recovery-restore",
|
|
928
|
-
children: t("fabric.recovery.restoreAction")
|
|
929
|
-
})
|
|
930
|
-
}),
|
|
931
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Option, {
|
|
932
|
-
title: t("fabric.recovery.acceptTitle"),
|
|
933
|
-
text: canAccept ? t("fabric.recovery.acceptText") : t("fabric.recovery.acceptUnavailable"),
|
|
934
|
-
action: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$2, {
|
|
935
|
-
variant: "secondary",
|
|
936
|
-
isDisabled: busy || !canAccept,
|
|
937
|
-
onPress: () => setConfirm("accept"),
|
|
938
|
-
"data-cy": "matter-recovery-accept",
|
|
939
|
-
children: t("fabric.recovery.acceptAction")
|
|
940
|
-
})
|
|
941
|
-
}),
|
|
942
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Option, {
|
|
943
|
-
title: t("fabric.recovery.newTitle"),
|
|
944
|
-
text: canStartNew ? t("fabric.recovery.newText") : t("fabric.recovery.newUnavailable"),
|
|
945
|
-
action: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$2, {
|
|
946
|
-
variant: "danger-soft",
|
|
947
|
-
isDisabled: busy || !canStartNew,
|
|
948
|
-
onPress: () => setConfirm("start-new"),
|
|
949
|
-
"data-cy": "matter-recovery-new",
|
|
950
|
-
children: t("fabric.recovery.newAction")
|
|
951
|
-
})
|
|
925
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card$1.Header, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card$1.Title, { children: t("fabric.recovery.title") }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card$1.Content, {
|
|
926
|
+
className: "mt:flex mt:flex-col mt:gap-4",
|
|
927
|
+
children: [
|
|
928
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert$5, {
|
|
929
|
+
status: "danger",
|
|
930
|
+
title: t("fabric.recovery.blocked"),
|
|
931
|
+
children: t("fabric.recovery.blockedText")
|
|
932
|
+
}),
|
|
933
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Option, {
|
|
934
|
+
title: t("fabric.recovery.restoreTitle"),
|
|
935
|
+
text: restoreBlocked ? t(`fabric.blocked.${restoreBlocked}`) : t("fabric.recovery.restoreText"),
|
|
936
|
+
action: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$2, {
|
|
937
|
+
isDisabled: busy || restoreBlocked !== null,
|
|
938
|
+
onPress: onRestore,
|
|
939
|
+
"data-cy": "matter-recovery-restore",
|
|
940
|
+
children: t("fabric.recovery.restoreAction")
|
|
952
941
|
})
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
942
|
+
}),
|
|
943
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Option, {
|
|
944
|
+
title: t("fabric.recovery.acceptTitle"),
|
|
945
|
+
text: canAccept ? t("fabric.recovery.acceptText") : t("fabric.recovery.acceptUnavailable"),
|
|
946
|
+
action: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ConfirmableButton$1, {
|
|
947
|
+
label: t("fabric.recovery.acceptAction"),
|
|
948
|
+
status: "warning",
|
|
949
|
+
isDisabled: busy || !canAccept,
|
|
950
|
+
isPending: pending === "accept",
|
|
951
|
+
onConfirm: onAcceptSidecar,
|
|
952
|
+
confirm: {
|
|
953
|
+
title: t("fabric.recovery.acceptConfirmTitle"),
|
|
954
|
+
message: t("fabric.recovery.acceptConfirmText"),
|
|
955
|
+
confirmLabel: t("fabric.recovery.acceptConfirm"),
|
|
956
|
+
"data-cy": "matter-recovery-accept-dialog",
|
|
957
|
+
confirmDataCy: "matter-recovery-accept-confirm"
|
|
958
|
+
},
|
|
959
|
+
"data-cy": "matter-recovery-accept"
|
|
960
|
+
})
|
|
961
|
+
}),
|
|
962
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Option, {
|
|
963
|
+
title: t("fabric.recovery.newTitle"),
|
|
964
|
+
text: canStartNew ? t("fabric.recovery.newText") : t("fabric.recovery.newUnavailable"),
|
|
965
|
+
action: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ConfirmableButton$1, {
|
|
966
|
+
label: t("fabric.recovery.newAction"),
|
|
967
|
+
status: "error",
|
|
968
|
+
buttonProps: { variant: "danger-soft" },
|
|
969
|
+
isDisabled: busy || !canStartNew,
|
|
970
|
+
isPending: pending === "startNew",
|
|
971
|
+
onConfirm: onStartNew,
|
|
972
|
+
confirm: {
|
|
973
|
+
title: t("fabric.recovery.newConfirmTitle"),
|
|
974
|
+
message: t("fabric.recovery.newConfirmText"),
|
|
975
|
+
confirmLabel: t("fabric.recovery.newConfirm"),
|
|
976
|
+
"data-cy": "matter-recovery-new-dialog",
|
|
977
|
+
confirmDataCy: "matter-recovery-new-confirm"
|
|
978
|
+
},
|
|
979
|
+
"data-cy": "matter-recovery-new"
|
|
980
|
+
})
|
|
981
|
+
})
|
|
982
|
+
]
|
|
983
|
+
})]
|
|
984
984
|
});
|
|
985
985
|
}
|
|
986
986
|
function Option({ title, text, action }) {
|
|
@@ -998,9 +998,8 @@ function Option({ title, text, action }) {
|
|
|
998
998
|
})]
|
|
999
999
|
});
|
|
1000
1000
|
}
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
var { PasswordInput: PasswordInput$1, StatusAlert: StatusAlert$4, useDateTimeFormatter: useDateTimeFormatter$4 } = await importShared("@attraccess/plugins-frontend-ui");
|
|
1001
|
+
// frontend/src/fabric-backup/RestoreSourceStep.tsx
|
|
1002
|
+
var { FileInput, PasswordInput: PasswordInput$1, StatusAlert: StatusAlert$4, useDateTimeFormatter: useDateTimeFormatter$4 } = await importShared("@attraccess/plugins-frontend-ui");
|
|
1004
1003
|
var { Description: Description$1, Label: Label$2, Radio, RadioGroup } = await importShared("@heroui/react");
|
|
1005
1004
|
/** Codes after which the backup has to be validated again: the wizard returns here with source and key kept. */
|
|
1006
1005
|
var RETRY_CODES = /* @__PURE__ */ new Set([
|
|
@@ -1065,10 +1064,8 @@ function RestoreSourceStep(props) {
|
|
|
1065
1064
|
onBackupId: props.onBackupId
|
|
1066
1065
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", {
|
|
1067
1066
|
className: "mt:flex mt:flex-col mt:gap-1 mt:text-sm",
|
|
1068
|
-
children: [t("fabric.restore.file"), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1069
|
-
type: "file",
|
|
1067
|
+
children: [t("fabric.restore.file"), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FileInput, {
|
|
1070
1068
|
accept: ".attraccess-matter-backup,application/octet-stream",
|
|
1071
|
-
className: "mt:block mt:w-full mt:cursor-pointer mt:text-sm mt:file:mr-3 mt:file:cursor-pointer mt:file:rounded-lg mt:file:border-0 mt:file:bg-default mt:file:px-3 mt:file:py-1.5 mt:file:text-sm mt:file:font-medium mt:file:text-foreground",
|
|
1072
1069
|
onChange: (event) => props.onFile(event.target.files?.[0] ?? null),
|
|
1073
1070
|
"data-cy": "matter-restore-file"
|
|
1074
1071
|
})]
|
|
@@ -1089,8 +1086,7 @@ function RestoreSourceStep(props) {
|
|
|
1089
1086
|
})
|
|
1090
1087
|
] });
|
|
1091
1088
|
}
|
|
1092
|
-
|
|
1093
|
-
//#region frontend/src/fabric-backup/RestoreWizard.tsx
|
|
1089
|
+
// frontend/src/fabric-backup/RestoreWizard.tsx
|
|
1094
1090
|
var { Button: Button$1, StandardModal, StatusAlert: StatusAlert$3, useDateTimeFormatter: useDateTimeFormatter$3 } = await importShared("@attraccess/plugins-frontend-ui");
|
|
1095
1091
|
var { Chip: Chip$1, Input: Input$1, Label: Label$1, ModalBody, ModalFooter, ModalHeader, ModalHeading, TextField: TextField$1 } = await importShared("@heroui/react");
|
|
1096
1092
|
var { useState: useState$4 } = await importShared("react");
|
|
@@ -1353,8 +1349,7 @@ function RestoreWizard({ stored, onClose, onRestored }) {
|
|
|
1353
1349
|
]
|
|
1354
1350
|
});
|
|
1355
1351
|
}
|
|
1356
|
-
|
|
1357
|
-
//#region frontend/src/fabric-backup/useFabricBackup.ts
|
|
1352
|
+
// frontend/src/fabric-backup/useFabricBackup.ts
|
|
1358
1353
|
var { useCallback: useCallback$1, useEffect: useEffect$1, useRef: useRef$1, useState: useState$3 } = await importShared("react");
|
|
1359
1354
|
var FABRIC_POLL_MS = 1e4;
|
|
1360
1355
|
/** The longest pause between polls while the status keeps failing. */
|
|
@@ -1425,8 +1420,7 @@ function useFabricBackup() {
|
|
|
1425
1420
|
setStatus
|
|
1426
1421
|
};
|
|
1427
1422
|
}
|
|
1428
|
-
|
|
1429
|
-
//#region frontend/src/fabric-backup/FabricBackupSection.tsx
|
|
1423
|
+
// frontend/src/fabric-backup/FabricBackupSection.tsx
|
|
1430
1424
|
var { StatusAlert: StatusAlert$2, StatusDialog: StatusDialog$1, useDateTimeFormatter: useDateTimeFormatter$2 } = await importShared("@attraccess/plugins-frontend-ui");
|
|
1431
1425
|
var { Spinner: Spinner$1 } = await importShared("@heroui/react");
|
|
1432
1426
|
var { useState: useState$2 } = await importShared("react");
|
|
@@ -1436,8 +1430,11 @@ var { useState: useState$2 } = await importShared("react");
|
|
|
1436
1430
|
*
|
|
1437
1431
|
* The recovery key lives only in `reveal` state while the reveal modal is open; it is never put into the status,
|
|
1438
1432
|
* a cache or storage, and is dropped as soon as the administrator acknowledged it.
|
|
1433
|
+
*
|
|
1434
|
+
* Shown with `matter.devices.read`. Every action, the recovery panel and the downloads need `canManage`
|
|
1435
|
+
* (`matter.devices.manage`) and are hidden without it.
|
|
1439
1436
|
*/
|
|
1440
|
-
function FabricBackupSection() {
|
|
1437
|
+
function FabricBackupSection({ canManage }) {
|
|
1441
1438
|
const { t } = useMatterTranslations();
|
|
1442
1439
|
const errorText = useErrorText();
|
|
1443
1440
|
const formatDateTime = useDateTimeFormatter$2({ showSeconds: true });
|
|
@@ -1447,7 +1444,6 @@ function FabricBackupSection() {
|
|
|
1447
1444
|
const [pending, setPending] = useState$2(null);
|
|
1448
1445
|
const [notice, setNotice] = useState$2(null);
|
|
1449
1446
|
const [restoring, setRestoring] = useState$2(false);
|
|
1450
|
-
const [rotating, setRotating] = useState$2(false);
|
|
1451
1447
|
const act = async (name, title, action, keyOf) => {
|
|
1452
1448
|
setPending(name);
|
|
1453
1449
|
try {
|
|
@@ -1473,12 +1469,8 @@ function FabricBackupSection() {
|
|
|
1473
1469
|
await refresh();
|
|
1474
1470
|
});
|
|
1475
1471
|
const rotate = () => act("rotate", t("fabric.key.rotateError"), async () => {
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
} finally {
|
|
1479
|
-
setRotating(false);
|
|
1480
|
-
}
|
|
1481
|
-
await refresh();
|
|
1472
|
+
showKey(await rotateRecoveryKey());
|
|
1473
|
+
refresh();
|
|
1482
1474
|
});
|
|
1483
1475
|
const backup = () => act("backup", t("fabric.backups.error"), async () => {
|
|
1484
1476
|
await backUpNow();
|
|
@@ -1500,10 +1492,11 @@ function FabricBackupSection() {
|
|
|
1500
1492
|
status,
|
|
1501
1493
|
busy,
|
|
1502
1494
|
creating: pending === "create",
|
|
1495
|
+
canManage,
|
|
1503
1496
|
onCreate: () => void create(),
|
|
1504
1497
|
onRestore: openRestore
|
|
1505
1498
|
}),
|
|
1506
|
-
status.recovery.required && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RecoveryPanel, {
|
|
1499
|
+
canManage && status.recovery.required && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RecoveryPanel, {
|
|
1507
1500
|
status,
|
|
1508
1501
|
pending,
|
|
1509
1502
|
onRestore: openRestore,
|
|
@@ -1514,8 +1507,10 @@ function FabricBackupSection() {
|
|
|
1514
1507
|
status,
|
|
1515
1508
|
busy,
|
|
1516
1509
|
generating: pending === "generateKey",
|
|
1510
|
+
rotating: pending === "rotate",
|
|
1511
|
+
canManage,
|
|
1517
1512
|
onGenerateKey: () => void generateKey(),
|
|
1518
|
-
onRotate:
|
|
1513
|
+
onRotate: rotate,
|
|
1519
1514
|
formatDateTime
|
|
1520
1515
|
}),
|
|
1521
1516
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(BackupsCard, {
|
|
@@ -1524,6 +1519,7 @@ function FabricBackupSection() {
|
|
|
1524
1519
|
onBackup: () => void backup(),
|
|
1525
1520
|
onDownload: (item) => void download(item),
|
|
1526
1521
|
onRestore: openRestore,
|
|
1522
|
+
canManage,
|
|
1527
1523
|
formatDateTime
|
|
1528
1524
|
})
|
|
1529
1525
|
] });
|
|
@@ -1547,7 +1543,7 @@ function FabricBackupSection() {
|
|
|
1547
1543
|
onAcknowledge: acknowledge,
|
|
1548
1544
|
onDone: () => setReveal(null)
|
|
1549
1545
|
}),
|
|
1550
|
-
restoring && status && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RestoreWizard, {
|
|
1546
|
+
canManage && restoring && status && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RestoreWizard, {
|
|
1551
1547
|
stored: status.backups.stored,
|
|
1552
1548
|
onClose: () => {
|
|
1553
1549
|
setRestoring(false);
|
|
@@ -1555,20 +1551,6 @@ function FabricBackupSection() {
|
|
|
1555
1551
|
},
|
|
1556
1552
|
onRestored: setStatus
|
|
1557
1553
|
}),
|
|
1558
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusDialog$1, {
|
|
1559
|
-
isOpen: rotating,
|
|
1560
|
-
status: "warning",
|
|
1561
|
-
title: t("fabric.key.rotateTitle"),
|
|
1562
|
-
onClose: () => setRotating(false),
|
|
1563
|
-
action: {
|
|
1564
|
-
label: t("fabric.key.rotateConfirm"),
|
|
1565
|
-
isPending: pending === "rotate",
|
|
1566
|
-
onPress: rotate,
|
|
1567
|
-
"data-cy": "matter-rotate-confirm"
|
|
1568
|
-
},
|
|
1569
|
-
"data-cy": "matter-rotate-dialog",
|
|
1570
|
-
children: t("fabric.key.rotateText")
|
|
1571
|
-
}),
|
|
1572
1554
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusDialog$1, {
|
|
1573
1555
|
isOpen: notice !== null,
|
|
1574
1556
|
status: "error",
|
|
@@ -1580,15 +1562,45 @@ function FabricBackupSection() {
|
|
|
1580
1562
|
]
|
|
1581
1563
|
});
|
|
1582
1564
|
}
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
var
|
|
1565
|
+
// frontend/src/permissions.ts
|
|
1566
|
+
var { useSyncExternalStore } = await importShared("react");
|
|
1567
|
+
var authData = null;
|
|
1568
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
1569
|
+
function setMatterAuthData(next) {
|
|
1570
|
+
authData = next;
|
|
1571
|
+
for (const listener of listeners) listener();
|
|
1572
|
+
}
|
|
1573
|
+
var subscribe = (listener) => {
|
|
1574
|
+
listeners.add(listener);
|
|
1575
|
+
return () => listeners.delete(listener);
|
|
1576
|
+
};
|
|
1577
|
+
function useMatterPermissions() {
|
|
1578
|
+
const current = useSyncExternalStore(subscribe, () => authData);
|
|
1579
|
+
const canRead = hasPluginAuthPermission(current, MATTER_DEVICES_READ);
|
|
1580
|
+
return {
|
|
1581
|
+
known: current !== null,
|
|
1582
|
+
canRead,
|
|
1583
|
+
canManage: canRead && hasPluginAuthPermission(current, "matter.devices.manage")
|
|
1584
|
+
};
|
|
1585
|
+
}
|
|
1586
|
+
// frontend/src/SettingsForm.tsx
|
|
1587
|
+
var { Button, ConfirmableButton, PasswordInput, StatusDialog, useDateTimeFormatter: useDateTimeFormatter$1 } = await importShared("@attraccess/plugins-frontend-ui");
|
|
1586
1588
|
var { Description, Form, Input, Label, TextArea, TextField } = await importShared("@heroui/react");
|
|
1587
1589
|
var { useState: useState$1 } = await importShared("react");
|
|
1588
1590
|
var messageOf$1 = (error) => error instanceof Error ? error.message : String(error);
|
|
1591
|
+
/** The URL as the backend stores it (origin and path without trailing slashes), so a respelling is no change. */
|
|
1592
|
+
function normalizedUrl(value) {
|
|
1593
|
+
try {
|
|
1594
|
+
const parsed = new URL(value.trim());
|
|
1595
|
+
return `${parsed.origin}${parsed.pathname.replace(/\/+$/, "")}`;
|
|
1596
|
+
} catch {
|
|
1597
|
+
return value.trim();
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1589
1600
|
/**
|
|
1590
1601
|
* The token is write-only: once saved, the form only shows that one is configured and offers to replace it. The
|
|
1591
|
-
* backend never sends it back.
|
|
1602
|
+
* backend never sends it back. Changing the URL or the CA certificate needs the token again, so a stored token never
|
|
1603
|
+
* goes to a new endpoint; the backend refuses such a save without it.
|
|
1592
1604
|
*/
|
|
1593
1605
|
function SettingsForm({ settings, onSave, onRemove }) {
|
|
1594
1606
|
const { t } = useMatterTranslations();
|
|
@@ -1601,11 +1613,13 @@ function SettingsForm({ settings, onSave, onRemove }) {
|
|
|
1601
1613
|
const [busy, setBusy] = useState$1(false);
|
|
1602
1614
|
const [notice, setNotice] = useState$1(null);
|
|
1603
1615
|
const caChanged = caCleared || ca.trim() !== (settings.caCertificate ?? "").trim();
|
|
1604
|
-
const
|
|
1616
|
+
const endpointChanged = settings.credentialConfigured && (caChanged || settings.url !== null && normalizedUrl(url) !== normalizedUrl(settings.url));
|
|
1617
|
+
const needsCredential = replacing || endpointChanged;
|
|
1618
|
+
const canSave = url.trim() !== "" && (!needsCredential || credential !== "") && !busy;
|
|
1605
1619
|
const submit = async (event) => {
|
|
1606
1620
|
event.preventDefault();
|
|
1607
1621
|
const input = { url: url.trim() };
|
|
1608
|
-
if (
|
|
1622
|
+
if (needsCredential) input.credential = credential;
|
|
1609
1623
|
if (caChanged) input.caCertificate = ca.trim() === "" || caCleared ? null : ca.trim();
|
|
1610
1624
|
setBusy(true);
|
|
1611
1625
|
try {
|
|
@@ -1673,16 +1687,16 @@ function SettingsForm({ settings, onSave, onRemove }) {
|
|
|
1673
1687
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Description, { children: t("form.urlDescription") })
|
|
1674
1688
|
]
|
|
1675
1689
|
}),
|
|
1676
|
-
|
|
1690
|
+
needsCredential ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1677
1691
|
className: "mt:flex mt:flex-col mt:gap-2",
|
|
1678
1692
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PasswordInput, {
|
|
1679
1693
|
label: t("form.credential"),
|
|
1680
|
-
description: t("form.credentialDescription"),
|
|
1694
|
+
description: endpointChanged ? t("form.credentialReenter") : t("form.credentialDescription"),
|
|
1681
1695
|
autoComplete: "new-password",
|
|
1682
1696
|
value: credential,
|
|
1683
1697
|
onValueChange: setCredential,
|
|
1684
1698
|
"data-cy": "matter-credential-input"
|
|
1685
|
-
}), settings.credentialConfigured && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
|
|
1699
|
+
}), settings.credentialConfigured && !endpointChanged && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
|
|
1686
1700
|
variant: "tertiary",
|
|
1687
1701
|
onPress: () => setReplacing(false),
|
|
1688
1702
|
"data-cy": "matter-keep-credential",
|
|
@@ -1732,12 +1746,18 @@ function SettingsForm({ settings, onSave, onRemove }) {
|
|
|
1732
1746
|
isPending: busy,
|
|
1733
1747
|
"data-cy": "matter-save",
|
|
1734
1748
|
children: t("form.save")
|
|
1735
|
-
}), settings.url !== null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1736
|
-
|
|
1749
|
+
}), settings.url !== null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ConfirmableButton, {
|
|
1750
|
+
label: t("form.remove"),
|
|
1751
|
+
status: "error",
|
|
1737
1752
|
isDisabled: busy,
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1753
|
+
onConfirm: remove,
|
|
1754
|
+
confirm: {
|
|
1755
|
+
title: t("form.removeTitle"),
|
|
1756
|
+
message: t("form.removeText"),
|
|
1757
|
+
confirmLabel: t("form.removeConfirm"),
|
|
1758
|
+
"data-cy": "matter-remove-dialog"
|
|
1759
|
+
},
|
|
1760
|
+
"data-cy": "matter-remove"
|
|
1741
1761
|
})]
|
|
1742
1762
|
})
|
|
1743
1763
|
]
|
|
@@ -1757,28 +1777,11 @@ function SettingsForm({ settings, onSave, onRemove }) {
|
|
|
1757
1777
|
onClose: () => setNotice(null),
|
|
1758
1778
|
"data-cy": "matter-error-dialog",
|
|
1759
1779
|
children: notice?.kind === "error" ? notice.message : ""
|
|
1760
|
-
}),
|
|
1761
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusDialog, {
|
|
1762
|
-
isOpen: notice?.kind === "remove",
|
|
1763
|
-
status: "warning",
|
|
1764
|
-
title: t("form.removeTitle"),
|
|
1765
|
-
onClose: () => setNotice(null),
|
|
1766
|
-
action: {
|
|
1767
|
-
label: t("form.removeConfirm"),
|
|
1768
|
-
isPending: busy,
|
|
1769
|
-
onPress: async () => {
|
|
1770
|
-
setNotice(null);
|
|
1771
|
-
await remove();
|
|
1772
|
-
}
|
|
1773
|
-
},
|
|
1774
|
-
"data-cy": "matter-remove-dialog",
|
|
1775
|
-
children: t("form.removeText")
|
|
1776
1780
|
})
|
|
1777
1781
|
]
|
|
1778
1782
|
});
|
|
1779
1783
|
}
|
|
1780
|
-
|
|
1781
|
-
//#region frontend/src/StatusCard.tsx
|
|
1784
|
+
// frontend/src/StatusCard.tsx
|
|
1782
1785
|
var { StatusAlert: StatusAlert$1, useDateTimeFormatter } = await importShared("@attraccess/plugins-frontend-ui");
|
|
1783
1786
|
var { Card, Chip } = await importShared("@heroui/react");
|
|
1784
1787
|
var STATE_COLOR = {
|
|
@@ -1807,13 +1810,25 @@ function Field({ label, children, dataCy }) {
|
|
|
1807
1810
|
})]
|
|
1808
1811
|
});
|
|
1809
1812
|
}
|
|
1810
|
-
|
|
1811
|
-
|
|
1813
|
+
var READ_ONLY_HINTS = /* @__PURE__ */ new Set([
|
|
1814
|
+
"hint.not_configured",
|
|
1815
|
+
"hint.unauthorized",
|
|
1816
|
+
"hint.unavailable",
|
|
1817
|
+
"hint.misconfigured",
|
|
1818
|
+
"hint.incompatible",
|
|
1819
|
+
"hint.hostVersion"
|
|
1820
|
+
]);
|
|
1821
|
+
/** What the administrator can do about the current state, or what a read-only user should expect. */
|
|
1822
|
+
function hintKey(status, canManage = true) {
|
|
1823
|
+
const key = baseHintKey(status);
|
|
1824
|
+
return !canManage && READ_ONLY_HINTS.has(key) ? `${key}ReadOnly` : key;
|
|
1825
|
+
}
|
|
1826
|
+
function baseHintKey(status) {
|
|
1812
1827
|
if (status.state !== "degraded") return `hint.${status.state}`;
|
|
1813
1828
|
if (status.reasonDetail === "host version unavailable") return "hint.hostVersion";
|
|
1814
1829
|
return `hint.${status.reason ?? "unavailable"}`;
|
|
1815
1830
|
}
|
|
1816
|
-
/** The lowest Attraccess version of the first supported combination, e.g. `
|
|
1831
|
+
/** The lowest Attraccess version of the first supported combination, e.g. `2.0.0` for `^2.0.0`. */
|
|
1817
1832
|
function minimumAttraccess(status) {
|
|
1818
1833
|
const range = status.supported[0]?.attraccess ?? "";
|
|
1819
1834
|
return range.match(/\d+\.\d+\.\d+/)?.[0] ?? range;
|
|
@@ -1828,7 +1843,7 @@ function Combination({ entry }) {
|
|
|
1828
1843
|
matterJs: value("matterJs")
|
|
1829
1844
|
}) });
|
|
1830
1845
|
}
|
|
1831
|
-
function StatusCard({ status }) {
|
|
1846
|
+
function StatusCard({ status, canManage }) {
|
|
1832
1847
|
const { t } = useMatterTranslations();
|
|
1833
1848
|
const formatDateTime = useDateTimeFormatter({ showSeconds: true });
|
|
1834
1849
|
const error = status.lastError;
|
|
@@ -1854,7 +1869,7 @@ function StatusCard({ status }) {
|
|
|
1854
1869
|
}),
|
|
1855
1870
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
1856
1871
|
"data-cy": "matter-hint",
|
|
1857
|
-
children: t(hintKey(status), { attraccess: minimumAttraccess(status) })
|
|
1872
|
+
children: t(hintKey(status, canManage), { attraccess: minimumAttraccess(status) })
|
|
1858
1873
|
}),
|
|
1859
1874
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("dl", {
|
|
1860
1875
|
className: "mt:grid mt:grid-cols-1 mt:gap-3 mt:sm:grid-cols-2",
|
|
@@ -1918,8 +1933,7 @@ function StatusCard({ status }) {
|
|
|
1918
1933
|
})]
|
|
1919
1934
|
});
|
|
1920
1935
|
}
|
|
1921
|
-
|
|
1922
|
-
//#region frontend/src/api.ts
|
|
1936
|
+
// frontend/src/api.ts
|
|
1923
1937
|
var api = createPluginApiClient("/api/matter/connection");
|
|
1924
1938
|
var getSettings = () => api.request("");
|
|
1925
1939
|
var getStatus = () => api.request("/status");
|
|
@@ -1928,8 +1942,7 @@ var saveSettings = (input) => api.request("", {
|
|
|
1928
1942
|
body: input
|
|
1929
1943
|
});
|
|
1930
1944
|
var removeSettings = () => api.request("", { method: "DELETE" });
|
|
1931
|
-
|
|
1932
|
-
//#region frontend/src/useMatterPage.ts
|
|
1945
|
+
// frontend/src/useMatterPage.ts
|
|
1933
1946
|
var { useCallback, useEffect, useRef, useState } = await importShared("react");
|
|
1934
1947
|
/** How often the open page refreshes the connection status. */
|
|
1935
1948
|
var STATUS_POLL_MS = 5e3;
|
|
@@ -1948,8 +1961,11 @@ function withTimeout(request) {
|
|
|
1948
1961
|
*
|
|
1949
1962
|
* A poll tick is skipped while an earlier request is still pending, so a hanging API does not pile up requests, and
|
|
1950
1963
|
* only the newest status request may update the page, so a late answer never overwrites a newer one.
|
|
1964
|
+
*
|
|
1965
|
+
* Nothing is requested that the API would refuse: the status needs `canRead`, the settings need `canManage`. Until the
|
|
1966
|
+
* host has pushed the auth state (`known`), nothing is requested and the page keeps loading.
|
|
1951
1967
|
*/
|
|
1952
|
-
function useMatterPage() {
|
|
1968
|
+
function useMatterPage({ known, canRead, canManage }) {
|
|
1953
1969
|
const [settings, setSettings] = useState(null);
|
|
1954
1970
|
const [status, setStatus] = useState(null);
|
|
1955
1971
|
const [statusError, setStatusError] = useState(null);
|
|
@@ -1990,16 +2006,30 @@ function useMatterPage() {
|
|
|
1990
2006
|
}, []);
|
|
1991
2007
|
useEffect(() => {
|
|
1992
2008
|
mounted.current = true;
|
|
1993
|
-
|
|
2009
|
+
return () => {
|
|
2010
|
+
mounted.current = false;
|
|
2011
|
+
};
|
|
2012
|
+
}, []);
|
|
2013
|
+
useEffect(() => {
|
|
2014
|
+
if (!known) return;
|
|
2015
|
+
let cancelled = false;
|
|
2016
|
+
setLoading(canRead || canManage);
|
|
2017
|
+
Promise.all([canManage && refreshSettings(), canRead && refreshStatus()]).finally(() => !cancelled && setLoading(false));
|
|
1994
2018
|
const timer = setInterval(() => {
|
|
1995
|
-
if (statusPending.current === 0) refreshStatus();
|
|
1996
|
-
if (!settingsLoaded.current && !settingsPending.current) refreshSettings();
|
|
2019
|
+
if (canRead && statusPending.current === 0) refreshStatus();
|
|
2020
|
+
if (canManage && !settingsLoaded.current && !settingsPending.current) refreshSettings();
|
|
1997
2021
|
}, STATUS_POLL_MS);
|
|
1998
2022
|
return () => {
|
|
1999
|
-
|
|
2023
|
+
cancelled = true;
|
|
2000
2024
|
clearInterval(timer);
|
|
2001
2025
|
};
|
|
2002
|
-
}, [
|
|
2026
|
+
}, [
|
|
2027
|
+
known,
|
|
2028
|
+
canRead,
|
|
2029
|
+
canManage,
|
|
2030
|
+
refreshSettings,
|
|
2031
|
+
refreshStatus
|
|
2032
|
+
]);
|
|
2003
2033
|
return {
|
|
2004
2034
|
settings,
|
|
2005
2035
|
settingsError,
|
|
@@ -2021,14 +2051,19 @@ function useMatterPage() {
|
|
|
2021
2051
|
}, [refreshSettings, refreshStatus])
|
|
2022
2052
|
};
|
|
2023
2053
|
}
|
|
2024
|
-
|
|
2025
|
-
//#region frontend/src/MatterPage.tsx
|
|
2054
|
+
// frontend/src/MatterPage.tsx
|
|
2026
2055
|
var { PageHeader, StatusAlert } = await importShared("@attraccess/plugins-frontend-ui");
|
|
2027
2056
|
var { Spinner } = await importShared("@heroui/react");
|
|
2028
2057
|
var { CableIcon: CableIcon$1 } = await importShared("lucide-react");
|
|
2058
|
+
/**
|
|
2059
|
+
* The route opens with any Matter or Thread read key (see plugin.tsx). Status views need `matter.devices.read`; the
|
|
2060
|
+
* settings form and the fabric, recovery, backup and restore actions need `matter.devices.manage` (together with
|
|
2061
|
+
* `matter.devices.read`) and are hidden without it. Until the host has pushed the auth state, the page only loads.
|
|
2062
|
+
*/
|
|
2029
2063
|
function MatterPage() {
|
|
2030
2064
|
const { t } = useMatterTranslations();
|
|
2031
|
-
const
|
|
2065
|
+
const permissions = useMatterPermissions();
|
|
2066
|
+
const { settings, settingsError, status, statusError, loading, save, remove } = useMatterPage(permissions);
|
|
2032
2067
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
2033
2068
|
className: "mt:mx-auto mt:flex mt:w-full mt:max-w-5xl mt:flex-col mt:gap-6 mt:p-4 mt:md:p-6",
|
|
2034
2069
|
"data-cy": "matter-page",
|
|
@@ -2044,7 +2079,7 @@ function MatterPage() {
|
|
|
2044
2079
|
status: "warning",
|
|
2045
2080
|
title: t("page.insecure"),
|
|
2046
2081
|
"data-cy": "matter-insecure-warning",
|
|
2047
|
-
children: t("page.insecureText")
|
|
2082
|
+
children: t(permissions.canManage ? "page.insecureText" : "page.insecureTextReadOnly")
|
|
2048
2083
|
}),
|
|
2049
2084
|
statusError && !status && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert, {
|
|
2050
2085
|
status: "danger",
|
|
@@ -2052,15 +2087,24 @@ function MatterPage() {
|
|
|
2052
2087
|
"data-cy": "matter-load-error",
|
|
2053
2088
|
children: statusError
|
|
2054
2089
|
}),
|
|
2055
|
-
|
|
2090
|
+
permissions.known && !permissions.canRead && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert, {
|
|
2091
|
+
status: "default",
|
|
2092
|
+
title: t("page.noDeviceAccess"),
|
|
2093
|
+
"data-cy": "matter-no-device-access",
|
|
2094
|
+
children: t("page.noDeviceAccessText")
|
|
2095
|
+
}),
|
|
2096
|
+
status && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusCard, {
|
|
2097
|
+
status,
|
|
2098
|
+
canManage: permissions.canManage
|
|
2099
|
+
}),
|
|
2056
2100
|
settingsError && !settings && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert, {
|
|
2057
2101
|
status: "danger",
|
|
2058
2102
|
title: t("form.loadError"),
|
|
2059
2103
|
"data-cy": "matter-settings-load-error",
|
|
2060
2104
|
children: settingsError
|
|
2061
2105
|
}),
|
|
2062
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FabricBackupSection, {}),
|
|
2063
|
-
settings && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SettingsForm, {
|
|
2106
|
+
permissions.canRead && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FabricBackupSection, { canManage: permissions.canManage }),
|
|
2107
|
+
permissions.canManage && settings && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SettingsForm, {
|
|
2064
2108
|
settings,
|
|
2065
2109
|
onSave: save,
|
|
2066
2110
|
onRemove: remove
|
|
@@ -2068,12 +2112,11 @@ function MatterPage() {
|
|
|
2068
2112
|
]
|
|
2069
2113
|
});
|
|
2070
2114
|
}
|
|
2071
|
-
|
|
2072
|
-
//#region frontend/src/plugin.tsx
|
|
2115
|
+
// frontend/src/plugin.tsx
|
|
2073
2116
|
var { CableIcon } = await importShared("lucide-react");
|
|
2074
2117
|
var MatterPlugin = class {
|
|
2075
2118
|
getPluginName() {
|
|
2076
|
-
return "matter-plugin@0.
|
|
2119
|
+
return "matter-plugin@0.5.0";
|
|
2077
2120
|
}
|
|
2078
2121
|
getDependencies() {
|
|
2079
2122
|
return [];
|
|
@@ -2083,12 +2126,14 @@ var MatterPlugin = class {
|
|
|
2083
2126
|
}
|
|
2084
2127
|
activate() {}
|
|
2085
2128
|
deactivate() {}
|
|
2086
|
-
onApiAuthStateChange(
|
|
2129
|
+
onApiAuthStateChange(authData) {
|
|
2130
|
+
setMatterAuthData(authData);
|
|
2131
|
+
}
|
|
2087
2132
|
onApiEndpointChange(_endpoint) {}
|
|
2088
2133
|
getRoutes() {
|
|
2089
2134
|
return [{
|
|
2090
2135
|
path: "/matter",
|
|
2091
|
-
authRequired:
|
|
2136
|
+
authRequired: [...MATTER_PAGE_PERMISSIONS],
|
|
2092
2137
|
element: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MatterPage, {})
|
|
2093
2138
|
}];
|
|
2094
2139
|
}
|
|
@@ -2101,5 +2146,4 @@ var MatterPlugin = class {
|
|
|
2101
2146
|
}];
|
|
2102
2147
|
}
|
|
2103
2148
|
};
|
|
2104
|
-
//#endregion
|
|
2105
2149
|
export { MatterPlugin as default };
|