#228 - manifest disabled forever - even it may work before this commit, still too much troubles to maintain (worker) and test everything.

This commit is contained in:
viliusle 2021-10-23 23:27:23 +03:00
parent 47dbbea3bc
commit c9f93538df
6 changed files with 1379 additions and 2793 deletions

View File

@ -8,7 +8,7 @@
<meta name="keywords" content="photo, image, picture, transparent, layers, free, edit, html5, canvas, javascript, online, photoshop, gimp, effects, sharpen, blur, magic eraser tool, clone tool, rotate, resize, photoshop online, online tools, tilt shift, sprites, keypoints" /> <meta name="keywords" content="photo, image, picture, transparent, layers, free, edit, html5, canvas, javascript, online, photoshop, gimp, effects, sharpen, blur, magic eraser tool, clone tool, rotate, resize, photoshop online, online tools, tilt shift, sprites, keypoints" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0" />
<link rel="icon" sizes="192x192" href="images/favicon.png"> <link rel="icon" sizes="192x192" href="images/favicon.png">
<link rel="manifest" href="dist/manifest.json"> <!-- <link rel="manifest" href="dist/manifest.json"> -->
<!-- Google --> <!-- Google -->
<meta itemprop="name" content="miniPaint" /> <meta itemprop="name" content="miniPaint" />
<meta itemprop="description" content="miniPaint is free online image editor using HTML5. Edit, adjust your images, add effects online in your browser, without installing anything..." /> <meta itemprop="description" content="miniPaint is free online image editor using HTML5. Edit, adjust your images, add effects online in your browser, without installing anything..." />

41
manifest-disabled.json Normal file
View File

@ -0,0 +1,41 @@
{
"name": "miniPaint",
"short_name": "miniPaint",
"start_url": "/",
"display": "standalone",
"orientation": "landscape",
"background_color": "#666d6f",
"description": "miniPaint is free online image editor using HTML5.",
"icons": [
{
"src": "images/manifest/48x48.png",
"sizes": "48x48",
"type": "image/png"
},
{
"src": "images/manifest/72x72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "images/manifest/96x96.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "images/manifest/144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "images/manifest/168x168.png",
"sizes": "168x168",
"type": "image/png"
},
{
"src": "images/manifest/192x192.png",
"sizes": "192x192",
"type": "image/png"
}
]
}

4075
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -31,8 +31,7 @@
"style-loader": "^2.0.0", "style-loader": "^2.0.0",
"webpack": "^5.38.1", "webpack": "^5.38.1",
"webpack-cli": "^4.7.2", "webpack-cli": "^4.7.2",
"webpack-dev-server": "^4.3.1", "webpack-dev-server": "^4.3.1"
"webpack-pwa-manifest": "^4.3.0"
}, },
"dependencies": { "dependencies": {
"@babel/runtime": "^7.14.5", "@babel/runtime": "^7.14.5",

View File

@ -152,13 +152,13 @@ class Base_gui_class {
} }
init_service_worker() { init_service_worker() {
if ('serviceWorker' in navigator) { /*if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./service-worker.js').then(function(reg) { navigator.serviceWorker.register('./service-worker.js').then(function(reg) {
//Successfully registered service worker //Successfully registered service worker
}).catch(function(err) { }).catch(function(err) {
console.warn('Error registering service worker', err); console.warn('Error registering service worker', err);
}); });
} }*/
} }
set_events() { set_events() {

View File

@ -1,6 +1,5 @@
var webpack = require('webpack'); var webpack = require('webpack');
var path = require('path'); var path = require('path');
var WebpackPwaManifest = require('webpack-pwa-manifest');
module.exports = { module.exports = {
entry: [ entry: [
@ -45,50 +44,6 @@ module.exports = {
new webpack.DefinePlugin({ new webpack.DefinePlugin({
VERSION: JSON.stringify(require("./package.json").version) VERSION: JSON.stringify(require("./package.json").version)
}), }),
new WebpackPwaManifest({
name: "miniPaint",
short_name: "miniPaint",
description: "miniPaint is free online image editor using HTML5.",
start_url: "/",
display: "standalone",
orientation: "landscape",
publicPath: './',
background_color: "#666d6f",
filename: "manifest.json",
includeDirectory: true,
icons: [
{
src: path.resolve("images/manifest/48x48.png"),
sizes: "48x48",
type: "image/png"
},
{
src: path.resolve("images/manifest/72x72.png"),
sizes: "72x72",
type: "image/png"
},
{
src: path.resolve("images/manifest/96x96.png"),
sizes: "96x96",
type: "image/png"
},
{
src: path.resolve("images/manifest/144x144.png"),
sizes: "144x144",
type: "image/png"
},
{
src: path.resolve("images/manifest/168x168.png"),
size: "168x168",
type: "image/png"
},
{
src: path.resolve("images/manifest/192x192.png"),
sizes: "192x192",
type: "image/png"
}
]
}),
], ],
devtool: "cheap-module-source-map", devtool: "cheap-module-source-map",
devServer: { devServer: {