@tapni/auth 0.0.170 → 0.0.172
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 +2 -0
- package/dist/.vite/manifest.json +18 -10
- package/dist/.well-known/assetlinks.json +10 -12
- package/dist/.well-known/microsoft-identity-association.json +5 -5
- package/dist/{Account-6F9eRo1R.js → Account-BVGvxZ85.js} +31 -32
- package/dist/{QR-2Izy5Dj4.js → QR-DwjajyG2.js} +3 -3
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +9 -9
- package/dist/blank.html +31 -0
- package/dist/{install-co2F1hxN.js → install-B8fBS6C4.js} +752 -996
- package/dist/site.webmanifest +11 -1
- package/dist/style.css +1 -1
- package/dist/{web-NrPZl3qD.js → web-XbruGdlD.js} +2 -5
- package/package.json +64 -55
- package/src/.prettierrc.json +16 -0
- package/src/App.vue +249 -265
- package/src/components/Language.vue +66 -143
- package/src/components/LinkIcon.vue +174 -225
- package/src/components/ModalOverlay.vue +47 -50
- package/src/components/OTP.vue +64 -94
- package/src/components/SSO.vue +80 -111
- package/src/components/SSOPick.vue +93 -148
- package/src/eslint.config.js +15 -0
- package/src/install.js +9 -10
- package/src/main.js +54 -57
- package/src/mixins/apple.mixin.js +56 -54
- package/src/mixins/auth.mixin.js +21 -74
- package/src/mixins/facebook.mixin.js +67 -66
- package/src/mixins/global.mixin.js +107 -109
- package/src/mixins/google.mixin.js +53 -54
- package/src/mixins/mfa-auth.mixin.js +68 -68
- package/src/mixins/microsoft.mixin.js +67 -75
- package/src/mixins/okta.mixin.js +50 -57
- package/src/mixins/qr-auth.mixin.js +111 -107
- package/src/mixins/saml.mixin.js +97 -48
- package/src/router/index.js +6 -6
- package/src/routes.js +60 -66
- package/src/services/Api.js +55 -57
- package/src/services/AuthService.js +75 -75
- package/src/services/CompanyService.js +10 -10
- package/src/services/DeviceService.js +3 -3
- package/src/services/UserService.js +45 -45
- package/src/services/UtilService.js +256 -218
- package/src/store/auth.js +471 -543
- package/src/store/constants.js +1 -1
- package/src/store/event-bus.js +22 -22
- package/src/store/locales/cn.js +442 -458
- package/src/store/locales/de.js +438 -517
- package/src/store/locales/en.js +449 -510
- package/src/store/locales/es.js +442 -524
- package/src/store/locales/fr.js +442 -516
- package/src/store/locales/it.js +442 -514
- package/src/store/locales/kr.js +442 -491
- package/src/store/locales/lang.js +43 -43
- package/src/store/locales/sr.js +439 -492
- package/src/store/locales/tr.js +436 -487
- package/src/store/store.js +6 -6
- package/src/views/Account.vue +169 -207
- package/src/views/Callback.vue +36 -33
- package/src/views/Login.vue +220 -392
- package/src/views/MFA.vue +89 -103
- package/src/views/QR.vue +25 -28
- package/src/views/Register.vue +201 -205
- package/src/views/Reset.vue +132 -135
- package/src/views/Verify.vue +153 -151
- package/src/views/Welcome.vue +61 -60
- /package/dist/{web-L3jORB19.js → web-AXRKjAOB.js} +0 -0
- /package/dist/{web-5VtGcKeU.js → web-IFGkBi0t.js} +0 -0
- /package/dist/{web-AImUTDQQ.js → web-LIfHmYL2.js} +0 -0
package/src/views/Welcome.vue
CHANGED
|
@@ -1,78 +1,79 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
<div class="page-login content-boxed content-boxed-padding center-text" style="margin-top: -1px; overflow: hidden; border: solid 0px #ffffff">
|
|
3
|
+
<video id="tapniVideo" muted loop playsinline width="350" style="margin: 0 auto; max-width: 100%; margin-top: 63px; overflow: hidden" :autoplay="isNative">
|
|
4
|
+
<source src="https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4" type="video/mp4" />
|
|
5
|
+
</video>
|
|
6
|
+
<h1 class="bold full-top no-bottom center-text">{{ ssoLang[this.appLanguage].welcome }}</h1>
|
|
7
|
+
<p class="full-bottom half-top center-text color-black font-16">{{ ssoLang[this.appLanguage].welcome_p1 }}</p>
|
|
8
|
+
<router-link v-if="false" to="/help" class="button-center button button-90 google-button pointer edit-shadow full-top full-bottom">
|
|
9
|
+
<span> {{ ssoLang[this.appLanguage].how_it_works }}? </span>
|
|
10
|
+
</router-link>
|
|
11
|
+
<div v-if="false" class="decoration decoration-lines-thin full-top"></div>
|
|
12
|
+
<router-link to="register" exact class="button-center button button-90 google-button bg-tapni-grey pointer">
|
|
13
|
+
<span> {{ ssoLang[this.appLanguage].create_account }} </span>
|
|
14
|
+
</router-link>
|
|
15
|
+
<!--
|
|
16
16
|
<button @click="test" class="button-center button button-90 google-button bg-tapni-grey pointer">
|
|
17
17
|
Test
|
|
18
18
|
</button>
|
|
19
19
|
-->
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
<div class="page-login-links center-text">
|
|
21
|
+
<router-link to="/login"
|
|
22
|
+
>{{ ssoLang[this.appLanguage].already_registered }}? <b>{{ ssoLang[this.appLanguage].sign_in }}</b></router-link
|
|
23
|
+
>
|
|
24
|
+
<div class="clear"></div>
|
|
25
|
+
</div>
|
|
26
|
+
<div v-if="!this.isNative" style="display: flex; flex-direction: row; justify-content: space-around; width: 90%; margin: 0 auto; margin-top: 40px">
|
|
27
|
+
<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank"><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width: 55px" /></a>
|
|
28
|
+
<a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank"><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width: 55px" /></a>
|
|
29
|
+
<a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank"><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width: 55px" /></a>
|
|
30
|
+
</div>
|
|
23
31
|
</div>
|
|
24
|
-
<div v-if=(!this.isNative) style="display: flex; flex-direction: row; justify-content: space-around; width: 90%; margin: 0 auto; margin-top: 40px;" >
|
|
25
|
-
<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank"><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px"/></a>
|
|
26
|
-
<a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank"><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px"/></a>
|
|
27
|
-
<a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank"><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px"/></a>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
32
|
</template>
|
|
31
33
|
|
|
32
34
|
<script>
|
|
33
|
-
import AuthMixin from
|
|
34
|
-
import {EventBus} from
|
|
35
|
+
import AuthMixin from '../mixins/auth.mixin';
|
|
36
|
+
import { EventBus } from '../store/event-bus';
|
|
35
37
|
|
|
36
38
|
export default {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
39
|
+
name: 'AuthWelcome',
|
|
40
|
+
mixins: [AuthMixin],
|
|
41
|
+
data() {
|
|
42
|
+
return {
|
|
43
|
+
loading: true
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
async mounted() {
|
|
47
|
+
// Autoplay video - iOS 12 controls fix
|
|
48
|
+
let videoElement = document.getElementById('tapniVideo');
|
|
49
|
+
// Ensure the video is ready to play
|
|
50
|
+
videoElement.addEventListener('canplay', function () {
|
|
51
|
+
// Check if the video element is still in the DOM
|
|
52
|
+
if (document.body.contains(videoElement)) {
|
|
53
|
+
try {
|
|
54
|
+
videoElement.play();
|
|
55
|
+
} catch (error) {
|
|
56
|
+
console.log('Play was interrupted:', error);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
});
|
|
58
60
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
61
|
+
setTimeout(() => {
|
|
62
|
+
if (this.$storex && this.$storex.token) {
|
|
63
|
+
if (import.meta.env.VITE_APP_MODE === 'npm') this.$router.push(this.home);
|
|
64
|
+
else if (import.meta.env.VITE_APP_MODE === 'redirect') location.href = this.home;
|
|
65
|
+
} else {
|
|
66
|
+
EventBus.$emit('ssoEvent', { name: 'setLoading', data: false });
|
|
67
|
+
}
|
|
68
|
+
}, 500);
|
|
69
|
+
},
|
|
70
|
+
methods: {}
|
|
71
|
+
};
|
|
71
72
|
</script>
|
|
72
73
|
|
|
73
74
|
<style scoped>
|
|
74
75
|
.app-store-icon {
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
box-shadow: 0px 4px 10px 0px rgb(0 0 0 / 9%);
|
|
77
|
+
border-radius: 12px;
|
|
77
78
|
}
|
|
78
79
|
</style>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|