@sowell/quasar-app-extension-auth 1.2.1 → 1.2.4
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.
|
@@ -2,8 +2,8 @@ name: npm-publish
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
|
|
6
|
-
-
|
|
5
|
+
tags:
|
|
6
|
+
- '*'
|
|
7
7
|
|
|
8
8
|
jobs:
|
|
9
9
|
npm-publish:
|
|
@@ -11,9 +11,9 @@ jobs:
|
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
steps:
|
|
13
13
|
- name: Checkout repository
|
|
14
|
-
uses: actions/checkout@
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
15
|
- name: Nodejs
|
|
16
|
-
uses: actions/setup-node@
|
|
16
|
+
uses: actions/setup-node@v4
|
|
17
17
|
with:
|
|
18
18
|
node-version: "16"
|
|
19
19
|
cache: yarn
|
|
@@ -21,4 +21,4 @@ jobs:
|
|
|
21
21
|
- name: publish
|
|
22
22
|
run: npm publish --access public
|
|
23
23
|
env:
|
|
24
|
-
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
|
24
|
+
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
package/package.json
CHANGED
|
@@ -190,6 +190,7 @@ import SowellMessage from "../dialogs/Message.vue"
|
|
|
190
190
|
import { useAuth } from "composables/auth"
|
|
191
191
|
import { AxiosError } from "axios"
|
|
192
192
|
import MicrosoftLogo from "../../assets/logo-microsoft.svg"
|
|
193
|
+
import { useQuasar } from "quasar"
|
|
193
194
|
|
|
194
195
|
export default defineComponent({
|
|
195
196
|
name: "Auth",
|
|
@@ -220,6 +221,8 @@ export default defineComponent({
|
|
|
220
221
|
goToOtpValidation
|
|
221
222
|
} = useAuth()
|
|
222
223
|
|
|
224
|
+
const { localStorage } = useQuasar()
|
|
225
|
+
|
|
223
226
|
const handleSubmit = () => {
|
|
224
227
|
onSubmit()
|
|
225
228
|
}
|
|
@@ -257,6 +260,10 @@ export default defineComponent({
|
|
|
257
260
|
|
|
258
261
|
onMounted(() => {
|
|
259
262
|
appVersion.versionNumber = packageInfo.version
|
|
263
|
+
if (localStorage.has("lastUser")) {
|
|
264
|
+
const lastUserEmail = localStorage.getItem("lastUser")
|
|
265
|
+
email.value = lastUserEmail
|
|
266
|
+
}
|
|
260
267
|
})
|
|
261
268
|
|
|
262
269
|
return {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<q-layout>
|
|
3
3
|
<div class="row window-height">
|
|
4
4
|
<div class="col column content-center bgWhite">
|
|
5
|
-
<div class="q-mt-xl">
|
|
5
|
+
<div class="q-mt-xl custom-screen">
|
|
6
6
|
<img src="../../assets/Sowell-logo.svg" style="width: 210px" />
|
|
7
7
|
</div>
|
|
8
8
|
<div class="column col content-center justify-center center">
|
|
@@ -345,4 +345,13 @@ export default defineComponent({
|
|
|
345
345
|
display: none;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
+
@media screen and (max-width: 1366px) and (max-height: 768px) {
|
|
349
|
+
.custom-screen {
|
|
350
|
+
margin-top: 15px;
|
|
351
|
+
margin-bottom: 125px;
|
|
352
|
+
}
|
|
353
|
+
.subtitle {
|
|
354
|
+
margin-bottom: 20px !important;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
348
357
|
</style>
|
package/src/composables/auth.ts
CHANGED
|
@@ -148,6 +148,7 @@ export function useAuth() {
|
|
|
148
148
|
|
|
149
149
|
data.auth.password = encrypt(password.value);
|
|
150
150
|
localStorage.set("credentials",{ ...data.auth, provider: provider })
|
|
151
|
+
localStorage.set("lastUser", email.value)
|
|
151
152
|
}
|
|
152
153
|
push(LOCAL_SUCCESS_REDIRECTION_ROUTE)
|
|
153
154
|
} catch (err) {
|