-
-
Save kwijibo/225046 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 is a template command. */ | |
CmdUtils.CreateCommand({ | |
name: "show sparql query", | |
icon: "http://swik.net/swikIcons/img-228-96x96.jpg", | |
homepage: "http://kwijibo.talis.com/", | |
author: {name: "Keith Alexander", email: "[email protected]"}, | |
license: "GPL", | |
description: "Showw the sparql query from the current url", | |
help: "How to use your command", | |
takes: {"input": /.*/}, | |
preview: function(pblock, input) { | |
var part = window.location.search.split("query=")[1] | |
pblock.innerHTML = "<pre>"+ part+ "</pre>" ; | |
}, | |
execute: function(input) { | |
window.location = window.location.replace('api.talis.com/stores', 'myadmin.kwijibo.talis.com'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment