@tapni/auth 1.0.3 → 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 +106 -0
- package/dist/Account-Cuz87g_8.js +153 -0
- package/dist/Apps-DMds3Dv-.js +109 -0
- package/dist/Billing-BXlQEuNy.js +113 -0
- package/dist/CustomApp-CLCMXmMO.js +83 -0
- package/dist/General-dW73bMoR.js +479 -0
- package/dist/QR-D6ZGcPM0.js +41 -0
- package/dist/TapniAuth.es.js +4 -0
- package/dist/TapniAuth.umd.js +141 -0
- package/dist/install-L-cxSovH.js +18465 -0
- package/dist/style.css +1 -0
- package/dist/web-AXRKjAOB.js +92 -0
- package/dist/web-IFGkBi0t.js +86 -0
- package/dist/web-LIfHmYL2.js +54 -0
- package/dist/web-XbruGdlD.js +121 -0
- 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/assets/Account-CElX1bG1.js +0 -1
- package/dist/assets/Apps-B-GkviQb.css +0 -1
- package/dist/assets/Apps-DH6XpQ6k.js +0 -1
- package/dist/assets/CustomApp-D-PMGrCn.js +0 -1
- package/dist/assets/CustomApp-x1ZBgKin.css +0 -1
- package/dist/assets/General-BD2qnORR.js +0 -1
- package/dist/assets/General-OSR9oXHj.css +0 -1
- package/dist/assets/Inter-ZO3WBJgw.ttf +0 -0
- package/dist/assets/QR-CpmQl6vr.js +0 -1
- package/dist/assets/fontawesome-webfont-CQDK8MU3.ttf +0 -0
- package/dist/assets/fontawesome-webfont-DXgy9qkh.svg +0 -2671
- package/dist/assets/fontawesome-webfont-G5YE5S7X.eot +0 -0
- package/dist/assets/index-CNOQuLc_.css +0 -1
- package/dist/assets/index-DXEfDC45.js +0 -176
- package/dist/assets/web-1uupGAU9.js +0 -5
- package/dist/assets/web-BMHaq5cV.js +0 -1
- package/dist/assets/web-CvQGphDR.js +0 -1
- package/dist/assets/web-DMittTOZ.js +0 -1
- package/dist/assets/web-DhQdITWf.js +0 -1
- package/dist/assets/web-EiIhTtxC.js +0 -1
- package/dist/assets/web-OwpPF4YF.js +0 -1
- package/dist/index.html +0 -36
- /package/src/components/{SSOPick.vue → DELETE_SSOPick.vue} +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_install-L-cxSovH.js": {
|
|
3
|
+
"file": "install-L-cxSovH.js",
|
|
4
|
+
"name": "install",
|
|
5
|
+
"dynamicImports": [
|
|
6
|
+
"src/views/Account.vue",
|
|
7
|
+
"src/views/QR.vue",
|
|
8
|
+
"src/views/Apps.vue",
|
|
9
|
+
"src/views/Billing.vue",
|
|
10
|
+
"src/views/CustomApp.vue",
|
|
11
|
+
"src/views/General.vue",
|
|
12
|
+
"node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
|
|
13
|
+
"node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
|
|
14
|
+
"node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
|
|
15
|
+
"node_modules/@capacitor/preferences/dist/esm/web.js"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js": {
|
|
19
|
+
"file": "web-XbruGdlD.js",
|
|
20
|
+
"name": "web",
|
|
21
|
+
"src": "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
|
|
22
|
+
"isDynamicEntry": true
|
|
23
|
+
},
|
|
24
|
+
"node_modules/@capacitor-community/facebook-login/dist/esm/web.js": {
|
|
25
|
+
"file": "web-AXRKjAOB.js",
|
|
26
|
+
"name": "web",
|
|
27
|
+
"src": "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
|
|
28
|
+
"isDynamicEntry": true
|
|
29
|
+
},
|
|
30
|
+
"node_modules/@capacitor/preferences/dist/esm/web.js": {
|
|
31
|
+
"file": "web-LIfHmYL2.js",
|
|
32
|
+
"name": "web",
|
|
33
|
+
"src": "node_modules/@capacitor/preferences/dist/esm/web.js",
|
|
34
|
+
"isDynamicEntry": true
|
|
35
|
+
},
|
|
36
|
+
"node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js": {
|
|
37
|
+
"file": "web-IFGkBi0t.js",
|
|
38
|
+
"name": "web",
|
|
39
|
+
"src": "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
|
|
40
|
+
"isDynamicEntry": true
|
|
41
|
+
},
|
|
42
|
+
"src/install.js": {
|
|
43
|
+
"file": "TapniAuth.umd.js",
|
|
44
|
+
"name": "install",
|
|
45
|
+
"src": "src/install.js",
|
|
46
|
+
"isEntry": true
|
|
47
|
+
},
|
|
48
|
+
"src/views/Account.vue": {
|
|
49
|
+
"file": "Account-Cuz87g_8.js",
|
|
50
|
+
"name": "Account",
|
|
51
|
+
"src": "src/views/Account.vue",
|
|
52
|
+
"isDynamicEntry": true,
|
|
53
|
+
"imports": [
|
|
54
|
+
"_install-L-cxSovH.js"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"src/views/Apps.vue": {
|
|
58
|
+
"file": "Apps-DMds3Dv-.js",
|
|
59
|
+
"name": "Apps",
|
|
60
|
+
"src": "src/views/Apps.vue",
|
|
61
|
+
"isDynamicEntry": true,
|
|
62
|
+
"imports": [
|
|
63
|
+
"_install-L-cxSovH.js"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"src/views/Billing.vue": {
|
|
67
|
+
"file": "Billing-BXlQEuNy.js",
|
|
68
|
+
"name": "Billing",
|
|
69
|
+
"src": "src/views/Billing.vue",
|
|
70
|
+
"isDynamicEntry": true,
|
|
71
|
+
"imports": [
|
|
72
|
+
"_install-L-cxSovH.js"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"src/views/CustomApp.vue": {
|
|
76
|
+
"file": "CustomApp-CLCMXmMO.js",
|
|
77
|
+
"name": "CustomApp",
|
|
78
|
+
"src": "src/views/CustomApp.vue",
|
|
79
|
+
"isDynamicEntry": true,
|
|
80
|
+
"imports": [
|
|
81
|
+
"_install-L-cxSovH.js"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"src/views/General.vue": {
|
|
85
|
+
"file": "General-dW73bMoR.js",
|
|
86
|
+
"name": "General",
|
|
87
|
+
"src": "src/views/General.vue",
|
|
88
|
+
"isDynamicEntry": true,
|
|
89
|
+
"imports": [
|
|
90
|
+
"_install-L-cxSovH.js"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"src/views/QR.vue": {
|
|
94
|
+
"file": "QR-D6ZGcPM0.js",
|
|
95
|
+
"name": "QR",
|
|
96
|
+
"src": "src/views/QR.vue",
|
|
97
|
+
"isDynamicEntry": true,
|
|
98
|
+
"imports": [
|
|
99
|
+
"_install-L-cxSovH.js"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"style.css": {
|
|
103
|
+
"file": "style.css",
|
|
104
|
+
"src": "style.css"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { _ as g, A as d, C as u, E as h } from "./install-L-cxSovH.js";
|
|
2
|
+
import { resolveComponent as p, openBlock as _, createElementBlock as m, createCommentVNode as n, createElementVNode as o, toDisplayString as t, createVNode as a, withCtx as c } from "vue";
|
|
3
|
+
const f = {
|
|
4
|
+
mixins: [d],
|
|
5
|
+
data() {
|
|
6
|
+
return {
|
|
7
|
+
expanded: !1,
|
|
8
|
+
addAccountReady: !1
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
computed: {
|
|
12
|
+
appVersion() {
|
|
13
|
+
return u.WEB_VERSION;
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
async mounted() {
|
|
17
|
+
if (!this.isLoggedIn)
|
|
18
|
+
return this.$router.push("/");
|
|
19
|
+
this.getAccountSettings();
|
|
20
|
+
},
|
|
21
|
+
methods: {
|
|
22
|
+
continueTo(e) {
|
|
23
|
+
console.log("continue to " + e);
|
|
24
|
+
},
|
|
25
|
+
addAccount() {
|
|
26
|
+
this.$router.push("/login");
|
|
27
|
+
},
|
|
28
|
+
switchAccount(e) {
|
|
29
|
+
console.log("switch", e);
|
|
30
|
+
},
|
|
31
|
+
toggleLanguageModal() {
|
|
32
|
+
h.$emit("toggleSSOLanguageModal");
|
|
33
|
+
},
|
|
34
|
+
logoutAccount() {
|
|
35
|
+
this.logout({ refreshToken: this.refreshTokens[0], sendRequest: !0 });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}, v = {
|
|
39
|
+
class: "page-login content-boxed content-boxed-padding center-text",
|
|
40
|
+
style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
|
|
41
|
+
}, w = /* @__PURE__ */ o("br", null, null, -1), k = { class: "bold full-top no-bottom center-text" }, b = { class: "full-bottom half-top center-text font-16" };
|
|
42
|
+
const L = { class: "container left-text" }, y = { class: "firstRow" }, N = ["src"], R = ["src"], V = { class: "firstRow" }, A = ["src"], E = ["src"], I = { class: "firstRow" }, B = ["src"], S = ["src"], T = { class: "firstRow" }, C = ["src"], $ = ["src"], D = { class: "firstRow" }, M = ["src"], O = { class: "red-text" }, q = ["src"], F = { class: "moreFooter" }, W = {
|
|
43
|
+
class: "app-version",
|
|
44
|
+
style: { "margin-top": "10px" }
|
|
45
|
+
};
|
|
46
|
+
function j(e, r, z, G, H, l) {
|
|
47
|
+
const s = p("router-link");
|
|
48
|
+
return _(), m("div", v, [
|
|
49
|
+
w,
|
|
50
|
+
n("", !0),
|
|
51
|
+
o("h1", k, t(e.ssoLang[e.appLanguage].welcome_account), 1),
|
|
52
|
+
o("p", b, t(e.account.email), 1),
|
|
53
|
+
(e.display, n("", !0)),
|
|
54
|
+
o("div", L, [
|
|
55
|
+
n("", !0),
|
|
56
|
+
a(s, {
|
|
57
|
+
to: "/general",
|
|
58
|
+
class: "settingRow"
|
|
59
|
+
}, {
|
|
60
|
+
default: c(() => [
|
|
61
|
+
o("div", y, [
|
|
62
|
+
o("img", {
|
|
63
|
+
src: e.getIcon("user-black.svg"),
|
|
64
|
+
class: "withBackground"
|
|
65
|
+
}, null, 8, N),
|
|
66
|
+
o("h4", null, t(e.ssoLang[e.appLanguage].general), 1),
|
|
67
|
+
o("img", {
|
|
68
|
+
src: e.getIcon("arrow-gray-right.svg")
|
|
69
|
+
}, null, 8, R)
|
|
70
|
+
])
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
}),
|
|
74
|
+
a(s, {
|
|
75
|
+
to: "/security",
|
|
76
|
+
class: "settingRow"
|
|
77
|
+
}, {
|
|
78
|
+
default: c(() => [
|
|
79
|
+
o("div", V, [
|
|
80
|
+
o("img", {
|
|
81
|
+
src: e.getIcon("shield-black.svg"),
|
|
82
|
+
class: "withBackground"
|
|
83
|
+
}, null, 8, A),
|
|
84
|
+
o("h4", null, t(e.ssoLang[e.appLanguage].security), 1),
|
|
85
|
+
o("img", {
|
|
86
|
+
src: e.getIcon("arrow-gray-right.svg")
|
|
87
|
+
}, null, 8, E)
|
|
88
|
+
])
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
}),
|
|
92
|
+
a(s, {
|
|
93
|
+
to: "/apps",
|
|
94
|
+
class: "settingRow"
|
|
95
|
+
}, {
|
|
96
|
+
default: c(() => [
|
|
97
|
+
o("div", I, [
|
|
98
|
+
o("img", {
|
|
99
|
+
src: e.getIcon("apps-black.svg"),
|
|
100
|
+
class: "withBackground"
|
|
101
|
+
}, null, 8, B),
|
|
102
|
+
o("h4", null, t(e.ssoLang[e.appLanguage].apps), 1),
|
|
103
|
+
o("img", {
|
|
104
|
+
src: e.getIcon("arrow-gray-right.svg")
|
|
105
|
+
}, null, 8, S)
|
|
106
|
+
])
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
}),
|
|
110
|
+
a(s, {
|
|
111
|
+
to: "/billing",
|
|
112
|
+
class: "settingRow"
|
|
113
|
+
}, {
|
|
114
|
+
default: c(() => [
|
|
115
|
+
o("div", T, [
|
|
116
|
+
o("img", {
|
|
117
|
+
src: e.getIcon("billing-card-black.svg"),
|
|
118
|
+
class: "withBackground"
|
|
119
|
+
}, null, 8, C),
|
|
120
|
+
o("h4", null, t(e.ssoLang[e.appLanguage].billing), 1),
|
|
121
|
+
o("img", {
|
|
122
|
+
src: e.getIcon("arrow-gray-right.svg")
|
|
123
|
+
}, null, 8, $)
|
|
124
|
+
])
|
|
125
|
+
]),
|
|
126
|
+
_: 1
|
|
127
|
+
}),
|
|
128
|
+
o("div", {
|
|
129
|
+
class: "settingRow",
|
|
130
|
+
onClick: r[4] || (r[4] = (...i) => l.logoutAccount && l.logoutAccount(...i))
|
|
131
|
+
}, [
|
|
132
|
+
o("div", D, [
|
|
133
|
+
o("img", {
|
|
134
|
+
src: e.getIcon("logout-red.svg"),
|
|
135
|
+
class: "withBackground"
|
|
136
|
+
}, null, 8, M),
|
|
137
|
+
o("h4", O, t(e.ssoLang[e.appLanguage].logout), 1),
|
|
138
|
+
o("img", {
|
|
139
|
+
src: e.getIcon("arrow-gray-right.svg")
|
|
140
|
+
}, null, 8, q)
|
|
141
|
+
])
|
|
142
|
+
]),
|
|
143
|
+
o("div", F, [
|
|
144
|
+
o("p", W, t(e.ssoLang[e.appLanguage].version) + ": " + t(l.appVersion), 1),
|
|
145
|
+
n("", !0)
|
|
146
|
+
])
|
|
147
|
+
])
|
|
148
|
+
]);
|
|
149
|
+
}
|
|
150
|
+
const Q = /* @__PURE__ */ g(f, [["render", j]]);
|
|
151
|
+
export {
|
|
152
|
+
Q as default
|
|
153
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { a as l, _ as g, A as u, E as _ } from "./install-L-cxSovH.js";
|
|
2
|
+
import { resolveComponent as h, openBlock as o, createElementBlock as n, createCommentVNode as a, createElementVNode as e, createBlock as f, withCtx as m, toDisplayString as r, Fragment as b, renderList as y, pushScopeId as v, popScopeId as w } from "vue";
|
|
3
|
+
const k = {
|
|
4
|
+
async getRecordById(t) {
|
|
5
|
+
return l().post("/objects/record/" + t.id, t);
|
|
6
|
+
},
|
|
7
|
+
async getRecords(t) {
|
|
8
|
+
return l().post("/objects/records", t);
|
|
9
|
+
}
|
|
10
|
+
}, I = {
|
|
11
|
+
name: "AuthApps",
|
|
12
|
+
mixins: [u],
|
|
13
|
+
props: {
|
|
14
|
+
payload: {
|
|
15
|
+
type: Object,
|
|
16
|
+
default: {}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
loading: !1,
|
|
22
|
+
apps: []
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
async mounted() {
|
|
26
|
+
this.isLoggedIn || this.$router.push("/login");
|
|
27
|
+
const t = await k.getRecords({
|
|
28
|
+
objectId: "6dc545ea-2e2f-4720-b4fe-c5ebdd8af063",
|
|
29
|
+
query: {
|
|
30
|
+
fields: ["t_apps_name", "t_apps_icon", "t_apps_url"],
|
|
31
|
+
relations: []
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
this.apps = t.data.records;
|
|
35
|
+
},
|
|
36
|
+
methods: {
|
|
37
|
+
close() {
|
|
38
|
+
_.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}, x = (t) => (v("data-v-2f7f5584"), t = t(), w(), t), A = { class: "page-login content-boxed content-boxed-padding" }, B = /* @__PURE__ */ x(() => /* @__PURE__ */ e("i", { class: "font-17 color-black" }, [
|
|
42
|
+
/* @__PURE__ */ e("img", {
|
|
43
|
+
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
44
|
+
class: "responsive-image",
|
|
45
|
+
style: { width: "35%" }
|
|
46
|
+
})
|
|
47
|
+
], -1)), L = [
|
|
48
|
+
B
|
|
49
|
+
], C = { class: "subheaderContainer full-top" }, E = ["src"], M = {
|
|
50
|
+
class: "center-text",
|
|
51
|
+
style: { "flex-grow": "1", "text-align": "center", margin: "0", "font-weight": "600" }
|
|
52
|
+
}, R = { class: "container left-text" }, S = { class: "center-text" }, j = { class: "full-top" }, $ = ["href"], N = { class: "firstRow" }, V = ["src"], q = ["src"];
|
|
53
|
+
function D(t, c, F, O, d, i) {
|
|
54
|
+
const p = h("router-link");
|
|
55
|
+
return o(), n("div", A, [
|
|
56
|
+
t.isModal ? (o(), n("a", {
|
|
57
|
+
key: 0,
|
|
58
|
+
onClick: c[0] || (c[0] = (...s) => i.close && i.close(...s)),
|
|
59
|
+
class: "color-black pull-right pointer",
|
|
60
|
+
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
61
|
+
}, L)) : a("", !0),
|
|
62
|
+
e("div", C, [
|
|
63
|
+
t.isModal ? a("", !0) : (o(), f(p, {
|
|
64
|
+
key: 0,
|
|
65
|
+
to: "/account",
|
|
66
|
+
class: "button gray-button pointer left-button"
|
|
67
|
+
}, {
|
|
68
|
+
default: m(() => [
|
|
69
|
+
e("img", {
|
|
70
|
+
src: t.getIcon("arrow-gray-right.svg"),
|
|
71
|
+
height: "20",
|
|
72
|
+
width: "20",
|
|
73
|
+
class: "btn-icon",
|
|
74
|
+
style: { rotate: "180deg" }
|
|
75
|
+
}, null, 8, E)
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
})),
|
|
79
|
+
e("h2", M, r(t.ssoLang[t.appLanguage].apps), 1)
|
|
80
|
+
]),
|
|
81
|
+
e("div", R, [
|
|
82
|
+
e("p", S, r(t.ssoLang[t.appLanguage].apps_p), 1),
|
|
83
|
+
e("div", j, [
|
|
84
|
+
a("", !0),
|
|
85
|
+
(o(!0), n(b, null, y(d.apps, (s) => (o(), n("a", {
|
|
86
|
+
key: s.id,
|
|
87
|
+
href: s.t_apps_url,
|
|
88
|
+
target: "_blank",
|
|
89
|
+
class: "settingRow half-bottom"
|
|
90
|
+
}, [
|
|
91
|
+
e("div", N, [
|
|
92
|
+
e("img", {
|
|
93
|
+
src: t.getIcon(s.t_apps_icon),
|
|
94
|
+
class: "withBackground"
|
|
95
|
+
}, null, 8, V),
|
|
96
|
+
e("h4", null, r(s.t_apps_name), 1),
|
|
97
|
+
e("img", {
|
|
98
|
+
src: t.getIcon("arrow-gray-right.svg")
|
|
99
|
+
}, null, 8, q)
|
|
100
|
+
])
|
|
101
|
+
], 8, $))), 128))
|
|
102
|
+
])
|
|
103
|
+
])
|
|
104
|
+
]);
|
|
105
|
+
}
|
|
106
|
+
const H = /* @__PURE__ */ g(I, [["render", D], ["__scopeId", "data-v-2f7f5584"]]);
|
|
107
|
+
export {
|
|
108
|
+
H as default
|
|
109
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { _ as d, A as u, b as g, E as _ } from "./install-L-cxSovH.js";
|
|
2
|
+
import { resolveComponent as h, openBlock as e, createElementBlock as n, createCommentVNode as a, createElementVNode as s, createBlock as b, withCtx as m, toDisplayString as i, createTextVNode as f, Fragment as v, renderList as y, pushScopeId as w, popScopeId as k } from "vue";
|
|
3
|
+
const I = {
|
|
4
|
+
name: "AuthBilling",
|
|
5
|
+
mixins: [u],
|
|
6
|
+
props: {
|
|
7
|
+
payload: {
|
|
8
|
+
type: Object,
|
|
9
|
+
default: {}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
data() {
|
|
13
|
+
return {
|
|
14
|
+
loading: !1,
|
|
15
|
+
subscriptions: []
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
async mounted() {
|
|
19
|
+
this.isLoggedIn || this.$router.push("/login");
|
|
20
|
+
const t = await g.getRecords({
|
|
21
|
+
objectId: "6dc545ea-2e2f-4720-b4fe-c5ebdd8af066",
|
|
22
|
+
query: {
|
|
23
|
+
where: {
|
|
24
|
+
account: this.account.id
|
|
25
|
+
},
|
|
26
|
+
fields: ["t_subscriptions_name", "t_subscriptions_desc", "t_subscriptions_type", "t_subscriptions_active", "t_subscriptions_app"],
|
|
27
|
+
relations: {
|
|
28
|
+
t_subscriptions_app: {
|
|
29
|
+
fields: [
|
|
30
|
+
"t_apps_name",
|
|
31
|
+
"t_apps_icon",
|
|
32
|
+
"t_apps_url"
|
|
33
|
+
],
|
|
34
|
+
relations: {}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
this.subscriptions = t.data.records;
|
|
40
|
+
},
|
|
41
|
+
methods: {
|
|
42
|
+
close() {
|
|
43
|
+
_.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}, B = (t) => (w("data-v-4d3e1bec"), t = t(), k(), t), x = { class: "page-login content-boxed content-boxed-padding" }, L = /* @__PURE__ */ B(() => /* @__PURE__ */ s("i", { class: "font-17 color-black" }, [
|
|
47
|
+
/* @__PURE__ */ s("img", {
|
|
48
|
+
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
49
|
+
class: "responsive-image",
|
|
50
|
+
style: { width: "35%" }
|
|
51
|
+
})
|
|
52
|
+
], -1)), A = [
|
|
53
|
+
L
|
|
54
|
+
], C = { class: "subheaderContainer full-top" }, E = ["src"], S = {
|
|
55
|
+
class: "center-text",
|
|
56
|
+
style: { "flex-grow": "1", "text-align": "center", margin: "0", "font-weight": "600" }
|
|
57
|
+
}, M = { class: "container left-text" }, N = { class: "center-text" }, R = { class: "full-top" }, V = { class: "firstRow" }, $ = ["src"], j = ["src"];
|
|
58
|
+
function q(t, c, D, F, l, r) {
|
|
59
|
+
const p = h("router-link");
|
|
60
|
+
return e(), n("div", x, [
|
|
61
|
+
t.isModal ? (e(), n("a", {
|
|
62
|
+
key: 0,
|
|
63
|
+
onClick: c[0] || (c[0] = (...o) => r.close && r.close(...o)),
|
|
64
|
+
class: "color-black pull-right pointer",
|
|
65
|
+
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
66
|
+
}, A)) : a("", !0),
|
|
67
|
+
s("div", C, [
|
|
68
|
+
t.isModal ? a("", !0) : (e(), b(p, {
|
|
69
|
+
key: 0,
|
|
70
|
+
to: "/account",
|
|
71
|
+
class: "button gray-button pointer left-button"
|
|
72
|
+
}, {
|
|
73
|
+
default: m(() => [
|
|
74
|
+
s("img", {
|
|
75
|
+
src: t.getIcon("arrow-gray-right.svg"),
|
|
76
|
+
height: "20",
|
|
77
|
+
width: "20",
|
|
78
|
+
class: "btn-icon",
|
|
79
|
+
style: { rotate: "180deg" }
|
|
80
|
+
}, null, 8, E)
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
})),
|
|
84
|
+
s("h2", S, i(t.ssoLang[t.appLanguage].billing), 1)
|
|
85
|
+
]),
|
|
86
|
+
s("div", M, [
|
|
87
|
+
s("p", N, i(t.ssoLang[t.appLanguage].billing_p), 1),
|
|
88
|
+
s("div", R, [
|
|
89
|
+
a("", !0),
|
|
90
|
+
f(" " + i(t.account.billing) + " ", 1),
|
|
91
|
+
(e(!0), n(v, null, y(l.subscriptions, (o) => (e(), n("div", {
|
|
92
|
+
key: o.id,
|
|
93
|
+
class: "settingRow half-bottom"
|
|
94
|
+
}, [
|
|
95
|
+
s("div", V, [
|
|
96
|
+
s("img", {
|
|
97
|
+
src: t.getIcon(t.app.t_apps_icon),
|
|
98
|
+
class: "withBackground"
|
|
99
|
+
}, null, 8, $),
|
|
100
|
+
s("h4", null, i(o.t_subscriptions_name), 1),
|
|
101
|
+
s("img", {
|
|
102
|
+
src: t.getIcon("arrow-gray-right.svg")
|
|
103
|
+
}, null, 8, j)
|
|
104
|
+
])
|
|
105
|
+
]))), 128))
|
|
106
|
+
])
|
|
107
|
+
])
|
|
108
|
+
]);
|
|
109
|
+
}
|
|
110
|
+
const z = /* @__PURE__ */ d(I, [["render", q], ["__scopeId", "data-v-4d3e1bec"]]);
|
|
111
|
+
export {
|
|
112
|
+
z as default
|
|
113
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { _ as u, A as _, b as g, E as h } from "./install-L-cxSovH.js";
|
|
2
|
+
import { resolveComponent as m, openBlock as o, createElementBlock as n, createCommentVNode as i, createElementVNode as e, createBlock as f, withCtx as b, toDisplayString as r, pushScopeId as y, popScopeId as v } from "vue";
|
|
3
|
+
const x = {
|
|
4
|
+
name: "AuthCustomApp",
|
|
5
|
+
mixins: [_],
|
|
6
|
+
props: {
|
|
7
|
+
payload: {
|
|
8
|
+
type: Object,
|
|
9
|
+
default: {}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
data() {
|
|
13
|
+
return {
|
|
14
|
+
loading: !1,
|
|
15
|
+
app: {}
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
async mounted() {
|
|
19
|
+
this.isLoggedIn || this.$router.push("/login");
|
|
20
|
+
const t = await g.getRecordById({
|
|
21
|
+
id: this.$route.params.app,
|
|
22
|
+
query: {
|
|
23
|
+
fields: ["t_apps_name", "t_apps_icon", "t_apps_url"],
|
|
24
|
+
relations: []
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
this.app = t.data.record;
|
|
28
|
+
},
|
|
29
|
+
methods: {
|
|
30
|
+
close() {
|
|
31
|
+
h.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}, p = (t) => (y("data-v-36b27d1f"), t = t(), v(), t), k = { class: "page-login content-boxed content-boxed-padding" }, w = /* @__PURE__ */ p(() => /* @__PURE__ */ e("i", { class: "font-17 color-black" }, [
|
|
35
|
+
/* @__PURE__ */ e("img", {
|
|
36
|
+
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
37
|
+
class: "responsive-image",
|
|
38
|
+
style: { width: "35%" }
|
|
39
|
+
})
|
|
40
|
+
], -1)), A = [
|
|
41
|
+
w
|
|
42
|
+
], C = { class: "subheaderContainer full-top" }, I = ["src"], B = {
|
|
43
|
+
class: "center-text",
|
|
44
|
+
style: { "flex-grow": "1", "text-align": "center", margin: "0", "font-weight": "600" }
|
|
45
|
+
}, E = { class: "container left-text" }, S = { class: "center-text" }, M = /* @__PURE__ */ p(() => /* @__PURE__ */ e("div", { class: "full-top" }, null, -1));
|
|
46
|
+
function $(t, s, L, N, c, a) {
|
|
47
|
+
const l = m("router-link");
|
|
48
|
+
return o(), n("div", k, [
|
|
49
|
+
t.isModal ? (o(), n("a", {
|
|
50
|
+
key: 0,
|
|
51
|
+
onClick: s[0] || (s[0] = (...d) => a.close && a.close(...d)),
|
|
52
|
+
class: "color-black pull-right pointer",
|
|
53
|
+
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
54
|
+
}, A)) : i("", !0),
|
|
55
|
+
e("div", C, [
|
|
56
|
+
t.isModal ? i("", !0) : (o(), f(l, {
|
|
57
|
+
key: 0,
|
|
58
|
+
to: "/apps",
|
|
59
|
+
class: "button gray-button pointer left-button"
|
|
60
|
+
}, {
|
|
61
|
+
default: b(() => [
|
|
62
|
+
e("img", {
|
|
63
|
+
src: t.getIcon("arrow-gray-right.svg"),
|
|
64
|
+
height: "20",
|
|
65
|
+
width: "20",
|
|
66
|
+
class: "btn-icon",
|
|
67
|
+
style: { rotate: "180deg" }
|
|
68
|
+
}, null, 8, I)
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
})),
|
|
72
|
+
e("h2", B, r(c.app.t_apps_name), 1)
|
|
73
|
+
]),
|
|
74
|
+
e("div", E, [
|
|
75
|
+
e("p", S, r(t.ssoLang[t.appLanguage].apps_p), 1),
|
|
76
|
+
M
|
|
77
|
+
])
|
|
78
|
+
]);
|
|
79
|
+
}
|
|
80
|
+
const q = /* @__PURE__ */ u(x, [["render", $], ["__scopeId", "data-v-36b27d1f"]]);
|
|
81
|
+
export {
|
|
82
|
+
q as default
|
|
83
|
+
};
|