improved: Display the terminal when starting the installation of a model or node packs

This commit is contained in:
Dr.Lt.Data
2025-02-10 02:56:48 +09:00
parent 22266484bd
commit e113e011cb
5 changed files with 25 additions and 10 deletions

View File

@@ -413,10 +413,22 @@ export const icons = {
}
export function sanitizeHTML(str) {
return str
.replace(/&/g, "&")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;");
return str
.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;");
}
export function showTerminal() {
try {
const panel = app.extensionManager.bottomPanel;
const isTerminalVisible = panel.bottomPanelVisible && panel.activeBottomPanelTab.id === 'logs-terminal';
if (!isTerminalVisible)
panel.toggleBottomPanelTab('logs-terminal');
}
catch(exception) {
// do nothing
}
}