feat: publish standalone PIGWay Agent Console plugin

This commit is contained in:
way
2026-10-11 14:52:40 +08:00
commit ac6db9c2da
15 changed files with 1898 additions and 0 deletions
+30
View File
@@ -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);