Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 1x 1x 1x 1x 1x 1x 1x | import type { OctopusHost } from '@ska-octopus-widget-sdk/widget-sdk';
import { makeWidgetDef } from '@ska-octopus-widget-sdk/widget-sdk';
import SharedFoldersWidget from './SharedFoldersWidget';
import pkg from '../package.json' assert { type: 'json' };
const { version } = pkg;
const schema = { type: 'object', properties: {} };
const widgetDef = makeWidgetDef({
key: 'sharedFolders',
component: SharedFoldersWidget,
label: 'SharedFolders',
layout: { x: 0, y: 0, w: 40, h: 20 },
requiredStreams: [],
config: { schema },
version,
docsUrl: 'https://developer.skao.int/projects/ska-octopus-shared-folders-widget/en/latest/'
});
function register(O: OctopusHost) {
O.registerWidget(widgetDef as any);
}
(function wait(h: any) {
if (typeof h.registerWidget === 'function') {
register(h as OctopusHost);
} else E{
setTimeout(wait, 50, h);
}
})((globalThis as any).Octopus || ((globalThis as any).Octopus = {}));
|