Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overall code refactoring (ES Modules) + Update gulp and other dev dependencies #35

Draft
wants to merge 69 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
d980117
update gulp and other dev dependencies
Raruto Jun 9, 2022
04f2835
first refactoring using class instead prototype and use es6 module in…
volterra79 Jun 9, 2022
2ff32c9
Merge branch 'gulp-4' into migration_v3_v4
Raruto Jun 9, 2022
53359be
Update package-lock.json
Raruto Jun 9, 2022
9ac26c3
aligned engines in package.json from dev branch
volterra79 Jun 9, 2022
71dc0af
aligned i18n with last dev changes
volterra79 Jun 9, 2022
3ed98d7
fixed issue on refactoring prototype methods to class methods
volterra79 Jun 9, 2022
4e456e5
Merge branch 'migration_v3_v4' of https://github.com/g3w-suite/g3w-cl…
Raruto Jun 9, 2022
ae5b73f
replace "function() =" within classes
Raruto Jun 9, 2022
a274de8
Babel 7 test
Raruto Jun 9, 2022
55c2d64
remove require() statements within `/src` files
Raruto Jun 9, 2022
e701b38
try again with babel 6
Raruto Jun 10, 2022
2bdd1d8
include "node_modules" folder in babelify() transform
Raruto Jun 10, 2022
e349b1a
fix some relative imports
Raruto Jun 10, 2022
bdabea0
rename "clean" scripts
Raruto Jun 10, 2022
442657c
globally replace "){" with ") {"
Raruto Jun 10, 2022
7122cd3
fix missing "admin" script within package.json
Raruto Jun 10, 2022
7d88926
vueify + esmify + babel 7
Raruto Jun 10, 2022
5b92049
remove global option
Raruto Jun 10, 2022
e6e7fad
remove vue3 "ref"
Raruto Jun 10, 2022
c83d999
Fixed issue on refactoring prototype to class
volterra79 Jun 14, 2022
03c7d24
Fixed issue on geolocation, meauser control (length, area) and aligne…
volterra79 Jun 15, 2022
fc9ba9a
refactored nominatim control.
volterra79 Jun 15, 2022
36675a4
alligned printconfig.js with pull request #38
volterra79 Jun 15, 2022
e44fd6f
fixed BingLayer refactoring bug
volterra79 Jun 15, 2022
8c76f8e
added romanian traslation to print section
volterra79 Jun 15, 2022
9f702d6
simplify gulpfile.js
Raruto Jun 15, 2022
969fa7b
Merge branch 'migration_v3_v4' of https://github.com/Raruto/g3w-clien…
Raruto Jun 15, 2022
9cf8a40
rename index.html templates
Raruto Jun 16, 2022
a6e0cfa
split i18n into multiple language files
Raruto Jun 16, 2022
c2f6514
install and configure eslint 8
Raruto Jun 16, 2022
e58a085
apply airbnb styling rules (`eslint src --fix`)
Raruto Jun 16, 2022
7a039f7
remove useless `constructor() { super(); }`
Raruto Jun 16, 2022
31603aa
remove useless `constructor(options = {}) { super(options); }`
Raruto Jun 16, 2022
f140b5f
remove useless `constructor(config = {}, options = {}) { super(config…
Raruto Jun 16, 2022
3161dd2
remove useless `constructor(options = {}, extraParams = {}) { super(o…
Raruto Jun 16, 2022
d89779a
replace some relative imports (eg. `../..`)
Raruto Jun 16, 2022
a7c74c7
fiexd issue on missing icon on sidebar components
volterra79 Jun 16, 2022
b1b8ec6
fixed use of fromExtent Polygon class method on geo.js
volterra79 Jun 16, 2022
6f1f4ce
added print translations
volterra79 Jun 16, 2022
bfde511
aligned with dev branch set query feature header with link or image i…
volterra79 Jun 16, 2022
09bfaa9
removed coordinates console.log on mapservice.js
volterra79 Jun 16, 2022
1133d5d
fixed issue on wfs provider on querybybbox control request
volterra79 Jun 16, 2022
274e4ae
refactored utils.js splitting default and single function constant ex…
volterra79 Jun 16, 2022
d32e35d
fixed issue on gulp file using arrow function. 'this' is not referred…
volterra79 Jun 16, 2022
cdb2927
refactoried gor.js file splitting default and single constant and fun…
volterra79 Jun 16, 2022
8fd443a
fixed issue on missing context on postcompose event in ol6. Temporary…
volterra79 Jun 16, 2022
3705dd1
fix issue on parsing xml response in parser.js
volterra79 Jun 17, 2022
0bf8247
fix issue get map screenshot and geoscreenshot. Map canvas dom positi…
volterra79 Jun 20, 2022
24ea7d4
fix issue length and area map control
volterra79 Jun 20, 2022
9f22ab0
replace headeritem.html and headeritem.js to headeritem vue single co…
volterra79 Jun 30, 2022
805e7ec
remove old reference to headeritem.html
volterra79 Jun 30, 2022
148037b
remove template attribute on headeritem component
volterra79 Jun 30, 2022
ce822e3
replace lineXY.js and lineXY.html with lineXY.vue vue single component
volterra79 Jun 30, 2022
38fab27
replace addlayer.js and addlayer.html with addlayer.vue vue single co…
volterra79 Jun 30, 2022
ec0cf63
change api.js importing lineXY.vue component instead a lineXY.js
volterra79 Jun 30, 2022
32f0bfa
refactor form component and its subcomponents footer, body and header…
volterra79 Jun 30, 2022
79fc22b
in case of single language in client select language on header is hide
volterra79 Jul 1, 2022
13de330
refactor main.js
Raruto Jul 5, 2022
f85b20e
refactor api.js
Raruto Jul 5, 2022
4e5a95e
remove useful `production` variable
Raruto Jul 5, 2022
375928d
remove useful `G3W_VERSION` constant
Raruto Jul 5, 2022
ae77eaa
sync with dev https://github.com/g3w-suite/g3w-client/commit/3e241357…
Raruto Jul 5, 2022
247cf83
sync with dev https://github.com/g3w-suite/g3w-client/commit/cc1be101…
Raruto Jul 5, 2022
705e0c6
major `version` update in package.json
Raruto Jul 7, 2022
e8c27f9
create component folder inside gui and move all component files insid…
volterra79 Jul 11, 2022
9e57c28
Merge remote-tracking branch 'origin/migration_v3_v4' into migration_…
volterra79 Jul 11, 2022
ba2c866
substitute Lodash methods _.forEach with Object.entries().forEach
volterra79 Jul 11, 2022
8fac441
move all subfolder and files of src/g3w-ol/src inside src/g3w-ol. Rem…
volterra79 Jul 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 0 additions & 7 deletions .babelrc

This file was deleted.

1 change: 0 additions & 1 deletion .browserslistrc

This file was deleted.

40 changes: 17 additions & 23 deletions config.template.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
const PROTOCOL = 'http';
const HOST = '127.0.0.1';
const PROXY_PORT = '8001';
const LOCAL_PORT = '3000';
const G3W_ADMIN_MEDIA_PUBLIC_FOLDER = '/media'; // change g3w-admin media public folder (default is /media)
const G3W_HOST_SCHEMA = 'http';
const G3W_HOST = '127.0.0.1'; // local development server
const G3W_ADMIN_PORT = '8000'; // G3W-ADMIN development server
const G3W_CLIENT_PORT = '3000'; // G3W-CLIENT development server

const conf = {
assetsFolder: './assets', //template folder of template repository
pluginsFolder: './src/plugins', // plugins folder of app plugins
distFolder: './dist', // G3W-CLIENT main dist folder
clientFolder: './dist/client', // G3W-CLIENT client dist folder where are compiled
localServerPort: LOCAL_PORT, // port for local server. If not set local server run on port 3000
g3w_admin_paths: {
dev: {
g3w_admin_plugins_basepath: '<RELATIVE PATH OF G3W-ADMIN-INSTALLATION>/g3w-admin/g3w-admin/', // local G3W-ADMIN main path code
g3w_admin_client_dest_static: '<RELATIVE PATH OF G3W-ADMIN-INSTALLATION>/g3w-admin/g3w-admin/client/static', // local G3W-ADMIN client static path
g3w_admin_client_dest_template: '<RELATIVE PATH OF G3W-ADMIN-INSTALLATION>/g3w-admin/g3w-admin/client/templates', // local G3W-ADMIN client template folder
}
},
host: HOST,
localServerPort: LOCAL_PORT, // port for local server. If not set local server run on port 3000
// proxy configurazion for local server
assetsFolder: './assets', // path to G3W-CLIENT assets folder
pluginsFolder: './src/plugins', // path to G3W-CLIENT plugins folder
distFolder: './dist', // path to G3W-CLIENT dist folder
clientFolder: './dist/client', // path to G3W-CLIENT client folder
admin_plugins_folder: '../g3w-admin/g3w-admin', // path to G3W-ADMIN main code
admin_static_folder: '../g3w-admin/g3w-admin/client/static', // path to G3W-ADMIN client/static
admin_templates_folder: '../g3w-admin/g3w-admin/client/templates', // path to G3W-ADMIN client/templates
host: G3W_HOST,
port: G3W_CLIENT_PORT,
// proxy configuration for local G3W_ADMIN server (where G3W-ADMIN is running)
proxy: {
host: HOST,
url: `${PROTOCOL}://${HOST}:${PROXY_PORT}/`, // local G3W_ADMIN server and port (where G3W-ADIMN is running)
urls: [G3W_ADMIN_MEDIA_PUBLIC_FOLDER , '/api','/ows', '/static', '/en/', '/it/', '/upload/'] // urls to proxy referred to G3W-ADMIN
host: G3W_HOST,
url: `${G3W_HOST_SCHEMA}://${G3W_HOST}:${G3W_ADMIN_PORT}/`,
routes: ['/api','/ows','/media','/static', '/en/', '/it/', '/upload/']
},
test: {
path: '/test/config/groups/'
Expand Down