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

feat(app) : pwa #625

Merged
merged 65 commits into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
a1db725
feat-fix(Docs) add storedqueries mffp exemple doc - fix layer propert…
May 17, 2021
26c8021
fix(ogc-filter docs): fix seletorType attribute (#614)
PhilippeLafreniere18 May 17, 2021
ea9a1ee
fix(welcomewindow): trigger the welcome window if no auth url defined…
pelord May 17, 2021
bbc7938
fix(mobile scroll): fix mobile scroll problem (toolbar and search set…
PhilippeLafreniere18 May 17, 2021
8537078
feat(igo2-lib): upgrade to 1.7.2
mbarbeau May 17, 2021
6df80a9
1.7.2
mbarbeau May 17, 2021
b31d737
feat(app) : pwa
olivierSaintCyr May 17, 2021
ee1a1f1
fix(app): pwa icons
olivierSaintCyr May 18, 2021
06fb048
fix(app): pwa icons
olivierSaintCyr May 18, 2021
7e03c3e
refactor(pwa): change icon size
pelord May 18, 2021
6b1376e
wip
pelord May 18, 2021
8b115c8
feat(pwa): installPrompt
olivierSaintCyr May 18, 2021
a99151e
Merge tag '1.7.2' into pwa
pelord May 19, 2021
ebf5028
fix(pwa): offline
olivierSaintCyr May 25, 2021
c5f2285
feat(demo): github build is now a pwa
pelord May 25, 2021
f84b944
Merge remote-tracking branch 'origin/next' into pwa
pelord May 28, 2021
8617d26
Pwa (#641)
pelord Jun 14, 2021
aff4f8f
lint
pelord Jun 15, 2021
ab0af11
lint
pelord Jun 17, 2021
1fd9989
Merge remote-tracking branch 'origin/master' into pwa
pelord Jul 15, 2021
7c99a59
wip
pelord Jul 23, 2021
6124f8e
wip
pelord Aug 16, 2021
2e4544a
Merge remote-tracking branch 'origin/next' into pwa
pelord Aug 23, 2021
a1049aa
lint
pelord Aug 23, 2021
c409243
wip
pelord Aug 23, 2021
ae7fb04
Merge tag '1.9.3' into pwa
pelord Oct 26, 2021
2862812
wip
pelord Oct 26, 2021
2a76f1e
wip
pelord Oct 26, 2021
2c47ce7
feat(app): validate to inject translation to initialize app.
pelord Nov 3, 2021
5c5948f
Merge remote-tracking branch 'origin/next' into pwa
pelord Dec 8, 2021
f9bbe17
Merge tag '1.10.0' into pwa
pelord Dec 17, 2021
97f0d6f
wip
pelord Dec 17, 2021
fd4fc20
merge origin/next
pelord Feb 17, 2022
6359377
wip
pelord Feb 17, 2022
0fedc50
wip
pelord Feb 17, 2022
52866ad
wip
pelord Feb 17, 2022
e1623f0
wip
pelord Feb 17, 2022
11fb850
wip
pelord Feb 17, 2022
1930498
wip
pelord Feb 17, 2022
65f2210
wip
pelord Feb 17, 2022
c646403
wip
pelord Feb 17, 2022
06297bd
wip
pelord Feb 18, 2022
119a599
Merge remote-tracking branch 'origin/next' into pwa
pelord Mar 25, 2022
f0f3e23
wip
pelord Mar 25, 2022
6e92c46
wip
pelord Mar 25, 2022
b0553bb
wip
pelord Mar 25, 2022
fdfa1b5
Merge remote-tracking branch 'origin/next' into pwa
pelord Apr 27, 2022
cd653e5
chore(app): define a app_initializer for deps injection.
pelord Apr 27, 2022
f347a16
app(config): define properties to promote and download data for pwa apps
pelord Apr 27, 2022
d417af4
wip
pelord Apr 27, 2022
9a8d602
refactor(pwa): remove analytics from pwa-service
pelord May 2, 2022
9ab00a5
i18n(pwa): minor changes
pelord May 2, 2022
dccab0d
Merge tag '1.12.1' into pwa
pelord Sep 8, 2022
3f2af98
Merge remote-tracking branch 'origin/next' into pwa
pelord Sep 8, 2022
07f580f
merge
Oct 24, 2022
e63cdf3
wip
pelord Oct 26, 2022
4cf79db
chore(package): update angular service-worker
pelord Oct 26, 2022
a75d8e6
refactor(pwa): wip
pelord Oct 26, 2022
0b414e3
wip
pelord Nov 17, 2022
b4003bf
Merge tag '1.13.3' into pwa
pelord Nov 17, 2022
8d59410
wip
pelord Nov 17, 2022
fdad914
wip
pelord Nov 17, 2022
a9f396a
wip
Nov 28, 2022
86ad3f6
refactor(build): build environnement
Nov 30, 2022
7dacdf7
chore(test): remove complex test for pwa services
Dec 1, 2022
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
41 changes: 36 additions & 5 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"glob": "**/*",
"input": "./node_modules/@igo2/geo/assets/",
"output": "./assets/igo2/geo/"
}
},
"src/manifest.webmanifest"
],
"styles": ["src/styles.scss"],
"scripts": [],
Expand Down Expand Up @@ -124,7 +125,8 @@
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": false
"buildOptimizer": false,
"serviceWorker": false
},
"developpement": {
"buildOptimizer": false,
Expand Down Expand Up @@ -154,7 +156,32 @@
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": false
"buildOptimizer": false,
"serviceWorker": false
},
"pwa": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "12kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.pwa.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": false,
"serviceWorker": true,
"ngswConfigPath": "ngsw-config.json"
}
}
},
Expand Down Expand Up @@ -191,14 +218,18 @@
"karmaConfig": "src/karma.conf.js",
"styles": ["src/styles.scss"],
"scripts": [],
"assets": [
"src/favicon.ico",
"src/assets",
"src/manifest.webmanifest"
],
"stylePreprocessorOptions": {
"includePaths": [
"src/style/partial",
"src/app/pages/portal",
"node_modules"
]
},
"assets": ["src/favicon.ico", "src/assets"]
}
}
},
"lint": {
Expand Down
12 changes: 9 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/*jshint esversion: 6 */
var gulp = require('gulp');
const gulp = require('gulp');
const bump = require('gulp-bump');
const package = require('./package.json')

gulp.task('copyLocaleFromLib', done => {
gulp
Expand All @@ -13,5 +15,9 @@ gulp.task('watch:locale', function () {
gulp.watch('./node_modules/@igo2/core/locale/*.json', gulp.series('copyLocaleFromLib'));
});



gulp.task('bumpPwaVersionDev', done => {
gulp.src(['./ngsw-config.json'])
.pipe(bump({ type: 'prerelease' }))
.pipe(gulp.dest('./'));
done();
});
56 changes: 56 additions & 0 deletions ngsw-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
"index": "/index.html",
"appData": {
"changelog": "Initial version",
"version": "1.13.4"
},
"assetGroups": [
{
"name": "data",
"installMode": "prefetch",
"updateMode": "prefetch",
"resources": {
"files": [
"/data/**"
]
}
},
{
"name": "contexts",
"installMode": "prefetch",
"updateMode": "prefetch",
"resources": {
"files": [
"/contexts/**"
]
}
},
{
"name": "app",
"installMode": "prefetch",
"updateMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html",
"/manifest.webmanifest",
"/*.css",
"/*.js",
"/locale/**",
"/config/**"
]
}
}, {
"name": "assets",
"installMode": "prefetch",
"updateMode": "prefetch",
"resources": {
"files": [
"/assets/**",
"/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"
]
}
}
]
}
Loading