Skip to content

Commit

Permalink
#1073 wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Arcuri committed Apr 11, 2024
1 parent a639e87 commit 131cc57
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion orochi/static/js/handlebars/maxmind.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ templates['maxmind'] = template({"1":function(container,depth0,helpers,partials,
};

return " <div id=\"js_received\" style=\"width: 100%; height: 100%;\"></div>\n <script>\n var options = {\n mode: 'code',\n modes: ['text', 'code', 'view'],\n onEditable: function (node) {\n if (!node.path) { return false; }\n }\n }\n var json_viewer = document.getElementById(\"js_received\")\n var json_container = new JSONEditor(json_viewer, options)\n json_container.set("
+ ((stack1 = (lookupProperty(helpers,"json")||(depth0 && lookupProperty(depth0,"json"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"info") : depth0),{"name":"json","hash":{},"data":data,"loc":{"start":{"line":22,"column":27},"end":{"line":22,"column":44}}})) != null ? stack1 : "")
+ ((stack1 = (lookupProperty(helpers,"json")||(depth0 && lookupProperty(depth0,"json"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"json","hash":{},"data":data,"loc":{"start":{"line":22,"column":27},"end":{"line":22,"column":41}}})) != null ? stack1 : "")
+ ")\n </script>\n";
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
Expand Down
2 changes: 1 addition & 1 deletion orochi/static/js/handlebars/vt.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ templates['vt'] = template({"1":function(container,depth0,helpers,partials,data)
};

return " <div id=\"js_received\" style=\"width: 100%; height: 100%;\"></div>\n <script>\n var options = {\n mode: 'code',\n modes: ['text', 'code', 'view'],\n onEditable: function (node) {\n if (!node.path) { return false; }\n }\n }\n var json_viewer = document.getElementById(\"js_received\")\n var json_container = new JSONEditor(json_viewer, options)\n json_container.set("
+ ((stack1 = (lookupProperty(helpers,"json")||(depth0 && lookupProperty(depth0,"json"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"info") : depth0),{"name":"json","hash":{},"data":data,"loc":{"start":{"line":22,"column":27},"end":{"line":22,"column":44}}})) != null ? stack1 : "")
+ ((stack1 = (lookupProperty(helpers,"json")||(depth0 && lookupProperty(depth0,"json"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"json","hash":{},"data":data,"loc":{"start":{"line":22,"column":27},"end":{"line":22,"column":41}}})) != null ? stack1 : "")
+ ")\n </script>\n";
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
Expand Down
2 changes: 1 addition & 1 deletion orochi/templates/handlebars/maxmind.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
var json_viewer = document.getElementById("js_received")
var json_container = new JSONEditor(json_viewer, options)
json_container.set({{{ json info }}})
json_container.set({{{ json . }}})
</script>
{{/if}}
</div>
Expand Down
2 changes: 1 addition & 1 deletion orochi/templates/handlebars/vt.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
var json_viewer = document.getElementById("js_received")
var json_container = new JSONEditor(json_viewer, options)
json_container.set({{{ json info }}})
json_container.set({{{ json . }}})
</script>
{{/if}}
</div>
Expand Down
2 changes: 2 additions & 0 deletions orochi/templates/website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ <h5 class="offcanvas-title" id="leftNoteLabel">History Log</h5>
method: 'get',
beforeSend: function () {
$("#modal-update .modal-content").html('');
$("#modal-update").addClass("modal-xl");
$("#modal-update").modal("show");
},
success: function (data) {
Expand All @@ -222,6 +223,7 @@ <h5 class="offcanvas-title" id="leftNoteLabel">History Log</h5>
method: 'get',
beforeSend: function () {
$("#modal-update .modal-content").html('');
$("#modal-update").addClass("modal-xl");
$("#modal-update").modal("show");
},
success: function (data) {
Expand Down

0 comments on commit 131cc57

Please sign in to comment.