Skip to content

Commit

Permalink
Mkarimi/indexers (#116)
Browse files Browse the repository at this point in the history
* Add indexers to json

* Find and replace indexers in vue code

* Added item to properties

* Fixe typo

* Updated source
  • Loading branch information
karimi authored Sep 11, 2023
1 parent 593aac1 commit fb219fc
Show file tree
Hide file tree
Showing 8 changed files with 394 additions and 19 deletions.
9 changes: 7 additions & 2 deletions quasar_site/src/ViewModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ const ViewModel = {
}
}
},
getInheritence(item) {
getinheritence(item) {
const rc = [];
let count = 0;
while (item && item.baseclass) {
Expand Down Expand Up @@ -593,7 +593,7 @@ const ViewModel = {
},

getMembers(node, memberType, inherited = true) {
const inheritence = this.getInheritence(node);
const inheritence = this.getinheritence(node);
let members = [].concat(node[memberType]);

if (node[memberType]) {
Expand Down Expand Up @@ -693,6 +693,11 @@ const ViewModel = {
const match = member.signature.match(/\S*\(.*\)/g);
return match[0];
}
if (memberType == "properties") {
if (member.signature.includes("this[int")) {
return "Item";
}
}
const tokens = member.signature.split(" ");
let name = tokens[1];
if (tokens[0] === "static") {
Expand Down
Loading

0 comments on commit fb219fc

Please sign in to comment.