@tapni/auth 1.0.4 → 1.0.6-3.dev

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 (81) hide show
  1. package/README.md +2 -0
  2. package/dist/.vite/manifest.json +23 -40
  3. package/dist/.well-known/assetlinks.json +10 -12
  4. package/dist/.well-known/microsoft-identity-association.json +5 -5
  5. package/dist/Apps-XNA4_3B4.js +109 -0
  6. package/dist/Billing-Br0-fHed.js +256 -0
  7. package/dist/CustomApp-CrlbYDOm.js +83 -0
  8. package/dist/QR-Bvqb60-E.js +41 -0
  9. package/dist/TapniAuth.es.js +1 -1
  10. package/dist/TapniAuth.umd.js +49 -23
  11. package/dist/{install-BzPu9V_c.js → install-7FOVy8Ol.js} +6328 -4767
  12. package/dist/site.webmanifest +11 -1
  13. package/dist/style.css +1 -1
  14. package/dist/{web-IFGkBi0t.js → web-UrTMimK1.js} +2 -2
  15. package/package.json +65 -55
  16. package/src/.prettierrc.json +16 -0
  17. package/src/App.vue +329 -259
  18. package/src/eslint.config.js +15 -0
  19. package/src/index.js +4 -0
  20. package/src/install.js +9 -10
  21. package/src/main.js +54 -58
  22. package/src/mixins/apple.mixin.js +56 -54
  23. package/src/mixins/auth.mixin.js +3 -2
  24. package/src/mixins/global.mixin.js +3 -3
  25. package/src/mixins/google.mixin.js +53 -54
  26. package/src/mixins/microsoft.mixin.js +2 -8
  27. package/src/mixins/okta.mixin.js +2 -2
  28. package/src/mixins/qr-auth.mixin.js +111 -107
  29. package/src/mixins/saml.mixin.js +82 -45
  30. package/src/router/index.js +6 -6
  31. package/src/routes.js +7 -1
  32. package/src/services/Api.js +56 -58
  33. package/src/services/AuthService.js +13 -9
  34. package/src/services/CompanyService.js +10 -10
  35. package/src/services/DeviceService.js +3 -3
  36. package/src/services/MetadataService.js +10 -0
  37. package/src/services/UserService.js +48 -45
  38. package/src/services/UtilService.js +317 -225
  39. package/src/store/auth.js +485 -549
  40. package/src/store/constants.js +2 -2
  41. package/src/store/event-bus.js +22 -22
  42. package/src/store/locales/cn.js +476 -458
  43. package/src/store/locales/de.js +478 -517
  44. package/src/store/locales/en.js +454 -512
  45. package/src/store/locales/es.js +477 -524
  46. package/src/store/locales/fr.js +477 -516
  47. package/src/store/locales/it.js +477 -514
  48. package/src/store/locales/ja.js +488 -0
  49. package/src/store/locales/kr.js +477 -491
  50. package/src/store/locales/lang.js +51 -43
  51. package/src/store/locales/pt.js +488 -0
  52. package/src/store/locales/sr.js +477 -492
  53. package/src/store/locales/tr.js +477 -487
  54. package/src/store/store.js +6 -6
  55. package/src/views/Account.vue +36 -8
  56. package/src/views/Apps.vue +17 -30
  57. package/src/views/Billing.vue +538 -0
  58. package/src/views/Callback.vue +36 -33
  59. package/src/views/CustomApp.vue +14 -39
  60. package/src/views/General.vue +151 -184
  61. package/src/views/Login.vue +173 -161
  62. package/src/views/Register.vue +2 -12
  63. package/src/views/Reset.vue +132 -135
  64. package/src/views/Security.vue +13 -7
  65. package/src/views/Verify.vue +153 -151
  66. package/src/views/Welcome.vue +85 -71
  67. package/dist/Account-zep_QUuI.js +0 -153
  68. package/dist/Apps-B9XB7Z7q.js +0 -112
  69. package/dist/CustomApp-BzUsyycz.js +0 -112
  70. package/dist/General-DkcdjPYQ.js +0 -477
  71. package/dist/QR-PW6cAG5j.js +0 -41
  72. package/dist/index.css +0 -193
  73. package/dist/web-AXRKjAOB.js +0 -92
  74. package/src/components/DELETE_Language.vue +0 -168
  75. package/src/components/DELETE_LinkIcon.vue +0 -288
  76. package/src/components/DELETE_ModalOverlay.vue +0 -68
  77. package/src/components/DELETE_OTP.vue +0 -105
  78. package/src/components/SSO.vue +0 -126
  79. package/src/components/SSOPick.vue +0 -166
  80. package/src/mixins/DELETE_mfa-auth.mixin.js +0 -53
  81. package/src/mixins/facebook.mixin.js +0 -78
@@ -1,8 +1,8 @@
1
- import { createStore } from 'vuex'
2
- import auth from './auth.js'
1
+ import { createStore } from 'vuex';
2
+ import auth from './auth.js';
3
3
 
4
4
  export default createStore({
5
- modules: {
6
- auth
7
- },
8
- })
5
+ modules: {
6
+ auth
7
+ }
8
+ });
@@ -2,7 +2,7 @@
2
2
  <div class="page-login content-boxed content-boxed-padding center-text" style="margin-top: -1px; overflow: hidden; border: solid 0px #ffffff;">
3
3
  <br>
4
4
  <img v-if="false" :src="account.photo" class="user-photo margin-center" style="max-width: 110px;" alt="">
5
- <h1 class="bold full-top no-bottom center-text">{{ssoLang[appLanguage].welcome_account}}</h1>
5
+ <h1 class="bold full-top no-bottom center-text text-[24px]">{{ssoLang[appLanguage].welcome_account}}</h1>
6
6
  <p class="full-bottom half-top center-text font-16">{{account.email}}</p>
7
7
 
8
8
  <div v-if="display !== 'npm' && false" class="full-top full-bottom">
@@ -79,7 +79,19 @@
79
79
  </div>
80
80
  </div>
81
81
 
82
- <router-link to="/general" class="settingRow">
82
+ <div v-if="isModal" class="settingRow" @click="$emit('update:viewProp', 'AuthGeneral')">
83
+ <div class="firstRow">
84
+ <img
85
+ :src="getIcon('user-black.svg')"
86
+ class="withBackground"
87
+ />
88
+ <h4>{{ssoLang[appLanguage].general }}</h4>
89
+
90
+ <img :src="getIcon('arrow-gray-right.svg')" />
91
+ </div>
92
+ </div>
93
+
94
+ <router-link v-else to="/general" class="settingRow">
83
95
  <div class="firstRow">
84
96
  <img
85
97
  :src="getIcon('user-black.svg')"
@@ -91,7 +103,19 @@
91
103
  </div>
92
104
  </router-link>
93
105
 
94
- <router-link to="/security" class="settingRow">
106
+ <div v-if="isModal" class="settingRow" @click="$emit('update:viewProp', 'AuthSecurity')">
107
+ <div class="firstRow">
108
+ <img
109
+ :src="getIcon('shield-black.svg')"
110
+ class="withBackground"
111
+ />
112
+ <h4>{{ssoLang[appLanguage].security }}</h4>
113
+
114
+ <img :src="getIcon('arrow-gray-right.svg')" />
115
+ </div>
116
+ </div>
117
+
118
+ <router-link v-else to="/security" class="settingRow">
95
119
  <div class="firstRow">
96
120
  <img
97
121
  :src="getIcon('shield-black.svg')"
@@ -103,7 +127,7 @@
103
127
  </div>
104
128
  </router-link>
105
129
 
106
- <router-link to="/apps" class="settingRow">
130
+ <router-link v-if="false" to="/apps" class="settingRow">
107
131
  <div class="firstRow">
108
132
  <img
109
133
  :src="getIcon('apps-black.svg')"
@@ -128,7 +152,7 @@
128
152
  </router-link>
129
153
 
130
154
 
131
- <div class="settingRow" @click="logoutAccount">
155
+ <div v-if="!isModal" class="settingRow" @click="logoutAccount">
132
156
  <div class="firstRow">
133
157
  <img
134
158
  :src="getIcon('logout-red.svg')"
@@ -159,6 +183,12 @@ import { EventBus } from "../store/event-bus.js";
159
183
  import CONSTANTS from "../store/constants.js";
160
184
  export default {
161
185
  mixins: [AuthMixin],
186
+ props: {
187
+ isModal: {
188
+ type: Boolean,
189
+ default: false
190
+ }
191
+ },
162
192
  data () {
163
193
  return {
164
194
  expanded: false,
@@ -174,17 +204,15 @@ export default {
174
204
  if (!this.isLoggedIn) {
175
205
  return this.$router.push('/');
176
206
  }
177
- this.getAccountSettings();
207
+ await this.getAccountSettings();
178
208
  },
179
209
  methods: {
180
210
  continueTo (realm) {
181
- console.log('continue to ' + realm);
182
211
  },
183
212
  addAccount () {
184
213
  this.$router.push('/login');
185
214
  },
186
215
  switchAccount (username) {
187
- console.log('switch', username);
188
216
  },
189
217
  toggleLanguageModal () {
190
218
  EventBus.$emit('toggleSSOLanguageModal')
@@ -7,7 +7,7 @@
7
7
  </a>
8
8
  <div class="subheaderContainer full-top">
9
9
  <!-- Back Button -->
10
- <router-link to="/account" class="button gray-button pointer left-button">
10
+ <router-link v-if="!isModal" to="/account" class="button gray-button pointer left-button">
11
11
  <img
12
12
  :src="getIcon('arrow-gray-right.svg')"
13
13
  height="20"
@@ -29,41 +29,17 @@
29
29
  <div class="full-top">
30
30
  <h3 v-if="false" class="full-top bold small-bottom">{{ssoLang[appLanguage].apps_my}}</h3>
31
31
 
32
- <router-link to="/apps/tapni" class="settingRow">
32
+ <a v-for="app in apps" :key="app.id" :href="app.t_apps_url" target="_blank" class="settingRow half-bottom">
33
33
  <div class="firstRow">
34
34
  <img
35
- :src="getIcon('tapni-logo-small-black.png')"
35
+ :src="getIcon(app.t_apps_icon)"
36
36
  class="withBackground"
37
37
  />
38
- <h4>Tapni</h4>
38
+ <h4>{{ app.t_apps_name }}</h4>
39
39
 
40
40
  <img :src="getIcon('arrow-gray-right.svg')" />
41
41
  </div>
42
- </router-link>
43
-
44
- <router-link to="/apps/mailsign" class="settingRow half-top">
45
- <div class="firstRow">
46
- <img
47
- :src="getIcon('app-logo-mailsign.svg')"
48
- class="withBackground"
49
- />
50
- <h4>MailSign</h4>
51
-
52
- <img :src="getIcon('arrow-gray-right.svg')" />
53
- </div>
54
- </router-link>
55
-
56
- <router-link v-if="false" to="/apps/qrcodetoolkit" class="settingRow half-top">
57
- <div class="firstRow">
58
- <img
59
- :src="getIcon('app-logo-qrcodetoolkit.svg')"
60
- class="withBackground"
61
- />
62
- <h4>QRCode Toolkit</h4>
63
-
64
- <img :src="getIcon('arrow-gray-right.svg')" />
65
- </div>
66
- </router-link>
42
+ </a>
67
43
  </div>
68
44
  </div>
69
45
  </div>
@@ -73,9 +49,10 @@
73
49
  <script>
74
50
  import AuthMixin from "../mixins/auth.mixin";
75
51
  import {EventBus} from "@/store/event-bus.js";
52
+ import MetadataService from "@/services/MetadataService.js";
76
53
 
77
54
  export default {
78
- name: "AuthSecurity",
55
+ name: "AuthApps",
79
56
  mixins: [AuthMixin],
80
57
  props: {
81
58
  payload: {
@@ -86,10 +63,20 @@ export default {
86
63
  data () {
87
64
  return {
88
65
  loading: false,
66
+ apps: []
89
67
  }
90
68
  },
91
69
  async mounted() {
92
70
  if (!this.isLoggedIn) this.$router.push('/login');
71
+
72
+ const response = await MetadataService.getRecords({
73
+ objectId: '6dc545ea-2e2f-4720-b4fe-c5ebdd8af063',
74
+ query: {
75
+ fields: ['t_apps_name', 't_apps_icon', 't_apps_url'],
76
+ relations: []
77
+ }
78
+ })
79
+ this.apps = response.data.records;
93
80
  },
94
81
  methods: {
95
82
  close () {