From ed480361057fef75f2fda930f2d415e220791276 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 1 Oct 2020 14:27:05 +0000 Subject: [PATCH] checkpoint before reversing changes to attempt to figure out insecure menu / grid link issues --- ayanova/PWA_buildrelease.bat | 11 ++++++ ayanova/buildrelease.bat | 3 +- ayanova/devdocs/todo.txt | 26 ++++++++++++-- ayanova/package.json | 1 + ayanova/public/manifest.json | 2 +- ayanova/src/api/ayanova-version.js | 2 +- ayanova/vue.config.js | 55 +++++++++++++++--------------- 7 files changed, 68 insertions(+), 32 deletions(-) create mode 100644 ayanova/PWA_buildrelease.bat diff --git a/ayanova/PWA_buildrelease.bat b/ayanova/PWA_buildrelease.bat new file mode 100644 index 00000000..3f9ca59f --- /dev/null +++ b/ayanova/PWA_buildrelease.bat @@ -0,0 +1,11 @@ +@echo ************************************************************** +@echo ******************** BUILD CLIENT **************************** +@echo ************************************************************** +rmdir c:\data\code\raven\server\AyaNova\wwwroot /s/q +mkdir c:\data\code\raven\server\AyaNova\wwwroot +cd c:\data\code\raven\docs\8.0\ayanova +mkdocs build +cd c:\data\code\raven-client\ayanova +call npm run build +xcopy c:\data\code\raven-client\ayanova\dist\* C:\data\code\raven\server\AyaNova\wwwroot\ /e +pause \ No newline at end of file diff --git a/ayanova/buildrelease.bat b/ayanova/buildrelease.bat index 3f9ca59f..ac47c191 100644 --- a/ayanova/buildrelease.bat +++ b/ayanova/buildrelease.bat @@ -6,6 +6,7 @@ mkdir c:\data\code\raven\server\AyaNova\wwwroot cd c:\data\code\raven\docs\8.0\ayanova mkdocs build cd c:\data\code\raven-client\ayanova -call npm run build +rem https://stackoverflow.com/questions/52800904/disable-pwa-plugin-in-vue-cli-3 +call npm run buildnopwa xcopy c:\data\code\raven-client\ayanova\dist\* C:\data\code\raven\server\AyaNova\wwwroot\ /e pause \ No newline at end of file diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 5b8e8886..0c168418 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -29,12 +29,31 @@ bugbug: menu won't drop down top right when running ayanova from a local win64 s Turns out it's because it's not https secure connection browsers will trust localhost but not aything else serviceworkers will not work on a non secure, non localhost connection + HOWEVER, it appears now that sw has nothing to do with this at all and it's something else - RESOLUTION + NO RESOLUTION YET Some kind of certificate faking locally on private network server adapt the client to not use a service worker on a private network (bypass pwa stuff) - + + OUTDATED (doesn't appear it's a pwa issue at all): + Don't use pwa at all or have an optional build of it: + https://github.com/vuejs/vue-cli/issues/3830 + https://stackoverflow.com/questions/52800904/disable-pwa-plugin-in-vue-cli-3 + #### CHANGES BETWEEN WORKING (commit 5712 Raven alpha-21 (you sent me link Sept 24 10:10am)) AND FAIL (commit 5739 last) Raven alpha-25 (you sent me link Sept 29 11:11am) + manifest starturl changed from "start_url": "./index.html", to "start_url": "/", + added logo adn footer move code + remove wipe data on change of client version in app.vue code (commented out) + set build to report + 5725 added service worker stuff, modified original sw stuff in registerServiceWorker + app.vue added listener for swUpdated event, could be something there + commented out original wipe data on client update code here + added pwa block to vue.config.js under transpiledependencies + added sw.jw + TRY: reversing 5725 by commenting out + TRY: manifest starturl reversal + TRY: updateexists is still set to true in app.vue by default when it was set that way for testing only! + TRY: made showrefreshui async in 5727 @@ -133,6 +152,9 @@ todo: chunk-vendors has fa-brands in it which is fucking huge, what else is in t This could be a big breaking change so need to do it carefully and all at once as it's own project Definitely need to do though, it will save a lot of size to just include the actual icons I'm using which is a handful + GUIDANCE + See c:\temp\mytest project which uses the correct lib + https://github.com/FortAwesome/vue-fontawesome#learn-about-our-new-svg-implementation todo: decimal-control and currency-control: Fix currency and decimal input controls since after vue-currency update latest version get error ".$ci is undefined" when open a form with them on it diff --git a/ayanova/package.json b/ayanova/package.json index 0a45f7ce..77657f27 100644 --- a/ayanova/package.json +++ b/ayanova/package.json @@ -5,6 +5,7 @@ "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build --modern --report", + "buildnopwa": "vue-cli-service build --modern --skip-plugins pwa,workbox", "test:unit": "vue-cli-service test:unit", "test:e2e": "vue-cli-service test:e2e", "test:front": "vue-cli-service test:e2e --url http://localhost:8080", diff --git a/ayanova/public/manifest.json b/ayanova/public/manifest.json index 5b070969..df1e9151 100644 --- a/ayanova/public/manifest.json +++ b/ayanova/public/manifest.json @@ -72,4 +72,4 @@ "display": "standalone", "background_color": "#000000", "theme_color": "#4DBA87" -} +} \ No newline at end of file diff --git a/ayanova/src/api/ayanova-version.js b/ayanova/src/api/ayanova-version.js index df8d0a15..e2932e34 100644 --- a/ayanova/src/api/ayanova-version.js +++ b/ayanova/src/api/ayanova-version.js @@ -1,4 +1,4 @@ export default { - version: "8.0.0-alpha.28", + version: "8.0.0-alpha.31", copyright: "© 1999-2020, Ground Zero Tech-Works Inc." }; diff --git a/ayanova/vue.config.js b/ayanova/vue.config.js index 874cd147..79532805 100644 --- a/ayanova/vue.config.js +++ b/ayanova/vue.config.js @@ -1,27 +1,28 @@ -const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin"); -module.exports = { - configureWebpack: { - plugins: [ - new MonacoWebpackPlugin({ - // available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options - //https://github.com/Microsoft/monaco-editor-webpack-plugin - languages: [ - "javascript", - "css", - "html", - "typescript", - "json", - "handlebars" - ] - }) - ] - }, - transpileDependencies: ["vuetify"], - pwa: { - workboxPluginMode: "InjectManifest", - workboxOptions: { - swSrc: "./src/sw.js", - swDest: "service-worker.js" - } - } -}; +const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin"); +module.exports = { + configureWebpack: { + plugins: [ + new MonacoWebpackPlugin({ + // available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options + //https://github.com/Microsoft/monaco-editor-webpack-plugin + languages: [ + "javascript", + "css", + "html", + "typescript", + "json", + "handlebars" + ] + }) + ] + }, + transpileDependencies: ["vuetify"], + pwa: { + name: "AyaNova", + workboxPluginMode: "InjectManifest", + workboxOptions: { + swSrc: "./src/sw.js", + swDest: "service-worker.js" + } + } +};