Page MenuHomeDevCentral

D2614.id6594.diff
No OneTemporary

D2614.id6594.diff

diff --git a/src/assets/js/salt-config.js b/src/assets/js/salt-config.js
--- a/src/assets/js/salt-config.js
+++ b/src/assets/js/salt-config.js
@@ -221,6 +221,14 @@
return this.resolveSaltLink(data)
}
+ if (typeof data === "string" && data.startsWith("credential for ")) {
+ return `<span class="scalar credential">${data}</span>`
+ }
+
+ if (typeof data === "string" && data.startsWith("random credential")) {
+ return `<span class="scalar credential random">${data}</span>`
+ }
+
if (this.isScalar(data)) {
return `<span class="scalar">${data}</span>`
}
diff --git a/src/assets/scss/components/_salt-config.scss b/src/assets/scss/components/_salt-config.scss
--- a/src/assets/scss/components/_salt-config.scss
+++ b/src/assets/scss/components/_salt-config.scss
@@ -131,7 +131,7 @@
font-weight: bold;
}
- .config-error, .null {
+ .config-error, .null, .credential {
color: $warning-color;
}
@@ -143,6 +143,22 @@
content: "โˆ… ";
}
+ .credential::before {
+ content: "๐Ÿ”‘ ";
+ }
+
+ .random::before {
+ content: "๐ŸŽฒ ";
+ }
+
+ .credential::before {
+ content: "๐Ÿ”‘ ";
+ }
+
+ .random.credential::before {
+ content: "๐ŸŽฒ๐Ÿ”‘ ";
+ }
+
.config-error::before {
content: "๐Ÿ”ฅ ";
}

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 15, 07:19 (8 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2246190
Default Alt Text
D2614.id6594.diff (1 KB)

Event Timeline