-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Davide Arcuri
committed
Apr 11, 2024
1 parent
be19539
commit a639e87
Showing
15 changed files
with
275 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
(function() { | ||
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; | ||
templates['maxmind'] = template({"1":function(container,depth0,helpers,partials,data) { | ||
var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { | ||
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { | ||
return parent[propertyName]; | ||
} | ||
return undefined | ||
}; | ||
|
||
return " <div class=\"alert alert-danger m-4\" role=\"alert\">\n " | ||
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"errors") || (depth0 != null ? lookupProperty(depth0,"errors") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"errors","hash":{},"data":data,"loc":{"start":{"line":8,"column":4},"end":{"line":8,"column":14}}}) : helper))) | ||
+ "\n </div>\n"; | ||
},"3":function(container,depth0,helpers,partials,data) { | ||
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { | ||
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { | ||
return parent[propertyName]; | ||
} | ||
return undefined | ||
}; | ||
|
||
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 : "") | ||
+ ")\n </script>\n"; | ||
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { | ||
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { | ||
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { | ||
return parent[propertyName]; | ||
} | ||
return undefined | ||
}; | ||
|
||
return "<div class=\"modal-header\">\n <h5 class=\"modal-title\">Maxmind Report</h5>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\n</div>\n<div class=\"modal-body\">\n" | ||
+ ((stack1 = lookupProperty(helpers,"if").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"errors") : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data,"loc":{"start":{"line":6,"column":4},"end":{"line":24,"column":11}}})) != null ? stack1 : "") | ||
+ " </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Close</button>\n </div>\n</form>\n"; | ||
},"useData":true}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
(function() { | ||
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; | ||
templates['vt'] = template({"1":function(container,depth0,helpers,partials,data) { | ||
var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { | ||
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { | ||
return parent[propertyName]; | ||
} | ||
return undefined | ||
}; | ||
|
||
return " <div class=\"alert alert-danger m-4\" role=\"alert\">\n " | ||
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"errors") || (depth0 != null ? lookupProperty(depth0,"errors") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"errors","hash":{},"data":data,"loc":{"start":{"line":8,"column":4},"end":{"line":8,"column":14}}}) : helper))) | ||
+ "\n </div>\n"; | ||
},"3":function(container,depth0,helpers,partials,data) { | ||
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { | ||
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { | ||
return parent[propertyName]; | ||
} | ||
return undefined | ||
}; | ||
|
||
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 : "") | ||
+ ")\n </script>\n"; | ||
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { | ||
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { | ||
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { | ||
return parent[propertyName]; | ||
} | ||
return undefined | ||
}; | ||
|
||
return "<div class=\"modal-header\">\n <h5 class=\"modal-title\">VirusTotal Report</h5>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\n</div>\n<div class=\"modal-body\">\n" | ||
+ ((stack1 = lookupProperty(helpers,"if").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"errors") : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data,"loc":{"start":{"line":6,"column":4},"end":{"line":24,"column":11}}})) != null ? stack1 : "") | ||
+ " </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Close</button>\n </div>\n</form>\n"; | ||
},"useData":true}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<div class="modal-header"> | ||
<h5 class="modal-title">Maxmind Report</h5> | ||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | ||
</div> | ||
<div class="modal-body"> | ||
{{#if errors}} | ||
<div class="alert alert-danger m-4" role="alert"> | ||
{{errors}} | ||
</div> | ||
{{else}} | ||
<div id="js_received" style="width: 100%; height: 100%;"></div> | ||
<script> | ||
var options = { | ||
mode: 'code', | ||
modes: ['text', 'code', 'view'], | ||
onEditable: function (node) { | ||
if (!node.path) { return false; } | ||
} | ||
} | ||
var json_viewer = document.getElementById("js_received") | ||
var json_container = new JSONEditor(json_viewer, options) | ||
json_container.set({{{ json info }}}) | ||
</script> | ||
{{/if}} | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> | ||
</div> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<div class="modal-header"> | ||
<h5 class="modal-title">VirusTotal Report</h5> | ||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | ||
</div> | ||
<div class="modal-body"> | ||
{{#if errors}} | ||
<div class="alert alert-danger m-4" role="alert"> | ||
{{errors}} | ||
</div> | ||
{{else}} | ||
<div id="js_received" style="width: 100%; height: 100%;"></div> | ||
<script> | ||
var options = { | ||
mode: 'code', | ||
modes: ['text', 'code', 'view'], | ||
onEditable: function (node) { | ||
if (!node.path) { return false; } | ||
} | ||
} | ||
var json_viewer = document.getElementById("js_received") | ||
var json_container = new JSONEditor(json_viewer, options) | ||
json_container.set({{{ json info }}}) | ||
</script> | ||
{{/if}} | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> | ||
</div> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.