Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3774348
D2614.id6594.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D2614.id6594.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 11:10 (21 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258396
Default Alt Text
D2614.id6594.diff (1 KB)
Attached To
Mode
D2614: Identify credentials visually
Attached
Detach File
Event Timeline
Log In to Comment