Initial iteration on Collection
This commit is contained in:
parent
ecfc7c84c3
commit
158c34d091
2 changed files with 19 additions and 2 deletions
|
|
@ -663,6 +663,7 @@ ol li {
|
|||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.flex-wrap {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue