@d-mok/quasar-app-extension-quasar-axe 4.1.2 → 4.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-mok/quasar-app-extension-quasar-axe",
3
- "version": "4.1.2",
3
+ "version": "4.1.5",
4
4
  "description": "A Quasar App Extension",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  function extendQuasarConf(conf, prompts) {
2
- for (let b of ['AutoRoute', 'AutoReg', 'Interceptor', 'SetPrimaryColor'])
2
+ for (let b of ['AutoRoute', 'AutoReg', 'Interceptor'])
3
3
  conf.boot.unshift(`axe/${b}`)
4
4
  // console.log('[QuasarAxe] Config pushed Boots')
5
5
  conf.boot.unshift('axe/LoadStart')
@@ -80,7 +80,8 @@ function castBasicValue(
80
80
  if (val === null) return undefined
81
81
  if (val === 'true') return true
82
82
  if (val === 'false') return false
83
- if (val !== '' && !isNaN(Number(val))) return Number(val)
83
+ if (val !== '' && !/[a-z]/i.test(val) && !isNaN(Number(val)))
84
+ return Number(val)
84
85
  return val
85
86
  }
86
87
 
@@ -1,14 +0,0 @@
1
- import { boot } from 'quasar/wrappers'
2
- import { setCssVar } from 'quasar'
3
-
4
- console.log('[QuasarAxe] Run Boot SetPrimaryColor')
5
-
6
- export default boot(({ app }) => {
7
- if (process.env.PRIMARY_COLOR) {
8
- setCssVar('primary', process.env.PRIMARY_COLOR)
9
- setCssVar(
10
- 'positive',
11
- process.env.POSITIVE_COLOR ?? process.env.PRIMARY_COLOR
12
- )
13
- }
14
- })