Initial iteration on Collection

This commit is contained in:
Liyas Thomas
2019-12-22 09:20:38 +05:30
parent ecfc7c84c3
commit 158c34d091
2 changed files with 19 additions and 2 deletions

View File

@@ -663,6 +663,7 @@ ol li {
display: inline-flex;
flex-direction: column;
flex-grow: 1;
justify-content: center;
}
.flex-wrap {

View File

@@ -98,8 +98,24 @@ export default {
getDoc() {
let json = this.collectionJSON;
let html;
this.items = html;
let collections = JSON.parse(json);
for (let i = 0; i < collections.length; i++) {
console.log("Collection", i + 1, collections[i].name);
let folders = collections[i].folders;
for (let i = 0; i < folders.length; i++) {
console.log("Folder", i + 1, folders[i].name);
let requests = collections[i].requests;
for (let i = 0; i < requests.length; i++) {
console.log("Request", i + 1, requests[i].name);
}
}
let requests = collections[i].requests;
for (let i = 0; i < requests.length; i++) {
console.log("Request", i + 1, requests[i].name);
}
}
// let html = this.obj2htmltable(json);
// this.items = html;
}
}
};