-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c21f051
commit ee060a3
Showing
26 changed files
with
4,791 additions
and
658 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ node_modules | |
.vscode-test/ | ||
*.vsix | ||
.vscode/settings.json | ||
codethreat.json | ||
|
||
|
||
# Node.js artifacts | ||
|
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
.panel { | ||
padding: 10px; | ||
margin-bottom: 20px; | ||
border-radius: 5px; | ||
background-color: #2b2b2b; | ||
box-shadow: 0px 2px 5px rgba(0,0,0,0.1); | ||
color: #ffdd57; | ||
|
||
} | ||
|
||
.panel-header { | ||
font-size: 12px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.panel-content { | ||
font-size: 11px; | ||
} | ||
.panel-content h1, .panel-content h2, .panel-content h3 { | ||
color: #ffdd57; | ||
} | ||
|
||
.panel-content a { | ||
color: #1e90ff; | ||
text-decoration: underline; | ||
} | ||
|
||
.panel-content ul { | ||
list-style-type: disc; | ||
list-style-position: inside; | ||
} | ||
|
||
.panel-content li { | ||
color: #eaeaea; | ||
} | ||
|
||
.panel-content code { | ||
background-color: #333333; | ||
padding: 2px 4px; | ||
border-radius: 4px; | ||
color: #f1c40f; | ||
} | ||
|
||
.panel-content pre { | ||
background-color: #333333; | ||
padding: 10px; | ||
border-radius: 4px; | ||
overflow-x: auto; | ||
} | ||
|
||
.panel-content blockquote { | ||
border-left: 3px solid #ffdd57; | ||
padding-left: 10px; | ||
color: #ddd; | ||
} | ||
.label { | ||
margin-right: 3px; | ||
padding: 5px 7px; | ||
font-size: 10px; | ||
font-family: inherit; | ||
} | ||
.badge{ | ||
background-color: #2C74B3 !important; | ||
color: white; | ||
} | ||
.detail-group { | ||
display: flex; | ||
align-items: center; | ||
justify-content: flex-start; | ||
margin-bottom: 0; | ||
margin-top: 1rem; | ||
} | ||
|
||
.detail-icon { | ||
width: 20px; | ||
height: 20px; | ||
color: rgb(136, 0, 0); | ||
fill: white; | ||
margin-right: 4px; | ||
} | ||
#kbfields-title{ | ||
font-size: large; | ||
font-weight: bolder; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.panel { | ||
padding: 10px; | ||
margin-bottom: 20px; | ||
border-radius: 5px; | ||
background-color: #2b2b2b; | ||
box-shadow: 0px 2px 5px rgba(0,0,0,0.1); | ||
color: #ffdd57; | ||
|
||
} | ||
|
||
.panel-header { | ||
font-size: 12px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.panel-content { | ||
font-size: 11px; | ||
} | ||
.panel-content h1, .panel-content h2, .panel-content h3 { | ||
color: #ffdd57; | ||
} | ||
|
||
.panel-content a { | ||
color: #1e90ff; | ||
text-decoration: underline; | ||
} | ||
|
||
.panel-content ul { | ||
list-style-type: disc; | ||
list-style-position: inside; | ||
} | ||
|
||
.panel-content li { | ||
color: #eaeaea; | ||
} | ||
|
||
.panel-content code { | ||
background-color: #333333; | ||
padding: 2px 4px; | ||
border-radius: 4px; | ||
color: #f1c40f; | ||
} | ||
|
||
.panel-content pre { | ||
background-color: #333333; | ||
padding: 10px; | ||
border-radius: 4px; | ||
overflow-x: auto; | ||
} | ||
|
||
.panel-content blockquote { | ||
border-left: 3px solid #ffdd57; | ||
padding-left: 10px; | ||
color: #ddd; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
const goPage = document.getElementById("buttons"); | ||
const vscode = acquireVsCodeApi(); | ||
|
||
|
||
(function () { | ||
window.addEventListener("message", (event) => { | ||
const message = event.data; | ||
switch (message.command) { | ||
case "ctgetDetail": | ||
const responseData = message.data; | ||
handleCtgetDetail(responseData); | ||
break; | ||
case "getTitle": | ||
document.querySelector("#kbfields-title").innerHTML = message.data; | ||
break; | ||
case "getLabels": | ||
let labelselement = document.querySelector(".labels"); | ||
labelselement.innerHTML = ''; | ||
message.data.forEach(label => { | ||
let el = document.createElement("span"); | ||
el.className = "label badge"; | ||
el.innerText = label; | ||
labelselement.append(el); | ||
}); | ||
break; | ||
case "gopage": | ||
document.getElementById("readMoreLink").href = message.data; | ||
break; | ||
} | ||
}); | ||
function handleCtgetDetail(data) { | ||
document.querySelector("#description-content").innerHTML = data.description; | ||
document.querySelector("#mitigation-content").innerHTML = data.mitigation; | ||
|
||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.