@oniti/quasar-app-extension-vlank-auth 3.2.11 → 3.2.13

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/README.md CHANGED
@@ -154,6 +154,7 @@ The following keys are not prompted during the installation process, but can be
154
154
  | Key | Purpose |
155
155
  | --- | ------- |
156
156
  | `disableLostPassword` | Disable the "lost password" button |
157
+ | `hideBottomTextLogo` | Hide the "text logo" at the bottom of pages |
157
158
 
158
159
  ### TODO
159
160
  - add "rightOperator" (AND/OR)?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oniti/quasar-app-extension-vlank-auth",
3
- "version": "3.2.11",
3
+ "version": "3.2.13",
4
4
  "description": "Authentification",
5
5
  "author": "François BOUYER <francois@oniti.fr>",
6
6
  "license": "MIT",
@@ -53,7 +53,7 @@
53
53
  label="Mot de passe oublié ?"
54
54
  v-if="$q.config.onitiVlankAuth.disableLostPassword !== true"
55
55
  />
56
- <div v-if="getLogoBottomImage()" class="text-logo">
56
+ <div v-if="$q.config.onitiVlankAuth.hideBottomTextLogo !== true" class="text-logo">
57
57
  <a href="https://www.oniti.fr/"><img alt="Oniti.fr" :src="getLogoBottomImage()" /></a>
58
58
  </div>
59
59
  </q-card>
@@ -64,11 +64,9 @@
64
64
  import { ref, onMounted, computed, watch, inject } from 'vue'
65
65
  import { useStore } from 'vuex'
66
66
  import { useQuasar } from 'quasar'
67
- import { useRouter } from 'vue-router'
68
67
 
69
68
  const store = useStore()
70
69
  const $q = useQuasar()
71
- const $router = useRouter()
72
70
  const $auth = inject('vlank-auth')
73
71
 
74
72
  const isPwd = ref(true)
@@ -95,7 +93,10 @@ const getLogoImage = function () {
95
93
 
96
94
 
97
95
  const getLogoBottomImage = function () {
98
- return require('vlank-auth-logo-text') ? require('vlank-auth-logo-text') : null
96
+ if ($q.config.onitiVlankAuth.hideBottomTextLogo !== true)
97
+ {
98
+ return require('vlank-auth-logo-text')
99
+ }
99
100
  }
100
101
 
101
102
 
@@ -32,7 +32,7 @@
32
32
  label="Retour à l'écran de connexion"
33
33
  @click="onClickBackLogin"
34
34
  />
35
- <div v-if="getLogoBottomImage()" class="text-logo">
35
+ <div v-if="$q.config.onitiVlankAuth.hideBottomTextLogo !== true" class="text-logo">
36
36
  <a href="https://www.oniti.fr/"><img alt="Oniti.fr" :src="getLogoBottomImage()" /></a>
37
37
  </div>
38
38
  </q-card>
@@ -42,9 +42,11 @@
42
42
  <script setup>
43
43
  import { ref, inject } from 'vue'
44
44
  import { useRouter } from 'vue-router'
45
+ import { useQuasar } from 'quasar'
45
46
 
46
47
  const $auth = inject('vlank-auth')
47
48
  const $router = useRouter()
49
+ const $q = useQuasar()
48
50
 
49
51
  const login = ref(null)
50
52
 
@@ -61,7 +63,10 @@ const getLogoImage = function () {
61
63
  }
62
64
 
63
65
  const getLogoBottomImage = function () {
64
- return require('vlank-auth-logo-text') ? require('vlank-auth-logo-text') : null
66
+ if ($q.config.onitiVlankAuth.hideBottomTextLogo !== true)
67
+ {
68
+ return require('vlank-auth-logo-text')
69
+ }
65
70
  }
66
71
 
67
72
  const onClickBackLogin = function () {
@@ -54,7 +54,7 @@
54
54
  unelevated
55
55
  @click="submitPassword"
56
56
  />
57
- <div v-if="getLogoBottomImage()" class="text-logo">
57
+ <div v-if="$q.config.onitiVlankAuth.hideBottomTextLogo !== true" class="text-logo">
58
58
  <a href="https://www.oniti.fr/"><img alt="Oniti.fr" :src="getLogoBottomImage()" /></a>
59
59
  </div>
60
60
  </q-card>
@@ -98,7 +98,10 @@ const getLogoImage = function () {
98
98
  }
99
99
 
100
100
  const getLogoBottomImage = function () {
101
- return require('vlank-auth-logo-text') ? require('vlank-auth-logo-text') : null
101
+ if ($q.config.onitiVlankAuth.hideBottomTextLogo !== true)
102
+ {
103
+ return require('vlank-auth-logo-text')
104
+ }
102
105
  }
103
106
 
104
107
  watch(has_check, (newValue, oldValue) => {