@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/.vite/manifest.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_install-
|
|
3
|
-
"file": "install-
|
|
2
|
+
"_install-L-cxSovH.js": {
|
|
3
|
+
"file": "install-L-cxSovH.js",
|
|
4
4
|
"name": "install",
|
|
5
5
|
"dynamicImports": [
|
|
6
6
|
"src/views/Account.vue",
|
|
7
7
|
"src/views/QR.vue",
|
|
8
8
|
"src/views/Apps.vue",
|
|
9
|
+
"src/views/Billing.vue",
|
|
9
10
|
"src/views/CustomApp.vue",
|
|
10
11
|
"src/views/General.vue",
|
|
11
12
|
"node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
|
|
@@ -45,48 +46,57 @@
|
|
|
45
46
|
"isEntry": true
|
|
46
47
|
},
|
|
47
48
|
"src/views/Account.vue": {
|
|
48
|
-
"file": "Account-
|
|
49
|
+
"file": "Account-Cuz87g_8.js",
|
|
49
50
|
"name": "Account",
|
|
50
51
|
"src": "src/views/Account.vue",
|
|
51
52
|
"isDynamicEntry": true,
|
|
52
53
|
"imports": [
|
|
53
|
-
"_install-
|
|
54
|
+
"_install-L-cxSovH.js"
|
|
54
55
|
]
|
|
55
56
|
},
|
|
56
57
|
"src/views/Apps.vue": {
|
|
57
|
-
"file": "Apps-
|
|
58
|
+
"file": "Apps-DMds3Dv-.js",
|
|
58
59
|
"name": "Apps",
|
|
59
60
|
"src": "src/views/Apps.vue",
|
|
60
61
|
"isDynamicEntry": true,
|
|
61
62
|
"imports": [
|
|
62
|
-
"_install-
|
|
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"
|
|
63
73
|
]
|
|
64
74
|
},
|
|
65
75
|
"src/views/CustomApp.vue": {
|
|
66
|
-
"file": "CustomApp-
|
|
76
|
+
"file": "CustomApp-CLCMXmMO.js",
|
|
67
77
|
"name": "CustomApp",
|
|
68
78
|
"src": "src/views/CustomApp.vue",
|
|
69
79
|
"isDynamicEntry": true,
|
|
70
80
|
"imports": [
|
|
71
|
-
"_install-
|
|
81
|
+
"_install-L-cxSovH.js"
|
|
72
82
|
]
|
|
73
83
|
},
|
|
74
84
|
"src/views/General.vue": {
|
|
75
|
-
"file": "General-
|
|
85
|
+
"file": "General-dW73bMoR.js",
|
|
76
86
|
"name": "General",
|
|
77
87
|
"src": "src/views/General.vue",
|
|
78
88
|
"isDynamicEntry": true,
|
|
79
89
|
"imports": [
|
|
80
|
-
"_install-
|
|
90
|
+
"_install-L-cxSovH.js"
|
|
81
91
|
]
|
|
82
92
|
},
|
|
83
93
|
"src/views/QR.vue": {
|
|
84
|
-
"file": "QR-
|
|
94
|
+
"file": "QR-D6ZGcPM0.js",
|
|
85
95
|
"name": "QR",
|
|
86
96
|
"src": "src/views/QR.vue",
|
|
87
97
|
"isDynamicEntry": true,
|
|
88
98
|
"imports": [
|
|
89
|
-
"_install-
|
|
99
|
+
"_install-L-cxSovH.js"
|
|
90
100
|
]
|
|
91
101
|
},
|
|
92
102
|
"style.css": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as g, A as d, C as u, E as h } from "./install-
|
|
1
|
+
import { _ as g, A as d, C as u, E as h } from "./install-L-cxSovH.js";
|
|
2
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
3
|
const f = {
|
|
4
4
|
mixins: [d],
|
|
@@ -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
|
+
};
|