diff --git a/server/plugin/plg_widget_console/assets/commands.js b/server/plugin/plg_widget_console/assets/commands.js index b6c59428..09403e02 100644 --- a/server/plugin/plg_widget_console/assets/commands.js +++ b/server/plugin/plg_widget_console/assets/commands.js @@ -45,3 +45,99 @@ register({ shell.classList.add("hidden"); }, }); + +// register({ +// id: "mimetype", +// description: "Determine file type", +// run(shell) { +// // TODO +// }, +// }); + +// register({ +// id: "whoami", +// description: "Print effective user name", +// run(shell) { +// // TODO +// }, +// }); + +// register({ +// id: "pwd", +// description: "Print current/working directory", +// run(shell) { +// // TODO +// }, +// }); + +// register({ +// id: "mkdir", +// description: "Make directories", +// run(shell) { +// // TODO +// }, +// }); + +// register({ +// id: "rm", +// description: "Remove files or directories", +// run(shell) { +// // TODO +// }, +// }); + +// register({ +// id: "mv", +// description: "Move files", +// run(shell) { +// // TODO +// }, +// }); + +// register({ +// id: "touch", +// description: "Create a file", +// run(shell) { +// // TODO +// }, +// }); + +// register({ +// id: "save", +// description: "Save a file", +// run(shell) { +// // TODO +// }, +// }); + +// register({ +// id: "cd", +// description: "Change working directory", +// run(shell) { +// // TODO +// }, +// }); + +// register({ +// id: "ls", +// description: "List directory contents", +// run(shell) { +// // TODO +// }, +// }); + +// register({ +// id: "stat", +// description: "Display file info", +// run(shell) { +// // TODO +// }, +// }); + +// register({ +// id: "xdg-open", +// description: "Open a file", +// run(shell) { +// // TODO +// }, +// }); diff --git a/server/plugin/plg_widget_console/assets/shell.js b/server/plugin/plg_widget_console/assets/shell.js index ab56331f..72fd9080 100644 --- a/server/plugin/plg_widget_console/assets/shell.js +++ b/server/plugin/plg_widget_console/assets/shell.js @@ -4,9 +4,9 @@ import { getSession } from "../model/session.js"; import { all as allCommands, get as getCommand, register as registerCommand } from "./registry.js"; import("./commands.js"); + export function init() { - console.log("INIT"); - return ; + return; } class ComponentShell extends HTMLElement { @@ -21,10 +21,6 @@ class ComponentShell extends HTMLElement { this.clear(); } - getCommands() { - return allCommands(); - } - static get observedAttributes() { return ["class", "path"]; }