public/script/debug_interface.js
// treated as opaque for the debug page, and will just be passed back to the server.
treated as opaque for the debug page, and will just be passed back to the server.
treated as opaque for the debug page and will just be passed back to the server .
async composeCommandList(service, options, event) {
        for (const element of this.#elements.services.querySelectorAll('li.selected'))
            element.classList.remove('selected');
        event.target.classList.add('selected');
        const container = this.#elements.controls;
        const { commands } = await this.#connection.send({
            command: 'service-commands',
            service,
        });
        while (container.firstChild)
            container.removeChild(container.firstChild);
        const listElement = document.createElement('ul');
        for (const command of commands) {
            const commandElement = document.createElement('li');
            commandElement.innerText = command.command;
            commandElement.addEventListener(
                'click', DebugInterface.prototype.composeConfigureCommand.bind(
                    this, options, command));
            listElement.appendChild(commandElement);
        }
        container.appendChild(listElement);
    }
async composeCommandList ( service , options , event ) { for ( const element of this . #elements . services . querySelectorAll ( 'li.selected' ) ) element . classList . remove ( 'selected' ) ; event . target . classList . add ( 'selected' ) ; const container = this . #elements . controls ; const { commands } = await this . #connection . send ( { command : 'service-commands' , service , } ) ; while ( container . firstChild ) container . removeChild ( container . firstChild ) ; const listElement = document . createElement ( 'ul' ) ; for ( const command of commands ) { const commandElement = document . createElement ( 'li' ) ; commandElement . innerText = command . command ; commandElement . addEventListener ( 'click' , DebugInterface . prototype . composeConfigureCommand . bind ( this , options , command ) ) ; listElement . appendChild ( commandElement ) ; } container . appendChild ( listElement ) ; }
treated as opaque for the debug page, and will just be passed back to the server.
treated as opaque for the debug page and will just be passed back to the server .