Skip to content

Commit

Permalink
- Finalize: Update docker compose files and refresh of JS assets
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Nov 28, 2018
1 parent 0160cf5 commit 0f84734
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 87 deletions.
20 changes: 11 additions & 9 deletions geonode/static/geonode/js/status/main.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
/*global define: true, requirejs:true */

'use strict';

requirejs.config({
config: {
baseUrl: siteUrl + 'static/lib/js',
text: {
useXhr: function (url, protocol, hostname, port) {
// allow cross-domain requests
// remote server allows CORS
return true;
}
},
shim: {
'underscore': { exports: '_'}
},
paths: {
'upload': '../../geonode/js/upload',
'templates': '../../geonode/js/templates',
'progress': 'jquery.ajax-progress'
},
waitSeconds: 5
},
baseUrl: siteUrl + 'static/lib/js',
shim: {
'underscore': { exports: '_'}
},
paths: {
'upload': '../../geonode/js/upload',
'templates': '../../geonode/js/templates',
'progress': 'jquery.ajax-progress'
}
});

Expand Down
2 changes: 1 addition & 1 deletion geonode/static/geonode/js/upload/FileType.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict';

define(function (require, exports) {
var getExt = require('upload/path').getExt,
var getExt = require('./path').getExt,
FileType;

/** Create an instance of a FileType object
Expand Down
6 changes: 3 additions & 3 deletions geonode/static/geonode/js/upload/LayerInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

define(function (require, exports) {
var _ = require('underscore'),
fileTypes = require('upload/FileTypes'),
path = require('upload/path'),
common = require('upload/common'),
fileTypes = require('./FileTypes'),
path = require('./path'),
common = require('./common'),
LayerInfo;

/** Creates an instance of a LayerInfo
Expand Down
20 changes: 11 additions & 9 deletions geonode/static/geonode/js/upload/csv.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
/*globals define: true, requirejs: true */

'use strict';

requirejs.config({
config: {
baseUrl: siteUrl + 'static/lib/js',
text: {
useXhr: function (url, protocol, hostname, port) {
// allow cross-domain requests
// remote server allows CORS
return true;
}
},
shim: {
'underscore': { exports: '_'}
},
paths: {
'upload': '../../geonode/js/upload',
'templates': '../../geonode/js/templates',
'progress': 'jquery.ajax-progress'
},
waitSeconds: 5
},
baseUrl: siteUrl + 'static/lib/js',
shim: {
'underscore': { exports: '_'}
},
paths: {
'upload': '../../geonode/js/upload',
'templates': '../../geonode/js/templates',
'progress': 'jquery.ajax-progress'
}
});

Expand Down
21 changes: 11 additions & 10 deletions geonode/static/geonode/js/upload/main.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
/*globals define: true, requirejs: true */

'use strict';

requirejs.config({
config: {
baseUrl: siteUrl + 'static/lib/js',
text: {
useXhr: function (url, protocol, hostname, port) {
// allow cross-domain requests
// remote server allows CORS
return true;
}
},
shim: {
'underscore': { exports: '_'}
},
paths: {
'upload': '../../geonode/js/upload',
'templates': '../../geonode/js/templates',
'progress': 'jquery.ajax-progress'
},
waitSeconds: 5
},
baseUrl: siteUrl + 'static/lib/js',
shim: {
'underscore': { exports: '_'}
},
paths: {
'upload': '../../geonode/js/upload',
'templates': '../../geonode/js/templates',
'progress': 'jquery.ajax-progress'
}
});

define(['upload/upload'], function (upload) {
'use strict';

$(function () {
upload.initialize({
Expand Down
24 changes: 14 additions & 10 deletions geonode/static/geonode/js/upload/srs.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
/*globals define: true, requirejs: true */

'use strict';

requirejs.config({
config: {
baseUrl: siteUrl + 'static/lib/js',
text: {
useXhr: function (url, protocol, hostname, port) {
// allow cross-domain requests
// remote server allows CORS
return true;
}
},
shim: {
'underscore': { exports: '_'}
},
paths: {
'upload': '../../geonode/js/upload',
'templates': '../../geonode/js/templates',
'progress': 'jquery.ajax-progress'
},
waitSeconds: 5
},
baseUrl: siteUrl + 'static/lib/js',
shim: {
'underscore': { exports: '_'}
},
paths: {
'upload': '../../geonode/js/upload',
'templates': '../../geonode/js/templates',
'progress': 'jquery.ajax-progress'
}
});

define(['upload/upload','upload/common', 'upload/LayerInfo'], function (upload, common, LayerInfo) {
define(['upload/upload',
'upload/common',
'upload/LayerInfo'], function (upload, common, LayerInfo) {
'use strict';

var doSrs = function (event) {
Expand Down
23 changes: 13 additions & 10 deletions geonode/static/geonode/js/upload/time.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
/*globals define: true, requirejs: true */
'use strict';

requirejs.config({
config: {
baseUrl: siteUrl + 'static/lib/js',
text: {
useXhr: function (url, protocol, hostname, port) {
// allow cross-domain requests
// remote server allows CORS
return true;
}
},
shim: {
'underscore': { exports: '_'}
},
paths: {
'upload': '../../geonode/js/upload',
'templates': '../../geonode/js/templates',
'progress': 'jquery.ajax-progress'
},
waitSeconds: 5
},
baseUrl: siteUrl + 'static/lib/js',
shim: {
'underscore': { exports: '_'}
},
paths: {
'upload': '../../geonode/js/upload',
'templates': '../../geonode/js/templates',
'progress': 'jquery.ajax-progress'
}
});

define(['upload/upload','upload/common', 'upload/LayerInfo'], function (upload, common, LayerInfo) {
define(['upload/upload',
'upload/common',
'upload/LayerInfo'], function (upload, common, LayerInfo) {
'use strict';

function isTimeSeries() {
Expand Down
30 changes: 4 additions & 26 deletions geonode/static/geonode/js/upload/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,11 @@ var layers = {};

var geogig_stores = {};

requirejs.config({
config: {
baseUrl: siteUrl + 'static/lib/js',
text: {
useXhr: function (url, protocol, hostname, port) {
// allow cross-domain requests
// remote server allows CORS
return true;
}
},
shim: {
'underscore': { exports: '_'}
},
paths: {
'upload': '../../geonode/js/upload',
'templates': '../../geonode/js/templates',
'progress': 'jquery.ajax-progress'
},
waitSeconds: 5
}
});

define(['underscore',
'upload/LayerInfo',
'upload/FileTypes',
'upload/path',
'upload/common',
'./LayerInfo',
'./FileTypes',
'./path',
'./common',
'text!templates/upload.html'], function (_, LayerInfo, fileTypes, path, common, uploadTemplate) {

var templates = {},
Expand Down
20 changes: 11 additions & 9 deletions geonode/static/geonode/js/utils/batch_ops.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
/*globals define: true, requirejs: true */

'use strict';

requirejs.config({
config: {
baseUrl: siteUrl + 'static/lib/js',
text: {
useXhr: function (url, protocol, hostname, port) {
// allow cross-domain requests
// remote server allows CORS
return true;
}
},
shim: {
'underscore': { exports: '_'}
},
paths: {
'upload': '../../geonode/js/upload',
'templates': '../../geonode/js/templates',
'progress': 'jquery.ajax-progress'
},
waitSeconds: 5
},
baseUrl: siteUrl + 'static/lib/js',
shim: {
'underscore': { exports: '_'}
},
paths: {
'upload': '../../geonode/js/upload',
'templates': '../../geonode/js/templates',
'progress': 'jquery.ajax-progress'
}
});

Expand Down

0 comments on commit 0f84734

Please sign in to comment.