mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
repack client (seems to not be done in a while)
This commit is contained in:
@@ -1 +1 @@
|
||||
{"version":3,"file":"admin.toolshed.js","sources":["../src/admin.toolshed.js"],"names":["define","mod_shed_list_view","mod_categories_view","mod_repositories_view","mod_repository_view","mod_repoqueue_view","AdminToolshedRouter","Backbone","Router","extend","initialize","this","routesHit","history","on","bind","trackPageview","routes","sheds","queue","categories/s/:tool_shed","category/s/:tool_shed/c/:cateory_id","repository/s/:tool_shed/r/:repository_id","back","window","navigate","trigger","replace","GalaxyAdminToolshedApp","View","app_config","known_views","Galaxy","admintoolshedapp","admin_toolshed_router","adminRepoQueueView","reDraw","RepoQueueView","adminShedListView","ShedListView","tool_shed","adminShedCategoriesView","CategoryView","category_id","adminShedCategoryView","Category","repository_id","adminRepositoryView","RepoDetails","$","append","start","pushState","GalaxyApp"],"mappings":"AAAAA,QAAQ,8BACA,+BACA,iCACA,+BACA,sCACA,SAASC,EACAC,EACAC,EACAC,EACAC,GAEb,GAAIC,GAAsBC,SAASC,OAAOC,QAEtCC,WAAY,WACRC,KAAKC,UAAY,EAEjBL,SAASM,QAAQC,GAAI,QAAS,WAAaH,KAAKC,aAAgBD,MAEhEA,KAAKI,KAAM,QAASJ,KAAKK,gBAG7BC,QACI,GAA+C,YAC/CC,MAA+C,YAC/CC,MAA+C,QAC/CC,0BAA+C,aAC/CC,sCAA+C,eAC/CC,2CAA+C,cASnDC,KAAM,WACEZ,KAAKC,UAAY,EACjBY,OAAOX,QAAQU,OAEfZ,KAAKc,SAAU,KAAOC,SAAQ,EAAMC,SAAQ,OAMpDC,EAAyBrB,SAASsB,KAAKpB,QAEvCqB,YACIC,aAAc,YAAY,aAAc,eAAgB,gBAG5DrB,WAAY,WACRsB,OAAOC,iBAAmBtB,KAC1BA,KAAKuB,sBAAwB,GAAI5B,GAEjCK,KAAKuB,sBAAsBpB,GAAG,cAAe,WACrCkB,OAAOC,iBAAiBE,mBACxBH,OAAOC,iBAAiBE,mBAAmBC,SAG3CJ,OAAOC,iBAAiBE,mBAAqB,GAAI9B,GAAmBgC,gBAG5E1B,KAAKuB,sBAAsBpB,GAAG,kBAAmB,WACzCkB,OAAOC,iBAAiBK,kBACxBN,OAAOC,iBAAiBK,kBAAkBF,SAG1CJ,OAAOC,iBAAiBK,kBAAoB,GAAIrC,GAAmBsC,eAG3E5B,KAAKuB,sBAAsBpB,GAAG,mBAAoB,SAAS0B,GACnDR,OAAOC,iBAAiBQ,wBACxBT,OAAOC,iBAAiBQ,wBAAwBL,QAAQI,UAAWA,EAAUb,QAAQ,MAAO,SAG5FK,OAAOC,iBAAiBQ,wBAA0B,GAAIvC,GAAoBwC,cAAcF,UAAWA,EAAUb,QAAQ,MAAO,WAGpIhB,KAAKuB,sBAAsBpB,GAAG,qBAAsB,SAAS0B,EAAWG,GAChEX,OAAOC,iBAAiBW,sBACxBZ,OAAOC,iBAAiBW,sBAAsBR,QAAQI,UAAWA,EAAUb,QAAQ,MAAO,OAAQgB,YAAaA,IAG/GX,OAAOC,iBAAiBW,sBAAwB,GAAIzC,GAAsB0C,UAAUL,UAAWA,EAAUb,QAAQ,MAAO,OAAQgB,YAAaA,MAGrJhC,KAAKuB,sBAAsBpB,GAAG,mBAAoB,SAAS0B,EAAWM,GAC9Dd,OAAOC,iBAAiBc,oBACxBf,OAAOC,iBAAiBc,oBAAoBX,QAAQI,UAAWA,EAAUb,QAAQ,MAAO,OAAQmB,cAAeA,IAG/Gd,OAAOC,iBAAiBc,oBAAsB,GAAI3C,GAAoB4C,aAAaR,UAAWA,EAAUb,QAAQ,MAAO,OAAQmB,cAAeA,MAItJG,EAAE,iBAAiBC,OAAO,uGAE1B3C,SAASM,QAAQsC,OAAOC,WAAW,MAI3C,QACIC,UAAWzB"}
|
||||
{"version":3,"file":"admin.toolshed.js","sources":["../src/admin.toolshed.js"],"names":["define","mod_shed_list_view","mod_categories_view","mod_repositories_view","mod_repository_view","mod_repoqueue_view","mod_repo_status_view","mod_workflows_view","AdminToolshedRouter","Backbone","Router","extend","initialize","this","routesHit","history","on","bind","trackPageview","routes","sheds","queue","workflows","status/r/:repositories","status","categories/s/:tool_shed","category/s/:tool_shed/c/:cateory_id","repository/s/:tool_shed/r/:repository_id","back","window","navigate","trigger","replace","GalaxyAdminToolshedApp","View","app_config","known_views","Galaxy","admintoolshedapp","admin_toolshed_router","adminRepoQueueView","reDraw","RepoQueueView","adminShedListView","ShedListView","tool_shed","adminShedCategoriesView","CategoryView","category_id","adminShedCategoryView","Category","repository_id","adminRepositoryView","RepoDetails","repositories","adminRepoStatusView","split","RepoStatus","adminWorkflowsView","Workflows","start","pushState","GalaxyApp"],"mappings":"AAAAA,QAAQ,8BACA,+BACA,iCACA,+BACA,qCACA,gCACA,+BACA,SAASC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEb,GAAIC,GAAsBC,SAASC,OAAOC,QAEtCC,WAAY,WACRC,KAAKC,UAAY,EAEjBL,SAASM,QAAQC,GAAI,QAAS,WAAaH,KAAKC,aAAgBD,MAChEA,KAAKI,KAAM,QAASJ,KAAKK,gBAG7BC,QACI,GAA+C,YAC/CC,MAA+C,YAC/CC,MAA+C,QAC/CC,UAA+C,YAC/CC,yBAA+C,SAC/CC,OAA+C,SAC/CC,0BAA+C,aAC/CC,sCAA+C,eAC/CC,2CAA+C,cASnDC,KAAM,WACEf,KAAKC,UAAY,EACjBe,OAAOd,QAAQa,OAEff,KAAKiB,SAAU,KAAOC,SAAQ,EAAMC,SAAQ,OAMpDC,EAAyBxB,SAASyB,KAAKvB,QAEvCwB,YACIC,aAAc,YAAa,QAAS,SAAU,aAAc,eAAgB,gBAGhFxB,WAAY,WACRyB,OAAOC,iBAAmBzB,KAC1BA,KAAK0B,sBAAwB,GAAI/B,GAEjCK,KAAK0B,sBAAsBvB,GAAG,cAAe,WACrCqB,OAAOC,iBAAiBE,mBACxBH,OAAOC,iBAAiBE,mBAAmBC,SAG3CJ,OAAOC,iBAAiBE,mBAAqB,GAAInC,GAAmBqC,gBAG5E7B,KAAK0B,sBAAsBvB,GAAG,kBAAmB,WACzCqB,OAAOC,iBAAiBK,kBACxBN,OAAOC,iBAAiBK,kBAAkBF,SAG1CJ,OAAOC,iBAAiBK,kBAAoB,GAAI1C,GAAmB2C,eAG3E/B,KAAK0B,sBAAsBvB,GAAG,mBAAoB,SAAS6B,GACnDR,OAAOC,iBAAiBQ,wBACxBT,OAAOC,iBAAiBQ,wBAAwBL,QAAQI,UAAWA,EAAUb,QAAQ,MAAO,SAG5FK,OAAOC,iBAAiBQ,wBAA0B,GAAI5C,GAAoB6C,cAAcF,UAAWA,EAAUb,QAAQ,MAAO,WAGpInB,KAAK0B,sBAAsBvB,GAAG,qBAAsB,SAAS6B,EAAWG,GAChEX,OAAOC,iBAAiBW,sBACxBZ,OAAOC,iBAAiBW,sBAAsBR,QAAQI,UAAWA,EAAUb,QAAQ,MAAO,OAAQgB,YAAaA,IAG/GX,OAAOC,iBAAiBW,sBAAwB,GAAI9C,GAAsB+C,UAAUL,UAAWA,EAAUb,QAAQ,MAAO,OAAQgB,YAAaA,MAGrJnC,KAAK0B,sBAAsBvB,GAAG,mBAAoB,SAAS6B,EAAWM,GAC9Dd,OAAOC,iBAAiBc,oBACxBf,OAAOC,iBAAiBc,oBAAoBX,QAAQI,UAAWA,EAAUb,QAAQ,MAAO,OAAQmB,cAAeA,IAG/Gd,OAAOC,iBAAiBc,oBAAsB,GAAIhD,GAAoBiD,aAAaR,UAAWA,EAAUb,QAAQ,MAAO,OAAQmB,cAAeA,MAGtJtC,KAAK0B,sBAAsBvB,GAAG,eAAgB,SAASsC,GAC/CjB,OAAOC,iBAAiBiB,oBACxBlB,OAAOC,iBAAiBiB,oBAAoBd,QAAQa,aAAcA,EAAaE,MAAM,OAGrFnB,OAAOC,iBAAiBiB,oBAAsB,GAAIjD,GAAqBmD,YAAYH,aAAcA,EAAaE,MAAM,SAG5H3C,KAAK0B,sBAAsBvB,GAAG,kBAAmB,WACzCqB,OAAOC,iBAAiBoB,mBACxBrB,OAAOC,iBAAiBoB,mBAAmBjB,SAG3CJ,OAAOC,iBAAiBoB,mBAAqB,GAAInD,GAAmBoD,YAI5ElD,SAASM,QAAQ6C,OAAOC,WAAW,MAI3C,QACIC,UAAW7B"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"categories-view.js","sources":["../../../src/mvc/toolshed/categories-view.js"],"names":["define","toolshed_model","toolshed_util","ToolShedCategories","Backbone","View","extend","el","defaults","tool_shed","initialize","options","shed","replace","this","_","model","Categories","listenTo","render","url","fetch","categories","models","category_list_template","templateCategoryList","$el","html","$","css","bindEvents","that","require","autocomplete","source","request","response","shed_url","base_url","Galaxy","root","params","term","tool_shed_url","post","data","console","log","result_list","shedParser","minLength","select","event","ui","tsr_id","item","value","new_route","history","navigate","trigger","reDraw","empty","template","join","CategoryView"],"mappings":"AAAAA,QAAQ,8BAA+B,qBAAsB,SAASC,EAAgBC,GAElF,GAAIC,GAAqBC,SAASC,KAAKC,QAEnCC,GAAI,UAEJC,UACIC,UAAW,mCAGfC,WAAY,SAASC,GACjB,GACIC,GAAOD,EAAQF,UAAUI,QAAQ,MAAO,MAC5CC,MAAKH,QAAUI,EAAEP,SAASM,KAAKH,SAAWA,EAASG,KAAKN,UACxDM,KAAKE,MAAQ,GAAIf,GAAegB,WAChCH,KAAKI,SAASJ,KAAKE,MAAO,OAAQF,KAAKK,QACvCL,KAAKE,MAAMI,IAAMN,KAAKE,MAAMI,IAAM,kBAAoBN,KAAKH,QAAQF,UACnEK,KAAKE,MAAMP,UAAYG,EACvBE,KAAKE,MAAMK,SAGfF,OAAQ,SAASR,GACbG,KAAKH,QAAUI,EAAET,OAAOQ,KAAKH,QAASA,GACtCG,KAAKH,QAAQW,WAAaR,KAAKE,MAAMO,MACrC,IAAIC,GAAyBV,KAAKW,oBAClCX,MAAKY,IAAIC,KAAKH,EAAuBV,KAAKH,UAC1CiB,EAAE,WAAWC,IAAI,WAAY,QAC7Bf,KAAKgB,cAGTA,WAAY,WACR,GAAIC,GAAOjB,IACXkB,UAAS,yBAA0B,WAC/BJ,EAAE,eAAeK,cACbC,OAAQ,SAASC,EAASC,GACtB,GAAIC,GAAWN,EAAKf,MAAMP,UAAUI,QAAQ,OAAQ,KAChDyB,EAAWC,OAAOC,KAAO,uBACzBC,GAAUC,KAAMP,EAAQO,KAAMC,cAAeN,EACjDT,GAAEgB,KAAKN,EAAUG,EAAQ,SAASI,GAC9BC,QAAQC,IAAIF,GACZG,YAAc9C,EAAc+C,WAAWJ,GACvCT,EAASY,gBAGjBE,UAAW,EACXC,OAAQ,SAASC,EAAOC,GACpB,GAAIC,GAASD,EAAGE,KAAKC,MAGjBC,GAFUlB,OAAOC,KAAO,4BACdG,cAAiBZ,EAAKf,MAAMP,UAAW6C,OAAUA,GAC/C,gBAAkBvB,EAAKf,MAAMP,UAAY,MAAQ6C,EACjElD,UAASsD,QAAQC,SAASF,GAAYG,SAAS,EAAM/C,SAAQ,UAM7EgD,OAAQ,SAASlD,GACbG,KAAKY,IAAIoC,QACThD,KAAKE,MAAMI,IAAMN,KAAKE,MAAMI,IAAM,kBAAoBN,KAAKH,QAAQF,UACnEK,KAAKJ,WAAWC,IAKpBc,qBAAsBV,EAAEgD,UACpB,yEACI,4HACJ,SACA,wDACI,+DACI,4BACI,8LACJ,UACJ,SACA,8CACI,uBACI,iCACI,OACI,gBACA,uBACA,wBACJ,QACJ,WACA,gDACI,OACI,OACI,sGACJ,QACA,8CACA,+CACJ,QACJ,YACJ,WACJ,SACJ,UACFC,KAAK,MAGX,QACIC,aAAc9D"}
|
||||
{"version":3,"file":"categories-view.js","sources":["../../../src/mvc/toolshed/categories-view.js"],"names":["define","toolshed_model","toolshed_util","ToolShedCategories","Backbone","View","extend","el","defaults","tool_shed","initialize","options","shed","replace","this","_","model","Categories","listenTo","render","url","fetch","categories","models","queue","queueLength","category_list_template","templateCategoryList","$el","html","$","css","bindEvents","that","require","autocomplete","source","request","response","shed_url","base_url","Galaxy","root","params","term","tool_shed_url","post","data","console","log","result_list","shedParser","minLength","select","event","ui","tsr_id","item","value","new_route","history","navigate","trigger","reDraw","empty","template","join","CategoryView"],"mappings":"AAAAA,QAAQ,8BAA+B,qBAAsB,SAASC,EAAgBC,GAElF,GAAIC,GAAqBC,SAASC,KAAKC,QAEnCC,GAAI,UAEJC,UACIC,UAAW,mCAGfC,WAAY,SAASC,GACjB,GACIC,GAAOD,EAAQF,UAAUI,QAAQ,MAAO,MAC5CC,MAAKH,QAAUI,EAAEP,SAASM,KAAKH,SAAWA,EAASG,KAAKN,UACxDM,KAAKE,MAAQ,GAAIf,GAAegB,WAChCH,KAAKI,SAASJ,KAAKE,MAAO,OAAQF,KAAKK,QACvCL,KAAKE,MAAMI,IAAMN,KAAKE,MAAMI,IAAM,kBAAoBN,KAAKH,QAAQF,UACnEK,KAAKE,MAAMP,UAAYG,EACvBE,KAAKE,MAAMK,SAGfF,OAAQ,SAASR,GACbG,KAAKH,QAAUI,EAAET,OAAOQ,KAAKH,QAASA,GACtCG,KAAKH,QAAQW,WAAaR,KAAKE,MAAMO,OACrCT,KAAKH,QAAQa,MAAQtB,EAAcuB,aACnC,IAAIC,GAAyBZ,KAAKa,oBAClCb,MAAKc,IAAIC,KAAKH,EAAuBZ,KAAKH,UAC1CmB,EAAE,WAAWC,IAAI,WAAY,QAC7BjB,KAAKkB,cAGTA,WAAY,WACR,GAAIC,GAAOnB,IACXoB,UAAS,yBAA0B,WAC/BJ,EAAE,eAAeK,cACbC,OAAQ,SAASC,EAASC,GACtB,GAAIC,GAAWN,EAAKjB,MAAMP,UAAUI,QAAQ,OAAQ,KAChD2B,EAAWC,OAAOC,KAAO,uBACzBC,GAAUC,KAAMP,EAAQO,KAAMC,cAAeN,EACjDT,GAAEgB,KAAKN,EAAUG,EAAQ,SAASI,GAC9BC,QAAQC,IAAIF,GACZG,YAAchD,EAAciD,WAAWJ,GACvCT,EAASY,gBAGjBE,UAAW,EACXC,OAAQ,SAASC,EAAOC,GACpB,GAAIC,GAASD,EAAGE,KAAKC,MAGjBC,GAFUlB,OAAOC,KAAO,4BACdG,cAAiBZ,EAAKjB,MAAMP,UAAW+C,OAAUA,GAC/C,gBAAkBvB,EAAKjB,MAAMP,UAAY,MAAQ+C,EACjEpD,UAASwD,QAAQC,SAASF,GAAYG,SAAS,EAAMjD,SAAQ,UAM7EkD,OAAQ,SAASpD,GACbG,KAAKc,IAAIoC,QACTlD,KAAKE,MAAMI,IAAMN,KAAKE,MAAMI,IAAM,kBAAoBN,KAAKH,QAAQF,UACnEK,KAAKJ,WAAWC,IAGpBgB,qBAAsBZ,EAAEkD,UACpB,0BACI,+CACA,6CACJ,WACA,yEACI,4HACA,wJACJ,SACA,wDACI,+DACI,4BACI,8LACJ,UACJ,SACA,8CACI,uBACI,iCACI,OACI,gBACA,uBACA,wBACJ,QACJ,WACA,gDACI,OACI,OACI,sGACJ,QACA,8CACA,+CACJ,QACJ,YACJ,WACJ,SACJ,UACFC,KAAK,MAGX,QACIC,aAAchE"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"repo-status-view.js","sources":["../../../src/mvc/toolshed/repo-status-view.js"],"names":["define","toolshed_model","toolshed_util","ToolShedRepoStatusView","Backbone","View","extend","el","initialize","options","this","_","defaults","model","RepoStatus","listenTo","render","url","repositories","join","fetch","timer","setInterval","self","terminal_states","all_done","some","models","repository","repo_id","get","repo_status","toLowerCase","indexOf","clearInterval","close","repo_status_template","templateRepoStatus","$el","html","title","queue","queueLength","$","css","bindEvents","reDraw","empty","template"],"mappings":"AAAAA,QAAQ,8BAA+B,qBAAsB,SAASC,EAAgBC,GAElF,GAAIC,GAAyBC,SAASC,KAAKC,QAEvCC,GAAI,UAEJC,WAAY,SAASC,GAEjBC,KAAKD,QAAUE,EAAEC,SAASF,KAAKD,cAAiBA,EAASC,KAAKE,UAC9DF,KAAKG,MAAQ,GAAIZ,GAAea,WAChCJ,KAAKK,SAASL,KAAKG,MAAO,OAAQH,KAAKM,QACvCN,KAAKG,MAAMI,KAAO,iBAAmBP,KAAKD,QAAQS,aAAaC,KAAK,KACpET,KAAKG,MAAMO,QACXV,KAAKW,MAAQC,YAAY,SAASC,GAC9B,GAAIC,IAAmB,YAAa,SAChCC,GAAW,CACfd,GAAEe,KAAKH,EAAKV,MAAMc,OAAQ,SAASC,GAG/B,MAFAC,SAAUD,EAAWE,IAAI,MACzBC,YAAcH,EAAWE,IAAI,UAAUE,cACM,KAAzCR,EAAgBS,QAAQF,cACxBN,GAAW,GACJ,GAFX,SAKAA,EACAS,cAAcX,EAAKF,OAGnBE,EAAKV,MAAMO,SAEhB,IAAMV,OAGbyB,MAAO,WACHD,cAAcxB,KAAKW,QAGvBL,OAAQ,SAASP,GACbC,KAAKD,QAAUE,EAAEL,OAAOI,KAAKD,QAASA,EACtC,IAAI2B,GAAuB1B,KAAK2B,kBAChC3B,MAAK4B,IAAIC,KAAKH,GAAsBI,MAAO,oBAAqBtB,aAAcR,KAAKG,MAAMc,OAAQc,MAAOvC,EAAcwC,iBACtHC,EAAE,WAAWC,IAAI,WAAY,QAC7BlC,KAAKmC,cAGTA,WAAY,aAIZC,OAAQ,SAASrC,GACbC,KAAK4B,IAAIS,QACTrC,KAAKF,WAAWC,IAGpB4B,mBAAoB1B,EAAEqC,UAClB,yEACI,6DACA,wJACJ,SACA,0BACI,oBACA,4BACA,qEACA,wBACA,sCACA,mDACA,6CACA,0FACA,sEACA,kEACJ,WACA,uCACI,iCACI,OACI,iEACA,wEACA,kEACA,qEACA,gFACJ,QACJ,WACA,+BACI,oDACI,OACI,OACI,uBACI,uFACI,gCACJ,WACJ,SACJ,QACA,OACI,uBACI,uFACI,uCACJ,WACJ,SACJ,QACA,OACI,uBACI,uFACI,iCACJ,WACJ,SACJ,QACA,OACI,uBACI,4FACI,8CACJ,WACJ,SACJ,QACA,OACI,uBACI,8FACI,qKACI,kCACJ,SACJ,WACJ,SACJ,QACJ,QACJ,YACJ,WACA,yCACJ,YACF7B,KAAK,MAGX,QACIL,WAAYX"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"repositories-view.js","sources":["../../../src/mvc/toolshed/repositories-view.js"],"names":["define","toolshed_model","toolshed_util","ToolShedCategoryContentsView","Backbone","View","extend","el","initialize","params","this","model","CategoryCollection","listenTo","render","shed","tool_shed","replace","url","category_id","category","fetch","options","_","category_contents_template","templateCategoryContents","$el","html","models","$","css","bindEvents","that","require","autocomplete","source","request","response","shed_url","base_url","Galaxy","root","term","tool_shed_url","post","data","result_list","shedParser","minLength","select","event","ui","tsr_id","item","value","new_route","history","navigate","trigger","reDraw","empty","template","join","Category"],"mappings":"AAAAA,QAAQ,8BAA+B,qBAAsB,SAASC,EAAgBC,GAElF,GAAIC,GAA+BC,SAASC,KAAKC,QAE7CC,GAAI,UAEJC,WAAY,SAASC,GAEjBC,KAAKC,MAAQ,GAAIV,GAAeW,mBAChCF,KAAKG,SAASH,KAAKC,MAAO,OAAQD,KAAKI,OACvC,IAAIC,GAAON,EAAOO,UAAUC,QAAQ,MAAO,MAC3CP,MAAKC,MAAMO,KAAO,kBAAoBH,EAAO,gBAAkBN,EAAOU,YACtET,KAAKC,MAAMK,UAAYD,EACvBL,KAAKC,MAAMS,SAAWX,EAAOU,YAC7BT,KAAKC,MAAMU,SAGfP,OAAQ,SAASQ,GACbZ,KAAKY,QAAUC,EAAEjB,OAAOI,KAAKY,QAASA,EACtC,IAAIE,GAA6Bd,KAAKe,wBACtCf,MAAKgB,IAAIC,KAAKH,GAA4BJ,SAAUV,KAAKC,MAAMiB,OAAO,GAAIZ,UAAWN,KAAKC,MAAMK,aAChGa,EAAE,WAAWC,IAAI,WAAY,QAC7BpB,KAAKqB,cAGTA,WAAY,WACR,GAAIC,GAAOtB,IACXuB,UAAS,yBAA0B,WAC/BJ,EAAE,eAAeK,cACbC,OAAQ,SAASC,EAASC,GACtB,GAAIC,GAAWN,EAAKrB,MAAMK,UAAUC,QAAQ,OAAQ,KAChDsB,EAAWC,OAAOC,KAAO,uBACzBhC,GAAUiC,KAAMN,EAAQM,KAAMC,cAAeL,EACjDT,GAAEe,KAAKL,EAAU9B,EAAQ,SAASoC,GAC9BC,YAAc5C,EAAc6C,WAAWF,GACvCR,EAASS,gBAGjBE,UAAW,EACXC,OAAQ,SAASC,EAAOC,GACpB,GAAIC,GAASD,EAAGE,KAAKC,MAGjBC,GAFUf,OAAOC,KAAO,4BACdE,cAAiBX,EAAKrB,MAAMK,UAAWoC,OAAUA,GAC/C,gBAAkBpB,EAAKrB,MAAMK,UAAY,MAAQoC,EACjEhD,UAASoD,QAAQC,SAASF,GAAYG,SAAS,EAAMzC,SAAQ,UAM7E0C,OAAQ,SAASrC,GACbZ,KAAKgB,IAAIkC,QACTlD,KAAKF,WAAWc,IAGpBG,yBAA0BF,EAAEsC,UACxB,yEACI,4FACJ,SACA,0DACI,+DACI,4BACI,8LACJ,UACJ,SACA,8CACI,uBACI,iCACI,OACI,qCACA,oCACA,oBACA,oCACJ,QACJ,WACA,oEACI,OACI,mCACA,OACI,wEACI,8FACJ,SACJ,QACA,yCACA,kCACJ,QACJ,YACJ,WACJ,SACJ,UACFC,KAAK,MAGX,QACIC,SAAU5D"}
|
||||
{"version":3,"file":"repositories-view.js","sources":["../../../src/mvc/toolshed/repositories-view.js"],"names":["define","toolshed_model","toolshed_util","ToolShedCategoryContentsView","Backbone","View","extend","el","initialize","params","this","model","CategoryCollection","listenTo","render","shed","tool_shed","replace","url","category_id","category","fetch","options","_","category_contents_template","templateCategoryContents","$el","html","models","queue","queueLength","$","css","bindEvents","that","require","autocomplete","source","request","response","shed_url","base_url","Galaxy","root","term","tool_shed_url","post","data","result_list","shedParser","minLength","select","event","ui","tsr_id","item","value","new_route","history","navigate","trigger","reDraw","empty","template","join","Category"],"mappings":"AAAAA,QAAQ,8BAA+B,qBAAsB,SAASC,EAAgBC,GAElF,GAAIC,GAA+BC,SAASC,KAAKC,QAE7CC,GAAI,UAEJC,WAAY,SAASC,GAEjBC,KAAKC,MAAQ,GAAIV,GAAeW,mBAChCF,KAAKG,SAASH,KAAKC,MAAO,OAAQD,KAAKI,OACvC,IAAIC,GAAON,EAAOO,UAAUC,QAAQ,MAAO,MAC3CP,MAAKC,MAAMO,KAAO,kBAAoBH,EAAO,gBAAkBN,EAAOU,YACtET,KAAKC,MAAMK,UAAYD,EACvBL,KAAKC,MAAMS,SAAWX,EAAOU,YAC7BT,KAAKC,MAAMU,SAGfP,OAAQ,SAASQ,GACbZ,KAAKY,QAAUC,EAAEjB,OAAOI,KAAKY,QAASA,EACtC,IAAIE,GAA6Bd,KAAKe,wBACtCf,MAAKgB,IAAIC,KAAKH,GAA4BJ,SAAUV,KAAKC,MAAMiB,OAAO,GAAIZ,UAAWN,KAAKC,MAAMK,UAAWa,MAAO3B,EAAc4B,iBAChIC,EAAE,WAAWC,IAAI,WAAY,QAC7BtB,KAAKuB,cAGTA,WAAY,WACR,GAAIC,GAAOxB,IACXyB,UAAS,yBAA0B,WAC/BJ,EAAE,eAAeK,cACbC,OAAQ,SAASC,EAASC,GACtB,GAAIC,GAAWN,EAAKvB,MAAMK,UAAUC,QAAQ,OAAQ,KAChDwB,EAAWC,OAAOC,KAAO,uBACzBlC,GAAUmC,KAAMN,EAAQM,KAAMC,cAAeL,EACjDT,GAAEe,KAAKL,EAAUhC,EAAQ,SAASsC,GAC9BC,YAAc9C,EAAc+C,WAAWF,GACvCR,EAASS,gBAGjBE,UAAW,EACXC,OAAQ,SAASC,EAAOC,GACpB,GAAIC,GAASD,EAAGE,KAAKC,MACjBC,EAAY,gBAAkBvB,EAAKvB,MAAMK,UAAY,MAAQsC,CACjElD,UAASsD,QAAQC,SAASF,GAAYG,SAAS,EAAM3C,SAAQ,UAM7E4C,OAAQ,SAASvC,GACbZ,KAAKgB,IAAIoC,QACTpD,KAAKF,WAAWc,IAGpBG,yBAA0BF,EAAEwC,UACxB,0BACI,+CACA,6CACJ,WACA,yEACI,4FACA,wJACJ,SACA,0DACI,+DACI,4BACI,8LACJ,UACJ,SACA,8CACI,uBACI,iCACI,OACI,qCACA,oCACA,oBACA,oCACJ,QACJ,WACA,oEACI,OACI,mCACA,OACI,wEACI,8FACJ,SACJ,QACA,yCACA,kCACJ,QACJ,YACJ,WACJ,SACJ,UACFC,KAAK,MAGX,QACIC,SAAU9D"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"repository-queue-view.js","sources":["../../../src/mvc/toolshed/repository-queue-view.js"],"names":["define","toolshed_model","View","Backbone","extend","el","defaults","initialize","that","this","model","RepoQueue","listenTo","render","console","log","fetch","repo_queue_template","templateRepoQueue","$el","html","get","$","css","bindEvents","reDraw","options","empty","_","template","join","RepoQueueView"],"mappings":"AAAAA,QAAQ,8BAA+B,qBAAsB,SAASC,GAElE,GAAIC,GAAOC,SAASD,KAAKE,QAErBC,GAAI,UAEJC,YAEAC,WAAY,WACR,GAAIC,GAAOC,IACXD,GAAKE,MAAQ,GAAIT,GAAeU,UAChCH,EAAKI,SAASJ,EAAKE,MAAO,OAAQF,EAAKK,QACvCC,QAAQC,IAAIP,EAAKE,OACjBF,EAAKE,MAAMM,SAGfH,OAAQ,WACJ,GAAIL,GAAOC,KACPQ,EAAsBT,EAAKU,iBAC/BJ,SAAQC,IAAIP,EAAKE,OACjBF,EAAKW,IAAIC,KAAKH,EAAoBT,EAAKE,MAAMW,QAC7CC,EAAE,WAAWC,IAAI,WAAY,QAC7Bf,EAAKgB,cAGTA,WAAY,aAIZC,OAAQ,SAASC,GACbjB,KAAKU,IAAIQ,QACTlB,KAAKF,WAAWmB,IAKpBR,kBAAmBU,EAAEC,UACjB,iEACI,wGACI,iCACI,OACI,sIACA,sIACA,uCACA,mCACA,oCACA,uCACJ,QACJ,WACA,UACI,oDACI,mDACI,0BACI,oMACJ,QACA,0BACI,yMACJ,QACA,8DACA,qDACA,sDACA,0DACJ,QACJ,YACJ,WACJ,WACA,+FACJ,UACEC,KAAK,MAGf,QACIC,cAAe7B"}
|
||||
{"version":3,"file":"repository-queue-view.js","sources":["../../../src/mvc/toolshed/repository-queue-view.js"],"names":["define","toolshed_model","toolshed_util","View","Backbone","extend","el","defaults","initialize","that","this","model","RepoQueue","listenTo","render","fetch","repo_queue_template","templateRepoQueue","repositories","models","$el","html","title","queue","queueLength","$","css","bindEvents","on","repository_metadata","loadFromQueue","attr","installFromQueue","queue_key","repo_queue","JSON","parse","localStorage","hasOwnProperty","repository_id","repository","id","remove","stringify","history","navigate","trigger","replace","params","Object","install_tool_dependencies","install_repository_dependencies","install_resolver_dependencies","tool_panel_section","shed_tool_conf","changeset_revision","tool_shed_repository_ids","tool_shed_url","split","changeset","url","Galaxy","root","undefined","queueKey","repository_queue","post","data","iri_params","new_route","join","console","log","reDraw","options","empty","_","template","RepoQueueView"],"mappings":"AAAAA,QAAQ,8BAA+B,qBAAsB,SAASC,EAAgBC,GAElF,GAAIC,GAAOC,SAASD,KAAKE,QAErBC,GAAI,UAEJC,cAEAC,WAAY,WACR,GAAIC,GAAOC,IACXA,MAAKC,MAAQ,GAAIV,GAAeW,UAChCF,KAAKG,SAASH,KAAKC,MAAO,OAAQD,KAAKI,QACvCJ,KAAKC,MAAMI,QACXN,EAAKK,UAGTA,OAAQ,WACJ,GAAIL,GAAOC,KACPM,EAAsBP,EAAKQ,kBAC3BC,EAAeT,EAAKE,MAAMQ,MAC9BV,GAAKW,IAAIC,KAAKL,GAAqBM,MAAO,gCAAiCJ,aAAcA,EAAcK,MAAOrB,EAAcsB,iBAC5HC,EAAE,WAAWC,IAAI,WAAY,QAC7BjB,EAAKkB,cAGTA,WAAY,WACR,GAAIlB,GAAOC,IACXe,GAAE,gBAAgBG,GAAG,QAAS,WAC1B,GAAIC,GAAsBpB,EAAKqB,cAAcL,EAAEf,MAAMqB,KAAK,gBAC1DtB,GAAKuB,iBAAiBH,EAAqBJ,EAAEf,MAAMqB,KAAK,mBAE5DN,EAAE,eAAeG,GAAG,QAAS,WACzB,GAAIK,GAAYR,EAAEf,MAAMqB,KAAK,gBACzBG,EAAaC,KAAKC,MAAMC,aAAanB,aACzC,IAAIgB,EAAWI,eAAeL,GAAY,CACtC,GAAIM,GAAgBL,EAAWD,GAAWO,WAAWC,SAC9CP,GAAWD,GAClBR,EAAE,sBAAwBc,GAAeG,SAE7CL,aAAanB,aAAeiB,KAAKQ,UAAUT,KAE/CT,EAAE,gBAAgBG,GAAG,QAAS,WAC1BS,aAAanB,aAAe,OAEhCO,EAAE,kBAAkBG,GAAG,QAAS,WAAaxB,SAASwC,QAAQC,SAAS,aAAcC,SAAS,EAAMC,SAAQ,OAGhHf,iBAAkB,SAASH,EAAqBI,GAC5C,GACIe,GAASC,QACbD,GAAOE,0BAA4BrB,EAAoBqB,0BACvDF,EAAOG,gCAAkCtB,EAAoBsB,gCAC7DH,EAAOI,8BAAgCvB,EAAoBuB,8BAC3DJ,EAAOK,mBAAqBxB,EAAoBwB,mBAChDL,EAAOM,eAAiBzB,EAAoByB,eAC5CN,EAAO9B,aAAeiB,KAAKQ,YAAYd,EAAoBW,WAAWC,GAAIZ,EAAoB0B,sBAC9FP,EAAOQ,yBAA2BrB,KAAKQ,WAAWd,EAAoBW,WAAWC,KACjFO,EAAOS,cAAgBxB,EAAUyB,MAAM,KAAK,GAC5CV,EAAOW,UAAY9B,EAAoB0B,kBACvC,IAAIK,GAAMC,OAAOC,KAAO,+CACxBrC,GAAE,sBAAwBI,EAAoBW,WAAWC,IAAIC,SACzDL,aAAanB,eACK6C,SAAd9B,IACAA,EAAY/B,EAAc8D,SAASnC,IAEvCoC,iBAAmB9B,KAAKC,MAAMC,aAAanB,cACvC+C,iBAAiB3B,eAAeL,WACzBgC,kBAAiBhC,GACxBI,aAAanB,aAAeiB,KAAKQ,UAAUsB,oBAInDxC,EAAEyC,KAAKN,EAAKZ,EAAQ,SAASmB,GACzB,GAAIC,GAAajC,KAAKC,MAAM+B,GACxBjD,EAAekD,EAAWlD,aAC1BmD,EAAY,YAAcnD,EAAaoD,KAAK,IAChD7C,GAAEyC,KAAKL,OAAOC,KAAO,qCAAsCM,EAAY,WACnEG,QAAQC,IAAK,oDAEjBpE,SAASwC,QAAQC,SAASwB,GAAYvB,SAAS,EAAMC,SAAQ,OAIrEjB,cAAe,SAASG,GAEpB,MADAgC,kBAAmB9B,KAAKC,MAAMC,aAAanB,cACvC+C,iBAAiB3B,eAAeL,GACzBgC,iBAAiBhC,GAErB8B,QAGXU,OAAQ,SAASC,GACbhE,KAAKU,IAAIuD,QACTjE,KAAKF,WAAWkE,GAChBhE,KAAKC,MAAMI,QACXL,KAAKI,OAAO4D,IAGhBzD,kBAAmB2D,EAAEC,UACjB,yEACI,6DACA,wJACJ,SACA,iEACI,wGACI,iCACI,OACI,mCACA,oCACA,uCACA,uCACA,sCACA,sIACJ,QACJ,WACA,UACI,oDACQ,0DACI,uEACA,wEACA,0EACA,qEACA,0BACI,kNACJ,QACA,0BACI,uNACJ,QACJ,QACR,YACJ,WACJ,WACA,+FACJ,UACEP,KAAK,MAGf,QACIQ,cAAe3E"}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"file":"shed-list-view.js","sources":["../../../src/mvc/toolshed/shed-list-view.js"],"names":["define","toolshed_model","View","Backbone","extend","defaults","tool_sheds","url","name","initialize","this","options","_","model","ShedsCollection","listenTo","render","fetch","el","toolshed_list_template","templateToolshedList","$el","html","models","reDraw","empty","template","join","ShedListView"],"mappings":"AAAAA,QAAQ,+BAAiC,SAASC,GAE9C,GAAIC,GAAOC,SAASD,KAAKE,QAErBC,UACIC,aAAcC,IAAO,kCAAmCC,KAAQ,2BAGpEC,WAAY,WAERC,KAAKC,QAAUC,EAAEP,SAASK,KAAKC,YAAeD,KAAKL,UACnDK,KAAKG,MAAQ,GAAIZ,GAAea,gBAChCJ,KAAKK,SAASL,KAAKG,MAAO,OAAQH,KAAKM,QACvCN,KAAKG,MAAMI,SAGfC,GAAI,UAEJF,OAAQ,SAASL,GACbD,KAAKC,QAAUC,EAAEP,SAASK,KAAKC,YAAeA,EAASD,KAAKL,SAC5D,IAAIc,GAAyBT,KAAKU,oBAClCV,MAAKW,IAAIC,KAAKH,GAAwBb,WAAYI,KAAKG,MAAMU,WAGjEC,OAAQ,SAASb,GACbD,KAAKW,IAAII,QACTf,KAAKM,OAAOL,IAGhBS,qBAAsBR,EAAEc,UACpB,yEACI,6EACA,wCACJ,SACA,uDACI,yBACI,uBACI,4CACI,4BACI,OACI,wEACI,8GACJ,SACJ,QACJ,QACJ,YACJ,WACJ,SACA,kCACJ,UACFC,KAAK,MAIX,QACIC,aAAc1B"}
|
||||
{"version":3,"file":"shed-list-view.js","sources":["../../../src/mvc/toolshed/shed-list-view.js"],"names":["define","toolshed_model","toolshed_util","View","Backbone","extend","defaults","tool_sheds","url","name","initialize","this","options","_","model","ShedsCollection","listenTo","render","fetch","el","toolshed_list_template","templateToolshedList","$el","html","title","models","queue","queueLength","reDraw","empty","template","join","ShedListView"],"mappings":"AAAAA,QAAQ,8BAA+B,qBAAsB,SAASC,EAAgBC,GAElF,GAAIC,GAAOC,SAASD,KAAKE,QAErBC,UACIC,aAAcC,IAAO,kCAAmCC,KAAQ,2BAGpEC,WAAY,WAERC,KAAKC,QAAUC,EAAEP,SAASK,KAAKC,YAAeD,KAAKL,UACnDK,KAAKG,MAAQ,GAAIb,GAAec,gBAChCJ,KAAKK,SAASL,KAAKG,MAAO,OAAQH,KAAKM,QACvCN,KAAKG,MAAMI,SAGfC,GAAI,UAEJF,OAAQ,SAASL,GACbD,KAAKC,QAAUC,EAAEP,SAASK,KAAKC,YAAeA,EAASD,KAAKL,SAC5D,IAAIc,GAAyBT,KAAKU,oBAClCV,MAAKW,IAAIC,KAAKH,GAAwBI,MAAO,+BAAgCjB,WAAYI,KAAKG,MAAMW,OAAQC,MAAOxB,EAAcyB,kBAGrIC,OAAQ,SAAShB,GACbD,KAAKW,IAAIO,QACTlB,KAAKM,OAAOL,IAGhBS,qBAAsBR,EAAEiB,UACpB,yEACI,6DACA,wJACJ,SACA,uDACI,yBACI,uBACI,4CACI,4BACI,OACI,wEACI,8GACJ,SACJ,QACJ,QACJ,YACJ,WACJ,SACA,kCACJ,UACFC,KAAK,MAIX,QACIC,aAAc7B"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"toolshed-model.js","sources":["../../../src/mvc/toolshed/toolshed-model.js"],"names":["define","ToolShedModel","Backbone","Model","extend","defaults","url","name","urlRoot","Galaxy","root","ToolShedsCollection","Collection","model","ToolShedCategoriesModel","ToolShedCategoriesCollection","ToolShedCategoryModel","ToolShedCategoryCollection","ToolShedRepositoryModel","ToolShedRepositoryCollection","RepoQueueCollection","fetch","console","log","collection","this","repositories","JSON","parse","localStorage","reset","ShedModel","ShedsCollection","Category","Categories","CategoryModel","CategoryCollection","RepositoryModel","RepositoryCollection","RepoQueue"],"mappings":"AAAAA,UAAW,WAEP,GAAIC,GAAgBC,SAASC,MAAMC,QAC/BC,UAAWC,IAAO,kCAAmCC,KAAQ,yBAC7DC,QAASC,OAAOC,KAAO,kBAGvBC,EAAsBT,SAASU,WAAWR,QAC1CE,IAAKG,OAAOC,KAAO,gBACnBG,MAAOZ,IAGPa,EAA0BZ,SAASC,MAAMC,QACzCC,cACAG,QAASC,OAAOC,KAAO,2BAGvBK,EAA+Bb,SAASU,WAAWR,QACnDE,IAAKG,OAAOC,KAAO,yBACnBG,MAAOC,IAGPE,EAAwBd,SAASC,MAAMC,QACvCC,cACAG,QAASC,OAAOC,KAAO,2BAGvBO,EAA6Bf,SAASU,WAAWR,QACjDE,IAAKG,OAAOC,KAAO,yBACnBG,MAAOG,IAGPE,EAA0BhB,SAASC,MAAMC,QACzCC,cACAG,QAASC,OAAOC,KAAO,6BAGvBS,EAA+BjB,SAASU,WAAWR,QACnDE,IAAKG,OAAOC,KAAO,2BACnBG,MAAOK,IAGPE,EAAsBlB,SAASU,WAAWR,QAC1CiB,MAAO,WACHC,QAAQC,IAAI,QACZ,IAAIC,GAAaC,KACbC,EAAeC,KAAKC,MAAMC,aAAaH,aAC3CF,GAAWM,MAAMJ,KAIzB,QACIK,UAAW9B,EACX+B,gBAAiBrB,EACjBsB,SAAUnB,EACVoB,WAAYnB,EACZoB,cAAenB,EACfoB,mBAAoBnB,EACpBoB,gBAAiBnB,EACjBoB,qBAAsBnB,EACtBoB,UAAWnB"}
|
||||
{"version":3,"file":"toolshed-model.js","sources":["../../../src/mvc/toolshed/toolshed-model.js"],"names":["define","ToolShedModel","Backbone","Model","extend","defaults","url","name","urlRoot","Galaxy","root","ToolShedsCollection","Collection","model","ToolShedCategoriesModel","ToolShedCategoriesCollection","ToolShedCategoryModel","ToolShedCategoryCollection","ToolShedRepositoryModel","ToolShedRepositoryCollection","RepoQueueModel","RepoQueueCollection","fetch","collection","this","repositories","Array","repositories_enc","JSON","parse","localStorage","queue_keys","Object","keys","_","each","key","repo","queue_key","push","reset","prototype","call","RepoStatusModel","RepoStatusCollection","WorkflowToolsModel","WorkflowToolsCollection","ShedModel","ShedsCollection","Category","Categories","CategoryModel","CategoryCollection","RepositoryModel","RepositoryCollection","RepoQueue","RepoStatus","WorkflowTools"],"mappings":"AAAAA,UAAW,WAEP,GAAIC,GAAgBC,SAASC,MAAMC,QAC/BC,UAAWC,IAAO,kCAAmCC,KAAQ,yBAC7DC,QAASC,OAAOC,KAAO,kBAGvBC,EAAsBT,SAASU,WAAWR,QAC1CE,IAAKG,OAAOC,KAAO,gBACnBG,MAAOZ,IAGPa,EAA0BZ,SAASC,MAAMC,QACzCC,cACAG,QAASC,OAAOC,KAAO,2BAGvBK,EAA+Bb,SAASU,WAAWR,QACnDE,IAAKG,OAAOC,KAAO,yBACnBG,MAAOC,IAGPE,EAAwBd,SAASC,MAAMC,QACvCC,cACAG,QAASC,OAAOC,KAAO,2BAGvBO,EAA6Bf,SAASU,WAAWR,QACjDE,IAAKG,OAAOC,KAAO,yBACnBG,MAAOG,IAGPE,EAA0BhB,SAASC,MAAMC,QACzCC,cACAG,QAASC,OAAOC,KAAO,6BAGvBS,EAA+BjB,SAASU,WAAWR,QACnDE,IAAKG,OAAOC,KAAO,2BACnBG,MAAOK,IAGPE,EAAiBlB,SAASC,MAAMC,QAChCE,IAAK,MAGLe,EAAsBnB,SAASU,WAAWR,QAC1CE,IAAK,IACLO,MAAOO,EACPE,MAAO,WACH,GAAIC,GAAaC,KACbC,EAAeC,QACfC,EAAmBC,KAAKC,MAAMC,aAAaL,cAC3CM,EAAaC,OAAOC,KAAKN,EAO7B,OANAO,GAAEC,KAAKJ,EAAY,SAASK,GACxB,GAAIC,GAAOV,EAAiBS,EAC5BC,GAAKC,UAAYF,EACjBX,EAAac,KAAKF,KAEtBd,EAAWiB,MAAMf,GACVvB,SAASU,WAAW6B,UAAUnB,MAAMoB,KAAKlB,SAIpDmB,EAAkBzC,SAASC,MAAMC,QACjCC,cACAG,QAASC,OAAOC,KAAO,yBAGvBkC,EAAuB1C,SAASU,WAAWR,QAC3CE,IAAKG,OAAOC,KAAO,uBACnBG,MAAO8B,IAGPE,EAAqB3C,SAASC,MAAMC,QACpCC,cACAG,QAASC,OAAOC,KAAO,qCAGvBoC,EAA0B5C,SAASU,WAAWR,QAC9CE,IAAKG,OAAOC,KAAO,mCACnBG,MAAOgC,GAGX,QACIE,UAAW9C,EACX+C,gBAAiBrC,EACjBsC,SAAUnC,EACVoC,WAAYnC,EACZoC,cAAenC,EACfoC,mBAAoBnC,EACpBoC,gBAAiBnC,EACjBoC,qBAAsBnC,EACtBoC,UAAWlC,EACXmC,WAAYZ,EACZa,cAAeX"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"util.js","sources":["../../../src/mvc/toolshed/util.js"],"names":["define","loadRepo","a","b","c","d","console","log","searchShed","request","response","that","this","shed_url","base_url","Galaxy","root","$","get","term","tool_shed_url","data","result_list","shedParser","jsondata","results","hits","each","hit","record","label","repository","name","repo_owner_username","description","result","value","id","push"],"mappings":"AAAAA,UAAW,WACP,GAAIC,GAAW,SAASC,EAAEC,EAAEC,EAAEC,GAC1BC,QAAQC,IAAIL,GACZI,QAAQC,IAAIJ,GACZG,QAAQC,IAAIH,GACZE,QAAQC,IAAIF,IAGZG,EAAa,SAASC,EAASC,GAC/B,GAAIC,GAAOC,IACXN,SAAQC,IAAI,WACZ,IAAIM,GAAWD,KAAKC,SAChBC,EAAWC,OAAOC,KAAO,sBAC7BC,GAAEC,IAAIJ,GAAWK,KAAMV,EAAQU,KAAMC,cAAeP,GAAW,SAASQ,GACpEC,YAAcX,EAAKY,WAAWF,GAC9BX,EAASY,gBAKbC,EAAa,SAASC,GACtB,GAAIC,MACAC,EAAOF,EAASE,IASpB,OARAT,GAAEU,KAAKD,EAAM,SAASE,GAClB,GAAIC,GAASH,EAAKE,GACdE,EAAQD,EAAOE,WAAWC,KAAO,OAASH,EAAOE,WAAWE,oBAAsB,KAAOJ,EAAOE,WAAWG,WAC/G5B,SAAQC,IAAIsB,GACZM,QAAUC,MAAOP,EAAOE,WAAWM,GAAIP,MAAOA,GAC9CxB,QAAQC,IAAI4B,QACZV,EAAQa,KAAKH,UAEVV,EAGX,QAAQxB,SAAUA,EAAUO,WAAYA,EAAYe,WAAYA"}
|
||||
{"version":3,"file":"util.js","sources":["../../../src/mvc/toolshed/util.js"],"names":["define","searchShed","request","response","that","this","shed_url","base_url","Galaxy","root","$","get","term","tool_shed_url","data","result_list","shedParser","jsondata","results","hits","each","hit","record","label","repository","name","repo_owner_username","description","result","value","id","push","addToQueue","metadata","substr","length","key","repository_id","changeset_revision","queued_repos","Object","localStorage","repositories","JSON","parse","stringify","queueLength","hasOwnProperty","repo_queue","queue_length","keys"],"mappings":"AAAAA,UAAW,WACP,GAAIC,GAAa,SAASC,EAASC,GAC/B,GAAIC,GAAOC,KACPC,EAAWD,KAAKC,SAChBC,EAAWC,OAAOC,KAAO,sBAC7BC,GAAEC,IAAIJ,GAAWK,KAAMV,EAAQU,KAAMC,cAAeP,GAAW,SAASQ,GACpEC,YAAcX,EAAKY,WAAWF,GAC9BX,EAASY,gBAKbC,EAAa,SAASC,GACtB,GAAIC,MACAC,EAAOF,EAASE,IAOpB,OANAT,GAAEU,KAAKD,EAAM,SAASE,GAClB,GAAIC,GAASH,EAAKE,GACdE,EAAQD,EAAOE,WAAWC,KAAO,OAASH,EAAOE,WAAWE,oBAAsB,KAAOJ,EAAOE,WAAWG,WAC/GC,SAAUC,MAAOP,EAAOE,WAAWM,GAAIP,MAAOA,GAC9CL,EAAQa,KAAKH,UAEVV,GAGPc,EAAa,SAASC,GACmB,KAArCA,EAASpB,cAAcqB,OAAO,MAC9BD,EAASpB,cAAgBoB,EAASpB,cAAcqB,OAAO,EAAGD,EAASpB,cAAcsB,OAAS,GAE9F,IAAIC,GAAMH,EAASpB,cAAgB,IAAMoB,EAASI,cAAgB,IAAMJ,EAASK,mBAC7EC,EAAe,GAAIC,OACnBC,cAAaC,eACbH,EAAeI,KAAKC,MAAMH,aAAaC,eAE3CH,EAAaH,GAAOH,EACpBQ,aAAaC,aAAeC,KAAKE,UAAUN,IAG3CO,EAAc,WACd,MAAIL,cAAaM,eAAe,iBAC5BC,WAAaL,KAAKC,MAAMH,aAAaC,cACrCO,aAAeT,OAAOU,KAAKF,YAAYb,OAChCc,cAGA,EAIf,QAAQhD,WAAYA,EAAYe,WAAYA,EAAYgB,WAAYA,EAAYc,YAAaA"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflows-view.js","sources":["../../../src/mvc/toolshed/workflows-view.js"],"names":["define","toolshed_model","toolshed_util","View","Backbone","extend","el","defaults","initialize","that","this","model","WorkflowTools","listenTo","render","fetch","workflows_missing_tools","templateWorkflows","workflows","models","$el","html","title","queue","queueLength","$","css","bindEvents","on","tool_ids","attr","toolshed","api_url","Galaxy","root","params","get","data","repository_id","repository","id","new_route","replace","history","navigate","trigger","elem","tool_shed_url","changesets","Object","keys","metadata","current_changeset","current_metadata","addToQueue","remove","loadWorkflows","reDraw","options","empty","_","template","join","Workflows"],"mappings":"AAAAA,QAAQ,8BAA+B,qBAAsB,SAASC,EAAgBC,GAElF,GAAIC,GAAOC,SAASD,KAAKE,QAErBC,GAAI,UAEJC,cAEAC,WAAY,WACR,GAAIC,GAAOC,IACXA,MAAKC,MAAQ,GAAIV,GAAeW,cAChCF,KAAKG,SAASH,KAAKC,MAAO,OAAQD,KAAKI,QACvCJ,KAAKC,MAAMI,QACXN,EAAKK,UAGTA,OAAQ,WACJ,GAAIL,GAAOC,KACPM,EAA0BP,EAAKQ,kBAC/BC,EAAYT,EAAKE,MAAMQ,MAC3BV,GAAKW,IAAIC,KAAKL,GAAyBM,MAAO,0BAA2BJ,UAAWA,EAAWK,MAAOrB,EAAcsB,iBACpHC,EAAE,WAAWC,IAAI,WAAY,QAC7BjB,EAAKkB,cAGTA,WAAY,WACR,GAAIlB,GAAOC,IACXe,GAAE,iBAAiBG,GAAG,QAAS,WAC3B,GAAIC,GAAWJ,EAAEf,MAAMoB,KAAK,gBACxBC,EAAWN,EAAEf,MAAMoB,KAAK,aACxBE,EAAUC,OAAOC,KAAO,2BACxBC,GAAUN,SAAYA,EAC1BJ,GAAEW,IAAIJ,EAASG,EAAQ,SAASE,GAC5BC,cAAgBD,EAAKE,WAAWC,EAChC,IAAIC,GAAY,gBAAkBV,EAASW,QAAQ,KAAM,OAAOA,QAAQ,MAAO,OAAS,MAAQL,EAAKE,WAAWC,EAChHpC,UAASuC,QAAQC,SAASH,GAAYI,SAAS,EAAMH,SAAQ,QAGrEjB,EAAE,kBAAkBG,GAAG,QAAS,WAC5B,GAAIkB,GAAOrB,EAAEf,MACTmB,EAAWiB,EAAKhB,KAAK,gBACrBC,EAAWe,EAAKhB,KAAK,aACrBE,EAAUC,OAAOC,KAAO,2BACxBC,GAAUN,SAAYA,EAC1BJ,GAAEW,IAAIJ,EAASG,EAAQ,SAASE,GAC5BC,cAAgBD,EAAKE,WAAWC,GAChCL,GAAUY,cAAehB,EAAUO,cAAeA,eAClDb,EAAEW,IAAIJ,EAASG,EAAQ,SAASE,GAC5B,GAAIW,GAAaC,OAAOC,KAAKb,EAAKE,WAAWY,UACzCC,EAAoBJ,EAAW,GAC/BK,EAAmBhB,EAAKE,WAAWY,SAASC,EAChDC,GAAiBN,cAAgBhB,EACjC7B,EAAcoD,WAAWD,GACzBP,EAAKS,eAIjB9B,EAAE,kBAAkBG,GAAG,QAASnB,EAAK+C,gBAGzCC,OAAQ,SAASC,GACbhD,KAAKU,IAAIuC,QACTjD,KAAKF,WAAWkD,IAGpBzC,kBAAmB2C,EAAEC,UACjB,yEACI,6DACA,wJACJ,SACA,0BACI,2HACJ,WACA,4GACI,iCACI,OACI,wCACA,uCACA,mCACA,mCACA,oCACA,sCACJ,QACJ,WACA,UACI,+CACI,OACI,0BACI,8BACI,2DACI,8CACJ,YACJ,QACJ,QACA,0BACI,8BACI,uDACI,8CACJ,YACJ,QACJ,QACA,0DACA,gEACA,2DACA,0BACI,8BACI,8BACI,kRACR,QACJ,QACJ,QACJ,YACJ,QACJ,UACEC,KAAK,MAGf,QACIC,UAAW5D"}
|
||||
@@ -1,73 +1,2 @@
|
||||
define([ "mvc/toolshed/shed-list-view", "mvc/toolshed/categories-view", "mvc/toolshed/repositories-view", "mvc/toolshed/repository-view", "mvc/toolshed/repository-queue-view", "mvc/toolshed/repo-status-view", "mvc/toolshed/workflows-view" ], function(mod_shed_list_view, mod_categories_view, mod_repositories_view, mod_repository_view, mod_repoqueue_view, mod_repo_status_view, mod_workflows_view) {
|
||||
var AdminToolshedRouter = Backbone.Router.extend({
|
||||
initialize: function() {
|
||||
this.routesHit = 0, Backbone.history.on("route", function() {
|
||||
this.routesHit++;
|
||||
}, this), this.bind("route", this.trackPageview);
|
||||
},
|
||||
routes: {
|
||||
"": "toolsheds",
|
||||
sheds: "toolsheds",
|
||||
queue: "queue",
|
||||
workflows: "workflows",
|
||||
"status/r/:repositories": "status",
|
||||
status: "status",
|
||||
"categories/s/:tool_shed": "categories",
|
||||
"category/s/:tool_shed/c/:cateory_id": "repositories",
|
||||
"repository/s/:tool_shed/r/:repository_id": "repository"
|
||||
},
|
||||
back: function() {
|
||||
this.routesHit > 1 ? window.history.back() : this.navigate("#", {
|
||||
trigger: !0,
|
||||
replace: !0
|
||||
});
|
||||
}
|
||||
}), GalaxyAdminToolshedApp = Backbone.View.extend({
|
||||
app_config: {
|
||||
known_views: [ "toolsheds", "queue", "status", "categories", "repositories", "repoository" ]
|
||||
},
|
||||
initialize: function() {
|
||||
Galaxy.admintoolshedapp = this, this.admin_toolshed_router = new AdminToolshedRouter(),
|
||||
this.admin_toolshed_router.on("route:queue", function() {
|
||||
Galaxy.admintoolshedapp.adminRepoQueueView ? Galaxy.admintoolshedapp.adminRepoQueueView.reDraw() : Galaxy.admintoolshedapp.adminRepoQueueView = new mod_repoqueue_view.RepoQueueView();
|
||||
}), this.admin_toolshed_router.on("route:toolsheds", function() {
|
||||
Galaxy.admintoolshedapp.adminShedListView ? Galaxy.admintoolshedapp.adminShedListView.reDraw() : Galaxy.admintoolshedapp.adminShedListView = new mod_shed_list_view.ShedListView();
|
||||
}), this.admin_toolshed_router.on("route:categories", function(tool_shed) {
|
||||
Galaxy.admintoolshedapp.adminShedCategoriesView ? Galaxy.admintoolshedapp.adminShedCategoriesView.reDraw({
|
||||
tool_shed: tool_shed.replace(/\//g, "%2f")
|
||||
}) : Galaxy.admintoolshedapp.adminShedCategoriesView = new mod_categories_view.CategoryView({
|
||||
tool_shed: tool_shed.replace(/\//g, "%2f")
|
||||
});
|
||||
}), this.admin_toolshed_router.on("route:repositories", function(tool_shed, category_id) {
|
||||
Galaxy.admintoolshedapp.adminShedCategoryView ? Galaxy.admintoolshedapp.adminShedCategoryView.reDraw({
|
||||
tool_shed: tool_shed.replace(/\//g, "%2f"),
|
||||
category_id: category_id
|
||||
}) : Galaxy.admintoolshedapp.adminShedCategoryView = new mod_repositories_view.Category({
|
||||
tool_shed: tool_shed.replace(/\//g, "%2f"),
|
||||
category_id: category_id
|
||||
});
|
||||
}), this.admin_toolshed_router.on("route:repository", function(tool_shed, repository_id) {
|
||||
Galaxy.admintoolshedapp.adminRepositoryView ? Galaxy.admintoolshedapp.adminRepositoryView.reDraw({
|
||||
tool_shed: tool_shed.replace(/\//g, "%2f"),
|
||||
repository_id: repository_id
|
||||
}) : Galaxy.admintoolshedapp.adminRepositoryView = new mod_repository_view.RepoDetails({
|
||||
tool_shed: tool_shed.replace(/\//g, "%2f"),
|
||||
repository_id: repository_id
|
||||
});
|
||||
}), this.admin_toolshed_router.on("route:status", function(repositories) {
|
||||
Galaxy.admintoolshedapp.adminRepoStatusView ? Galaxy.admintoolshedapp.adminRepoStatusView.reDraw({
|
||||
repositories: repositories.split("|")
|
||||
}) : Galaxy.admintoolshedapp.adminRepoStatusView = new mod_repo_status_view.RepoStatus({
|
||||
repositories: repositories.split("|")
|
||||
});
|
||||
}), this.admin_toolshed_router.on("route:workflows", function() {
|
||||
Galaxy.admintoolshedapp.adminWorkflowsView ? Galaxy.admintoolshedapp.adminWorkflowsView.reDraw() : Galaxy.admintoolshedapp.adminWorkflowsView = new mod_workflows_view.Workflows();
|
||||
}), Backbone.history.start({
|
||||
pushState: !1
|
||||
});
|
||||
}
|
||||
});
|
||||
return {
|
||||
GalaxyApp: GalaxyAdminToolshedApp
|
||||
};
|
||||
});
|
||||
define(["mvc/toolshed/shed-list-view","mvc/toolshed/categories-view","mvc/toolshed/repositories-view","mvc/toolshed/repository-view","mvc/toolshed/repository-queue-view","mvc/toolshed/repo-status-view","mvc/toolshed/workflows-view"],function(a,b,c,d,e,f,g){var h=Backbone.Router.extend({initialize:function(){this.routesHit=0,Backbone.history.on("route",function(){this.routesHit++},this),this.bind("route",this.trackPageview)},routes:{"":"toolsheds",sheds:"toolsheds",queue:"queue",workflows:"workflows","status/r/:repositories":"status",status:"status","categories/s/:tool_shed":"categories","category/s/:tool_shed/c/:cateory_id":"repositories","repository/s/:tool_shed/r/:repository_id":"repository"},back:function(){this.routesHit>1?window.history.back():this.navigate("#",{trigger:!0,replace:!0})}}),i=Backbone.View.extend({app_config:{known_views:["toolsheds","queue","status","categories","repositories","repoository"]},initialize:function(){Galaxy.admintoolshedapp=this,this.admin_toolshed_router=new h,this.admin_toolshed_router.on("route:queue",function(){Galaxy.admintoolshedapp.adminRepoQueueView?Galaxy.admintoolshedapp.adminRepoQueueView.reDraw():Galaxy.admintoolshedapp.adminRepoQueueView=new e.RepoQueueView}),this.admin_toolshed_router.on("route:toolsheds",function(){Galaxy.admintoolshedapp.adminShedListView?Galaxy.admintoolshedapp.adminShedListView.reDraw():Galaxy.admintoolshedapp.adminShedListView=new a.ShedListView}),this.admin_toolshed_router.on("route:categories",function(a){Galaxy.admintoolshedapp.adminShedCategoriesView?Galaxy.admintoolshedapp.adminShedCategoriesView.reDraw({tool_shed:a.replace(/\//g,"%2f")}):Galaxy.admintoolshedapp.adminShedCategoriesView=new b.CategoryView({tool_shed:a.replace(/\//g,"%2f")})}),this.admin_toolshed_router.on("route:repositories",function(a,b){Galaxy.admintoolshedapp.adminShedCategoryView?Galaxy.admintoolshedapp.adminShedCategoryView.reDraw({tool_shed:a.replace(/\//g,"%2f"),category_id:b}):Galaxy.admintoolshedapp.adminShedCategoryView=new c.Category({tool_shed:a.replace(/\//g,"%2f"),category_id:b})}),this.admin_toolshed_router.on("route:repository",function(a,b){Galaxy.admintoolshedapp.adminRepositoryView?Galaxy.admintoolshedapp.adminRepositoryView.reDraw({tool_shed:a.replace(/\//g,"%2f"),repository_id:b}):Galaxy.admintoolshedapp.adminRepositoryView=new d.RepoDetails({tool_shed:a.replace(/\//g,"%2f"),repository_id:b})}),this.admin_toolshed_router.on("route:status",function(a){Galaxy.admintoolshedapp.adminRepoStatusView?Galaxy.admintoolshedapp.adminRepoStatusView.reDraw({repositories:a.split("|")}):Galaxy.admintoolshedapp.adminRepoStatusView=new f.RepoStatus({repositories:a.split("|")})}),this.admin_toolshed_router.on("route:workflows",function(){Galaxy.admintoolshedapp.adminWorkflowsView?Galaxy.admintoolshedapp.adminWorkflowsView.reDraw():Galaxy.admintoolshedapp.adminWorkflowsView=new g.Workflows}),Backbone.history.start({pushState:!1})}});return{GalaxyApp:i}});
|
||||
//# sourceMappingURL=../maps/admin.toolshed.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,57 +1,2 @@
|
||||
define([ "mvc/toolshed/toolshed-model", "mvc/toolshed/util" ], function(toolshed_model, toolshed_util) {
|
||||
var ToolShedCategories = Backbone.View.extend({
|
||||
el: "#center",
|
||||
defaults: {
|
||||
tool_shed: "https://toolshed.g2.bx.psu.edu/"
|
||||
},
|
||||
initialize: function(options) {
|
||||
var shed = options.tool_shed.replace(/\//g, "%2f");
|
||||
this.options = _.defaults(this.options || options, this.defaults), this.model = new toolshed_model.Categories(),
|
||||
this.listenTo(this.model, "sync", this.render), this.model.url = this.model.url + "?tool_shed_url=" + this.options.tool_shed,
|
||||
this.model.tool_shed = shed, this.model.fetch();
|
||||
},
|
||||
render: function(options) {
|
||||
this.options = _.extend(this.options, options), this.options.categories = this.model.models,
|
||||
this.options.queue = toolshed_util.queueLength();
|
||||
var category_list_template = this.templateCategoryList;
|
||||
this.$el.html(category_list_template(this.options)), $("#center").css("overflow", "auto"),
|
||||
this.bindEvents();
|
||||
},
|
||||
bindEvents: function() {
|
||||
var that = this;
|
||||
require([ "libs/jquery/jquery-ui" ], function() {
|
||||
$("#search_box").autocomplete({
|
||||
source: function(request, response) {
|
||||
var shed_url = that.model.tool_shed.replace(/%2f/g, "/"), base_url = Galaxy.root + "api/tool_shed/search", params = {
|
||||
term: request.term,
|
||||
tool_shed_url: shed_url
|
||||
};
|
||||
$.post(base_url, params, function(data) {
|
||||
console.log(data), result_list = toolshed_util.shedParser(data), response(result_list);
|
||||
});
|
||||
},
|
||||
minLength: 3,
|
||||
select: function(event, ui) {
|
||||
var tsr_id = ui.item.value, new_route = (Galaxy.root + "api/tool_shed/repository",
|
||||
{
|
||||
tool_shed_url: that.model.tool_shed,
|
||||
tsr_id: tsr_id
|
||||
}, "repository/s/" + that.model.tool_shed + "/r/" + tsr_id);
|
||||
Backbone.history.navigate(new_route, {
|
||||
trigger: !0,
|
||||
replace: !0
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
reDraw: function(options) {
|
||||
this.$el.empty(), this.model.url = this.model.url + "?tool_shed_url=" + this.options.tool_shed,
|
||||
this.initialize(options);
|
||||
},
|
||||
templateCategoryList: _.template([ '<style type="text/css">', ".ui-autocomplete { background-color: #fff; }", "li.ui-menu-item { list-style-type: none; }", "</style>", '<div class="unified-panel-header" id="panel_header" unselectable="on">', '<div class="unified-panel-header-inner" style="layout: inline;">Categories in <%= tool_shed.replace(/%2f/g, "/") %></div>', '<div class="unified-panel-header-inner" style="position: absolute; right: 5px; top: 0px;"><a href="#/queue">Repository Queue (<%= queue %>)</a></div>', "</div>", '<div class="unified-panel-body" id="list_categories">', '<div id="standard-search" style="height: 2em; margin: 1em;">', '<span class="ui-widget" >', '<input class="search-box-input" id="search_box" data-shedurl="<%= tool_shed.replace(/%2f/g, "/") %>" name="search" placeholder="Search repositories by name or id" size="60" type="text" />', "</span>", "</div>", '<div style="clear: both; margin-top: 1em;">', '<table class="grid">', '<thead id="grid-table-header">', "<tr>", "<th>Name</th>", "<th>Description</th>", "<th>Repositories</th>", "</tr>", "</thead>", "<% _.each(categories, function(category) { %>", "<tr>", "<td>", '<a href="#/category/s/<%= tool_shed %>/c/<%= category.get("id") %>"><%= category.get("name") %></a>', "</td>", '<td><%= category.get("description") %></td>', '<td><%= category.get("repositories") %></td>', "</tr>", "<% }); %>", "</table>", "</div>", "</div>" ].join(""))
|
||||
});
|
||||
return {
|
||||
CategoryView: ToolShedCategories
|
||||
};
|
||||
});
|
||||
define(["mvc/toolshed/toolshed-model","mvc/toolshed/util"],function(a,b){var c=Backbone.View.extend({el:"#center",defaults:{tool_shed:"https://toolshed.g2.bx.psu.edu/"},initialize:function(b){var c=b.tool_shed.replace(/\//g,"%2f");this.options=_.defaults(this.options||b,this.defaults),this.model=new a.Categories,this.listenTo(this.model,"sync",this.render),this.model.url=this.model.url+"?tool_shed_url="+this.options.tool_shed,this.model.tool_shed=c,this.model.fetch()},render:function(a){this.options=_.extend(this.options,a),this.options.categories=this.model.models,this.options.queue=b.queueLength();var c=this.templateCategoryList;this.$el.html(c(this.options)),$("#center").css("overflow","auto"),this.bindEvents()},bindEvents:function(){var a=this;require(["libs/jquery/jquery-ui"],function(){$("#search_box").autocomplete({source:function(c,d){var e=a.model.tool_shed.replace(/%2f/g,"/"),f=Galaxy.root+"api/tool_shed/search",g={term:c.term,tool_shed_url:e};$.post(f,g,function(a){console.log(a),result_list=b.shedParser(a),d(result_list)})},minLength:3,select:function(b,c){var d=c.item.value,e=(Galaxy.root+"api/tool_shed/repository",{tool_shed_url:a.model.tool_shed,tsr_id:d},"repository/s/"+a.model.tool_shed+"/r/"+d);Backbone.history.navigate(e,{trigger:!0,replace:!0})}})})},reDraw:function(a){this.$el.empty(),this.model.url=this.model.url+"?tool_shed_url="+this.options.tool_shed,this.initialize(a)},templateCategoryList:_.template(['<style type="text/css">',".ui-autocomplete { background-color: #fff; }","li.ui-menu-item { list-style-type: none; }","</style>",'<div class="unified-panel-header" id="panel_header" unselectable="on">','<div class="unified-panel-header-inner" style="layout: inline;">Categories in <%= tool_shed.replace(/%2f/g, "/") %></div>','<div class="unified-panel-header-inner" style="position: absolute; right: 5px; top: 0px;"><a href="#/queue">Repository Queue (<%= queue %>)</a></div>',"</div>",'<div class="unified-panel-body" id="list_categories">','<div id="standard-search" style="height: 2em; margin: 1em;">','<span class="ui-widget" >','<input class="search-box-input" id="search_box" data-shedurl="<%= tool_shed.replace(/%2f/g, "/") %>" name="search" placeholder="Search repositories by name or id" size="60" type="text" />',"</span>","</div>",'<div style="clear: both; margin-top: 1em;">','<table class="grid">','<thead id="grid-table-header">',"<tr>","<th>Name</th>","<th>Description</th>","<th>Repositories</th>","</tr>","</thead>","<% _.each(categories, function(category) { %>","<tr>","<td>",'<a href="#/category/s/<%= tool_shed %>/c/<%= category.get("id") %>"><%= category.get("name") %></a>',"</td>",'<td><%= category.get("description") %></td>','<td><%= category.get("repositories") %></td>',"</tr>","<% }); %>","</table>","</div>","</div>"].join(""))});return{CategoryView:c}});
|
||||
//# sourceMappingURL=../../../maps/mvc/toolshed/categories-view.js.map
|
||||
@@ -1,37 +1,2 @@
|
||||
define([ "mvc/toolshed/toolshed-model", "mvc/toolshed/util" ], function(toolshed_model, toolshed_util) {
|
||||
var ToolShedRepoStatusView = Backbone.View.extend({
|
||||
el: "#center",
|
||||
initialize: function(options) {
|
||||
this.options = _.defaults(this.options || [ {} ], options, this.defaults), this.model = new toolshed_model.RepoStatus(),
|
||||
this.listenTo(this.model, "sync", this.render), this.model.url += "?repositories=" + this.options.repositories.join("|"),
|
||||
this.model.fetch(), this.timer = setInterval(function(self) {
|
||||
var terminal_states = [ "installed", "error" ], all_done = !0;
|
||||
_.some(self.model.models, function(repository) {
|
||||
return repo_id = repository.get("id"), repo_status = repository.get("status").toLowerCase(),
|
||||
-1 === terminal_states.indexOf(repo_status) ? (all_done = !1, !0) : void 0;
|
||||
}), all_done ? clearInterval(self.timer) : self.model.fetch();
|
||||
}, 2e3, this);
|
||||
},
|
||||
close: function() {
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
render: function(options) {
|
||||
this.options = _.extend(this.options, options);
|
||||
var repo_status_template = this.templateRepoStatus;
|
||||
this.$el.html(repo_status_template({
|
||||
title: "Repository Status",
|
||||
repositories: this.model.models,
|
||||
queue: toolshed_util.queueLength()
|
||||
})), $("#center").css("overflow", "auto"), this.bindEvents();
|
||||
},
|
||||
bindEvents: function() {
|
||||
},
|
||||
reDraw: function(options) {
|
||||
this.$el.empty(), this.initialize(options);
|
||||
},
|
||||
templateRepoStatus: _.template([ '<div class="unified-panel-header" id="panel_header" unselectable="on">', '<div class="unified-panel-header-inner"><%= title %></div>', '<div class="unified-panel-header-inner" style="position: absolute; right: 5px; top: 0px;"><a href="#/queue">Repository Queue (<%= queue %>)</a></div>', "</div>", '<style type="text/css">', ".state-color-new,", ".state-color-deactivated,", ".state-color-uninstalled { border-color:#bfbfbf; background:#eee }", ".state-color-cloning,", ".state-color-setting-tool-versions,", ".state-color-installing-repository-dependencies,", ".state-color-installing-tool-dependencies,", ".state-color-loading-proprietary-datatypes { border-color:#AAAA66; background:#FFFFCC }", ".state-color-installed { border-color:#20b520; background:#b0f1b0 }", ".state-color-error { border-color:#dd1b15; background:#f9c7c5 }", "</style>", '<table id="grid-table" class="grid">', '<thead id="grid-table-header">', "<tr>", '<th id="null-header">Name<span class="sort-arrow"></span></th>', '<th id="null-header">Description<span class="sort-arrow"></span></th>', '<th id="null-header">Owner<span class="sort-arrow"></span></th>', '<th id="null-header">Revision<span class="sort-arrow"></span></th>', '<th id="null-header">Installation Status<span class="sort-arrow"></span></th>', "</tr>", "</thead>", '<tbody id="grid-table-body">', "<% _.each(repositories, function(repository) { %>", "<tr>", "<td>", '<div id="" class="">', '<label id="repo-name-<%= repository.get("id") %>" for="<%= repository.get("id") %>">', '<%= repository.get("name") %>', "</label>", "</div>", "</td>", "<td>", '<div id="" class="">', '<label id="repo-desc-<%= repository.get("id") %>" for="<%= repository.get("id") %>">', '<%= repository.get("description") %>', "</label>", "</div>", "</td>", "<td>", '<div id="" class="">', '<label id="repo-user-<%= repository.get("id") %>" for="<%= repository.get("id") %>">', '<%= repository.get("owner") %>', "</label>", "</div>", "</td>", "<td>", '<div id="" class="">', '<label id="repo-changeset-<%= repository.get("id") %>" for="<%= repository.get("id") %>">', '<%= repository.get("changeset_revision") %>', "</label>", "</div>", "</td>", "<td>", '<div id="" class="">', '<label id="RepositoryStatus-<%= repository.get("id") %>" for="<%= repository.get("id") %>">', '<div class="repo-status count-box state-color-<%= repository.get("status").toLowerCase().replace(/ /g, "-") %>" id="RepositoryStatus-<%= repository.get("id") %>">', '<%= repository.get("status") %>', "</div>", "</label>", "</div>", "</td>", "</tr>", "<% }); %>", "</tbody>", '<tfoot id="grid-table-footer"></tfoot>', "</table>" ].join(""))
|
||||
});
|
||||
return {
|
||||
RepoStatus: ToolShedRepoStatusView
|
||||
};
|
||||
});
|
||||
define(["mvc/toolshed/toolshed-model","mvc/toolshed/util"],function(a,b){var c=Backbone.View.extend({el:"#center",initialize:function(b){this.options=_.defaults(this.options||[{}],b,this.defaults),this.model=new a.RepoStatus,this.listenTo(this.model,"sync",this.render),this.model.url+="?repositories="+this.options.repositories.join("|"),this.model.fetch(),this.timer=setInterval(function(a){var b=["installed","error"],c=!0;_.some(a.model.models,function(a){return repo_id=a.get("id"),repo_status=a.get("status").toLowerCase(),-1===b.indexOf(repo_status)?(c=!1,!0):void 0}),c?clearInterval(a.timer):a.model.fetch()},2e3,this)},close:function(){clearInterval(this.timer)},render:function(a){this.options=_.extend(this.options,a);var c=this.templateRepoStatus;this.$el.html(c({title:"Repository Status",repositories:this.model.models,queue:b.queueLength()})),$("#center").css("overflow","auto"),this.bindEvents()},bindEvents:function(){},reDraw:function(a){this.$el.empty(),this.initialize(a)},templateRepoStatus:_.template(['<div class="unified-panel-header" id="panel_header" unselectable="on">','<div class="unified-panel-header-inner"><%= title %></div>','<div class="unified-panel-header-inner" style="position: absolute; right: 5px; top: 0px;"><a href="#/queue">Repository Queue (<%= queue %>)</a></div>',"</div>",'<style type="text/css">',".state-color-new,",".state-color-deactivated,",".state-color-uninstalled { border-color:#bfbfbf; background:#eee }",".state-color-cloning,",".state-color-setting-tool-versions,",".state-color-installing-repository-dependencies,",".state-color-installing-tool-dependencies,",".state-color-loading-proprietary-datatypes { border-color:#AAAA66; background:#FFFFCC }",".state-color-installed { border-color:#20b520; background:#b0f1b0 }",".state-color-error { border-color:#dd1b15; background:#f9c7c5 }","</style>",'<table id="grid-table" class="grid">','<thead id="grid-table-header">',"<tr>",'<th id="null-header">Name<span class="sort-arrow"></span></th>','<th id="null-header">Description<span class="sort-arrow"></span></th>','<th id="null-header">Owner<span class="sort-arrow"></span></th>','<th id="null-header">Revision<span class="sort-arrow"></span></th>','<th id="null-header">Installation Status<span class="sort-arrow"></span></th>',"</tr>","</thead>",'<tbody id="grid-table-body">',"<% _.each(repositories, function(repository) { %>","<tr>","<td>",'<div id="" class="">','<label id="repo-name-<%= repository.get("id") %>" for="<%= repository.get("id") %>">','<%= repository.get("name") %>',"</label>","</div>","</td>","<td>",'<div id="" class="">','<label id="repo-desc-<%= repository.get("id") %>" for="<%= repository.get("id") %>">','<%= repository.get("description") %>',"</label>","</div>","</td>","<td>",'<div id="" class="">','<label id="repo-user-<%= repository.get("id") %>" for="<%= repository.get("id") %>">','<%= repository.get("owner") %>',"</label>","</div>","</td>","<td>",'<div id="" class="">','<label id="repo-changeset-<%= repository.get("id") %>" for="<%= repository.get("id") %>">','<%= repository.get("changeset_revision") %>',"</label>","</div>","</td>","<td>",'<div id="" class="">','<label id="RepositoryStatus-<%= repository.get("id") %>" for="<%= repository.get("id") %>">','<div class="repo-status count-box state-color-<%= repository.get("status").toLowerCase().replace(/ /g, "-") %>" id="RepositoryStatus-<%= repository.get("id") %>">','<%= repository.get("status") %>',"</div>","</label>","</div>","</td>","</tr>","<% }); %>","</tbody>",'<tfoot id="grid-table-footer"></tfoot>',"</table>"].join(""))});return{RepoStatus:c}});
|
||||
//# sourceMappingURL=../../../maps/mvc/toolshed/repo-status-view.js.map
|
||||
@@ -1,51 +1,2 @@
|
||||
define([ "mvc/toolshed/toolshed-model", "mvc/toolshed/util" ], function(toolshed_model, toolshed_util) {
|
||||
var ToolShedCategoryContentsView = Backbone.View.extend({
|
||||
el: "#center",
|
||||
initialize: function(params) {
|
||||
this.model = new toolshed_model.CategoryCollection(), this.listenTo(this.model, "sync", this.render);
|
||||
var shed = params.tool_shed.replace(/\//g, "%2f");
|
||||
this.model.url += "?tool_shed_url=" + shed + "&category_id=" + params.category_id,
|
||||
this.model.tool_shed = shed, this.model.category = params.category_id, this.model.fetch();
|
||||
},
|
||||
render: function(options) {
|
||||
this.options = _.extend(this.options, options);
|
||||
var category_contents_template = this.templateCategoryContents;
|
||||
this.$el.html(category_contents_template({
|
||||
category: this.model.models[0],
|
||||
tool_shed: this.model.tool_shed,
|
||||
queue: toolshed_util.queueLength()
|
||||
})), $("#center").css("overflow", "auto"), this.bindEvents();
|
||||
},
|
||||
bindEvents: function() {
|
||||
var that = this;
|
||||
require([ "libs/jquery/jquery-ui" ], function() {
|
||||
$("#search_box").autocomplete({
|
||||
source: function(request, response) {
|
||||
var shed_url = that.model.tool_shed.replace(/%2f/g, "/"), base_url = Galaxy.root + "api/tool_shed/search", params = {
|
||||
term: request.term,
|
||||
tool_shed_url: shed_url
|
||||
};
|
||||
$.post(base_url, params, function(data) {
|
||||
result_list = toolshed_util.shedParser(data), response(result_list);
|
||||
});
|
||||
},
|
||||
minLength: 3,
|
||||
select: function(event, ui) {
|
||||
var tsr_id = ui.item.value, new_route = "repository/s/" + that.model.tool_shed + "/r/" + tsr_id;
|
||||
Backbone.history.navigate(new_route, {
|
||||
trigger: !0,
|
||||
replace: !0
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
reDraw: function(options) {
|
||||
this.$el.empty(), this.initialize(options);
|
||||
},
|
||||
templateCategoryContents: _.template([ '<style type="text/css">', ".ui-autocomplete { background-color: #fff; }", "li.ui-menu-item { list-style-type: none; }", "</style>", '<div class="unified-panel-header" id="panel_header" unselectable="on">', '<div class="unified-panel-header-inner">Repositories in <%= category.get("name") %></div>', '<div class="unified-panel-header-inner" style="position: absolute; right: 5px; top: 0px;"><a href="#/queue">Repository Queue (<%= queue %>)</a></div>', "</div>", '<div class="unified-panel-body" id="list_repositories">', '<div id="standard-search" style="height: 2em; margin: 1em;">', '<span class="ui-widget" >', '<input class="search-box-input" id="search_box" name="search" data-shedurl="<%= tool_shed.replace(/%2f/g, "/") %>" placeholder="Search repositories by name or id" size="60" type="text" />', "</span>", "</div>", '<div style="clear: both; margin-top: 1em;">', '<table class="grid">', '<thead id="grid-table-header">', "<tr>", '<th style="width: 10%;">Owner</th>', '<th style="width: 15%;">Name</th>', "<th>Synopsis</th>", '<th style="width: 10%;">Type</th>', "</tr>", "</thead>", '<% _.each(category.get("repositories"), function(repository) { %>', "<tr>", "<td><%= repository.owner %></td>", "<td>", '<div style="float: left; margin-left: 1px;" class="menubutton split">', '<a href="#/repository/s/<%= tool_shed %>/r/<%= repository.id %>"><%= repository.name %></a>', "</div>", "</td>", "<td><%= repository.description %></td>", "<td><%= repository.type %></td>", "</tr>", "<% }); %>", "</table>", "</div>", "</div>" ].join(""))
|
||||
});
|
||||
return {
|
||||
Category: ToolShedCategoryContentsView
|
||||
};
|
||||
});
|
||||
define(["mvc/toolshed/toolshed-model","mvc/toolshed/util"],function(a,b){var c=Backbone.View.extend({el:"#center",initialize:function(b){this.model=new a.CategoryCollection,this.listenTo(this.model,"sync",this.render);var c=b.tool_shed.replace(/\//g,"%2f");this.model.url+="?tool_shed_url="+c+"&category_id="+b.category_id,this.model.tool_shed=c,this.model.category=b.category_id,this.model.fetch()},render:function(a){this.options=_.extend(this.options,a);var c=this.templateCategoryContents;this.$el.html(c({category:this.model.models[0],tool_shed:this.model.tool_shed,queue:b.queueLength()})),$("#center").css("overflow","auto"),this.bindEvents()},bindEvents:function(){var a=this;require(["libs/jquery/jquery-ui"],function(){$("#search_box").autocomplete({source:function(c,d){var e=a.model.tool_shed.replace(/%2f/g,"/"),f=Galaxy.root+"api/tool_shed/search",g={term:c.term,tool_shed_url:e};$.post(f,g,function(a){result_list=b.shedParser(a),d(result_list)})},minLength:3,select:function(b,c){var d=c.item.value,e="repository/s/"+a.model.tool_shed+"/r/"+d;Backbone.history.navigate(e,{trigger:!0,replace:!0})}})})},reDraw:function(a){this.$el.empty(),this.initialize(a)},templateCategoryContents:_.template(['<style type="text/css">',".ui-autocomplete { background-color: #fff; }","li.ui-menu-item { list-style-type: none; }","</style>",'<div class="unified-panel-header" id="panel_header" unselectable="on">','<div class="unified-panel-header-inner">Repositories in <%= category.get("name") %></div>','<div class="unified-panel-header-inner" style="position: absolute; right: 5px; top: 0px;"><a href="#/queue">Repository Queue (<%= queue %>)</a></div>',"</div>",'<div class="unified-panel-body" id="list_repositories">','<div id="standard-search" style="height: 2em; margin: 1em;">','<span class="ui-widget" >','<input class="search-box-input" id="search_box" name="search" data-shedurl="<%= tool_shed.replace(/%2f/g, "/") %>" placeholder="Search repositories by name or id" size="60" type="text" />',"</span>","</div>",'<div style="clear: both; margin-top: 1em;">','<table class="grid">','<thead id="grid-table-header">',"<tr>",'<th style="width: 10%;">Owner</th>','<th style="width: 15%;">Name</th>',"<th>Synopsis</th>",'<th style="width: 10%;">Type</th>',"</tr>","</thead>",'<% _.each(category.get("repositories"), function(repository) { %>',"<tr>","<td><%= repository.owner %></td>","<td>",'<div style="float: left; margin-left: 1px;" class="menubutton split">','<a href="#/repository/s/<%= tool_shed %>/r/<%= repository.id %>"><%= repository.name %></a>',"</div>","</td>","<td><%= repository.description %></td>","<td><%= repository.type %></td>","</tr>","<% }); %>","</table>","</div>","</div>"].join(""))});return{Category:c}});
|
||||
//# sourceMappingURL=../../../maps/mvc/toolshed/repositories-view.js.map
|
||||
@@ -1,72 +1,2 @@
|
||||
define([ "mvc/toolshed/toolshed-model", "mvc/toolshed/util" ], function(toolshed_model, toolshed_util) {
|
||||
var View = Backbone.View.extend({
|
||||
el: "#center",
|
||||
defaults: [ {} ],
|
||||
initialize: function() {
|
||||
var that = this;
|
||||
this.model = new toolshed_model.RepoQueue(), this.listenTo(this.model, "sync", this.render),
|
||||
this.model.fetch(), that.render();
|
||||
},
|
||||
render: function() {
|
||||
var that = this, repo_queue_template = that.templateRepoQueue, repositories = that.model.models;
|
||||
that.$el.html(repo_queue_template({
|
||||
title: "Repository Installation Queue",
|
||||
repositories: repositories,
|
||||
queue: toolshed_util.queueLength()
|
||||
})), $("#center").css("overflow", "auto"), that.bindEvents();
|
||||
},
|
||||
bindEvents: function() {
|
||||
var that = this;
|
||||
$(".install_one").on("click", function() {
|
||||
var repository_metadata = that.loadFromQueue($(this).attr("data-repokey"));
|
||||
that.installFromQueue(repository_metadata, $(this).attr("data-repokey"));
|
||||
}), $(".remove_one").on("click", function() {
|
||||
var queue_key = $(this).attr("data-repokey"), repo_queue = JSON.parse(localStorage.repositories);
|
||||
if (repo_queue.hasOwnProperty(queue_key)) {
|
||||
var repository_id = repo_queue[queue_key].repository.id;
|
||||
delete repo_queue[queue_key], $("#queued_repository_" + repository_id).remove();
|
||||
}
|
||||
localStorage.repositories = JSON.stringify(repo_queue);
|
||||
}), $("#clear_queue").on("click", function() {
|
||||
localStorage.repositories = "{}";
|
||||
}), $("#from_workflow").on("click", function() {
|
||||
Backbone.history.navigate("workflows", {
|
||||
trigger: !0,
|
||||
replace: !0
|
||||
});
|
||||
});
|
||||
},
|
||||
installFromQueue: function(repository_metadata, queue_key) {
|
||||
var params = Object();
|
||||
params.install_tool_dependencies = repository_metadata.install_tool_dependencies,
|
||||
params.install_repository_dependencies = repository_metadata.install_repository_dependencies,
|
||||
params.install_resolver_dependencies = repository_metadata.install_resolver_dependencies,
|
||||
params.tool_panel_section = repository_metadata.tool_panel_section, params.shed_tool_conf = repository_metadata.shed_tool_conf,
|
||||
params.repositories = JSON.stringify([ [ repository_metadata.repository.id, repository_metadata.changeset_revision ] ]),
|
||||
params.tool_shed_repository_ids = JSON.stringify([ repository_metadata.repository.id ]),
|
||||
params.tool_shed_url = queue_key.split("|")[0], params.changeset = repository_metadata.changeset_revision;
|
||||
var url = Galaxy.root + "api/tool_shed_repositories/install?async=True";
|
||||
$("#queued_repository_" + repository_metadata.repository.id).remove(), localStorage.repositories && (void 0 === queue_key && (queue_key = toolshed_util.queueKey(repository_metadata)),
|
||||
repository_queue = JSON.parse(localStorage.repositories), repository_queue.hasOwnProperty(queue_key) && (delete repository_queue[queue_key],
|
||||
localStorage.repositories = JSON.stringify(repository_queue))), $.post(url, params, function(data) {
|
||||
var iri_params = JSON.parse(data), repositories = iri_params.repositories, new_route = "status/r/" + repositories.join("|");
|
||||
$.post(Galaxy.root + "admin_toolshed/manage_repositories", iri_params, function() {
|
||||
console.log("Initializing repository installation succeeded");
|
||||
}), Backbone.history.navigate(new_route, {
|
||||
trigger: !0,
|
||||
replace: !0
|
||||
});
|
||||
});
|
||||
},
|
||||
loadFromQueue: function(queue_key) {
|
||||
return repository_queue = JSON.parse(localStorage.repositories), repository_queue.hasOwnProperty(queue_key) ? repository_queue[queue_key] : void 0;
|
||||
},
|
||||
reDraw: function(options) {
|
||||
this.$el.empty(), this.initialize(options), this.model.fetch(), this.render(options);
|
||||
},
|
||||
templateRepoQueue: _.template([ '<div class="unified-panel-header" id="panel_header" unselectable="on">', '<div class="unified-panel-header-inner"><%= title %></div>', '<div class="unified-panel-header-inner" style="position: absolute; right: 5px; top: 0px;"><a href="#/queue">Repository Queue (<%= queue %>)</a></div>', "</div>", '<div class="tab-pane" id="panel_header" id="repository_queue">', '<table id="queued_repositories" class="grid" border="0" cellpadding="2" cellspacing="2" width="100%">', '<thead id="grid-table-header">', "<tr>", '<th class="datasetRow">Name</th>', '<th class="datasetRow">Owner</th>', '<th class="datasetRow">Revision</th>', '<th class="datasetRow">ToolShed</th>', '<th class="datasetRow">Install</th>', '<th class="datasetRow"><input class="btn btn-primary" type="submit" id="clear_queue" name="clear_queue" value="Clear queue" /></th>', "</tr>", "</thead>", "<tbody>", "<% _.each(repositories, function(repository) { %>", '<tr id="queued_repository_<%= repository.get("id") %>">', '<td class="datasetRow"><%= repository.get("repository").name %></td>', '<td class="datasetRow"><%= repository.get("repository").owner %></td>', '<td class="datasetRow"><%= repository.get("changeset_revision") %></td>', '<td class="datasetRow"><%= repository.get("tool_shed_url") %></td>', '<td class="datasetRow">', '<input class="btn btn-primary install_one" data-repokey="<%= repository.get("queue_key") %>" type="submit" id="install_repository_<%= repository.get("id") %>" name="install_repository" value="Install now" />', "</td>", '<td class="datasetRow">', '<input class="btn btn-primary remove_one" data-repokey="<%= repository.get("queue_key") %>" type="submit" id="unqueue_repository_<%= repository.get("id") %>" name="unqueue_repository" value="Remove from queue" />', "</td>", "</tr>", "<% }); %>", "</tbody>", "</table>", '<input type="button" class="btn btn-primary" id="from_workflow" value="Add from workflow" />', "</div>" ].join(""))
|
||||
});
|
||||
return {
|
||||
RepoQueueView: View
|
||||
};
|
||||
});
|
||||
define(["mvc/toolshed/toolshed-model","mvc/toolshed/util"],function(a,b){var c=Backbone.View.extend({el:"#center",defaults:[{}],initialize:function(){var b=this;this.model=new a.RepoQueue,this.listenTo(this.model,"sync",this.render),this.model.fetch(),b.render()},render:function(){var a=this,c=a.templateRepoQueue,d=a.model.models;a.$el.html(c({title:"Repository Installation Queue",repositories:d,queue:b.queueLength()})),$("#center").css("overflow","auto"),a.bindEvents()},bindEvents:function(){var a=this;$(".install_one").on("click",function(){var b=a.loadFromQueue($(this).attr("data-repokey"));a.installFromQueue(b,$(this).attr("data-repokey"))}),$(".remove_one").on("click",function(){var a=$(this).attr("data-repokey"),b=JSON.parse(localStorage.repositories);if(b.hasOwnProperty(a)){var c=b[a].repository.id;delete b[a],$("#queued_repository_"+c).remove()}localStorage.repositories=JSON.stringify(b)}),$("#clear_queue").on("click",function(){localStorage.repositories="{}"}),$("#from_workflow").on("click",function(){Backbone.history.navigate("workflows",{trigger:!0,replace:!0})})},installFromQueue:function(a,c){var d=Object();d.install_tool_dependencies=a.install_tool_dependencies,d.install_repository_dependencies=a.install_repository_dependencies,d.install_resolver_dependencies=a.install_resolver_dependencies,d.tool_panel_section=a.tool_panel_section,d.shed_tool_conf=a.shed_tool_conf,d.repositories=JSON.stringify([[a.repository.id,a.changeset_revision]]),d.tool_shed_repository_ids=JSON.stringify([a.repository.id]),d.tool_shed_url=c.split("|")[0],d.changeset=a.changeset_revision;var e=Galaxy.root+"api/tool_shed_repositories/install?async=True";$("#queued_repository_"+a.repository.id).remove(),localStorage.repositories&&(void 0===c&&(c=b.queueKey(a)),repository_queue=JSON.parse(localStorage.repositories),repository_queue.hasOwnProperty(c)&&(delete repository_queue[c],localStorage.repositories=JSON.stringify(repository_queue))),$.post(e,d,function(a){var b=JSON.parse(a),c=b.repositories,d="status/r/"+c.join("|");$.post(Galaxy.root+"admin_toolshed/manage_repositories",b,function(){console.log("Initializing repository installation succeeded")}),Backbone.history.navigate(d,{trigger:!0,replace:!0})})},loadFromQueue:function(a){return repository_queue=JSON.parse(localStorage.repositories),repository_queue.hasOwnProperty(a)?repository_queue[a]:void 0},reDraw:function(a){this.$el.empty(),this.initialize(a),this.model.fetch(),this.render(a)},templateRepoQueue:_.template(['<div class="unified-panel-header" id="panel_header" unselectable="on">','<div class="unified-panel-header-inner"><%= title %></div>','<div class="unified-panel-header-inner" style="position: absolute; right: 5px; top: 0px;"><a href="#/queue">Repository Queue (<%= queue %>)</a></div>',"</div>",'<div class="tab-pane" id="panel_header" id="repository_queue">','<table id="queued_repositories" class="grid" border="0" cellpadding="2" cellspacing="2" width="100%">','<thead id="grid-table-header">',"<tr>",'<th class="datasetRow">Name</th>','<th class="datasetRow">Owner</th>','<th class="datasetRow">Revision</th>','<th class="datasetRow">ToolShed</th>','<th class="datasetRow">Install</th>','<th class="datasetRow"><input class="btn btn-primary" type="submit" id="clear_queue" name="clear_queue" value="Clear queue" /></th>',"</tr>","</thead>","<tbody>","<% _.each(repositories, function(repository) { %>",'<tr id="queued_repository_<%= repository.get("id") %>">','<td class="datasetRow"><%= repository.get("repository").name %></td>','<td class="datasetRow"><%= repository.get("repository").owner %></td>','<td class="datasetRow"><%= repository.get("changeset_revision") %></td>','<td class="datasetRow"><%= repository.get("tool_shed_url") %></td>','<td class="datasetRow">','<input class="btn btn-primary install_one" data-repokey="<%= repository.get("queue_key") %>" type="submit" id="install_repository_<%= repository.get("id") %>" name="install_repository" value="Install now" />',"</td>",'<td class="datasetRow">','<input class="btn btn-primary remove_one" data-repokey="<%= repository.get("queue_key") %>" type="submit" id="unqueue_repository_<%= repository.get("id") %>" name="unqueue_repository" value="Remove from queue" />',"</td>","</tr>","<% }); %>","</tbody>","</table>",'<input type="button" class="btn btn-primary" id="from_workflow" value="Add from workflow" />',"</div>"].join(""))});return{RepoQueueView:c}});
|
||||
//# sourceMappingURL=../../../maps/mvc/toolshed/repository-queue-view.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,31 +1,2 @@
|
||||
define([ "mvc/toolshed/toolshed-model", "mvc/toolshed/util" ], function(toolshed_model, toolshed_util) {
|
||||
var View = Backbone.View.extend({
|
||||
defaults: {
|
||||
tool_sheds: [ {
|
||||
url: "https://toolshed.g2.bx.psu.edu/",
|
||||
name: "Galaxy Main Tool Shed"
|
||||
} ]
|
||||
},
|
||||
initialize: function() {
|
||||
this.options = _.defaults(this.options || {}, this.defaults), this.model = new toolshed_model.ShedsCollection(),
|
||||
this.listenTo(this.model, "sync", this.render), this.model.fetch();
|
||||
},
|
||||
el: "#center",
|
||||
render: function(options) {
|
||||
this.options = _.defaults(this.options || {}, options, this.defaults);
|
||||
var toolshed_list_template = this.templateToolshedList;
|
||||
this.$el.html(toolshed_list_template({
|
||||
title: "Accessible Galaxy ToolSheds",
|
||||
tool_sheds: this.model.models,
|
||||
queue: toolshed_util.queueLength()
|
||||
}));
|
||||
},
|
||||
reDraw: function(options) {
|
||||
this.$el.empty(), this.render(options);
|
||||
},
|
||||
templateToolshedList: _.template([ '<div class="unified-panel-header" id="panel_header" unselectable="on">', '<div class="unified-panel-header-inner"><%= title %></div>', '<div class="unified-panel-header-inner" style="position: absolute; right: 5px; top: 0px;"><a href="#/queue">Repository Queue (<%= queue %>)</a></div>', "</div>", '<div class="unified-panel-body" id="list_toolsheds">', '<div class="form-row">', '<table class="grid">', "<% _.each(tool_sheds, function(shed) { %>", '<tr class="libraryTitle">', "<td>", '<div style="float: left; margin-left: 1px;" class="menubutton split">', '<a class="view-info shed-selector" href="#/categories/s/<%= shed.get("url") %>"><%= shed.get("name") %></a>', "</div>", "</td>", "</tr>", "<% }); %>", "</table>", "</div>", '<div style="clear: both"></div>', "</div>" ].join(""))
|
||||
});
|
||||
return {
|
||||
ShedListView: View
|
||||
};
|
||||
});
|
||||
define(["mvc/toolshed/toolshed-model","mvc/toolshed/util"],function(a,b){var c=Backbone.View.extend({defaults:{tool_sheds:[{url:"https://toolshed.g2.bx.psu.edu/",name:"Galaxy Main Tool Shed"}]},initialize:function(){this.options=_.defaults(this.options||{},this.defaults),this.model=new a.ShedsCollection,this.listenTo(this.model,"sync",this.render),this.model.fetch()},el:"#center",render:function(a){this.options=_.defaults(this.options||{},a,this.defaults);var c=this.templateToolshedList;this.$el.html(c({title:"Configured Galaxy Tool Sheds",tool_sheds:this.model.models,queue:b.queueLength()}))},reDraw:function(a){this.$el.empty(),this.render(a)},templateToolshedList:_.template(['<div class="unified-panel-header" id="panel_header" unselectable="on">','<div class="unified-panel-header-inner"><%= title %></div>','<div class="unified-panel-header-inner" style="position: absolute; right: 5px; top: 0px;"><a href="#/queue">Repository Queue (<%= queue %>)</a></div>',"</div>",'<div class="unified-panel-body" id="list_toolsheds">','<div class="form-row">','<table class="grid">',"<% _.each(tool_sheds, function(shed) { %>",'<tr class="libraryTitle">',"<td>",'<div style="float: left; margin-left: 1px;" class="menubutton split">','<a class="view-info shed-selector" href="#/categories/s/<%= shed.get("url") %>"><%= shed.get("name") %></a>',"</div>","</td>","</tr>","<% }); %>","</table>","</div>",'<div style="clear: both"></div>',"</div>"].join(""))});return{ShedListView:c}});
|
||||
//# sourceMappingURL=../../../maps/mvc/toolshed/shed-list-view.js.map
|
||||
@@ -1,67 +1,2 @@
|
||||
define([], function() {
|
||||
var ToolShedModel = Backbone.Model.extend({
|
||||
defaults: {
|
||||
url: "https://toolshed.g2.bx.psu.edu/",
|
||||
name: "Galaxy Main Tool Shed"
|
||||
},
|
||||
urlRoot: Galaxy.root + "api/tool_shed"
|
||||
}), ToolShedsCollection = Backbone.Collection.extend({
|
||||
url: Galaxy.root + "api/tool_shed",
|
||||
model: ToolShedModel
|
||||
}), ToolShedCategoriesModel = Backbone.Model.extend({
|
||||
defaults: [ {} ],
|
||||
urlRoot: Galaxy.root + "api/tool_shed/contents"
|
||||
}), ToolShedCategoriesCollection = Backbone.Collection.extend({
|
||||
url: Galaxy.root + "api/tool_shed/contents",
|
||||
model: ToolShedCategoriesModel
|
||||
}), ToolShedCategoryModel = Backbone.Model.extend({
|
||||
defaults: [ {} ],
|
||||
urlRoot: Galaxy.root + "api/tool_shed/category"
|
||||
}), ToolShedCategoryCollection = Backbone.Collection.extend({
|
||||
url: Galaxy.root + "api/tool_shed/category",
|
||||
model: ToolShedCategoryModel
|
||||
}), ToolShedRepositoryModel = Backbone.Model.extend({
|
||||
defaults: [ {} ],
|
||||
urlRoot: Galaxy.root + "api/tool_shed/repository"
|
||||
}), ToolShedRepositoryCollection = Backbone.Collection.extend({
|
||||
url: Galaxy.root + "api/tool_shed/repository",
|
||||
model: ToolShedRepositoryModel
|
||||
}), RepoQueueModel = Backbone.Model.extend({
|
||||
url: "#"
|
||||
}), RepoQueueCollection = Backbone.Collection.extend({
|
||||
url: "#",
|
||||
model: RepoQueueModel,
|
||||
fetch: function() {
|
||||
var collection = this, repositories = Array(), repositories_enc = JSON.parse(localStorage.repositories), queue_keys = Object.keys(repositories_enc);
|
||||
return _.each(queue_keys, function(key) {
|
||||
var repo = repositories_enc[key];
|
||||
repo.queue_key = key, repositories.push(repo);
|
||||
}), collection.reset(repositories), Backbone.Collection.prototype.fetch.call(this);
|
||||
}
|
||||
}), RepoStatusModel = Backbone.Model.extend({
|
||||
defaults: [ {} ],
|
||||
urlRoot: Galaxy.root + "api/tool_shed/status"
|
||||
}), RepoStatusCollection = Backbone.Collection.extend({
|
||||
url: Galaxy.root + "api/tool_shed/status",
|
||||
model: RepoStatusModel
|
||||
}), WorkflowToolsModel = Backbone.Model.extend({
|
||||
defaults: [ {} ],
|
||||
urlRoot: Galaxy.root + "api/workflows?missing_tools=True"
|
||||
}), WorkflowToolsCollection = Backbone.Collection.extend({
|
||||
url: Galaxy.root + "api/workflows?missing_tools=True",
|
||||
model: WorkflowToolsModel
|
||||
});
|
||||
return {
|
||||
ShedModel: ToolShedModel,
|
||||
ShedsCollection: ToolShedsCollection,
|
||||
Category: ToolShedCategoriesModel,
|
||||
Categories: ToolShedCategoriesCollection,
|
||||
CategoryModel: ToolShedCategoryModel,
|
||||
CategoryCollection: ToolShedCategoryCollection,
|
||||
RepositoryModel: ToolShedRepositoryModel,
|
||||
RepositoryCollection: ToolShedRepositoryCollection,
|
||||
RepoQueue: RepoQueueCollection,
|
||||
RepoStatus: RepoStatusCollection,
|
||||
WorkflowTools: WorkflowToolsCollection
|
||||
};
|
||||
});
|
||||
define([],function(){var a=Backbone.Model.extend({defaults:{url:"https://toolshed.g2.bx.psu.edu/",name:"Galaxy Main Tool Shed"},urlRoot:Galaxy.root+"api/tool_shed"}),b=Backbone.Collection.extend({url:Galaxy.root+"api/tool_shed",model:a}),c=Backbone.Model.extend({defaults:[{}],urlRoot:Galaxy.root+"api/tool_shed/contents"}),d=Backbone.Collection.extend({url:Galaxy.root+"api/tool_shed/contents",model:c}),e=Backbone.Model.extend({defaults:[{}],urlRoot:Galaxy.root+"api/tool_shed/category"}),f=Backbone.Collection.extend({url:Galaxy.root+"api/tool_shed/category",model:e}),g=Backbone.Model.extend({defaults:[{}],urlRoot:Galaxy.root+"api/tool_shed/repository"}),h=Backbone.Collection.extend({url:Galaxy.root+"api/tool_shed/repository",model:g}),i=Backbone.Model.extend({url:"#"}),j=Backbone.Collection.extend({url:"#",model:i,fetch:function(){var a=this,b=Array(),c=JSON.parse(localStorage.repositories),d=Object.keys(c);return _.each(d,function(a){var d=c[a];d.queue_key=a,b.push(d)}),a.reset(b),Backbone.Collection.prototype.fetch.call(this)}}),k=Backbone.Model.extend({defaults:[{}],urlRoot:Galaxy.root+"api/tool_shed/status"}),l=Backbone.Collection.extend({url:Galaxy.root+"api/tool_shed/status",model:k}),m=Backbone.Model.extend({defaults:[{}],urlRoot:Galaxy.root+"api/workflows?missing_tools=True"}),n=Backbone.Collection.extend({url:Galaxy.root+"api/workflows?missing_tools=True",model:m});return{ShedModel:a,ShedsCollection:b,Category:c,Categories:d,CategoryModel:e,CategoryCollection:f,RepositoryModel:g,RepositoryCollection:h,RepoQueue:j,RepoStatus:l,WorkflowTools:n}});
|
||||
//# sourceMappingURL=../../../maps/mvc/toolshed/toolshed-model.js.map
|
||||
@@ -1,34 +1,2 @@
|
||||
define([], function() {
|
||||
var searchShed = function(request, response) {
|
||||
var that = this, shed_url = this.shed_url, base_url = Galaxy.root + "api/tool_shed/search";
|
||||
$.get(base_url, {
|
||||
term: request.term,
|
||||
tool_shed_url: shed_url
|
||||
}, function(data) {
|
||||
result_list = that.shedParser(data), response(result_list);
|
||||
});
|
||||
}, shedParser = function(jsondata) {
|
||||
var results = [], hits = jsondata.hits;
|
||||
return $.each(hits, function(hit) {
|
||||
var record = hits[hit], label = record.repository.name + " by " + record.repository.repo_owner_username + ": " + record.repository.description;
|
||||
result = {
|
||||
value: record.repository.id,
|
||||
label: label
|
||||
}, results.push(result);
|
||||
}), results;
|
||||
}, addToQueue = function(metadata) {
|
||||
"/" == metadata.tool_shed_url.substr(-1) && (metadata.tool_shed_url = metadata.tool_shed_url.substr(0, metadata.tool_shed_url.length - 1));
|
||||
var key = metadata.tool_shed_url + "|" + metadata.repository_id + "|" + metadata.changeset_revision, queued_repos = new Object();
|
||||
localStorage.repositories && (queued_repos = JSON.parse(localStorage.repositories)),
|
||||
queued_repos[key] = metadata, localStorage.repositories = JSON.stringify(queued_repos);
|
||||
}, queueLength = function() {
|
||||
return localStorage.hasOwnProperty("repositories") ? (repo_queue = JSON.parse(localStorage.repositories),
|
||||
queue_length = Object.keys(repo_queue).length, queue_length) : 0;
|
||||
};
|
||||
return {
|
||||
searchShed: searchShed,
|
||||
shedParser: shedParser,
|
||||
addToQueue: addToQueue,
|
||||
queueLength: queueLength
|
||||
};
|
||||
});
|
||||
define([],function(){var a=function(a,b){var c=this,d=this.shed_url,e=Galaxy.root+"api/tool_shed/search";$.get(e,{term:a.term,tool_shed_url:d},function(a){result_list=c.shedParser(a),b(result_list)})},b=function(a){var b=[],c=a.hits;return $.each(c,function(a){var d=c[a],e=d.repository.name+" by "+d.repository.repo_owner_username+": "+d.repository.description;result={value:d.repository.id,label:e},b.push(result)}),b},c=function(a){"/"==a.tool_shed_url.substr(-1)&&(a.tool_shed_url=a.tool_shed_url.substr(0,a.tool_shed_url.length-1));var b=a.tool_shed_url+"|"+a.repository_id+"|"+a.changeset_revision,c=new Object;localStorage.repositories&&(c=JSON.parse(localStorage.repositories)),c[b]=a,localStorage.repositories=JSON.stringify(c)},d=function(){return localStorage.hasOwnProperty("repositories")?(repo_queue=JSON.parse(localStorage.repositories),queue_length=Object.keys(repo_queue).length,queue_length):0};return{searchShed:a,shedParser:b,addToQueue:c,queueLength:d}});
|
||||
//# sourceMappingURL=../../../maps/mvc/toolshed/util.js.map
|
||||
@@ -1,56 +1,2 @@
|
||||
define([ "mvc/toolshed/toolshed-model", "mvc/toolshed/util" ], function(toolshed_model, toolshed_util) {
|
||||
var View = Backbone.View.extend({
|
||||
el: "#center",
|
||||
defaults: [ {} ],
|
||||
initialize: function() {
|
||||
var that = this;
|
||||
this.model = new toolshed_model.WorkflowTools(), this.listenTo(this.model, "sync", this.render),
|
||||
this.model.fetch(), that.render();
|
||||
},
|
||||
render: function() {
|
||||
var that = this, workflows_missing_tools = that.templateWorkflows, workflows = that.model.models;
|
||||
that.$el.html(workflows_missing_tools({
|
||||
title: "Workflows Missing Tools",
|
||||
workflows: workflows,
|
||||
queue: toolshed_util.queueLength()
|
||||
})), $("#center").css("overflow", "auto"), that.bindEvents();
|
||||
},
|
||||
bindEvents: function() {
|
||||
var that = this;
|
||||
$(".show_wf_repo").on("click", function() {
|
||||
var tool_ids = $(this).attr("data-toolids"), toolshed = $(this).attr("data-shed"), api_url = Galaxy.root + "api/tool_shed/repository", params = {
|
||||
tool_ids: tool_ids
|
||||
};
|
||||
$.get(api_url, params, function(data) {
|
||||
repository_id = data.repository.id;
|
||||
var new_route = "repository/s/" + toolshed.replace(/:/g, "%3a").replace(/\//g, "%2f") + "/r/" + data.repository.id;
|
||||
Backbone.history.navigate(new_route, {
|
||||
trigger: !0,
|
||||
replace: !0
|
||||
});
|
||||
});
|
||||
}), $(".queue_wf_repo").on("click", function() {
|
||||
var elem = $(this), tool_ids = elem.attr("data-toolids"), toolshed = elem.attr("data-shed"), api_url = Galaxy.root + "api/tool_shed/repository", params = {
|
||||
tool_ids: tool_ids
|
||||
};
|
||||
$.get(api_url, params, function(data) {
|
||||
repository_id = data.repository.id, params = {
|
||||
tool_shed_url: toolshed,
|
||||
repository_id: repository_id
|
||||
}, $.get(api_url, params, function(data) {
|
||||
var changesets = Object.keys(data.repository.metadata), current_changeset = changesets[0], current_metadata = data.repository.metadata[current_changeset];
|
||||
current_metadata.tool_shed_url = toolshed, toolshed_util.addToQueue(current_metadata),
|
||||
elem.remove();
|
||||
});
|
||||
});
|
||||
}), $("#from_workflow").on("click", that.loadWorkflows);
|
||||
},
|
||||
reDraw: function(options) {
|
||||
this.$el.empty(), this.initialize(options);
|
||||
},
|
||||
templateWorkflows: _.template([ '<div class="unified-panel-header" id="panel_header" unselectable="on">', '<div class="unified-panel-header-inner"><%= title %></div>', '<div class="unified-panel-header-inner" style="position: absolute; right: 5px; top: 0px;"><a href="#/queue">Repository Queue (<%= queue %>)</a></div>', "</div>", '<style type="text/css">', ".workflow_names, .workflow_tools { list-style-type: none; } ul.workflow_tools, ul.workflow_names { padding-left: 0px; }", "</style>", '<table id="workflows_missing_tools" class="grid" border="0" cellpadding="2" cellspacing="2" width="100%">', '<thead id="grid-table-header">', "<tr>", '<th class="datasetRow">Workflows</th>', '<th class="datasetRow">Tool IDs</th>', '<th class="datasetRow">Shed</th>', '<th class="datasetRow">Name</th>', '<th class="datasetRow">Owner</th>', '<th class="datasetRow">Actions</th>', "</tr>", "</thead>", "<tbody>", "<% _.each(workflows, function(workflow) { %>", "<tr>", '<td class="datasetRow">', '<ul class="workflow_names">', '<% _.each(workflow.get("workflows"), function(name) { %>', '<li class="workflow_names"><%= name %></li>', "<% }); %>", "</ul>", "</td>", '<td class="datasetRow">', '<ul class="workflow_tools">', '<% _.each(workflow.get("tools"), function(tool) { %>', '<li class="workflow_tools"><%= tool %></li>', "<% }); %>", "</ul>", "</td>", '<td class="datasetRow"><%= workflow.get("shed") %></td>', '<td class="datasetRow"><%= workflow.get("repository") %></td>', '<td class="datasetRow"><%= workflow.get("owner") %></td>', '<td class="datasetRow">', '<ul class="workflow_tools">', '<li class="workflow_tools">', '<input type="button" class="show_wf_repo btn btn-primary" data-shed="<%= workflow.get("shed") %>" data-owner="<%= workflow.get("owner") %>" data-repo="<%= workflow.get("repository") %>" data-toolids="<%= workflow.get("tools").join(",") %>" value="Show Repository" /></li>', "</ul>", "</td>", "</tr>", "<% }); %>", "</ul>", "</div>" ].join(""))
|
||||
});
|
||||
return {
|
||||
Workflows: View
|
||||
};
|
||||
});
|
||||
define(["mvc/toolshed/toolshed-model","mvc/toolshed/util"],function(a,b){var c=Backbone.View.extend({el:"#center",defaults:[{}],initialize:function(){var b=this;this.model=new a.WorkflowTools,this.listenTo(this.model,"sync",this.render),this.model.fetch(),b.render()},render:function(){var a=this,c=a.templateWorkflows,d=a.model.models;a.$el.html(c({title:"Workflows Missing Tools",workflows:d,queue:b.queueLength()})),$("#center").css("overflow","auto"),a.bindEvents()},bindEvents:function(){var a=this;$(".show_wf_repo").on("click",function(){var a=$(this).attr("data-toolids"),b=$(this).attr("data-shed"),c=Galaxy.root+"api/tool_shed/repository",d={tool_ids:a};$.get(c,d,function(a){repository_id=a.repository.id;var c="repository/s/"+b.replace(/:/g,"%3a").replace(/\//g,"%2f")+"/r/"+a.repository.id;Backbone.history.navigate(c,{trigger:!0,replace:!0})})}),$(".queue_wf_repo").on("click",function(){var a=$(this),c=a.attr("data-toolids"),d=a.attr("data-shed"),e=Galaxy.root+"api/tool_shed/repository",f={tool_ids:c};$.get(e,f,function(c){repository_id=c.repository.id,f={tool_shed_url:d,repository_id:repository_id},$.get(e,f,function(c){var e=Object.keys(c.repository.metadata),f=e[0],g=c.repository.metadata[f];g.tool_shed_url=d,b.addToQueue(g),a.remove()})})}),$("#from_workflow").on("click",a.loadWorkflows)},reDraw:function(a){this.$el.empty(),this.initialize(a)},templateWorkflows:_.template(['<div class="unified-panel-header" id="panel_header" unselectable="on">','<div class="unified-panel-header-inner"><%= title %></div>','<div class="unified-panel-header-inner" style="position: absolute; right: 5px; top: 0px;"><a href="#/queue">Repository Queue (<%= queue %>)</a></div>',"</div>",'<style type="text/css">',".workflow_names, .workflow_tools { list-style-type: none; } ul.workflow_tools, ul.workflow_names { padding-left: 0px; }","</style>",'<table id="workflows_missing_tools" class="grid" border="0" cellpadding="2" cellspacing="2" width="100%">','<thead id="grid-table-header">',"<tr>",'<th class="datasetRow">Workflows</th>','<th class="datasetRow">Tool IDs</th>','<th class="datasetRow">Shed</th>','<th class="datasetRow">Name</th>','<th class="datasetRow">Owner</th>','<th class="datasetRow">Actions</th>',"</tr>","</thead>","<tbody>","<% _.each(workflows, function(workflow) { %>","<tr>",'<td class="datasetRow">','<ul class="workflow_names">','<% _.each(workflow.get("workflows"), function(name) { %>','<li class="workflow_names"><%= name %></li>',"<% }); %>","</ul>","</td>",'<td class="datasetRow">','<ul class="workflow_tools">','<% _.each(workflow.get("tools"), function(tool) { %>','<li class="workflow_tools"><%= tool %></li>',"<% }); %>","</ul>","</td>",'<td class="datasetRow"><%= workflow.get("shed") %></td>','<td class="datasetRow"><%= workflow.get("repository") %></td>','<td class="datasetRow"><%= workflow.get("owner") %></td>','<td class="datasetRow">','<ul class="workflow_tools">','<li class="workflow_tools">','<input type="button" class="show_wf_repo btn btn-primary" data-shed="<%= workflow.get("shed") %>" data-owner="<%= workflow.get("owner") %>" data-repo="<%= workflow.get("repository") %>" data-toolids="<%= workflow.get("tools").join(",") %>" value="Show Repository" /></li>',"</ul>","</td>","</tr>","<% }); %>","</ul>","</div>"].join(""))});return{Workflows:c}});
|
||||
//# sourceMappingURL=../../../maps/mvc/toolshed/workflows-view.js.map
|
||||
@@ -1,76 +1,2 @@
|
||||
define([ "utils/utils", "mvc/ui/ui-misc", "mvc/ui/ui-tabs" ], function(Utils, Ui, Tabs) {
|
||||
var View = Backbone.View.extend({
|
||||
events: {
|
||||
"click .ui-thumbnails-item": "_onclick",
|
||||
"dblclick .ui-thumbnails-item": "_ondblclick"
|
||||
},
|
||||
initialize: function(options) {
|
||||
this.model = options.model || new Backbone.Model(options), this.collection = new Backbone.Collection(this.model.get("collection")),
|
||||
this.tabs = new Tabs.View({}), this.setElement(this.tabs.$el.addClass("ui-thumbnails")),
|
||||
this.render(), this.listenTo(this.model, "change", this.render, this), this.listenTo(this.collection, "reset change add remove", this.render, this);
|
||||
},
|
||||
render: function() {
|
||||
this.first = null, this.tabs.delAll(), this._renderDefault(), this._renderList();
|
||||
},
|
||||
_renderDefault: function() {
|
||||
var self = this, title_length = 20, $el = $("<div/>").addClass("ui-thumbnails-grid");
|
||||
this.collection.each(function(model) {
|
||||
if (-1 !== model.get("keywords").indexOf("default")) {
|
||||
var title = model.get("title");
|
||||
$el.append($(self._templateThumbnailItem({
|
||||
id: model.id,
|
||||
title: title.length < title_length ? title : title.substr(0, title_length) + "...",
|
||||
title_icon: model.get("title_icon"),
|
||||
image_src: model.get("image_src")
|
||||
})).tooltip({
|
||||
title: model.get("description"),
|
||||
placement: "bottom"
|
||||
}));
|
||||
}
|
||||
}), $el.children().length > 0 && this.tabs.add({
|
||||
id: Utils.uid(),
|
||||
title: self.model.get("title_default"),
|
||||
$el: $el
|
||||
});
|
||||
},
|
||||
_renderList: function() {
|
||||
var self = this;
|
||||
if (this.collection.length > 0) {
|
||||
this.first = this.first || this.collection.first().id;
|
||||
var $el = $("<div/>").addClass("ui-thumbnails-grid");
|
||||
this.collection.each(function(model) {
|
||||
$el.append(self._templateRegularItem(model.attributes));
|
||||
}), this.tabs.add({
|
||||
id: Utils.uid(),
|
||||
title: self.model.get("title_list"),
|
||||
$el: $el
|
||||
});
|
||||
}
|
||||
},
|
||||
value: function(new_value) {
|
||||
if (void 0 !== new_value) {
|
||||
new_value = "__first" == new_value ? this.first : new_value;
|
||||
var before = this.$(".ui-thumbnail-current").attr("value");
|
||||
this.$(".ui-thumbnail-current").removeClass("ui-thumbnail-current"), this.$('[value="' + new_value + '"]').addClass("ui-thumbnail-current");
|
||||
var after = this.$(".ui-thumbnail-current").attr("value"), change_handler = this.model.get("onchange");
|
||||
after != before && change_handler && change_handler(after);
|
||||
}
|
||||
return this.$(".ui-thumbnail-current").attr("value");
|
||||
},
|
||||
_onclick: function(e) {
|
||||
this.value($(e.target).closest(".ui-thumbnails-item").attr("value"));
|
||||
},
|
||||
_ondblclick: function() {
|
||||
this.model.get("ondblclick") && this.model.get("ondblclick")(this.value());
|
||||
},
|
||||
_templateThumbnailItem: function(options) {
|
||||
return '<div class="ui-thumbnails-item ui-thumbnails-item-float" value="' + options.id + '"><img class="ui-thumbnails-image" src="' + options.image_src + '"><div class="ui-thumbnails-title ui-form-info"><span class="fa ' + options.title_icon + '"/>' + options.title + "</div><div>";
|
||||
},
|
||||
_templateRegularItem: function(options) {
|
||||
return '<div class="ui-thumbnails-item" value="' + options.id + '"><table><tr><td><img class="ui-thumbnails-image" src="' + options.image_src + '"></td><td><div class="ui-thumbnails-description-title ui-form-info">' + options.title + '</div><div class="ui-thumbnails-description-text ui-form-info">' + options.description + "</div></td></tr><div>";
|
||||
}
|
||||
});
|
||||
return {
|
||||
View: View
|
||||
};
|
||||
});
|
||||
define(["utils/utils","mvc/ui/ui-misc","mvc/ui/ui-tabs"],function(a,b,c){var d=Backbone.View.extend({events:{"click .ui-thumbnails-item":"_onclick","dblclick .ui-thumbnails-item":"_ondblclick"},initialize:function(a){this.model=a.model||new Backbone.Model(a),this.collection=new Backbone.Collection(this.model.get("collection")),this.tabs=new c.View({}),this.setElement(this.tabs.$el.addClass("ui-thumbnails")),this.render(),this.listenTo(this.model,"change",this.render,this),this.listenTo(this.collection,"reset change add remove",this.render,this)},render:function(){this.first=null,this.tabs.delAll(),this._renderDefault(),this._renderList()},_renderDefault:function(){var b=this,c=20,d=$("<div/>").addClass("ui-thumbnails-grid");this.collection.each(function(a){if(-1!==a.get("keywords").indexOf("default")){var e=a.get("title");d.append($(b._templateThumbnailItem({id:a.id,title:e.length<c?e:e.substr(0,c)+"...",title_icon:a.get("title_icon"),image_src:a.get("image_src")})).tooltip({title:a.get("description"),placement:"bottom"}))}}),d.children().length>0&&this.tabs.add({id:a.uid(),title:b.model.get("title_default"),$el:d})},_renderList:function(){var b=this;if(this.collection.length>0){this.first=this.first||this.collection.first().id;var c=$("<div/>").addClass("ui-thumbnails-grid");this.collection.each(function(a){c.append(b._templateRegularItem(a.attributes))}),this.tabs.add({id:a.uid(),title:b.model.get("title_list"),$el:c})}},value:function(a){if(void 0!==a){a="__first"==a?this.first:a;var b=this.$(".ui-thumbnail-current").attr("value");this.$(".ui-thumbnail-current").removeClass("ui-thumbnail-current"),this.$('[value="'+a+'"]').addClass("ui-thumbnail-current");var c=this.$(".ui-thumbnail-current").attr("value"),d=this.model.get("onchange");c!=b&&d&&d(c)}return this.$(".ui-thumbnail-current").attr("value")},_onclick:function(a){this.value($(a.target).closest(".ui-thumbnails-item").attr("value"))},_ondblclick:function(){this.model.get("ondblclick")&&this.model.get("ondblclick")(this.value())},_templateThumbnailItem:function(a){return'<div class="ui-thumbnails-item ui-thumbnails-item-float" value="'+a.id+'"><img class="ui-thumbnails-image" src="'+a.image_src+'"><div class="ui-thumbnails-title ui-form-info"><span class="fa '+a.title_icon+'"/>'+a.title+"</div><div>"},_templateRegularItem:function(a){return'<div class="ui-thumbnails-item" value="'+a.id+'"><table><tr><td><img class="ui-thumbnails-image" src="'+a.image_src+'"></td><td><div class="ui-thumbnails-description-title ui-form-info">'+a.title+'</div><div class="ui-thumbnails-description-text ui-form-info">'+a.description+"</div></td></tr><div>"}});return{View:d}});
|
||||
//# sourceMappingURL=../../../maps/mvc/ui/ui-thumbnails.js.map
|
||||
Reference in New Issue
Block a user