Move 3rd party client code into vendor/ directories for ease of maintenance.
|
|
@ -39,14 +39,14 @@ class BrowserModule(PgAdminModule):
|
||||||
stylesheets = []
|
stylesheets = []
|
||||||
# Add browser stylesheets
|
# Add browser stylesheets
|
||||||
for (endpoint, filename) in [
|
for (endpoint, filename) in [
|
||||||
('static', 'css/codemirror/codemirror.css'),
|
('static', 'vendor/codemirror/codemirror.css'),
|
||||||
('static', 'js/codemirror/addon/dialog/dialog.css'),
|
('static', 'vendor/codemirror/addon/dialog/dialog.css'),
|
||||||
('static', 'css/jQuery-contextMenu/jquery.contextMenu.css' if current_app.debug
|
('static', 'vendor/jQuery-contextMenu/jquery.contextMenu.css' if current_app.debug
|
||||||
else 'css/jQuery-contextMenu/jquery.contextMenu.min.css'),
|
else 'css/jQuery-contextMenu/jquery.contextMenu.min.css'),
|
||||||
('static', 'css/wcDocker/wcDocker.css' if current_app.debug
|
('static', 'vendor/wcDocker/wcDocker.css' if current_app.debug
|
||||||
else 'css/wcDocker/wcDocker.min.css'),
|
else 'vendor/wcDocker/wcDocker.min.css'),
|
||||||
('browser.static', 'css/browser.css'),
|
('browser.static', 'css/browser.css'),
|
||||||
('browser.static', 'css/aciTree/css/aciTree.css')
|
('browser.static', 'vendor/aciTree/css/aciTree.css')
|
||||||
]:
|
]:
|
||||||
stylesheets.append(url_for(endpoint, filename=filename))
|
stylesheets.append(url_for(endpoint, filename=filename))
|
||||||
stylesheets.append(url_for('browser.browser_css'))
|
stylesheets.append(url_for('browser.browser_css'))
|
||||||
|
|
@ -58,8 +58,8 @@ class BrowserModule(PgAdminModule):
|
||||||
'name': 'alertify',
|
'name': 'alertify',
|
||||||
'path': url_for(
|
'path': url_for(
|
||||||
'static',
|
'static',
|
||||||
filename='js/alertifyjs/alertify' if current_app.debug
|
filename='vendor/alertifyjs/alertify' if current_app.debug
|
||||||
else 'js/alertifyjs/alertify.min'
|
else 'vendor/alertifyjs/alertify.min'
|
||||||
),
|
),
|
||||||
'exports': 'alertify',
|
'exports': 'alertify',
|
||||||
'preloaded': True
|
'preloaded': True
|
||||||
|
|
@ -68,9 +68,9 @@ class BrowserModule(PgAdminModule):
|
||||||
'name': 'jqueryui.position',
|
'name': 'jqueryui.position',
|
||||||
'path': url_for(
|
'path': url_for(
|
||||||
'static',
|
'static',
|
||||||
filename='js/jQuery-contextMenu/jquery.ui.position' if \
|
filename='vendor/jQuery-contextMenu/jquery.ui.position' if \
|
||||||
current_app.debug else \
|
current_app.debug else \
|
||||||
'js/jQuery-contextMenu/jquery.ui.position.min'
|
'vendor/jQuery-contextMenu/jquery.ui.position.min'
|
||||||
),
|
),
|
||||||
'deps': ['jquery'],
|
'deps': ['jquery'],
|
||||||
'exports': 'jQuery.ui.position',
|
'exports': 'jQuery.ui.position',
|
||||||
|
|
@ -80,9 +80,9 @@ class BrowserModule(PgAdminModule):
|
||||||
'name': 'jquery.contextmenu',
|
'name': 'jquery.contextmenu',
|
||||||
'path': url_for(
|
'path': url_for(
|
||||||
'static',
|
'static',
|
||||||
filename='js/jQuery-contextMenu/jquery.contextMenu' if \
|
filename='vendor/jQuery-contextMenu/jquery.contextMenu' if \
|
||||||
current_app.debug else \
|
current_app.debug else \
|
||||||
'js/jQuery-contextMenu/jquery.contextMenu.min'
|
'vendor/jQuery-contextMenu/jquery.contextMenu.min'
|
||||||
),
|
),
|
||||||
'deps': ['jquery', 'jqueryui.position'],
|
'deps': ['jquery', 'jqueryui.position'],
|
||||||
'exports': 'jQuery.contextMenu',
|
'exports': 'jQuery.contextMenu',
|
||||||
|
|
@ -92,7 +92,7 @@ class BrowserModule(PgAdminModule):
|
||||||
'name': 'jquery.aciplugin',
|
'name': 'jquery.aciplugin',
|
||||||
'path': url_for(
|
'path': url_for(
|
||||||
'browser.static',
|
'browser.static',
|
||||||
filename='js/aciTree/jquery.aciPlugin.min'
|
filename='vendor/aciTree/jquery.aciPlugin.min'
|
||||||
),
|
),
|
||||||
'deps': ['jquery'],
|
'deps': ['jquery'],
|
||||||
'exports': 'aciPluginClass',
|
'exports': 'aciPluginClass',
|
||||||
|
|
@ -102,8 +102,8 @@ class BrowserModule(PgAdminModule):
|
||||||
'name': 'jquery.acitree',
|
'name': 'jquery.acitree',
|
||||||
'path': url_for(
|
'path': url_for(
|
||||||
'browser.static',
|
'browser.static',
|
||||||
filename='js/aciTree/jquery.aciTree' if
|
filename='vendor/aciTree/jquery.aciTree' if
|
||||||
current_app.debug else 'js/aciTree/jquery.aciTree.min'
|
current_app.debug else 'vendor/aciTree/jquery.aciTree.min'
|
||||||
),
|
),
|
||||||
'deps': ['jquery', 'jquery.aciplugin'],
|
'deps': ['jquery', 'jquery.aciplugin'],
|
||||||
'exports': 'aciPluginClass.plugins.aciTree',
|
'exports': 'aciPluginClass.plugins.aciTree',
|
||||||
|
|
@ -113,7 +113,7 @@ class BrowserModule(PgAdminModule):
|
||||||
'name': 'jquery.acisortable',
|
'name': 'jquery.acisortable',
|
||||||
'path': url_for(
|
'path': url_for(
|
||||||
'browser.static',
|
'browser.static',
|
||||||
filename='js/aciTree/jquery.aciSortable.min'
|
filename='vendor/aciTree/jquery.aciSortable.min'
|
||||||
),
|
),
|
||||||
'deps': ['jquery', 'jquery.aciplugin'],
|
'deps': ['jquery', 'jquery.aciplugin'],
|
||||||
'exports': 'aciPluginClass.plugins.aciSortable',
|
'exports': 'aciPluginClass.plugins.aciSortable',
|
||||||
|
|
@ -124,7 +124,7 @@ class BrowserModule(PgAdminModule):
|
||||||
'name': 'jquery.acifragment',
|
'name': 'jquery.acifragment',
|
||||||
'path': url_for(
|
'path': url_for(
|
||||||
'browser.static',
|
'browser.static',
|
||||||
filename='js/aciTree/jquery.aciFragment.min'
|
filename='vendor/aciTree/jquery.aciFragment.min'
|
||||||
),
|
),
|
||||||
'deps': ['jquery', 'jquery.aciplugin'],
|
'deps': ['jquery', 'jquery.aciplugin'],
|
||||||
'exports': 'aciPluginClass.plugins.aciFragment',
|
'exports': 'aciPluginClass.plugins.aciFragment',
|
||||||
|
|
@ -135,8 +135,8 @@ class BrowserModule(PgAdminModule):
|
||||||
'name': 'wcdocker',
|
'name': 'wcdocker',
|
||||||
'path': url_for(
|
'path': url_for(
|
||||||
'static',
|
'static',
|
||||||
filename='js/wcDocker/wcDocker' if current_app.debug
|
filename='vendor/wcDocker/wcDocker' if current_app.debug
|
||||||
else 'js/wcDocker/wcDocker.min'
|
else 'vendor/wcDocker/wcDocker.min'
|
||||||
),
|
),
|
||||||
'deps': ['jquery.contextmenu'],
|
'deps': ['jquery.contextmenu'],
|
||||||
'exports': '',
|
'exports': '',
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-server-connecting {
|
.icon-server-connecting {
|
||||||
background-image: url('{{ url_for('browser.static', filename='css/aciTree/image/load-node.gif')}}') !important;
|
background-image: url('{{ url_for('browser.static', filename='vendor/aciTree/image/load-node.gif')}}') !important;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 982 B After Width: | Height: | Size: 982 B |
|
Before Width: | Height: | Size: 908 B After Width: | Height: | Size: 908 B |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 235 B After Width: | Height: | Size: 235 B |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
|
@ -327,8 +327,8 @@ function(require, $, _, S, Bootstrap, pgAdmin, Alertify, CodeMirror) {
|
||||||
'#dockerContainer', {
|
'#dockerContainer', {
|
||||||
allowContextMenu: true,
|
allowContextMenu: true,
|
||||||
allowCollapse: false,
|
allowCollapse: false,
|
||||||
themePath: '../static/css/wcDocker/Themes',
|
themePath: '../static/css/',
|
||||||
theme: 'pgadmin'
|
theme: 'webcabin.overrides.css'
|
||||||
});
|
});
|
||||||
if (obj.docker) {
|
if (obj.docker) {
|
||||||
// Initialize all the panels
|
// Initialize all the panels
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ class FileManagerModule(PgAdminModule):
|
||||||
|
|
||||||
def get_own_stylesheets(self):
|
def get_own_stylesheets(self):
|
||||||
return [
|
return [
|
||||||
url_for('static', filename='css/jquery.dropzone/dropzone.css'),
|
url_for('static', filename='vendor/jquery.dropzone/dropzone.css'),
|
||||||
url_for('file_manager.static', filename='css/file_manager.css')
|
url_for('file_manager.static', filename='css/file_manager.css')
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<script type="text/javascript" src="{{ url_for('static', filename='js/jquery.dropzone/dropzone.js') }}"></script>
|
<script type="text/javascript" src="{{ url_for('static', filename='vendor/jquery.dropzone/dropzone.js') }}"></script>
|
||||||
<script type="text/javascript" src="{{ url_for('file_manager.index') }}utility.js"></script>
|
<script type="text/javascript" src="{{ url_for('file_manager.index') }}utility.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="fileinfo">
|
<div class="fileinfo">
|
||||||
<span class="activity">
|
<span class="activity">
|
||||||
<img src="{{ url_for('browser.static', filename='css/aciTree/image/load-root.gif') }}">
|
<img src="{{ url_for('browser.static', filename='vendor/aciTree/image/load-root.gif') }}">
|
||||||
</span>
|
</span>
|
||||||
<div class="file_listing"></div>
|
<div class="file_listing"></div>
|
||||||
<div class="upload_file dropzone"></div>
|
<div class="upload_file dropzone"></div>
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
|
|
||||||
require('../../js/transition.js')
|
|
||||||
require('../../js/alert.js')
|
|
||||||
require('../../js/button.js')
|
|
||||||
require('../../js/carousel.js')
|
|
||||||
require('../../js/collapse.js')
|
|
||||||
require('../../js/dropdown.js')
|
|
||||||
require('../../js/modal.js')
|
|
||||||
require('../../js/tooltip.js')
|
|
||||||
require('../../js/popover.js')
|
|
||||||
require('../../js/scrollspy.js')
|
|
||||||
require('../../js/tab.js')
|
|
||||||
require('../../js/affix.js')
|
|
||||||