mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-31 02:28:09 +08:00
Strip maps left behind previously.
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"sources":["mvc/citation/citation-model.js"],"names":["bibtexParse","Citation","Backbone","Model","extend","_baseMvc2","default","LoggableMixin","_logNamespace","defaults","content","initialize","parsed","toJSON","this","attributes","err","log","_fields","entry","_","first","rawFields","entryTags","key","value","lowerKey","toLowerCase","entryType","undefined","fields","Collection","partial","model","HistoryCitationCollection","BaseCitationCollection","url","ToolCitationCollection","urlRoot","tool_id"],"mappings":"qKAAYA,oNAWRC,EAAWC,SAASC,MAAMC,OAAOC,EAAAC,QAAQC,eAAeH,QACxDI,cAPe,WASfC,UACIC,QAAS,IAGbC,WAAY,WACR,IAAIC,EACJ,IAEIA,EAASZ,EAAYa,OAAOC,KAAKC,WAAWL,SAC9C,MAAOM,GACLF,KAAKG,IAAI,yBAA2BD,GAKxC,GAFAF,KAAKI,WACLJ,KAAKK,MAAQC,EAAEC,MAAMT,GACjBE,KAAKK,MAAO,CACZ,IAAIG,EAAYR,KAAKK,MAAMI,UAC3B,IAAK,IAAIC,KAAOF,EAAW,CACvB,IAAIG,EAAQH,EAAUE,GAClBE,EAAWF,EAAIG,cA9BnCb,KAAAI,QAAAQ,GAAAD,KAIAG,UAAA,WAgCQ,OAAOd,KAAKK,MAAQL,KAAKK,MAAMS,eAAYC,GAE/CC,OAAQ,WA9BR7B,OAAAA,KAAWC,WAOXS,EAAYT,SAAA6B,WAAW3B,OAAAC,EAAAC,QAAAC,eAAAH,QACnBI,cAdW,WAiBPI,QAAAA,OAAAA,KAAAA,MACHoB,SAHD,EAIIC,MAAAhC,IAGJiC,EAAAC,EAAA/B,QAEAgC,IAAA,WACI,OAAAtB,KAAIQ,QAAJ,cAA2BC,KAAAA,WAA3B,gBAIIc,EAAKnB,EAALd,QAEPgC,IAAA,WACJ,OA1B8DtB,KAAAwB,QA0B9D,UA1B8DxB,KAAAyB,QA0B9D,cAEGP,SAAA,eAqCJ/B,SAAUA,EA9BdiC,0BAAAA,EACAG,uBAAAA","file":"../../../scripts/mvc/citation/citation-model.js","sourcesContent":["import * as bibtexParse from \"libs/bibtexParse\";\nimport baseMVC from \"mvc/base-mvc\";\n\n/* global Backbone */\n\nvar logNamespace = \"citation\";\n//==============================================================================\n/** @class model for tool citations.\n * @name Citation\n * @augments Backbone.Model\n */\nvar Citation = Backbone.Model.extend(baseMVC.LoggableMixin).extend({\n _logNamespace: logNamespace,\n\n defaults: {\n content: \"\"\n },\n\n initialize: function() {\n var parsed;\n try {\n // TODO: to model.parse/.validate\n parsed = bibtexParse.toJSON(this.attributes.content);\n } catch (err) {\n this.log(\"Error parsing bibtex: \" + err);\n }\n\n this._fields = {};\n this.entry = _.first(parsed);\n if (this.entry) {\n var rawFields = this.entry.entryTags;\n for (var key in rawFields) {\n var value = rawFields[key];\n var lowerKey = key.toLowerCase();\n this._fields[lowerKey] = value;\n }\n }\n },\n entryType: function() {\n return this.entry ? this.entry.entryType : undefined;\n },\n fields: function() {\n return this._fields;\n }\n});\n\n//==============================================================================\n/** @class Backbone collection of citations.\n */\nvar BaseCitationCollection = Backbone.Collection.extend(baseMVC.LoggableMixin).extend({\n _logNamespace: logNamespace,\n\n /** root api url */\n urlRoot: `${Galaxy.root}api`,\n partial: true, // Assume some tools in history/workflow may not be properly annotated yet.\n model: Citation\n});\n\nvar HistoryCitationCollection = BaseCitationCollection.extend({\n /** complete api url */\n url: function() {\n return `${this.urlRoot}/histories/${this.history_id}/citations`;\n }\n});\n\nvar ToolCitationCollection = BaseCitationCollection.extend({\n /** complete api url */\n url: function() {\n return `${this.urlRoot}/tools/${this.tool_id}/citations`;\n },\n partial: false // If a tool has citations, assume they are complete.\n});\n\n//==============================================================================\n\nexport default {\n Citation: Citation,\n HistoryCitationCollection: HistoryCitationCollection,\n ToolCitationCollection: ToolCitationCollection\n};\n"]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"sources":["mvc/user/user_api_keys.js"],"names":["mod_toastr","UserAPIKeysView","Backbone","View","extend","initialize","options","timeOut","this","setElement","render","self","url","Galaxy","root","$el","empty","append","_template","fetchUsers","$","getJSON","users","setTimeout","applyVue","_vue2","default","el","methods","generateKey","id","success","_data","error"],"mappings":"8MACYA,6JAERC,EAAkBC,SAASC,KAAKC,QAChCC,WAAY,WACRL,EAAWM,QAAQC,QAAU,IAC7BC,KAAKC,WAAW,UAChBD,KAAKE,UAGTA,OAAQ,WACJ,IAAIC,EAAOH,KACPI,EAAMC,OAAOC,KAAO,sBACxBH,EAAKI,IAAIC,QAAQC,OAAON,EAAKO,aAC7BP,EAAKQ,WAAWP,IAIpBO,WAAY,SAASP,GACjB,IAAID,EAAOH,KACXY,EAAEC,QAAQT,EAAK,SAASU,GAIpBC,WAAW,WACPZ,EAAKa,SAASF,QAM1BE,SAAU,SAASF,GACA,IAAAG,EAAAC,SACXC,GAAI,iBA9BZ1B,MACAI,MAAYiB,GAERM,SAHmCC,YAAA,SAAAC,GAqCvB,IAAInB,EAAOH,KA7BnBG,EAAAA,MACME,IAAOC,OAAOA,KAAA,2BACfE,MAAQC,IAAON,GACnBQ,QAAL,SAAAG,GAXmCtB,EAAA+B,QAAA,qCAcvCpB,EAAAqB,MAAAV,MAAAA,GAEeW,MAAX,WACejC,EAASsB,QAAO,4CAQlCJ,UAzBsC,WAyDnC,MA9BJ,0jBA2DCjB","file":"../../../scripts/mvc/user/user_api_keys.js","sourcesContent":["import Vue from \"libs/vue\";\nimport * as mod_toastr from \"libs/toastr\";\n\nvar UserAPIKeysView = Backbone.View.extend({\n initialize: function() {\n mod_toastr.options.timeOut = 1000;\n this.setElement(\"<div/>\");\n this.render();\n },\n\n render: function() {\n var self = this,\n url = Galaxy.root + \"userskeys/all_users\";\n self.$el.empty().append(self._template());\n self.fetchUsers(url);\n },\n\n /** Load users and their keys */\n fetchUsers: function(url) {\n var self = this;\n $.getJSON(url, function(users) {\n // apply vue model on the dom\n // timeout is used to ensure dom is created first and then\n // vue model is applied with the required data\n setTimeout(function() {\n self.applyVue(users);\n });\n });\n },\n\n /** Create model for the view using vue */\n applyVue: function(users) {\n var form_vue = new Vue({\n el: \"#form-userkeys\",\n data: {\n users: users // data model\n },\n methods: {\n // bind event from view\n generateKey: function(id) {\n var self = this;\n // fetch fresh model\n $.ajax({\n url: Galaxy.root + \"userskeys/admin_api_keys\",\n data: { uid: id },\n success: function(users) {\n mod_toastr.success(\"Successfully generated a user key\");\n // refresh the model\n self._data.users = users;\n },\n error: function() {\n mod_toastr.success(\"Error occured while loading data\");\n }\n });\n }\n }\n });\n },\n\n _template: function() {\n return (\n '<div id=\"form-userkeys\" class=\"toolForm\" v-cloak>' +\n '<div class=\"toolFormTitle\">User Information</div>' +\n '<div v-if=\"users && users.length > 0\">' +\n '<table class=\"grid\">' +\n \"<thead><th>Encoded UID</th><th>Email</th><th>API Key</th><th>Actions</th></thead>\" +\n \"<tbody>\" +\n '<tr v-for=\"user in users\">' +\n \"<td>\" +\n \"{{ user.uid }}\" +\n \"</td>\" +\n \"<td>\" +\n \"{{ user.email }}\" +\n \"</td>\" +\n \"<td>\" +\n \"{{ user.key }}\" +\n \"</td>\" +\n \"<td>\" +\n '<input type=\"button\" value=\"Generate a new key now\" v-on:click=\"generateKey( user.uid )\" />' +\n \"</td>\" +\n \"</tbody>\" +\n \"</table>\" +\n \"</div>\" +\n \"<div v-else>\" +\n \"<div>No informations available</div>\" +\n \"</div>\" +\n '<div style=\"clear: both\"></div>' +\n \"</div>\"\n );\n }\n});\n\nexport default UserAPIKeysView;\n"]}
|
||||
Reference in New Issue
Block a user