Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Erwin Dondorp committed Nov 2, 2024
1 parent 0c74727 commit 914f76a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
9 changes: 7 additions & 2 deletions saltgui/static/scripts/output/Output.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ export class Output {
static setHighlightObject (pParent, pObject, pStyleWhiteSpace = "pre-wrap", pLanguage = null) {
const code = Utils.createElem("code");
code.style.whiteSpace = pStyleWhiteSpace;
// light-yellow, but lighter
pParent.style.backgroundColor = "#FFFFF8";

if (pLanguage !== null) {
const outputFormats = Utils.getStorageItem("session", "output_formats");
Expand Down Expand Up @@ -1113,15 +1111,22 @@ export class Output {
});
}

Output.setHighlightObject(minionOutput, minionResponse);

/*
minionOutput.classList.add(
"minion-output",
minionMultiLine ? "minion-output-multiple" : "minion-output-single");
// hide the per-minion details when we have so many minions
*/
if (triangle && triangle.innerText === Character.WHITE_RIGHT_POINTING_TRIANGLE) {
minionOutput.style.display = "none";
}
div.append(minionOutput);

minionOutput.innerText = "";
Output.setHighlightObject(minionOutput, minionResponse);

pOutputContainer.append(div);
}

Expand Down
3 changes: 3 additions & 0 deletions saltgui/static/scripts/panels/JobsSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ export class JobsSummaryPanel extends JobsPanel {
this.addTable(["-dummy-", "-dummy-"]);
this.setTableClickable("page");
this.addMsg();
console.log("constructor");
}

onShow () {
super.onShow(MAX_JOBS_SUMMARY);
console.log("onShow");
}

/* eslint-disable class-methods-use-this */
Expand All @@ -33,6 +35,7 @@ export class JobsSummaryPanel extends JobsPanel {
/* eslint-enable class-methods-use-this */

addJob (job) {
console.log("addJob");
const tr = Utils.createTr();
tr.id = Utils.getIdFromJobId(job.id);

Expand Down
3 changes: 1 addition & 2 deletions saltgui/static/stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,10 @@ h1 {
}

pre.output {
background-color: #272727;
color: white;
margin: 0;
padding: 10px;
border-radius: 2px;
border: 1px solid black;
white-space: pre-wrap;
}

Expand Down
6 changes: 3 additions & 3 deletions saltgui/static/stylesheets/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pre a.disabled:hover {
}

pre.output a {
color: yellow;
color: blue;
cursor: pointer;
}

Expand All @@ -44,7 +44,7 @@ pre.output div:first-of-type {

pre .minion-id.host-success,
pre #summary-jobs-active .host-success {
color: lime;
color: #4caf50;
}

pre .minion-id.host-failure,
Expand Down Expand Up @@ -279,7 +279,7 @@ table tr td:last-of-type {
/* tasks */

.task-success {
color: lime;
color: #4caf50;
}

.task-success-changes {
Expand Down

0 comments on commit 914f76a

Please sign in to comment.