-
Notifications
You must be signed in to change notification settings - Fork 2
/
GENERICO_stash
1 lines (1 loc) · 1 KB
/
GENERICO_stash
1
{"key":"stash","name":"Stash secrets","instructions":"Get all the available stash secrets","requirecss":"","requirejs":"","shim":"","defaults":"","amd":"1","body":"<h4>Stash secrets</h4>\n<p>You have the following stash secrets available:</p>\n<div id=\"stash_secrets\">-</div>\n\n\n\n","bodyend":"","script":"content = Object.entries(@@DATASET@@);\nvar secrets =\"<table class='table table-striped'><tr><th>ID</th><th>Name</th><th>Place</th><th>Secret</th></tr>\";\ncontent.forEach(e => secrets=secrets+\"<tr><td>\"+Object.values(e[1]).toString().replace(/\\,/g,'</td><td>')+\"</td>\")\ndocument.querySelector(\"#stash_secrets\").innerHTML=secrets+\"</table>\";\nconsole.log(@@DATASET@@);","style":"","dataset":"SELECT {block_stash_drops}.id, {block_stash_items}.name, {block_stash_drops}.name AS place, hashcode FROM {block_stash_drops}\nJOIN {block_stash_items}\nON {block_stash_items}.id = {block_stash_drops}.itemid\nORDER by {block_stash_items}.name;\n","datasetvars":"","alternate":"","alternateend":"","version":"1.0"}