Skip to content

Commit

Permalink
Merge pull request #5 from oslabs-beta/Hierarchy
Browse files Browse the repository at this point in the history
Hierarchy of components updated
  • Loading branch information
FoxEight committed Feb 22, 2022
2 parents ef0c38d + c3e549c commit 5e54362
Show file tree
Hide file tree
Showing 8 changed files with 380 additions and 36 deletions.
14 changes: 14 additions & 0 deletions nexus/media/main.js
@@ -0,0 +1,14 @@
(function(){
const vscode = acquireVsCodeApi();
// append functionality to resulting html elements
var tree= document.querySelectorAll(".tree");
for (var i = 0; i < tree.length; i++) {
tree[i].parentElement.classList.add('plus');

tree[i].onclick= function() {
this.parentElement.querySelector(".subtree").classList.toggle("active");
this.parentElement.classList.toggle('minus');

};
}
})();
24 changes: 24 additions & 0 deletions nexus/media/styles.css
@@ -0,0 +1,24 @@
.subtree{
list-style-type:square}
.tree {
cursor: pointer;
}
.plus,.minus{
display: flow-root;
position: relative;
right: 10px;}
.subtree {
display: none;
}
.active {
display: block;}
.plus::before {
content: "+";
color: black;
display: inline-block;
margin-right: 6px;}
.minus::before {
content: "-";
color: black;
display: inline-block;
margin-right: 6px;}
95 changes: 83 additions & 12 deletions nexus/out/extension.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nexus/out/extension.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

135 changes: 135 additions & 0 deletions nexus/out/parser/parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions nexus/out/parser/parser.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 18 additions & 11 deletions nexus/package.json
Expand Up @@ -17,26 +17,33 @@
"viewsContainers": {
"activitybar": [
{
"id": "package-explorer",
"title": "Package Explorer",
"id": "Nexus",
"title": "Nexus",
"icon": "media/heart.svg"
}
]
},
"views": {
"package-explorer": [
{
"id": "package-dependencies",
"name": "Dependencies",
"type": "tree"
}
]
"Nexus": [

{
"id": "calicoColors.colorsView",
"name": "Nexus",
"type": "webview"
}

]

},
"commands": [
{
"command": "nexus.helloWorld",
"title": "Hello World"
}
"title": "Nexus"
},
{
"command": "exampleApp.openWebview",
"title": "Big Chungus"
}
]
},
"scripts": {
Expand Down

0 comments on commit 5e54362

Please sign in to comment.