Move pgadmin plugins for codemirror back out of the vendor area.

This commit is contained in:
Dave Page
2017-02-27 13:18:28 +00:00
parent 206b9255c5
commit 3638d63330
6 changed files with 33 additions and 7 deletions

View File

@@ -15,8 +15,34 @@ from pgadmin.utils.ajax import bad_request
MODULE_NAME = 'tools'
class ToolsModule(PgAdminModule):
def get_own_javascripts(self):
from flask import url_for
return [{
'name': 'pgadmin-sqlfoldcode',
'path': url_for(
'static',
filename='js/codemirror/addon/fold/pgadmin-sqlfoldcode'
),
'when': 'debugger'
},{
'name': 'slick.pgadmin.editors',
'path': url_for(
'static',
filename='js/slickgrid/slick.pgadmin.editors'
),
'when': 'debugger'
},{
'name': 'slick.pgadmin.formatters',
'path': url_for(
'static',
filename='js/slickgrid/slick.pgadmin.formatters'
),
'when': 'debugger'
}]
# Initialise the module
blueprint = PgAdminModule(MODULE_NAME, __name__)
blueprint = ToolsModule(MODULE_NAME, __name__)
@blueprint.route("/")