feat: publish standalone PIGWay Agent Console plugin
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { state } from "/assets/js/state.js";
|
||||
import { registerTranslations } from "/assets/js/i18n.js";
|
||||
import translations from "./translations.js";
|
||||
registerTranslations(translations);
|
||||
for (const [key, value] of Object.entries({
|
||||
pluginRows: [],
|
||||
pluginDraft: null,
|
||||
pluginSelected: "",
|
||||
processCache: [],
|
||||
editingProcessName: "",
|
||||
serviceCache: [],
|
||||
editingServiceName: "",
|
||||
serviceReadOnly: false,
|
||||
}))
|
||||
state[key] ??= value;
|
||||
export { agentHostCard as hostCard } from "./overview.js";
|
||||
export {
|
||||
renderConfig,
|
||||
markChanged,
|
||||
renderBulkSync,
|
||||
bindBulkSync,
|
||||
} from "./config.js";
|
||||
export { loadPlugins } from "./hardware.js";
|
||||
export { resetDeviceDefaults } from "./device.js";
|
||||
export { eventName } from "./schema.js";
|
||||
|
||||
const style = document.createElement("link");
|
||||
style.rel = "stylesheet";
|
||||
style.href = new URL("./styles.css", import.meta.url).href;
|
||||
document.head.append(style);
|
||||
Reference in New Issue
Block a user