diff --git a/Tool/webtool/src/App.vue b/Tool/webtool/src/App.vue index b057daa..333226a 100644 --- a/Tool/webtool/src/App.vue +++ b/Tool/webtool/src/App.vue @@ -96,7 +96,7 @@ function getOpEmoj(Op) { case 2: return "❌"; default: - return "🚀"; + return "📁"; } } function publishCB(MsgIt) { @@ -105,14 +105,26 @@ function publishCB(MsgIt) { Msgs.value[Msgs.value.length - 1] = MsgIt } else if (MsgIt.Type == 3) { var it = JSON.parse(MsgIt.Body); - it.Children.forEach((e) => { + /** + * This function appears to be intended for processing children elements, though the current implementation is incomplete. + * + * @param {Array} children - The array of child elements to be processed. + * @returns {void} + */ + const f = (item) => { Msgs.value.push({ Step: MsgIt.Step, Type: MsgIt.Type, - Body: `[${getOpEmoj(e.NextOp)}] ${e.FormatedPath}` + Body: `[${getOpEmoj(item.NextOp)}] ${item.FormatedPath}` }) + if (item.Children) { + item.Children.forEach((e) => { + f(e) + }); - }); + } + } + f(it) } else { Msgs.value.push(MsgIt) diff --git a/Tool/webtool/src/connect.js b/Tool/webtool/src/connect.js index a61d682..9dc7359 100644 --- a/Tool/webtool/src/connect.js +++ b/Tool/webtool/src/connect.js @@ -7,7 +7,7 @@ class ConnectPipe { } OpenPipe(config, MsgCb) { var webSocUrl = `ws://${window.location.host}/websoc?Name=${config.Name}` - // var webSocUrl = "ws://127.0.0.1:6818/websoc?Name=Test"; + // var webSocUrl = `ws://127.0.0.1:6818/websoc?Name=${config.Name}`; this.#websocket = new WebSocket(webSocUrl); this.#websocket.onopen = (event) => { var starter = {