@blueharford/scrypted-spatial-awareness 0.1.1 → 0.1.2
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/dist/main.nodejs.js +1 -1
- package/dist/main.nodejs.js.map +1 -1
- package/dist/plugin.zip +0 -0
- package/package.json +1 -1
- package/src/main.ts +6 -12
package/dist/plugin.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -335,13 +335,13 @@ export class SpatialAwarenessPlugin extends ScryptedDeviceBase
|
|
|
335
335
|
async getSettings(): Promise<Setting[]> {
|
|
336
336
|
const settings = await this.storageSettings.getSettings();
|
|
337
337
|
|
|
338
|
-
//
|
|
338
|
+
// Embed topology editor as iframe
|
|
339
339
|
settings.push({
|
|
340
|
-
key: '
|
|
341
|
-
title: '
|
|
342
|
-
type: '
|
|
343
|
-
|
|
344
|
-
group: '
|
|
340
|
+
key: 'topologyEditor',
|
|
341
|
+
title: 'Topology Editor',
|
|
342
|
+
type: 'html' as any,
|
|
343
|
+
value: `<iframe src="ui/editor" style="width: 100%; height: 700px; border: none; border-radius: 8px;"></iframe>`,
|
|
344
|
+
group: 'Topology',
|
|
345
345
|
});
|
|
346
346
|
|
|
347
347
|
// Add status display
|
|
@@ -374,12 +374,6 @@ export class SpatialAwarenessPlugin extends ScryptedDeviceBase
|
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
async putSetting(key: string, value: SettingValue): Promise<void> {
|
|
377
|
-
if (key === 'openTopologyEditor') {
|
|
378
|
-
// The UI will handle opening the editor via HTTP
|
|
379
|
-
this.console.log('Topology editor requested - access via plugin HTTP endpoint');
|
|
380
|
-
return;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
377
|
await this.storageSettings.putSetting(key, value);
|
|
384
378
|
|
|
385
379
|
// Handle setting changes that require engine restart
|