2019-01-02 04:24:12 -06:00
|
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
|
|
|
// Copyright (C) 2013 - 2019, The pgAdmin Development Team
|
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////
|
|
|
|
|
2017-06-12 10:51:54 -05:00
|
|
|
/* eslint-env node */
|
|
|
|
const path = require('path');
|
|
|
|
const webpack = require('webpack');
|
|
|
|
|
|
|
|
const sourcesDir = path.resolve(__dirname, 'pgadmin/static');
|
2017-06-23 03:35:56 -05:00
|
|
|
const nodeModulesDir = path.resolve(__dirname, 'node_modules');
|
2017-06-12 10:51:54 -05:00
|
|
|
const regressionDir = path.resolve(__dirname, 'regression');
|
|
|
|
|
|
|
|
module.exports = {
|
2018-05-30 21:09:00 -05:00
|
|
|
devtool: 'inline-source-map',
|
2017-06-12 10:51:54 -05:00
|
|
|
plugins: [
|
|
|
|
new webpack.ProvidePlugin({
|
|
|
|
jQuery: 'jquery',
|
|
|
|
_: 'underscore',
|
|
|
|
'underscore.string': 'underscore.string',
|
2018-01-25 06:49:06 -06:00
|
|
|
'window.jQuery': 'jquery',
|
2018-10-11 07:23:59 -05:00
|
|
|
'moment': 'moment',
|
|
|
|
'window.moment':'moment',
|
2017-06-12 10:51:54 -05:00
|
|
|
}),
|
|
|
|
],
|
|
|
|
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
2019-03-07 04:51:59 -06:00
|
|
|
test: /\.js$/,
|
2017-06-12 10:51:54 -05:00
|
|
|
exclude: [/node_modules/, /vendor/],
|
|
|
|
use: {
|
|
|
|
loader: 'babel-loader',
|
|
|
|
options: {
|
2019-03-14 10:11:16 -05:00
|
|
|
presets: [['@babel/preset-env', {'modules': 'commonjs'}]],
|
|
|
|
sourceMap: 'inline',
|
2017-06-12 10:51:54 -05:00
|
|
|
},
|
|
|
|
},
|
2017-06-23 03:35:56 -05:00
|
|
|
}, {
|
|
|
|
test: /\.css$/,
|
|
|
|
use: [ 'style-loader', 'raw-loader' ],
|
|
|
|
}, {
|
2018-05-11 04:23:37 -05:00
|
|
|
test: /.*slickgrid[\\\/]+slick\.(?!core)*/,
|
2017-06-12 10:51:54 -05:00
|
|
|
loader: 'imports-loader?' +
|
|
|
|
'jquery.ui' +
|
|
|
|
',jquery.event.drag' +
|
|
|
|
',slickgrid',
|
|
|
|
}, {
|
2018-05-11 04:23:37 -05:00
|
|
|
test: /.*slickgrid\.plugins[\\\/]+slick\.cellrangeselector/,
|
2017-06-12 10:51:54 -05:00
|
|
|
loader: 'imports-loader?' +
|
|
|
|
'jquery.ui' +
|
|
|
|
',jquery.event.drag' +
|
|
|
|
',slickgrid' +
|
|
|
|
'!exports-loader?' +
|
2017-06-23 03:35:56 -05:00
|
|
|
'Slick.CellRangeSelector',
|
2017-06-12 10:51:54 -05:00
|
|
|
}, {
|
2018-05-11 04:23:37 -05:00
|
|
|
test: /.*slickgrid[\\\/]+slick\.core.*/,
|
2017-06-12 10:51:54 -05:00
|
|
|
loader: 'imports-loader?' +
|
|
|
|
'jquery.ui' +
|
|
|
|
',jquery.event.drag' +
|
|
|
|
'!exports-loader?' +
|
|
|
|
'Slick',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
|
|
|
|
resolve: {
|
2019-03-07 04:51:59 -06:00
|
|
|
extensions: ['.js'],
|
2017-06-12 10:51:54 -05:00
|
|
|
alias: {
|
2018-09-05 11:25:11 -05:00
|
|
|
'top': path.join(__dirname, './pgadmin'),
|
2017-07-18 09:13:16 -05:00
|
|
|
'jquery': path.join(__dirname, './node_modules/jquery/dist/jquery'),
|
2019-05-31 10:51:30 -05:00
|
|
|
'wcdocker': path.join(__dirname, './node_modules/webcabin-docker/Build/wcDocker'),
|
2017-07-18 09:13:16 -05:00
|
|
|
'alertify': path.join(__dirname, './node_modules/alertifyjs/build/alertify'),
|
2018-05-10 01:54:52 -05:00
|
|
|
'jquery.event.drag': path.join(__dirname, './node_modules/slickgrid/lib/jquery.event.drag-2.3.0'),
|
2017-07-18 09:13:16 -05:00
|
|
|
'jquery.ui': path.join(__dirname, './node_modules/slickgrid/lib/jquery-ui-1.11.3'),
|
2018-01-25 06:49:06 -06:00
|
|
|
'spectrum': path.join(__dirname, './node_modules/spectrum-colorpicker/spectrum'),
|
|
|
|
'bignumber': path.join(__dirname, './node_modules/bignumber.js/bignumber'),
|
2018-10-11 07:23:59 -05:00
|
|
|
'bootstrap.datetimepicker': path.join(__dirname, './node_modules/tempusdominus-bootstrap-4/build/js/tempusdominus-bootstrap-4.min'),
|
2019-02-04 00:01:48 -06:00
|
|
|
'bootstrap.toggle': path.join(__dirname, './node_modules/bootstrap4-toggle/js/bootstrap4-toggle'),
|
2018-01-25 06:49:06 -06:00
|
|
|
'backbone': path.join(__dirname, './node_modules/backbone/backbone'),
|
|
|
|
'backform': path.join(__dirname, './node_modules/backform/src/backform'),
|
|
|
|
'backgrid': path.join(__dirname, './node_modules/backgrid/lib/backgrid'),
|
Improvement in the look and feel of the whole application
Changed the SCSS/CSS for the below third party libraries to adopt the
new look 'n' feel:
- wcDocker
- Alertify dialogs, and notifications
- AciTree
- Bootstrap Navbar
- Bootstrap Tabs
- Bootstrap Drop-Down menu
- Backgrid
- Select2
Adopated the new the look 'n' feel for the dialogs, wizard, properties,
tab panels, tabs, fieldset, subnode control, spinner control, HTML
table, and other form controls.
- Font is changed to Roboto
- Using SCSS variables to define the look 'n' feel
- Designer background images for the Login, and Forget password pages in
'web' mode
- Improved the look 'n' feel for the key selection in the preferences
dialog
- Table classes consistency changes across the application
- File Open and Save dialog list view changes
Author(s): Aditya Toshniwal & Khushboo Vashi
2018-12-21 05:44:55 -06:00
|
|
|
'backgrid.filter': path.join(__dirname, './node_modules/backgrid-filter/backgrid-filter'),
|
2017-06-12 10:51:54 -05:00
|
|
|
'sources': sourcesDir + '/js',
|
|
|
|
'translations': regressionDir + '/javascript/fake_translations',
|
|
|
|
'pgadmin.browser.endpoints': regressionDir + '/javascript/fake_endpoints',
|
2017-06-23 03:35:56 -05:00
|
|
|
'slickgrid': nodeModulesDir + '/slickgrid/',
|
|
|
|
'slickgrid.plugins': nodeModulesDir + '/slickgrid/plugins/',
|
|
|
|
'slickgrid.grid': nodeModulesDir + '/slickgrid/slick.grid',
|
2018-09-05 11:25:11 -05:00
|
|
|
'bean': path.join(__dirname, './node_modules/flotr2/lib/bean'),
|
|
|
|
'flotr2': path.join(__dirname, './node_modules/flotr2/flotr2.amd'),
|
2018-10-11 07:23:59 -05:00
|
|
|
'moment': path.join(__dirname, './node_modules/moment/moment'),
|
2017-06-12 10:51:54 -05:00
|
|
|
'browser': path.resolve(__dirname, 'pgadmin/browser/static/js'),
|
|
|
|
'pgadmin': sourcesDir + '/js/pgadmin',
|
2017-07-18 09:13:16 -05:00
|
|
|
'pgadmin.sqlfoldcode': sourcesDir + '/js/codemirror/addon/fold/pgadmin-sqlfoldcode',
|
2017-07-31 08:29:44 -05:00
|
|
|
'pgadmin.alertifyjs': sourcesDir + '/js/alertify.pgadmin.defaults',
|
2018-01-25 06:49:06 -06:00
|
|
|
'pgadmin.backgrid': sourcesDir + '/js/backgrid.pgadmin',
|
|
|
|
'pgadmin.backform': sourcesDir + '/js/backform.pgadmin',
|
2018-06-05 05:36:19 -05:00
|
|
|
'pgbrowser': path.resolve(__dirname, 'regression/javascript/fake_browser'),
|
|
|
|
'pgadmin.schema.dir': path.resolve(__dirname, 'pgadmin/browser/server_groups/servers/databases/schemas/static/js'),
|
2019-05-31 10:51:30 -05:00
|
|
|
'pgadmin.browser.layout': path.join(__dirname, './pgadmin/browser/static/js/layout'),
|
2018-07-05 05:38:43 -05:00
|
|
|
'pgadmin.browser.preferences': path.join(__dirname, './pgadmin/browser/static/js/preferences'),
|
2019-03-07 04:51:59 -06:00
|
|
|
'bundled_codemirror': path.join(__dirname, './pgadmin/static/bundle/codemirror'),
|
2017-06-12 10:51:54 -05:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|