Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Migration to v8 *DO NOT MERGE* #95

Draft
wants to merge 255 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
255 commits
Select commit Hold shift + click to select a range
fdac170
Fix to match current state of terriajs refactor
tephenavies Jan 14, 2019
247056d
Fix initialisation of base map
tephenavies Jan 14, 2019
35fc79b
WIP stuff
tephenavies Jan 18, 2019
0fa34db
Merge branch 'sd-mobx' of github.com:TerriaJS/TerriaMap into sd-mobx
tephenavies Jan 18, 2019
f4c080e
Call load on basemap
tephenavies Jan 22, 2019
593b5fc
addStratum -> getOrCreateStratum
kring Mar 12, 2019
04623db
Merge remote-tracking branch 'origin/master' into mobx-upgrade-to-7
kring Mar 13, 2019
420920b
Merge pull request #304 from TerriaJS/mobx-upgrade-to-7
tephenavies Mar 15, 2019
ab5ffe6
Register GeoJsonCatalogItem.
na9da Apr 12, 2019
e7f944b
Do not set `.show`
na9da Apr 12, 2019
eaf88d8
Add example GeoJSON to the catalog, improve sourcemaps.
kring Apr 14, 2019
513fa21
Merge pull request #309 from TerriaJS/mobx-geojson
kring Apr 14, 2019
733b04f
loadData -> loadMapItems
kring Apr 14, 2019
b97f574
Add new catalog entries and model registration.
kring May 1, 2019
acdd904
Merge pull request #313 from TerriaJS/mobx-newstuff
kring May 1, 2019
de7df0c
Merge remote-tracking branch 'origin/master' into mobx
kring May 3, 2019
fa51611
Merge pull request #315 from TerriaJS/mobx-merge
kring May 3, 2019
11da0b4
Register CsvCatalogItem, add example to catalog.
kring May 10, 2019
c8fcb77
Merge pull request #321 from TerriaJS/mobx-csv
kring May 10, 2019
60dd886
Register basemaps for basemap switcher
tephenavies May 21, 2019
ba30164
Merge pull request #327 from TerriaJS/mobx-basemaps
tephenavies May 22, 2019
785974d
Add another CSV layer.
kring May 22, 2019
6670bd1
Add region-mapped CSV to the catalog.
kring May 23, 2019
4a986a1
Merge remote-tracking branch 'origin/master' into mobx-merge
kring May 24, 2019
3af2239
Fix eslint warnings.
kring May 26, 2019
21e62a5
Merge pull request #330 from TerriaJS/mobx-merge
kring May 26, 2019
262d4ab
add wip routing
soyarsauce May 31, 2019
b817dc2
Add prettier deps
soyarsauce Jun 3, 2019
a9bbb60
Add scripts
soyarsauce Jun 3, 2019
db434c7
Add husky
soyarsauce Jun 3, 2019
32f6852
Apply prettier
soyarsauce Jun 3, 2019
25aa4dc
Merge branch 'prettier-apply' into 1757-tm-new-routing
soyarsauce Jun 3, 2019
0b046c3
Move prerendered routes into /prerender/
soyarsauce Jun 6, 2019
5c1ff17
Ensure there are no multiple meta description tags
soyarsauce Jun 6, 2019
3ae279e
Remove seperate prerender index to ejs
soyarsauce Jun 6, 2019
b67a03f
Update proper path for index
soyarsauce Jun 6, 2019
d6da6aa
wip remote stash
soyarsauce Jun 6, 2019
d67df54
Add custom legend to Broadband Availability layer.
kring Jun 13, 2019
12b67cd
Native instead of when.js promises.
kring Jun 19, 2019
f69e820
Merge pull request #344 from TerriaJS/mobx-nested-traits-are-models
kring Jun 19, 2019
253162d
Add sitemap generator
soyarsauce Jun 19, 2019
4f525fc
Add sitemap generation
soyarsauce Jun 20, 2019
9f5de41
Fix sitemap generation, speed up prerendering
soyarsauce Jun 21, 2019
d2aa910
Improve polyfilling.
kring Jun 22, 2019
bfe6574
Merge pull request #346 from TerriaJS/mobx-polyfill
kring Jun 23, 2019
e90c5c2
Add prettier dependencies & scripts
soyarsauce Jun 3, 2019
e4eea94
Apply prettier
soyarsauce Jun 24, 2019
637ef6f
Add husky
soyarsauce Jun 24, 2019
1daa20c
Merge branch 'prettier-new-apply' into 1757-tm-new-routing
soyarsauce Jun 24, 2019
81b9616
Use named export
soyarsauce Jun 24, 2019
f1a4ebc
Make sure disclaimer gets shown on top, on load
soyarsauce Jun 25, 2019
acba780
updateApplicatOnHashChange, set homeCamera.
kring Jun 25, 2019
ffdb52f
Merge remote-tracking branch 'origin/master' into mobx-merge
kring Jun 25, 2019
1c5cf05
Merge pull request #351 from TerriaJS/mobx-merge
kring Jun 25, 2019
49a516c
Merge pull request #348 from TerriaJS/prettier-new-apply
kring Jun 25, 2019
0d52265
Merge tag 'pre-prettier' into mobx-prettier
kring Jun 26, 2019
cb97204
Merge tag 'post-prettier' into mobx-prettier
kring Jun 26, 2019
e99b247
Merge remote-tracking branch 'origin/master' into mobx-prettier
kring Jun 26, 2019
bbe7190
Merge pull request #352 from TerriaJS/mobx-prettier
kring Jun 26, 2019
8704431
Use safer puppeteer concurrent route #
soyarsauce Jun 26, 2019
fcdb655
Update travis for prerender test
soyarsauce Jun 26, 2019
b463ca1
Add CzmlCatalogItem, Bing search.
kring Jun 28, 2019
37ab0bc
Enabling ArcGisMapServer & Cesium3DTiles catalog items.
na9da Jul 2, 2019
72ed190
Merge pull request #355 from TerriaJS/mobx-arcgis-3dtiles
Jul 2, 2019
6dfa3fb
Quick workaround for missing regenerator runtime.
kring Jul 4, 2019
98df4b1
Add GltfCatalogItem to TerriaMap
tephenavies Jul 4, 2019
5aa8a6c
Merge pull request #356 from TerriaJS/add_gltf
tephenavies Jul 4, 2019
fc5aebe
Better mechanism for loading regenerator-runtime.
kring Jul 4, 2019
4e43147
changed terriajs version to mobx branch
Jul 5, 2019
618ef4f
changed terriajs version to mobx branch
Jul 5, 2019
6c1ac6d
added nsw buses to catalog
KeyboardSounds Jul 8, 2019
9c49fbd
Merge pull request #358 from TerriaJS/mobx-gtfs-catalog
KeyboardSounds Jul 8, 2019
32af30f
Use terriajs-cesium v1.59.0.
kring Jul 9, 2019
8b46333
Merge pull request #360 from TerriaJS/mobx-cesium-159
kring Jul 9, 2019
eb14d03
Merge pull request #357 from ChickenHatch/terriajs_mobx_git_pkg
kring Jul 9, 2019
8e0f752
Upgrade terriajs version
tephenavies Jul 10, 2019
a3d9b97
Merge pull request #361 from TerriaJS/upgrade-terriajs
tephenavies Jul 10, 2019
6669716
Add power generation dataset to catalog.
kring Jul 12, 2019
3b30f80
Merge pull request #284 from TerriaJS/terriajs-1227-regionmapping-json
tephenavies Jul 22, 2019
f4c4e71
Use terriajs 7.6.6
tephenavies Jul 23, 2019
2781502
Merge pull request #364 from TerriaJS/terriajs-766
tephenavies Jul 23, 2019
54aed6a
TerriaMap now supports typescript
KeyboardSounds Jul 24, 2019
fc20432
whoops, wrong terriajs version
KeyboardSounds Jul 24, 2019
71179ad
more node memory for ci build
KeyboardSounds Jul 24, 2019
a517f21
Merge pull request #365 from TerriaJS/mobx-ts
KeyboardSounds Jul 24, 2019
be56cbe
Add CesiumTerrainCatalogItem
tephenavies Aug 6, 2019
fb1dd76
Refresh package-lock.json
tephenavies Aug 6, 2019
b22a33f
Merge pull request #366 from TerriaJS/add_terrain_item
tephenavies Aug 6, 2019
c8675bc
Merge remote-tracking branch 'origin/master' into 1757-tm-new-routing
soyarsauce Aug 7, 2019
ed2439a
Enable About, Related Maps buttons.
na9da Sep 17, 2019
e567f7a
Merge pull request #383 from TerriaJS/mobx-toolbar-buttons
Sep 17, 2019
bdbd2c5
Update package locks.
na9da Sep 18, 2019
7e1ba00
Merge pull request #384 from TerriaJS/mobx-update-package-locks
Sep 18, 2019
1e44762
Import and register kml catalog item
reginapramesti Oct 2, 2019
3823b34
Add time WMS for init
soyarsauce Oct 3, 2019
9140c02
Make Great Barrier Reef wms-group work on CI
tephenavies Oct 4, 2019
abb10c3
Merge pull request #386 from TerriaJS/mobx-kml
tephenavies Oct 11, 2019
7036730
Add XY plot item to catalog.
na9da Oct 16, 2019
62d5203
Merge pull request #391 from TerriaJS/mobx-add-xy-plot-item
Oct 16, 2019
c767c8a
Use the same webpack config for TerriaMap code as terriajs
tephenavies Oct 18, 2019
10290b1
Merge pull request #392 from TerriaJS/mobx_on_ie11
tephenavies Oct 18, 2019
db19441
Use registerCatalogMembers.
kring Oct 22, 2019
2e5c4c0
Fix traits of magda item.
kring Oct 22, 2019
96cdd7a
Put name in hints.
kring Oct 22, 2019
8c2770b
Fix magda item definition.
kring Oct 22, 2019
127bdc1
Merge pull request #394 from TerriaJS/mobx-references
kring Oct 22, 2019
859240a
Sync dependencies.
kring Nov 12, 2019
601629c
Sync dependencies.
kring Nov 13, 2019
ec743ad
variables for focus border styles
KeyboardSounds Nov 20, 2019
66be26b
Merge branch 'mobx' of github.com:TerriaJS/TerriaMap into keyboard
KeyboardSounds Nov 20, 2019
1c53e85
Merge pull request #402 from TerriaJS/keyboard
KeyboardSounds Nov 20, 2019
a73037c
Fixed build fail against HEAD of terriajs mobx due to dependency vers…
KeyboardSounds Dec 2, 2019
51131e7
Merge pull request #409 from TerriaJS/mobx-fix-versions
KeyboardSounds Dec 2, 2019
3d753ce
Register `chart` component and update chart component parameters.
na9da Feb 11, 2020
77a6250
Merge pull request #416 from TerriaJS/mobx-vx-charts
Feb 17, 2020
f1a6e7a
Mobx updates - prettier & basemap action
soyarsauce Feb 22, 2020
30a4b62
Update package json
soyarsauce Feb 22, 2020
e879e29
litn
soyarsauce Feb 22, 2020
3b5d7e1
Update versions
soyarsauce Feb 22, 2020
1d688dd
Merge pull request #419 from TerriaJS/mobx-prettier-basemaps
soyarsauce Feb 22, 2020
ccb40f0
Fix manifest path
soyarsauce Feb 26, 2020
11940ec
Use TerriaJS name
soyarsauce Feb 26, 2020
c0eb996
Update travis max_old_space_size
soyarsauce Feb 26, 2020
d7d52c5
Update to terriajs mobx 23
soyarsauce Mar 2, 2020
bc0f1eb
Pass in variables to UserInterface.jsx
soyarsauce Mar 2, 2020
35bd7d4
Update yarn lock(?)
soyarsauce Mar 2, 2020
92d9ad9
Merge pull request #425 from TerriaJS/mobx-ui-variables
soyarsauce Mar 2, 2020
f82a3ae
Remove yarn.lock
soyarsauce Mar 2, 2020
af8ad20
Update node version
soyarsauce Mar 2, 2020
c88119b
Add lockfile reasoning
soyarsauce Mar 2, 2020
f9ff090
Fix adr0001 title
soyarsauce Mar 2, 2020
f3cc5e9
Update decision
soyarsauce Mar 5, 2020
96d4ead
Force npm instead of yarn
soyarsauce Mar 5, 2020
00cf31f
Revert "Remove yarn.lock"
soyarsauce Mar 5, 2020
3054732
Merge branch 'mobx-node-version' into mobx-remove-yarnlock
soyarsauce Mar 5, 2020
c7328ff
Update decision notes
soyarsauce Mar 5, 2020
547ed1f
Merge pull request #426 from TerriaJS/mobx-remove-yarnlock
soyarsauce Mar 5, 2020
c7b206c
Bump versions, update analytics
soyarsauce Mar 31, 2020
53d6a59
Update button layout
soyarsauce Apr 2, 2020
893d9ff
Merge pull request #436 from TerriaJS/mobx-button-layout
soyarsauce Apr 2, 2020
27816fb
Merge remote-tracking branch 'origin/mobx' into mobx-update-manifest
soyarsauce Apr 6, 2020
4d99df6
Fix changelog merge
soyarsauce Apr 6, 2020
f431d41
Merge pull request #420 from TerriaJS/mobx-update-manifest
rowanwins Apr 6, 2020
630c9e9
Merge branch 'mobx' into mobx-analytics
tephenavies Apr 7, 2020
160b2bc
Merge pull request #435 from TerriaJS/mobx-analytics
tephenavies Apr 7, 2020
097ad1a
Merge pull request #387 from TerriaJS/mobx-time-series-catalog
tephenavies Apr 15, 2020
c28dc07
Bump tjs mobx version to 27
soyarsauce May 4, 2020
8221170
Merge pull request #443 from TerriaJS/mobx-bump-tjs
rowanwins May 4, 2020
402cb63
Bump tjs mobx version to 28
soyarsauce May 5, 2020
10f8644
Merge pull request #444 from TerriaJS/mobx-bump-tjs28
soyarsauce May 5, 2020
e4f21bd
Add help content to config.json
reginapramesti May 11, 2020
e189929
Merge pull request #445 from TerriaJS/help-content-configurable
soyarsauce May 11, 2020
d69cba9
Add translation override mechanism in TerriaMap
soyarsauce May 11, 2020
22ff0e7
Update changelog
soyarsauce May 11, 2020
efddd96
Merge pull request #446 from TerriaJS/mobx-translations
soyarsauce May 11, 2020
06bcb50
Bump terriajs mobx dep
soyarsauce May 12, 2020
c7aad23
Add option to enable welcome message
reginapramesti May 13, 2020
81b4693
Merge pull request #448 from TerriaJS/config-welcome-msg
soyarsauce May 13, 2020
b908be8
Update npm lockfile
soyarsauce May 13, 2020
299dc4b
Merge pull request #449 from TerriaJS/mobx-fix-lock
soyarsauce May 13, 2020
dd5e596
Settings for disclaimer
reginapramesti May 13, 2020
4c555be
Make it as close to original as possible
reginapramesti May 13, 2020
0a62334
Rename default confirm button to OK
reginapramesti May 13, 2020
3ea089d
Add comma to resolve error
reginapramesti May 13, 2020
634f017
Merge pull request #451 from TerriaJS/mobx-fix-bad-merge
reginapramesti May 13, 2020
d2d45ed
Leave globalDisclaimer commented
soyarsauce May 13, 2020
c9b2db8
Update changelog
soyarsauce May 13, 2020
d65a840
Merge pull request #450 from TerriaJS/config-disclaimer
soyarsauce May 13, 2020
82e8a60
Add measure tool & inappguides config doc
soyarsauce May 19, 2020
cf0cce8
Merge pull request #453 from TerriaJS/mobx-measure-tool
reginapramesti May 20, 2020
c377b5a
Make sure husky is hoisted so that prettier runs in terriajs
tephenavies May 27, 2020
149e83e
Disable sourcemaps for "resolve-url-loader" in SASS loading
tephenavies Jun 12, 2020
18d69b8
Upgrade terriajs and sync dependencies
tephenavies Jun 12, 2020
fe072b1
Merge pull request #459 from TerriaJS/mobx-fix-release
tephenavies Jun 12, 2020
96fbeba
Update package-lock.json
tephenavies Jun 12, 2020
8a6b2f0
Update config.json to include welcome message video settings
reginapramesti Jun 26, 2020
1a98860
Merge pull request #461 from TerriaJS/mobx-welcome-video-config
soyarsauce Jun 29, 2020
1f50c00
Add video title to configParameters
reginapramesti Jun 30, 2020
af48421
Merge pull request #462 from TerriaJS/mobx-welcomemsg-video-title
soyarsauce Jul 1, 2020
3da983e
i18nify help content, traniner, and help terms
zoran995 Jul 8, 2020
23064da
Update babel to compile terriajs without ts-loader
soyarsauce Jul 15, 2020
55469ae
Fix comments & sync preset env
soyarsauce Jul 15, 2020
8f364fa
Update changelog
soyarsauce Jul 21, 2020
0a928ab
Update terriajs dep & lockfile
soyarsauce Jul 21, 2020
476cd2d
Use proper terriajs
soyarsauce Jul 22, 2020
0d5e9d2
Merge pull request #467 from TerriaJS/mobx-tm-no-tsloader
tephenavies Jul 22, 2020
72b5181
Update config.json
zoran995 Aug 14, 2020
f4bad87
Rename wwwroot/Language/en/languageOverrides.json to wwwroot/language…
zoran995 Aug 14, 2020
1f0d6f6
Remove confusing `enabled` flag, add more examples
soyarsauce Aug 19, 2020
e851964
Merge branch 'next' into pr/465
soyarsauce Aug 19, 2020
12ae8a3
Update changelog
soyarsauce Aug 19, 2020
f4aea0b
Fix help content test strings & misplaced property
soyarsauce Aug 19, 2020
ecab430
Merge pull request #475 from TerriaJS/pr/465
nf-s Aug 19, 2020
ebb4b34
Merge remote-tracking branch 'origin/1757-tm-new-routing' into 1757-m…
soyarsauce Aug 28, 2020
146ed81
safer entry
soyarsauce Aug 28, 2020
815258a
Bump prerendering fixes
soyarsauce Aug 28, 2020
e6874f3
Upgrade terriajs and sync dependencies
tephenavies Sep 2, 2020
925a833
Run npm dedupe to fix npm package lock forcing duplication of terriaj…
tephenavies Sep 2, 2020
cf14452
Fix npm package lock file broken by npm dedupe
tephenavies Sep 2, 2020
db33f1c
Merge pull request #478 from TerriaJS/terriajs-next-46
soyarsauce Sep 2, 2020
8193609
Update package-lock.json
reginapramesti Sep 9, 2020
74d3e56
Merge pull request #480 from TerriaJS/fix-npm-lockfile
tephenavies Sep 9, 2020
a58e8aa
Update versions in package.json and update yarn lockfile
reginapramesti Sep 24, 2020
2f292be
Update lockfiles
reginapramesti Sep 29, 2020
811cf78
Update package.json and corresponding lockfile
reginapramesti Sep 29, 2020
9abb24f
Merge pull request #482 from TerriaJS/mobx-cesium-upgrade-1.73
soyarsauce Sep 29, 2020
4952b2d
Add non-i18n story migration
soyarsauce Sep 29, 2020
ee9f6aa
Merge pull request #486 from TerriaJS/soyarsauce-patch-1
nf-s Sep 29, 2020
b9b5b9a
Add a new getting started terria trainer and disable trainers for sat…
na9da Oct 1, 2020
6d5eb4a
Merge branch 'next' into next-add-gettingstarted-trainer
na9da Oct 1, 2020
30a2898
Update default h2s
soyarsauce Oct 1, 2020
e4b91d2
Merge pull request #487 from TerriaJS/next-add-gettingstarted-trainer
soyarsauce Oct 1, 2020
6004695
Upgrade terriajs and sync dependencies
tephenavies Oct 16, 2020
8f4f81a
Run CI on node 14
tephenavies Oct 16, 2020
a143963
Merge pull request #491 from TerriaJS/next-alpha-55
soyarsauce Oct 19, 2020
c76159d
Enable post message
mwu2018 Oct 20, 2020
e612ed9
Enable processing message from parent window.
mwu2018 Oct 27, 2020
32efcca
Update CHANGES.md
mwu2018 Oct 27, 2020
9fb597f
Update terriajs version
mwu2018 Oct 27, 2020
0c7b2fa
Turn off CSSOM for styled-components when pre-rendering.
na9da Oct 28, 2020
0b9769e
Proxy URLs through our locally running server.
na9da Oct 28, 2020
9092477
Hide any errors or other modals in the rendered output.
na9da Oct 28, 2020
f8bb459
Parameterise webpack, bump versions
soyarsauce Oct 28, 2020
112efc3
Merge pull request #496 from TerriaJS/1757-fixes
soyarsauce Oct 28, 2020
0fe0573
Merge remote-tracking branch 'origin/next' into 1757-mobx-tm-new-routing
soyarsauce Oct 28, 2020
8bf9176
Update changelog, comment webpack for prerendering
soyarsauce Oct 28, 2020
cbfc339
Properly traverse v8 catalog for routes
soyarsauce Oct 29, 2020
81f0588
Add timeout fallback
soyarsauce Oct 29, 2020
3d8d6ba
Streamline various entry.js element removals
soyarsauce Oct 29, 2020
37306f5
Guard element
soyarsauce Oct 29, 2020
bdfb39d
Bump versions for prerendering, revert to opt-in
soyarsauce Oct 30, 2020
381319c
Merge pull request #497 from TerriaJS/1757-mobx-tm-new-routing
soyarsauce Oct 30, 2020
86cfe39
Revert "1757 mobx TerriaMap new routing"
nf-s Nov 2, 2020
5fb135d
Merge pull request #500 from TerriaJS/revert-497-1757-mobx-tm-new-rou…
tephenavies Nov 2, 2020
0413865
Upgrade terriajs
tephenavies Nov 3, 2020
6c19aac
Merge pull request #501 from TerriaJS/next-up-terriajs
nf-s Nov 4, 2020
3074a0c
Merge next branch and resolve conflicts.
mwu2018 Nov 4, 2020
f2a5304
Merge pull request #495 from TerriaJS/enable-post-message
tephenavies Nov 5, 2020
bd9c361
Merge branch 'next' of https://github.com/terriajs/terriamap into next
na9da Nov 11, 2020
c5f85e7
Some catalog fixes to make conversion to v8 style smoother.
na9da Nov 11, 2020
430c72a
Added v8 catalog.
na9da Nov 11, 2020
1d80077
Correctly convert tileErrorHandlingOptions.
na9da Nov 17, 2020
1f900e6
Configure `baseMapId`
Nov 18, 2020
6001822
Show some items in workbench on load.
na9da Nov 19, 2020
4ff6677
Merge branch 'next' of github.com:terriajs/geoglam-nm into next
na9da Nov 19, 2020
30db47d
Show some items as closed in workbench.
na9da Nov 19, 2020
fce4cd7
Add workbench items.
na9da Nov 27, 2020
3a5ca95
Remove invalid traits.
na9da Nov 27, 2020
73231d6
fix gsky.nci.org.au legends and dateFormat
nf-s Feb 16, 2021
f45ecf3
Merge pull request #110 from TerriaJS/next-prerelease
nf-s Feb 16, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ wwwroot/privateconfig.json
deploy/packages/
deploy/work/
packages/
pancake/
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
language: node_js
node_js:
- '8'
- '10'
- '14'
install:
- npm ci
script:
- gulp lint release
env:
- NODE_OPTIONS=--max_old_space_size=2048
- NODE_OPTIONS=--max_old_space_size=4096
11 changes: 11 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ Change Log

### 2019-09-17
* Fix manifest.json start_url
### MobX Development

* Fix manifest.json start_url
* Move About & Related Maps to left hand side
* Default to console analytics in development
* Allow translation overrides via gulp
* Re-enabled disclaimer via newly ported disclaimer component
* Re-enabled measure tool
* Development builds sped up by 3~20x - ts-loader is now optional & TypeScript being transpiled by babel-loader, keeping type check safety on a separate thread
* Added default help content & `languageOverrides.json` for i18n
* Add back updateApplicationOnMessageFromParentWindow

### Next Release

Expand Down
76 changes: 62 additions & 14 deletions buildprocess/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function(devMode, hot) {
sourcePrefix: '', // to avoid breaking multi-line string literals by inserting extra tabs.
globalObject: '(self || window)' // to avoid breaking in web worker (https://github.com/webpack/webpack/issues/6642)
},
devtool: devMode ? 'cheap-inline-source-map' : 'source-map',
devtool: devMode ? 'eval-cheap-module-source-map' : 'source-map',
module: {
rules: [
{
Expand All @@ -26,22 +26,60 @@ module.exports = function(devMode, hot) {
loader: 'raw-loader'
},
{
test: /\.(js|jsx)$/,
test: /\.(ts|js)x?$/,
include: [
path.resolve(__dirname, '..', 'index.js'),
path.resolve(__dirname, '..', 'entry.js'),
path.resolve(__dirname, '..', 'lib')

],
loader: 'babel-loader',
options: {
sourceMap: false, // generated sourcemaps are currently bad, see https://phabricator.babeljs.io/T7257
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: [
'babel-plugin-jsx-control-statements',
'@babel/plugin-transform-modules-commonjs'
]
}
use: [
{
// Replace Babel's super.property getter with one that is MobX aware.
loader: require.resolve('string-replace-loader'),
options: {
search: 'function _get\\(target, property, receiver\\).*',
replace: 'var _get = require(\'terriajs/lib/Core/superGet\').default;',
flags: 'g'
}
},
{
loader: 'babel-loader',
options: {
cacheDirectory: true,
presets: [
[
'@babel/preset-env',
{
corejs: 3,
useBuiltIns: "usage"
}
],
'@babel/preset-react',
['@babel/typescript', {allowNamespaces: true}]
],
plugins: [
'babel-plugin-jsx-control-statements',
'@babel/plugin-transform-modules-commonjs',
["@babel/plugin-proposal-decorators", { "legacy": true }],
'@babel/proposal-class-properties',
'@babel/proposal-object-rest-spread',
'babel-plugin-styled-components',
require.resolve('@babel/plugin-syntax-dynamic-import')
]
}
},
// Re-enable this if we need to observe any differences in the
// transpilation via ts-loader, & babel's stripping of types,
// or if TypeScript has newer features that babel hasn't
// caught up with
// {
// loader: require.resolve('ts-loader'),
// options: {
// transpileOnly: true
// // configFile: path.resolve(__dirname, '..', 'node_modules', 'terriajs', 'tsconfig.json')
// }
// }
]
},
{
test: /\.(png|jpg|svg|gif)$/,
Expand Down Expand Up @@ -79,7 +117,12 @@ module.exports = function(devMode, hot) {
importLoaders: 2
}
},
'resolve-url-loader?sourceMap',
{
loader: 'resolve-url-loader',
options: {
sourceMap: false
}
},
'sass-loader?sourceMap'
] : [
MiniCssExtractPlugin.loader,
Expand All @@ -93,7 +136,12 @@ module.exports = function(devMode, hot) {
importLoaders: 2
}
},
'resolve-url-loader?sourceMap',
{
loader: 'resolve-url-loader',
options: {
sourceMap: false
}
},
'sass-loader?sourceMap'
]
}
Expand Down
1 change: 0 additions & 1 deletion devserverconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"port": 3001,
"proxyPostSizeLimit": "5mb",
"allowProxyFor": [
"130.56.242.7",
"arcgis.com",
Expand Down
37 changes: 20 additions & 17 deletions entry.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
const globeGif = require('./lib/Styles/globe.gif');
const polyfill = require("terriajs/lib/Core/polyfill");

require('./lib/Styles/loader.css');

function loadMainScript() {
// load the main chunk
return new Promise((resolve, reject) => {
require.ensure(['terriajs/lib/Core/prerequisites'], function(require) {
require('terriajs/lib/Core/prerequisites');
require.ensure(['./index'], function(require) {
resolve(require('./index'));
}, function(error) {
reject(error);
}, 'index');
resolve(require('./index'));
}, reject, 'index');
}, reject, 'index');
});
}

Expand All @@ -23,24 +26,24 @@ function createLoader() {
loaderGrabber.classList.add('loader-ui-grabber');
const loaderRight = document.createElement('div');
loaderRight.classList.add("loader-ui-right");
loaderRight.append(loaderGif);
loaderRight.appendChild(loaderGif);

loaderDiv.append(loaderLeft);
loaderDiv.append(loaderRight);
loaderDiv.append(loaderGrabber);
loaderDiv.appendChild(loaderLeft);
loaderDiv.appendChild(loaderRight);
loaderDiv.appendChild(loaderGrabber);
loaderDiv.style.backgroundColor ='#383F4D';
document.body.appendChild(loaderDiv);

loadMainScript().catch(() => {
// Ignore errors and try to show the map anyway
}).then(() => {
loaderDiv.classList.add('loader-ui-hide');
setTimeout(()=> {
document.body.removeChild(loaderDiv);
}, 2000);
polyfill(function() {
loadMainScript().catch(() => {
// Ignore errors and try to show the map anyway
}).then(() => {
loaderDiv.classList.add('loader-ui-hide');
setTimeout(()=> {
document.body.removeChild(loaderDiv);
}, 2000);
});
});
}

createLoader();


12 changes: 11 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,16 @@ gulp.task('render-datasource-templates', function(done) {
var ejs = require('ejs');
var JSON5 = require('json5');
var templateDir = 'datasources';

// until https://github.com/TerriaJS/terriajs/pull/4227 is ready,
// merge in translation overrides via this task
var json5 = require('json5');
var translationFromLibPath = path.join(getPackageRoot('terriajs'), 'lib', 'Language', 'en', 'translation.json');
var translationFromLib = json5.parse(fs.readFileSync(translationFromLibPath, 'utf8')) || {};
var translationFromMap = json5.parse(fs.readFileSync(path.resolve(__dirname, 'lib', 'Language', 'en', 'translation.json'), 'utf8')) || {};
var translation = {...translationFromLib, ...translationFromMap};
fs.writeFileSync(translationFromLibPath, JSON.stringify(translation, null, 2));

try {
fs.accessSync(templateDir);
} catch (e) {
Expand Down Expand Up @@ -284,7 +294,7 @@ gulp.task('render-datasource-templates', function(done) {
});

gulp.task('watch-datasource-templates', gulp.series('render-datasource-templates', function watchDatasourceTemplates() {
return gulp.watch(['datasources/**/*.ejs','datasources/*.json'], watchOptions, gulp.series('render-datasource-templates'));
return gulp.watch(['lib/Language/**/*.json', 'datasources/**/*.ejs','datasources/*.json'], watchOptions, gulp.series('render-datasource-templates'));
}));

gulp.task('sync-terriajs-dependencies', function(done) {
Expand Down
Loading