@tapni/auth 1.0.4 → 1.0.5
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 +22 -12
- package/dist/{Account-zep_QUuI.js → Account-Cuz87g_8.js} +1 -1
- package/dist/Apps-DMds3Dv-.js +109 -0
- package/dist/Billing-BXlQEuNy.js +113 -0
- package/dist/CustomApp-CLCMXmMO.js +83 -0
- package/dist/{General-DkcdjPYQ.js → General-dW73bMoR.js} +183 -181
- package/dist/{QR-PW6cAG5j.js → QR-D6ZGcPM0.js} +1 -1
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +15 -15
- package/dist/{install-BzPu9V_c.js → install-L-cxSovH.js} +1180 -1143
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +15 -2
- package/src/components/{SSO.vue → DELETE_SSO.vue} +1 -7
- package/src/main.js +0 -1
- package/src/mixins/microsoft.mixin.js +0 -3
- package/src/mixins/okta.mixin.js +1 -1
- package/src/mixins/saml.mixin.js +1 -1
- package/src/routes.js +6 -0
- package/src/services/AuthService.js +6 -0
- package/src/services/MetadataService.js +10 -0
- package/src/store/locales/en.js +2 -1
- package/src/views/Apps.vue +17 -30
- package/src/views/Billing.vue +108 -0
- package/src/views/CustomApp.vue +14 -39
- package/src/views/General.vue +5 -4
- package/src/views/Login.vue +194 -159
- package/src/views/Security.vue +1 -1
- package/dist/Apps-B9XB7Z7q.js +0 -112
- package/dist/CustomApp-BzUsyycz.js +0 -112
- /package/src/components/{SSOPick.vue → DELETE_SSOPick.vue} +0 -0
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.app-store-icon[data-v-7aad6400]{box-shadow:0 4px 10px #00000017;border-radius:12px}#codeInput[data-v-89d98ef3],#emailInput[data-v-89d98ef3]{text-align:center;padding-right:15%;font-size:17px}.firstRow img[data-v-
|
|
1
|
+
.container{padding:10px 0 100px!important;display:flex;flex-direction:column;gap:10px}.settingsCard{background-color:#fff;padding:20px;border-radius:26px;align-items:center}.device{display:flex;align-items:center}h4{margin-left:20px;font-weight:700}.middle{flex:1}.left img{background-color:#f7f8f9;border-radius:20px;padding:10px}.divider{height:1px;background-color:#f0f0f0;margin:20px 0}.moreFooter{display:flex;align-items:center;justify-content:space-between;padding:0 10px}.settingRow{background-color:#f4f4f4;padding:10px 9px;border-radius:15px;cursor:pointer}.settingRow .firstRow,.settingRow .secondRow{display:flex;align-items:center;min-height:35px}.settingRow .firstRow h4{text-align:left;flex:1;margin-left:20px;font-weight:600;margin-bottom:0}.settingRow .secondRow{font-size:8px;margin-top:20px}.settingRow .secondRow p{flex:1;color:#999}.withBackground{background-color:#fff;border-radius:10px;padding:10px;width:50px}.ios-switch{position:relative;width:60px;padding-top:4px;padding-right:4px;margin-left:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.ios-switch-checkbox{display:none}.ios-switch-label{background-color:#e3e3e3;display:block;overflow:initial;cursor:pointer;height:30px;padding:0;line-height:20px;border:1px solid #e3e3e3;border-radius:25px;transition:all .25s ease}.ios-switch-label:before{content:"";display:block;width:30px;margin:0;position:absolute;top:0;bottom:0;right:24px;background-size:15px;background-repeat:no-repeat;background-position:center;border:2px solid #e3e3e3;border-radius:25px;transition:all .25s ease}.ios-switch-checkbox:checked+.ios-switch-label{background-color:#151515}.ios-switch-checkbox:checked+.ios-switch-label,.ios-switch-checkbox:checked+.ios-switch-label:before{border-color:#151515}.ios-switch-checkbox:checked+.ios-switch-label:before{right:-1px}.subheaderContainer{display:flex;align-items:center;position:relative;padding:15px 25px}.subheaderContainer .left-button{width:40px!important;height:40px!important;margin:0;border-radius:50%;background:#f4f4f4;display:flex;align-items:center;justify-content:center;position:absolute;left:20px}.subheaderContainer .button{width:40px!important;height:40px!important;margin:0;border-radius:50%;background:#f4f4f4;display:flex;align-items:center;justify-content:center;position:absolute}.subheaderContainer .button img{top:0!important;margin-right:3px!important}.subheaderContainer .left-button{left:20px}.subheaderContainer .right-button{right:20px}.transition-icon{transition:.5s}.rotate-icon{transform:translate(-50%,-50%) rotate(180deg)!important}.app-store-icon[data-v-7aad6400]{box-shadow:0 4px 10px #00000017;border-radius:12px}#codeInput[data-v-89d98ef3],#emailInput[data-v-89d98ef3]{text-align:center;padding-right:15%;font-size:17px}.firstRow img[data-v-5caa3239]{width:25px;height:25px;position:absolute;top:50%;right:0;transform:translate(-50%,-50%)}#emailInput[data-v-69a9cfa3]{text-align:center;padding-right:15%;font-size:17px}.fade-enter-to[data-v-e5fbde19]{opacity:1}.sso-img[data-v-6ebe2dcb]{margin:2px auto 0;width:35px}input[data-v-6ebe2dcb]{margin:0 auto;height:25px}.sso-img[data-v-767d5ebb]{margin:2px auto 0;width:35px}input[data-v-767d5ebb]{margin:0 auto;height:25px}.link-grid,.user-link-img{width:100%;display:inline-table;position:relative}.link-grid{width:30%;margin:1.6%;padding:1.6%}.link-grid .user-link-img img{border-radius:25%!important}.link-grid .edit-icon{border-radius:20px;right:-3%;top:-3%;position:absolute;z-index:3;max-width:23%;overflow:hidden;min-width:30px}.link-grid .direct-icon{border-radius:20px;left:-3%;top:-3%;position:absolute;z-index:555;max-width:23%;overflow:hidden;min-width:30px}.link-grid .link-text{min-height:20px;margin-top:3px!important;display:block;text-align:center;line-height:normal;overflow-wrap:anywhere}.link-list{width:93%;max-height:67px!important;margin:0 auto;display:flex;border-radius:15px!important;background-color:#fff;border:solid 1px #e8e8e8;position:relative;align-items:center}.link-list .user-link-img{display:inline-block;width:65px;border-radius:25%!important}.link-list .link-text{display:inline-block;padding:18px 0% 17px 10%;font-size:15px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1;text-align:left;border-radius:15px!important}.link-list .edit-icon{border-radius:20px;right:7%;top:30%;position:absolute;z-index:3;width:26px;overflow:hidden}.link-list .switching{width:45px}.link-list .direct-icon{border-radius:20px;left:-2%;top:-13%;position:absolute;z-index:555;width:26px;overflow:hidden}.small{width:22%!important;margin:2% 4% 0%;padding:0%}.small .link-text{margin-top:0!important;font-size:13px}.linkExternal{margin-right:20px;width:20px;display:inline-block!important;height:20px;background:#000;-webkit-mask:url(https://cdn.tapni.co/icons/link-external.svg) no-repeat center;mask:url(https://cdn.tapni.co/icons/link-external.svg) no-repeat center;transform:scale(1.5)}.user-img[data-v-ce677789]{margin:2px auto 0;width:65px}input[data-v-ce677789]{margin:0 auto;height:25px}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}[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}
|
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -70,6 +70,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
70
70
|
</template>
|
|
71
71
|
|
|
72
72
|
<script>
|
|
73
|
+
import "../public/index.css";
|
|
73
74
|
import AuthWelcome from "@/views/Welcome.vue";
|
|
74
75
|
import AuthLogin from "@/views/Login.vue";
|
|
75
76
|
import AuthRegister from "@/views/Register.vue";
|
|
@@ -78,8 +79,8 @@ import AuthSecurity from "@/views/Security.vue";
|
|
|
78
79
|
import AuthReset from "@/views/Reset.vue";
|
|
79
80
|
import AuthCallback from "@/views/Callback.vue";
|
|
80
81
|
import ModalOverlay from "@/components/DELETE_ModalOverlay.vue";
|
|
81
|
-
import SSO from "@/components/
|
|
82
|
-
import SSOPick from "@/components/
|
|
82
|
+
import SSO from "@/components/DELETE_SSO.vue";
|
|
83
|
+
import SSOPick from "@/components/DELETE_SSOPick.vue";
|
|
83
84
|
import {EventBus} from "./store/event-bus.js";
|
|
84
85
|
import AuthMixin from "@/mixins/auth.mixin.js";
|
|
85
86
|
import Language from "@/components/DELETE_Language.vue";
|
|
@@ -319,4 +320,16 @@ html * {
|
|
|
319
320
|
height: 40px;
|
|
320
321
|
margin-top: 10px;
|
|
321
322
|
}
|
|
323
|
+
|
|
324
|
+
@media (max-width: 768px) {
|
|
325
|
+
#bodyId {
|
|
326
|
+
margin-top: 0;
|
|
327
|
+
border-radius: 0;
|
|
328
|
+
height: 100%!important;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.header-logo {
|
|
332
|
+
margin-top: 15px;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
322
335
|
</style>
|
|
@@ -91,18 +91,12 @@ export default {
|
|
|
91
91
|
if (!ssoTypes.length) {
|
|
92
92
|
this.forceClose();
|
|
93
93
|
return this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins);
|
|
94
|
-
} else
|
|
94
|
+
} else {
|
|
95
95
|
if (ssoTypes[0] === "azure")
|
|
96
96
|
this.microsoftLogin("sso", response.sso.azure.sso);
|
|
97
97
|
if (ssoTypes[0] === "okta") this.oktaLogin(response.sso.okta.sso);
|
|
98
98
|
if (ssoTypes[0] === "saml")
|
|
99
99
|
this.samlLogin(response.sso.saml.sso.loginUrl);
|
|
100
|
-
} else {
|
|
101
|
-
this.forceClose();
|
|
102
|
-
EventBus.$emit("toggleSSOPickModal", {
|
|
103
|
-
sso: response.sso,
|
|
104
|
-
email: this.email,
|
|
105
|
-
});
|
|
106
100
|
}
|
|
107
101
|
}
|
|
108
102
|
},
|
package/src/main.js
CHANGED
package/src/mixins/okta.mixin.js
CHANGED
|
@@ -121,7 +121,7 @@ export default {
|
|
|
121
121
|
window.opener.postMessage(postMessageData, location.origin);
|
|
122
122
|
window.close()
|
|
123
123
|
} else {
|
|
124
|
-
if(this.isNative && this.
|
|
124
|
+
if(this.isNative && this.isiOS) await Browser.close();
|
|
125
125
|
EventBus.$emit('ssoEvent', {name: 'setLoading', data: true})
|
|
126
126
|
if (code && clientID && domain) await this.exchangeCode({code, clientID, domain, platform});
|
|
127
127
|
localStorage.removeItem("pkce_code_verifier");
|
package/src/mixins/saml.mixin.js
CHANGED
|
@@ -68,7 +68,7 @@ export default {
|
|
|
68
68
|
window.opener.postMessage(postMessageData, location.origin);
|
|
69
69
|
window.close()
|
|
70
70
|
} else {
|
|
71
|
-
if(this.isNative && this.
|
|
71
|
+
if(this.isNative && this.isiOS) await Browser.close();
|
|
72
72
|
EventBus.$emit('ssoEvent', {name: 'setLoading', data: true})
|
|
73
73
|
if (this.$route.query.code) code = this.$route.query.code
|
|
74
74
|
|
package/src/routes.js
CHANGED
|
@@ -8,6 +8,7 @@ const Callback = () => import("./views/Callback.vue");
|
|
|
8
8
|
const QR = () => import("./views/QR.vue");
|
|
9
9
|
const Security = () => import("./views/Security.vue");
|
|
10
10
|
const Apps = () => import("./views/Apps.vue");
|
|
11
|
+
const Billing = () => import("./views/Billing.vue");
|
|
11
12
|
const CustomApp = () => import("./views/CustomApp.vue");
|
|
12
13
|
const General = () => import("./views/General.vue");
|
|
13
14
|
|
|
@@ -38,6 +39,11 @@ export default [
|
|
|
38
39
|
name: "AuthSecurity",
|
|
39
40
|
component: Security,
|
|
40
41
|
},
|
|
42
|
+
{
|
|
43
|
+
path: "/billing",
|
|
44
|
+
name: "AuthBilling",
|
|
45
|
+
component: Billing,
|
|
46
|
+
},
|
|
41
47
|
{
|
|
42
48
|
path: "/apps",
|
|
43
49
|
name: "AuthApps",
|
|
@@ -78,4 +78,10 @@ export default {
|
|
|
78
78
|
getAccountSettings() {
|
|
79
79
|
return api().get("/users/settings");
|
|
80
80
|
},
|
|
81
|
+
async getRecordById(data) {
|
|
82
|
+
return api().post("/objects/record/" + data.id, data);
|
|
83
|
+
},
|
|
84
|
+
async getRecords(data) {
|
|
85
|
+
return api().post("/objects/records", data);
|
|
86
|
+
}
|
|
81
87
|
}
|
package/src/store/locales/en.js
CHANGED
|
@@ -400,7 +400,7 @@ export default {
|
|
|
400
400
|
update_p3: "Please update the app to the newest version",
|
|
401
401
|
company_domain: "Your company domain",
|
|
402
402
|
search_company_domain: "Search your company domain",
|
|
403
|
-
enter_company_email: "Enter
|
|
403
|
+
enter_company_email: "Enter business email",
|
|
404
404
|
company_not_found: "Company not found",
|
|
405
405
|
ik_company_domain: "I know the company domain",
|
|
406
406
|
idk_company_domain: "I don't know the company domain",
|
|
@@ -523,6 +523,7 @@ export default {
|
|
|
523
523
|
general: "General",
|
|
524
524
|
general_p: "Manage your personal details & other preferences",
|
|
525
525
|
billing: "Billing",
|
|
526
|
+
billing_p: "Manage your subscriptions & payment profiles",
|
|
526
527
|
apps: "Apps",
|
|
527
528
|
apps_p: "View your active apps & explore other",
|
|
528
529
|
apps_my: "My apps",
|
package/src/views/Apps.vue
CHANGED
|
@@ -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
|
-
<
|
|
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(
|
|
35
|
+
:src="getIcon(app.t_apps_icon)"
|
|
36
36
|
class="withBackground"
|
|
37
37
|
/>
|
|
38
|
-
<h4>
|
|
38
|
+
<h4>{{ app.t_apps_name }}</h4>
|
|
39
39
|
|
|
40
40
|
<img :src="getIcon('arrow-gray-right.svg')" />
|
|
41
41
|
</div>
|
|
42
|
-
</
|
|
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: "
|
|
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 () {
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="page-login content-boxed content-boxed-padding">
|
|
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
|
+
<i class="font-17 color-black">
|
|
5
|
+
<img src="https://cdn.tapni.co/icons/down-arrow.png" class="responsive-image" style="width: 35%;"/>
|
|
6
|
+
</i>
|
|
7
|
+
</a>
|
|
8
|
+
<div class="subheaderContainer full-top">
|
|
9
|
+
<!-- Back Button -->
|
|
10
|
+
<router-link v-if="!isModal" to="/account" class="button gray-button pointer left-button">
|
|
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
|
+
</router-link>
|
|
19
|
+
|
|
20
|
+
<!-- Centered Text -->
|
|
21
|
+
<h2 class="center-text" style="flex-grow: 1; text-align: center; margin: 0; font-weight: 600;">
|
|
22
|
+
{{ssoLang[appLanguage].billing }}
|
|
23
|
+
</h2>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div class="container left-text">
|
|
27
|
+
<p class="center-text">{{ssoLang[appLanguage].billing_p }}</p>
|
|
28
|
+
|
|
29
|
+
<div class="full-top">
|
|
30
|
+
<h3 v-if="false" class="full-top bold small-bottom">{{ssoLang[appLanguage].apps_my}}</h3>
|
|
31
|
+
|
|
32
|
+
{{account.billing}}
|
|
33
|
+
|
|
34
|
+
<div v-for="sub in subscriptions" :key="sub.id" class="settingRow half-bottom">
|
|
35
|
+
<div class="firstRow">
|
|
36
|
+
<img
|
|
37
|
+
:src="getIcon(app.t_apps_icon)"
|
|
38
|
+
class="withBackground"
|
|
39
|
+
/>
|
|
40
|
+
<h4>{{ sub.t_subscriptions_name }}</h4>
|
|
41
|
+
|
|
42
|
+
<img :src="getIcon('arrow-gray-right.svg')" />
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
<script>
|
|
52
|
+
import AuthMixin from "../mixins/auth.mixin";
|
|
53
|
+
import {EventBus} from "@/store/event-bus.js";
|
|
54
|
+
import AuthService from "@/services/AuthService.js";
|
|
55
|
+
|
|
56
|
+
export default {
|
|
57
|
+
name: "AuthBilling",
|
|
58
|
+
mixins: [AuthMixin],
|
|
59
|
+
props: {
|
|
60
|
+
payload: {
|
|
61
|
+
type: Object,
|
|
62
|
+
default: {}
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
data () {
|
|
66
|
+
return {
|
|
67
|
+
loading: false,
|
|
68
|
+
subscriptions: []
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
async mounted() {
|
|
72
|
+
if (!this.isLoggedIn) this.$router.push('/login');
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
const response = await AuthService.getRecords({
|
|
76
|
+
objectId: '6dc545ea-2e2f-4720-b4fe-c5ebdd8af066',
|
|
77
|
+
query: {
|
|
78
|
+
where: {
|
|
79
|
+
account: this.account.id,
|
|
80
|
+
},
|
|
81
|
+
fields: ['t_subscriptions_name', 't_subscriptions_desc', 't_subscriptions_type', 't_subscriptions_active', 't_subscriptions_app'],
|
|
82
|
+
relations: {
|
|
83
|
+
t_subscriptions_app: {
|
|
84
|
+
fields: [
|
|
85
|
+
"t_apps_name",
|
|
86
|
+
"t_apps_icon",
|
|
87
|
+
"t_apps_url"
|
|
88
|
+
],
|
|
89
|
+
relations: {},
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
})
|
|
94
|
+
this.subscriptions = response.data.records;
|
|
95
|
+
},
|
|
96
|
+
methods: {
|
|
97
|
+
close () {
|
|
98
|
+
EventBus.$emit('ssoEvent', {name: 'toggleAuthModal', data: true})
|
|
99
|
+
},
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
</script>
|
|
103
|
+
|
|
104
|
+
<style scoped>
|
|
105
|
+
.withBackground {
|
|
106
|
+
height: 50px;
|
|
107
|
+
}
|
|
108
|
+
</style>
|
package/src/views/CustomApp.vue
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
</a>
|
|
8
8
|
<div class="subheaderContainer full-top">
|
|
9
9
|
<!-- Back Button -->
|
|
10
|
-
<router-link to="/
|
|
10
|
+
<router-link v-if="!isModal" to="/apps" class="button gray-button pointer left-button">
|
|
11
11
|
<img
|
|
12
12
|
:src="getIcon('arrow-gray-right.svg')"
|
|
13
13
|
height="20"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
<!-- Centered Text -->
|
|
21
21
|
<h2 class="center-text" style="flex-grow: 1; text-align: center; margin: 0; font-weight: 600;">
|
|
22
|
-
{{
|
|
22
|
+
{{ app.t_apps_name }}
|
|
23
23
|
</h2>
|
|
24
24
|
</div>
|
|
25
25
|
|
|
@@ -27,43 +27,7 @@
|
|
|
27
27
|
<p class="center-text">{{ssoLang[appLanguage].apps_p }}</p>
|
|
28
28
|
|
|
29
29
|
<div class="full-top">
|
|
30
|
-
<h3 v-if="false" class="full-top bold small-bottom">{{ssoLang[appLanguage].apps_my}}</h3>
|
|
31
30
|
|
|
32
|
-
<router-link to="/apps/tapni" class="settingRow">
|
|
33
|
-
<div class="firstRow">
|
|
34
|
-
<img
|
|
35
|
-
:src="getIcon('tapni-logo-small-black.png')"
|
|
36
|
-
class="withBackground"
|
|
37
|
-
/>
|
|
38
|
-
<h4>Tapni</h4>
|
|
39
|
-
|
|
40
|
-
<img :src="getIcon('arrow-gray-right.svg')" />
|
|
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>
|
|
67
31
|
</div>
|
|
68
32
|
</div>
|
|
69
33
|
</div>
|
|
@@ -73,9 +37,10 @@
|
|
|
73
37
|
<script>
|
|
74
38
|
import AuthMixin from "../mixins/auth.mixin";
|
|
75
39
|
import {EventBus} from "@/store/event-bus.js";
|
|
40
|
+
import AuthService from "@/services/AuthService.js";
|
|
76
41
|
|
|
77
42
|
export default {
|
|
78
|
-
name: "
|
|
43
|
+
name: "AuthCustomApp",
|
|
79
44
|
mixins: [AuthMixin],
|
|
80
45
|
props: {
|
|
81
46
|
payload: {
|
|
@@ -86,10 +51,20 @@ export default {
|
|
|
86
51
|
data () {
|
|
87
52
|
return {
|
|
88
53
|
loading: false,
|
|
54
|
+
app: {}
|
|
89
55
|
}
|
|
90
56
|
},
|
|
91
57
|
async mounted() {
|
|
92
58
|
if (!this.isLoggedIn) this.$router.push('/login');
|
|
59
|
+
|
|
60
|
+
const response = await AuthService.getRecordById({
|
|
61
|
+
id: this.$route.params.app,
|
|
62
|
+
query: {
|
|
63
|
+
fields: ['t_apps_name', 't_apps_icon', 't_apps_url'],
|
|
64
|
+
relations: []
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
this.app = response.data.record;
|
|
93
68
|
},
|
|
94
69
|
methods: {
|
|
95
70
|
close () {
|
package/src/views/General.vue
CHANGED
|
@@ -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"
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
<h3 class="full-top bold">{{ssoLang[appLanguage].app_region}}</h3>
|
|
41
|
-
<VueSelect
|
|
42
|
-
v-model="region"
|
|
41
|
+
<VueSelect v-if="account.billing"
|
|
42
|
+
v-model="account.billing.region"
|
|
43
43
|
:options="[
|
|
44
44
|
{ label: 'United States', value: 'us' },
|
|
45
45
|
{ label: 'United Kingdom', value: 'uk' },
|
|
@@ -96,7 +96,7 @@ import {EventBus} from "@/store/event-bus.js";
|
|
|
96
96
|
import VueSelect from "vue3-select-component";
|
|
97
97
|
|
|
98
98
|
export default {
|
|
99
|
-
name: "
|
|
99
|
+
name: "AuthGeneral",
|
|
100
100
|
mixins: [AuthMixin],
|
|
101
101
|
components: {
|
|
102
102
|
VueSelect
|
|
@@ -114,6 +114,7 @@ export default {
|
|
|
114
114
|
},
|
|
115
115
|
async mounted() {
|
|
116
116
|
if (!this.isLoggedIn) this.$router.push('/login');
|
|
117
|
+
if (this.isEmpty(this.account)) this.$router.push('/account');
|
|
117
118
|
},
|
|
118
119
|
methods: {
|
|
119
120
|
close () {
|