checkpoint before reversing changes to attempt to figure out insecure menu / grid link issues
This commit is contained in:
11
ayanova/PWA_buildrelease.bat
Normal file
11
ayanova/PWA_buildrelease.bat
Normal file
@@ -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
|
||||||
@@ -6,6 +6,7 @@ mkdir c:\data\code\raven\server\AyaNova\wwwroot
|
|||||||
cd c:\data\code\raven\docs\8.0\ayanova
|
cd c:\data\code\raven\docs\8.0\ayanova
|
||||||
mkdocs build
|
mkdocs build
|
||||||
cd c:\data\code\raven-client\ayanova
|
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
|
xcopy c:\data\code\raven-client\ayanova\dist\* C:\data\code\raven\server\AyaNova\wwwroot\ /e
|
||||||
pause
|
pause
|
||||||
@@ -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
|
Turns out it's because it's not https secure connection
|
||||||
browsers will trust localhost but not aything else
|
browsers will trust localhost but not aything else
|
||||||
serviceworkers will not work on a non secure, non localhost connection
|
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
|
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)
|
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
|
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
|
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:
|
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
|
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
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"build": "vue-cli-service build --modern --report",
|
"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:unit": "vue-cli-service test:unit",
|
||||||
"test:e2e": "vue-cli-service test:e2e",
|
"test:e2e": "vue-cli-service test:e2e",
|
||||||
"test:front": "vue-cli-service test:e2e --url http://localhost:8080",
|
"test:front": "vue-cli-service test:e2e --url http://localhost:8080",
|
||||||
|
|||||||
@@ -72,4 +72,4 @@
|
|||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"background_color": "#000000",
|
"background_color": "#000000",
|
||||||
"theme_color": "#4DBA87"
|
"theme_color": "#4DBA87"
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
export default {
|
export default {
|
||||||
version: "8.0.0-alpha.28",
|
version: "8.0.0-alpha.31",
|
||||||
copyright: "© 1999-2020, Ground Zero Tech-Works Inc."
|
copyright: "© 1999-2020, Ground Zero Tech-Works Inc."
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,27 +1,28 @@
|
|||||||
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
|
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
|
||||||
module.exports = {
|
module.exports = {
|
||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
plugins: [
|
plugins: [
|
||||||
new MonacoWebpackPlugin({
|
new MonacoWebpackPlugin({
|
||||||
// available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options
|
// available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options
|
||||||
//https://github.com/Microsoft/monaco-editor-webpack-plugin
|
//https://github.com/Microsoft/monaco-editor-webpack-plugin
|
||||||
languages: [
|
languages: [
|
||||||
"javascript",
|
"javascript",
|
||||||
"css",
|
"css",
|
||||||
"html",
|
"html",
|
||||||
"typescript",
|
"typescript",
|
||||||
"json",
|
"json",
|
||||||
"handlebars"
|
"handlebars"
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
transpileDependencies: ["vuetify"],
|
transpileDependencies: ["vuetify"],
|
||||||
pwa: {
|
pwa: {
|
||||||
workboxPluginMode: "InjectManifest",
|
name: "AyaNova",
|
||||||
workboxOptions: {
|
workboxPluginMode: "InjectManifest",
|
||||||
swSrc: "./src/sw.js",
|
workboxOptions: {
|
||||||
swDest: "service-worker.js"
|
swSrc: "./src/sw.js",
|
||||||
}
|
swDest: "service-worker.js"
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user