@tapni/auth 0.0.169 → 0.0.171

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.
Files changed (69) hide show
  1. package/README.md +2 -0
  2. package/dist/.vite/manifest.json +18 -10
  3. package/dist/.well-known/assetlinks.json +10 -12
  4. package/dist/.well-known/microsoft-identity-association.json +5 -5
  5. package/dist/{Account-ja1hZJy5.js → Account-BB71UmF3.js} +31 -32
  6. package/dist/{QR-ybXT1KGe.js → QR-BJnR_0ci.js} +3 -3
  7. package/dist/TapniAuth.es.js +1 -1
  8. package/dist/TapniAuth.umd.js +9 -9
  9. package/dist/blank.html +31 -0
  10. package/dist/{install-4aK3Wz63.js → install-Cx9Gi17U.js} +753 -997
  11. package/dist/site.webmanifest +11 -1
  12. package/dist/style.css +1 -1
  13. package/dist/{web-NrPZl3qD.js → web-XbruGdlD.js} +2 -5
  14. package/package.json +64 -55
  15. package/src/.prettierrc.json +16 -0
  16. package/src/App.vue +249 -265
  17. package/src/components/Language.vue +66 -143
  18. package/src/components/LinkIcon.vue +174 -225
  19. package/src/components/ModalOverlay.vue +47 -50
  20. package/src/components/OTP.vue +64 -94
  21. package/src/components/SSO.vue +80 -111
  22. package/src/components/SSOPick.vue +93 -148
  23. package/src/eslint.config.js +15 -0
  24. package/src/install.js +9 -10
  25. package/src/main.js +54 -57
  26. package/src/mixins/apple.mixin.js +56 -54
  27. package/src/mixins/auth.mixin.js +21 -74
  28. package/src/mixins/facebook.mixin.js +67 -66
  29. package/src/mixins/global.mixin.js +107 -109
  30. package/src/mixins/google.mixin.js +53 -54
  31. package/src/mixins/mfa-auth.mixin.js +68 -68
  32. package/src/mixins/microsoft.mixin.js +67 -75
  33. package/src/mixins/okta.mixin.js +50 -57
  34. package/src/mixins/qr-auth.mixin.js +111 -107
  35. package/src/mixins/saml.mixin.js +97 -48
  36. package/src/router/index.js +6 -6
  37. package/src/routes.js +60 -66
  38. package/src/services/Api.js +55 -57
  39. package/src/services/AuthService.js +75 -75
  40. package/src/services/CompanyService.js +10 -10
  41. package/src/services/DeviceService.js +3 -3
  42. package/src/services/UserService.js +45 -45
  43. package/src/services/UtilService.js +256 -218
  44. package/src/store/auth.js +471 -543
  45. package/src/store/constants.js +1 -1
  46. package/src/store/event-bus.js +22 -22
  47. package/src/store/locales/cn.js +442 -458
  48. package/src/store/locales/de.js +438 -517
  49. package/src/store/locales/en.js +449 -510
  50. package/src/store/locales/es.js +442 -524
  51. package/src/store/locales/fr.js +442 -516
  52. package/src/store/locales/it.js +442 -514
  53. package/src/store/locales/kr.js +442 -491
  54. package/src/store/locales/lang.js +43 -43
  55. package/src/store/locales/sr.js +439 -492
  56. package/src/store/locales/tr.js +436 -487
  57. package/src/store/store.js +6 -6
  58. package/src/views/Account.vue +169 -207
  59. package/src/views/Callback.vue +36 -33
  60. package/src/views/Login.vue +220 -392
  61. package/src/views/MFA.vue +89 -103
  62. package/src/views/QR.vue +25 -28
  63. package/src/views/Register.vue +201 -205
  64. package/src/views/Reset.vue +132 -135
  65. package/src/views/Verify.vue +153 -151
  66. package/src/views/Welcome.vue +61 -60
  67. /package/dist/{web-L3jORB19.js → web-AXRKjAOB.js} +0 -0
  68. /package/dist/{web-5VtGcKeU.js → web-IFGkBi0t.js} +0 -0
  69. /package/dist/{web-AImUTDQQ.js → web-LIfHmYL2.js} +0 -0
@@ -1,78 +1,79 @@
1
1
  <template>
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
- <!--
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
- <div class="page-login-links center-text">
21
- <router-link to="/login">{{ssoLang[this.appLanguage].already_registered}}? <b>{{ssoLang[this.appLanguage].sign_in}}</b></router-link>
22
- <div class="clear"></div>
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 "../mixins/auth.mixin";
34
- import {EventBus} from "../store/event-bus";
35
+ import AuthMixin from '../mixins/auth.mixin';
36
+ import { EventBus } from '../store/event-bus';
35
37
 
36
38
  export default {
37
- name: 'AuthWelcome',
38
- mixins: [AuthMixin],
39
- data () {
40
- return {
41
- loading: true
42
- }
43
- },
44
- async mounted () {
45
- // Autoplay video - iOS 12 controls fix
46
- let videoElement = document.getElementById('tapniVideo');
47
- // Ensure the video is ready to play
48
- videoElement.addEventListener('canplay', function() {
49
- // Check if the video element is still in the DOM
50
- if (document.body.contains(videoElement)) {
51
- try {
52
- videoElement.play()
53
- } catch (error) {
54
- console.log('Play was interrupted:', error);
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
- setTimeout(() => {
60
- if (this.$storex && this.$storex.token) {
61
- if (import.meta.env.VITE_APP_MODE === 'npm') this.$router.push(this.home);
62
- else if (import.meta.env.VITE_APP_MODE === 'redirect') location.href = this.home
63
- } else {
64
- EventBus.$emit('ssoEvent', {name: 'setLoading', data: false})
65
- }
66
- }, 500)
67
- },
68
- methods: {
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
- box-shadow: 0px 4px 10px 0px rgb(0 0 0 / 9%);
76
- border-radius: 12px;
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