@tapni/auth 1.0.46 → 1.0.48
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/dist/.vite/manifest.json +26 -14
- package/dist/{Apps-BELm7x4w.js → Apps-BegG2fS6.js} +1 -1
- package/dist/Apps.css +1 -0
- package/dist/{Billing-CAxuCqYV.js → Billing-BprZDMjn.js} +1 -1
- package/dist/Billing.css +1 -0
- package/dist/{CustomApp-D4Bb9pYn.js → CustomApp-0Dutz2af.js} +1 -1
- package/dist/CustomApp.css +1 -0
- package/dist/{QR-DK0NrOqH.js → QR-CVAsg3IH.js} +1 -1
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +15 -14
- package/dist/{install-BqTsNWRS.js → install-CcYfAIms.js} +585 -543
- package/dist/install.css +1 -0
- package/package.json +2 -2
- package/src/App.vue +2 -2
- package/src/services/UserService.js +3 -0
- package/src/views/Account.vue +1 -1
- package/src/views/General.vue +56 -25
- package/src/views/Security.vue +10 -1
- package/dist/style.css +0 -1
package/dist/install.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.app-store-icon[data-v-cb61958b]{box-shadow:0 4px 10px #00000017;border-radius:12px}#codeInput[data-v-7d5cdeb9],#emailInput[data-v-7d5cdeb9]{text-align:center;padding-right:15%;font-size:17px}.firstRow img[data-v-a8c1558d]{width:25px;height:25px;position:absolute;top:50%;right:0;transform:translate(-50%,-50%)}.tapni-auth-general .vue-select{padding:5px 0}.tapni-auth-general .vue-select .dropdown-icon{color:#1d1d1d;width:25px!important;height:25px!important}.tapni-auth-general .vue-select .menu-option:hover{background-color:#d9d9d9}.tapni-auth-general .vue-select .menu-option.focused{background-color:#f4f4f4}.tapni-auth-general .vue-select .menu-option{border-bottom:1px solid #D9D9D9;font-size:15px;color:#151515}.tapni-auth-general .vue-select .menu-option:last-child{border-bottom:none}.tapni-auth-general .vue-select .menu{border-radius:10px;border:none}.tapni-auth-general .vue-select .control.focused{border:none;box-shadow:none}.tapni-auth-general .vue-select .control{min-height:54px!important;background-color:#f4f4f4;border:none;border-radius:10px}.tapni-auth-general .vue-select .menu-option.selected{background-color:#e4e4e4}.tapni-auth-general .vue-select .indicators-container{padding:5px 15px!important}.tapni-auth-general .vue-select .value-container{padding:5px 15px}.tapni-auth-general .vue-select .menu-option{background-color:#f4f4f4}#emailInput[data-v-707a4b16]{text-align:center;padding-right:15%;font-size:17px}html *{font-family:Inter,sans-serif}#bodyId{padding-top:3%;max-width:667px!important;margin:1.5% auto auto;height:95%!important;border-radius:20px}.action-block-top .default-text,.action-block-top .default-text:after{border-radius:50%;width:10em!important;height:10em!important}.action-block-top .default-text{margin:10px auto;font-size:3px;position:relative;text-indent:-9999em;border-left:.5em solid #000000;border-top:.5em solid rgba(0,0,0,.2);border-right:.5em solid rgba(0,0,0,.2);border-bottom:.5em solid rgba(0,0,0,.2);-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:load8 1.1s infinite linear;animation:load8 1.1s infinite linear}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.smartbanner-ios{background:linear-gradient(to bottom,#f4f4f4,#f4f4f4);box-shadow:0 0 #fff;border-bottom:1px solid #dddddd}.smartbanner-icon{border-radius:16px}.smartbanner-ios .smartbanner-button{font-size:13px;padding:9px 0;height:40px;border-radius:13px;background:#f4f4f4;color:#0a99d2;border:none;box-shadow:none;text-transform:uppercase}.snack-body{display:none;border-radius:40px;font-size:15px!important}#errorSnack{background-color:#fee3e3!important;border:2px solid #edd9d9!important;color:#000}#successSnack{background-color:#eff5eb!important;border:2px solid #e3ecd7!important;color:#000}.grecaptcha-badge{visibility:hidden}.header-logo{position:absolute;left:50%;transform:translate(-50%,-50%);margin-top:0;z-index:2}.header-logo-img{height:40px;margin-top:10px}@media (max-width: 768px){#bodyId{margin-top:0;border-radius:0;height:100%!important}.header-logo{margin-top:15px}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tapni/auth",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.48",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/TapniAuth.umd.js",
|
|
6
6
|
"module": "./dist/TapniAuth.es.js",
|
|
@@ -64,4 +64,4 @@
|
|
|
64
64
|
"vite": "^5.4.11",
|
|
65
65
|
"vite-plugin-node-polyfills": "^0.22.0"
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
}
|
package/src/App.vue
CHANGED
|
@@ -17,11 +17,11 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
17
17
|
|
|
18
18
|
<AuthWelcome v-if="initialized && renderView === 'AuthWelcome'" />
|
|
19
19
|
<AuthLogin v-else-if="initialized && renderView === 'AuthLogin'" :isModal="isModal" />
|
|
20
|
-
<AuthGeneral v-else-if="initialized && renderView === 'AuthGeneral'" :isModal="isModal" />
|
|
20
|
+
<AuthGeneral v-else-if="initialized && renderView === 'AuthGeneral'" :isModal="isModal" @update:viewProp="setView" />
|
|
21
21
|
<AuthAccount v-else-if="initialized && renderView === 'AuthAccount'" :isModal="isModal" @update:viewProp="setView" />
|
|
22
22
|
<AuthRegister v-else-if="initialized && renderView === 'AuthRegister'" :isModal="isModal" />
|
|
23
23
|
<AuthVerify v-else-if="initialized && renderView === 'AuthVerify'" :isModal="isModal" />
|
|
24
|
-
<AuthSecurity v-else-if="initialized && renderView === 'AuthSecurity'" :isModal="isModal" :payload="payload" />
|
|
24
|
+
<AuthSecurity v-else-if="initialized && renderView === 'AuthSecurity'" :isModal="isModal" :payload="payload" @update:viewProp="setView" />
|
|
25
25
|
<AuthReset v-else-if="initialized && renderView === 'AuthReset'" />
|
|
26
26
|
<AuthCallback v-else-if="initialized && renderView === 'AuthCallback'" />
|
|
27
27
|
<RouterView v-else-if="display !== 'npm'" />
|
package/src/views/Account.vue
CHANGED
package/src/views/General.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="page-login content-boxed content-boxed-padding">
|
|
2
|
+
<div class="page-login content-boxed content-boxed-padding tapni-auth-general">
|
|
3
3
|
<a v-if="isModal" @click="close" class="color-black pull-right pointer" style="margin-top: 0px; position: absolute; right: -20px; text-align: right;">
|
|
4
4
|
<i class="font-17 color-black">
|
|
5
5
|
<img src="https://cdn.tapni.co/icons/down-arrow.png" class="responsive-image" style="width: 35%;"/>
|
|
@@ -7,7 +7,16 @@
|
|
|
7
7
|
</a>
|
|
8
8
|
<div class="subheaderContainer full-top">
|
|
9
9
|
<!-- Back Button -->
|
|
10
|
-
<
|
|
10
|
+
<div v-if="isModal" class="button gray-button pointer left-button" @click="$emit('update:viewProp', 'AuthAccount')">
|
|
11
|
+
<img
|
|
12
|
+
:src="getIcon('arrow-gray-right.svg')"
|
|
13
|
+
height="20"
|
|
14
|
+
width="20"
|
|
15
|
+
class="btn-icon"
|
|
16
|
+
style="rotate: 180deg;"
|
|
17
|
+
/>
|
|
18
|
+
</div>
|
|
19
|
+
<router-link v-else to="/account" class="button gray-button pointer left-button">
|
|
11
20
|
<img
|
|
12
21
|
:src="getIcon('arrow-gray-right.svg')"
|
|
13
22
|
height="20"
|
|
@@ -48,6 +57,7 @@
|
|
|
48
57
|
{ label: 'Mauritius', value: 'mu' },
|
|
49
58
|
{ label: 'Colombia', value: 'co' },
|
|
50
59
|
{ label: 'Serbia', value: 'sr' },
|
|
60
|
+
{ label: 'Singapore', value: 'sg' },
|
|
51
61
|
{ label: 'China', value: 'cn' },
|
|
52
62
|
]"
|
|
53
63
|
:isClearable="false"
|
|
@@ -90,7 +100,7 @@
|
|
|
90
100
|
|
|
91
101
|
<script>
|
|
92
102
|
import AuthMixin from "../mixins/auth.mixin";
|
|
93
|
-
import
|
|
103
|
+
import UserService from '../services/UserService'
|
|
94
104
|
import to from "await-to-js";
|
|
95
105
|
import {EventBus} from "@/store/event-bus.js";
|
|
96
106
|
import VueSelect from "vue3-select-component";
|
|
@@ -102,6 +112,10 @@ export default {
|
|
|
102
112
|
VueSelect
|
|
103
113
|
},
|
|
104
114
|
props: {
|
|
115
|
+
isModal: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
default: false
|
|
118
|
+
},
|
|
105
119
|
payload: {
|
|
106
120
|
type: Object,
|
|
107
121
|
default: {}
|
|
@@ -121,73 +135,90 @@ export default {
|
|
|
121
135
|
EventBus.$emit('ssoEvent', {name: 'toggleAuthModal', data: true})
|
|
122
136
|
},
|
|
123
137
|
async submitGeneralUpdate () {
|
|
124
|
-
if (this.password.length < 8) return this.errorSnack(this.ssoLang[this.appLanguage].password_8_chars)
|
|
125
|
-
|
|
126
138
|
this.loading = true;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
this.
|
|
132
|
-
|
|
139
|
+
|
|
140
|
+
const data = {
|
|
141
|
+
name: this.account.name,
|
|
142
|
+
lang: this.account.lang,
|
|
143
|
+
billing: this.account.billing ? {
|
|
144
|
+
region: this.account.billing.region
|
|
145
|
+
} : undefined
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const [err, response] = await to(UserService.updateAccount(data));
|
|
149
|
+
|
|
150
|
+
if (err) {
|
|
151
|
+
this.errorHandler(err);
|
|
152
|
+
} else if (response.data.success) {
|
|
153
|
+
this.successSnack(this.ssoLang[this.appLanguage].profile_update_success);
|
|
154
|
+
await this.getAccountSettings();
|
|
133
155
|
}
|
|
156
|
+
|
|
134
157
|
this.loading = false;
|
|
135
158
|
},
|
|
136
159
|
}
|
|
137
160
|
};
|
|
138
161
|
</script>
|
|
139
162
|
|
|
140
|
-
<style
|
|
141
|
-
|
|
163
|
+
<style>
|
|
164
|
+
.tapni-auth-general .vue-select {
|
|
142
165
|
padding: 5px 0;
|
|
143
166
|
}
|
|
144
167
|
|
|
145
|
-
|
|
168
|
+
.tapni-auth-general .vue-select .dropdown-icon {
|
|
146
169
|
color: #1d1d1d;
|
|
147
170
|
width: 25px!important;
|
|
148
171
|
height: 25px!important;
|
|
149
172
|
}
|
|
150
|
-
|
|
173
|
+
|
|
174
|
+
.tapni-auth-general .vue-select .menu-option:hover {
|
|
151
175
|
background-color: #D9D9D9;
|
|
152
176
|
}
|
|
153
|
-
|
|
177
|
+
|
|
178
|
+
.tapni-auth-general .vue-select .menu-option.focused {
|
|
154
179
|
background-color: #f4f4f4;
|
|
155
180
|
}
|
|
156
|
-
|
|
181
|
+
|
|
182
|
+
.tapni-auth-general .vue-select .menu-option {
|
|
157
183
|
border-bottom: 1px solid #D9D9D9;
|
|
158
184
|
font-size: 15px;
|
|
159
185
|
color: #151515;
|
|
160
186
|
}
|
|
161
|
-
|
|
187
|
+
|
|
188
|
+
.tapni-auth-general .vue-select .menu-option:last-child {
|
|
162
189
|
border-bottom: none;
|
|
163
190
|
}
|
|
164
191
|
|
|
165
|
-
|
|
192
|
+
.tapni-auth-general .vue-select .menu {
|
|
166
193
|
border-radius: 10px;
|
|
167
194
|
border: none;
|
|
168
195
|
}
|
|
169
|
-
|
|
196
|
+
|
|
197
|
+
.tapni-auth-general .vue-select .control.focused {
|
|
170
198
|
border: none;
|
|
171
199
|
box-shadow: none;
|
|
172
200
|
}
|
|
173
|
-
|
|
201
|
+
|
|
202
|
+
.tapni-auth-general .vue-select .control {
|
|
174
203
|
min-height: 54px!important;
|
|
175
204
|
background-color: #F4F4F4;
|
|
176
205
|
border: none;
|
|
177
206
|
border-radius: 10px;
|
|
178
207
|
}
|
|
179
208
|
|
|
180
|
-
|
|
209
|
+
.tapni-auth-general .vue-select .menu-option.selected {
|
|
181
210
|
background-color: #E4E4E4;
|
|
182
211
|
}
|
|
183
|
-
|
|
212
|
+
|
|
213
|
+
.tapni-auth-general .vue-select .indicators-container {
|
|
184
214
|
padding: 5px 15px!important
|
|
185
215
|
}
|
|
186
|
-
|
|
216
|
+
|
|
217
|
+
.tapni-auth-general .vue-select .value-container {
|
|
187
218
|
padding: 5px 15px;
|
|
188
219
|
}
|
|
189
220
|
|
|
190
|
-
|
|
221
|
+
.tapni-auth-general .vue-select .menu-option {
|
|
191
222
|
background-color: #f4f4f4;
|
|
192
223
|
}
|
|
193
224
|
</style>
|
package/src/views/Security.vue
CHANGED
|
@@ -7,7 +7,16 @@
|
|
|
7
7
|
</a>
|
|
8
8
|
<div class="subheaderContainer full-top">
|
|
9
9
|
<!-- Back Button -->
|
|
10
|
-
<
|
|
10
|
+
<div v-if="isModal" class="button gray-button pointer left-button" @click="$emit('update:viewProp', 'AuthAccount')">
|
|
11
|
+
<img
|
|
12
|
+
:src="getIcon('arrow-gray-right.svg')"
|
|
13
|
+
height="20"
|
|
14
|
+
width="20"
|
|
15
|
+
class="btn-icon"
|
|
16
|
+
style="rotate: 180deg;"
|
|
17
|
+
/>
|
|
18
|
+
</div>
|
|
19
|
+
<router-link v-else to="/account" class="button gray-button pointer left-button">
|
|
11
20
|
<img
|
|
12
21
|
:src="getIcon('arrow-gray-right.svg')"
|
|
13
22
|
height="20"
|
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.app-store-icon[data-v-cb61958b]{box-shadow:0 4px 10px #00000017;border-radius:12px}#codeInput[data-v-7d5cdeb9],#emailInput[data-v-7d5cdeb9]{text-align:center;padding-right:15%;font-size:17px}.firstRow img[data-v-6037b00e]{width:25px;height:25px;position:absolute;top:50%;right:0;transform:translate(-50%,-50%)}[data-v-9dc93691] .vue-select{padding:5px 0}[data-v-9dc93691] .vue-select .dropdown-icon{color:#1d1d1d;width:25px!important;height:25px!important}[data-v-9dc93691] .vue-select .menu-option:hover{background-color:#d9d9d9}[data-v-9dc93691] .vue-select .menu-option.focused{background-color:#f4f4f4}[data-v-9dc93691] .vue-select .menu-option{border-bottom:1px solid #D9D9D9;font-size:15px;color:#151515}[data-v-9dc93691] .vue-select .menu-option:last-child{border-bottom:none}[data-v-9dc93691] .vue-select .menu{border-radius:10px;border:none}[data-v-9dc93691] .vue-select .control.focused{border:none;box-shadow:none}[data-v-9dc93691] .vue-select .control{min-height:54px!important;background-color:#f4f4f4;border:none;border-radius:10px}[data-v-9dc93691] .vue-select .menu-option.selected{background-color:#e4e4e4}[data-v-9dc93691] .vue-select .indicators-container{padding:5px 15px!important}[data-v-9dc93691] .vue-select .value-container{padding:5px 15px}[data-v-9dc93691] .vue-select .menu-option{background-color:#f4f4f4}#emailInput[data-v-707a4b16]{text-align:center;padding-right:15%;font-size:17px}html *{font-family:Inter,sans-serif}#bodyId{padding-top:3%;max-width:667px!important;margin:1.5% auto auto;height:95%!important;border-radius:20px}.action-block-top .default-text,.action-block-top .default-text:after{border-radius:50%;width:10em!important;height:10em!important}.action-block-top .default-text{margin:10px auto;font-size:3px;position:relative;text-indent:-9999em;border-left:.5em solid #000000;border-top:.5em solid rgba(0,0,0,.2);border-right:.5em solid rgba(0,0,0,.2);border-bottom:.5em solid rgba(0,0,0,.2);-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:load8 1.1s infinite linear;animation:load8 1.1s infinite linear}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.smartbanner-ios{background:linear-gradient(to bottom,#f4f4f4,#f4f4f4);box-shadow:0 0 #fff;border-bottom:1px solid #dddddd}.smartbanner-icon{border-radius:16px}.smartbanner-ios .smartbanner-button{font-size:13px;padding:9px 0;height:40px;border-radius:13px;background:#f4f4f4;color:#0a99d2;border:none;box-shadow:none;text-transform:uppercase}.snack-body{display:none;border-radius:40px;font-size:15px!important}#errorSnack{background-color:#fee3e3!important;border:2px solid #edd9d9!important;color:#000}#successSnack{background-color:#eff5eb!important;border:2px solid #e3ecd7!important;color:#000}.grecaptcha-badge{visibility:hidden}.header-logo{position:absolute;left:50%;transform:translate(-50%,-50%);margin-top:0;z-index:2}.header-logo-img{height:40px;margin-top:10px}@media (max-width: 768px){#bodyId{margin-top:0;border-radius:0;height:100%!important}.header-logo{margin-top:15px}}.withBackground[data-v-2f7f5584],.withBackground[data-v-4d3e1bec],.withBackground[data-v-36b27d1f]{height:50px}
|