@tapni/auth 1.0.61 → 1.0.67
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 +69 -0
- package/dist/Apps-CwN4b-EY.js +109 -0
- package/dist/CustomApp-B3pFA11P.js +83 -0
- package/dist/QR-nYopYeWv.js +41 -0
- package/dist/TapniAuth.es.js +4 -0
- package/dist/TapniAuth.umd.js +167 -0
- package/dist/install-Bdvxvbg8.js +20275 -0
- package/dist/style.css +1 -0
- package/dist/web-LIfHmYL2.js +54 -0
- package/dist/web-UrTMimK1.js +86 -0
- package/dist/web-XbruGdlD.js +121 -0
- package/package.json +3 -2
- package/src/App.vue +78 -7
- package/src/index.js +4 -0
- package/src/services/Api.js +3 -3
- package/src/store/auth.js +23 -19
- package/src/store/constants.js +2 -2
- package/src/store/locales/cn.js +33 -31
- package/src/store/locales/de.js +38 -36
- package/src/store/locales/en.js +454 -513
- package/src/store/locales/es.js +34 -32
- package/src/store/locales/fr.js +33 -31
- package/src/store/locales/it.js +34 -32
- package/src/store/locales/ja.js +488 -0
- package/src/store/locales/kr.js +34 -32
- package/src/store/locales/lang.js +8 -0
- package/src/store/locales/pt.js +488 -0
- package/src/store/locales/sr.js +37 -35
- package/src/store/locales/tr.js +40 -38
- package/src/views/Account.vue +14 -2
- package/src/views/Billing.vue +216 -40
- package/src/views/General.vue +152 -168
- package/src/views/Welcome.vue +85 -66
- package/dist/assets/Apps-DRNQ66T5.css +0 -1
- package/dist/assets/Apps-Y4SdRTLA.js +0 -1
- package/dist/assets/Billing-Bwm-D3JZ.js +0 -1
- package/dist/assets/Billing-COZeuzks.css +0 -1
- package/dist/assets/CustomApp-BCUrlnlC.js +0 -1
- package/dist/assets/CustomApp-EflPiIBk.css +0 -1
- package/dist/assets/Inter-ZO3WBJgw.ttf +0 -0
- package/dist/assets/QR-DmlpvOTV.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-B2NkTeng.js +0 -181
- package/dist/assets/index-BrLpR8cl.css +0 -1
- package/dist/assets/web-0Odj9drH.js +0 -1
- package/dist/assets/web-B6dACyEr.js +0 -5
- package/dist/assets/web-Cw9PHD75.js +0 -1
- package/dist/assets/web-CzLXrrwg.js +0 -1
- package/dist/assets/web-D_iNPwxM.js +0 -1
- package/dist/assets/web-DnM9fFvq.js +0 -1
- package/dist/index.html +0 -39
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_install-Bdvxvbg8.js": {
|
|
3
|
+
"file": "install-Bdvxvbg8.js",
|
|
4
|
+
"name": "install",
|
|
5
|
+
"dynamicImports": [
|
|
6
|
+
"src/views/QR.vue",
|
|
7
|
+
"src/views/Apps.vue",
|
|
8
|
+
"src/views/CustomApp.vue",
|
|
9
|
+
"node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
|
|
10
|
+
"node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
|
|
11
|
+
"node_modules/@tapni/capacitor-reactive-localstorage-vue3/node_modules/@capacitor/preferences/dist/esm/web.js"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js": {
|
|
15
|
+
"file": "web-XbruGdlD.js",
|
|
16
|
+
"name": "web",
|
|
17
|
+
"src": "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
|
|
18
|
+
"isDynamicEntry": true
|
|
19
|
+
},
|
|
20
|
+
"node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js": {
|
|
21
|
+
"file": "web-UrTMimK1.js",
|
|
22
|
+
"name": "web",
|
|
23
|
+
"src": "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
|
|
24
|
+
"isDynamicEntry": true
|
|
25
|
+
},
|
|
26
|
+
"node_modules/@tapni/capacitor-reactive-localstorage-vue3/node_modules/@capacitor/preferences/dist/esm/web.js": {
|
|
27
|
+
"file": "web-LIfHmYL2.js",
|
|
28
|
+
"name": "web",
|
|
29
|
+
"src": "node_modules/@tapni/capacitor-reactive-localstorage-vue3/node_modules/@capacitor/preferences/dist/esm/web.js",
|
|
30
|
+
"isDynamicEntry": true
|
|
31
|
+
},
|
|
32
|
+
"src/install.js": {
|
|
33
|
+
"file": "TapniAuth.umd.js",
|
|
34
|
+
"name": "install",
|
|
35
|
+
"src": "src/install.js",
|
|
36
|
+
"isEntry": true
|
|
37
|
+
},
|
|
38
|
+
"src/views/Apps.vue": {
|
|
39
|
+
"file": "Apps-CwN4b-EY.js",
|
|
40
|
+
"name": "Apps",
|
|
41
|
+
"src": "src/views/Apps.vue",
|
|
42
|
+
"isDynamicEntry": true,
|
|
43
|
+
"imports": [
|
|
44
|
+
"_install-Bdvxvbg8.js"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"src/views/CustomApp.vue": {
|
|
48
|
+
"file": "CustomApp-B3pFA11P.js",
|
|
49
|
+
"name": "CustomApp",
|
|
50
|
+
"src": "src/views/CustomApp.vue",
|
|
51
|
+
"isDynamicEntry": true,
|
|
52
|
+
"imports": [
|
|
53
|
+
"_install-Bdvxvbg8.js"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"src/views/QR.vue": {
|
|
57
|
+
"file": "QR-nYopYeWv.js",
|
|
58
|
+
"name": "QR",
|
|
59
|
+
"src": "src/views/QR.vue",
|
|
60
|
+
"isDynamicEntry": true,
|
|
61
|
+
"imports": [
|
|
62
|
+
"_install-Bdvxvbg8.js"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"style.css": {
|
|
66
|
+
"file": "style.css",
|
|
67
|
+
"src": "style.css"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { a as l, _ as g, A as u, E as _ } from "./install-Bdvxvbg8.js";
|
|
2
|
+
import { resolveComponent as h, openBlock as o, createElementBlock as a, createElementVNode as e, createCommentVNode as r, createBlock as f, withCtx as m, toDisplayString as i, Fragment as b, renderList as y } 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
|
+
}, v = {
|
|
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
|
+
}, w = { class: "page-login content-boxed content-boxed-padding" }, x = { class: "subheaderContainer full-top" }, I = ["src"], A = {
|
|
42
|
+
class: "center-text",
|
|
43
|
+
style: { "flex-grow": "1", "text-align": "center", margin: "0", "font-weight": "600" }
|
|
44
|
+
}, B = { class: "container left-text" }, L = { class: "center-text" }, C = { class: "full-top" }, E = ["href"], M = { class: "firstRow" }, R = ["src"], j = ["src"];
|
|
45
|
+
function $(t, n, N, S, d, c) {
|
|
46
|
+
const p = h("router-link");
|
|
47
|
+
return o(), a("div", w, [
|
|
48
|
+
t.isModal ? (o(), a("a", {
|
|
49
|
+
key: 0,
|
|
50
|
+
onClick: n[0] || (n[0] = (...s) => c.close && c.close(...s)),
|
|
51
|
+
class: "color-black pull-right pointer",
|
|
52
|
+
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
53
|
+
}, n[1] || (n[1] = [
|
|
54
|
+
e("i", { class: "font-17 color-black" }, [
|
|
55
|
+
e("img", {
|
|
56
|
+
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
57
|
+
class: "responsive-image",
|
|
58
|
+
style: { width: "35%" }
|
|
59
|
+
})
|
|
60
|
+
], -1)
|
|
61
|
+
]))) : r("", !0),
|
|
62
|
+
e("div", x, [
|
|
63
|
+
t.isModal ? r("", !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, I)
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
})),
|
|
79
|
+
e("h2", A, i(t.ssoLang[t.appLanguage].apps), 1)
|
|
80
|
+
]),
|
|
81
|
+
e("div", B, [
|
|
82
|
+
e("p", L, i(t.ssoLang[t.appLanguage].apps_p), 1),
|
|
83
|
+
e("div", C, [
|
|
84
|
+
r("", !0),
|
|
85
|
+
(o(!0), a(b, null, y(d.apps, (s) => (o(), a("a", {
|
|
86
|
+
key: s.id,
|
|
87
|
+
href: s.t_apps_url,
|
|
88
|
+
target: "_blank",
|
|
89
|
+
class: "settingRow half-bottom"
|
|
90
|
+
}, [
|
|
91
|
+
e("div", M, [
|
|
92
|
+
e("img", {
|
|
93
|
+
src: t.getIcon(s.t_apps_icon),
|
|
94
|
+
class: "withBackground"
|
|
95
|
+
}, null, 8, R),
|
|
96
|
+
e("h4", null, i(s.t_apps_name), 1),
|
|
97
|
+
e("img", {
|
|
98
|
+
src: t.getIcon("arrow-gray-right.svg")
|
|
99
|
+
}, null, 8, j)
|
|
100
|
+
])
|
|
101
|
+
], 8, E))), 128))
|
|
102
|
+
])
|
|
103
|
+
])
|
|
104
|
+
]);
|
|
105
|
+
}
|
|
106
|
+
const D = /* @__PURE__ */ g(v, [["render", $], ["__scopeId", "data-v-2f7f5584"]]);
|
|
107
|
+
export {
|
|
108
|
+
D as default
|
|
109
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { _ as d, A as u, b as g, E as m } from "./install-Bdvxvbg8.js";
|
|
2
|
+
import { resolveComponent as _, openBlock as s, createElementBlock as a, createElementVNode as t, createCommentVNode as r, createBlock as h, withCtx as f, toDisplayString as i } from "vue";
|
|
3
|
+
const y = {
|
|
4
|
+
name: "AuthCustomApp",
|
|
5
|
+
mixins: [u],
|
|
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 e = 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 = e.data.record;
|
|
28
|
+
},
|
|
29
|
+
methods: {
|
|
30
|
+
close() {
|
|
31
|
+
m.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}, b = { class: "page-login content-boxed content-boxed-padding" }, v = { class: "subheaderContainer full-top" }, x = ["src"], k = {
|
|
35
|
+
class: "center-text",
|
|
36
|
+
style: { "flex-grow": "1", "text-align": "center", margin: "0", "font-weight": "600" }
|
|
37
|
+
}, w = { class: "container left-text" }, A = { class: "center-text" };
|
|
38
|
+
function C(e, o, B, E, l, n) {
|
|
39
|
+
const p = _("router-link");
|
|
40
|
+
return s(), a("div", b, [
|
|
41
|
+
e.isModal ? (s(), a("a", {
|
|
42
|
+
key: 0,
|
|
43
|
+
onClick: o[0] || (o[0] = (...c) => n.close && n.close(...c)),
|
|
44
|
+
class: "color-black pull-right pointer",
|
|
45
|
+
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
46
|
+
}, o[1] || (o[1] = [
|
|
47
|
+
t("i", { class: "font-17 color-black" }, [
|
|
48
|
+
t("img", {
|
|
49
|
+
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
50
|
+
class: "responsive-image",
|
|
51
|
+
style: { width: "35%" }
|
|
52
|
+
})
|
|
53
|
+
], -1)
|
|
54
|
+
]))) : r("", !0),
|
|
55
|
+
t("div", v, [
|
|
56
|
+
e.isModal ? r("", !0) : (s(), h(p, {
|
|
57
|
+
key: 0,
|
|
58
|
+
to: "/apps",
|
|
59
|
+
class: "button gray-button pointer left-button"
|
|
60
|
+
}, {
|
|
61
|
+
default: f(() => [
|
|
62
|
+
t("img", {
|
|
63
|
+
src: e.getIcon("arrow-gray-right.svg"),
|
|
64
|
+
height: "20",
|
|
65
|
+
width: "20",
|
|
66
|
+
class: "btn-icon",
|
|
67
|
+
style: { rotate: "180deg" }
|
|
68
|
+
}, null, 8, x)
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
})),
|
|
72
|
+
t("h2", k, i(l.app.t_apps_name), 1)
|
|
73
|
+
]),
|
|
74
|
+
t("div", w, [
|
|
75
|
+
t("p", A, i(e.ssoLang[e.appLanguage].apps_p), 1),
|
|
76
|
+
o[2] || (o[2] = t("div", { class: "full-top" }, null, -1))
|
|
77
|
+
])
|
|
78
|
+
]);
|
|
79
|
+
}
|
|
80
|
+
const $ = /* @__PURE__ */ d(y, [["render", C], ["__scopeId", "data-v-36b27d1f"]]);
|
|
81
|
+
export {
|
|
82
|
+
$ as default
|
|
83
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { _ as s, A as i, Q as a } from "./install-Bdvxvbg8.js";
|
|
2
|
+
import { resolveComponent as r, openBlock as u, createElementBlock as p, createElementVNode as o, toDisplayString as t, createVNode as d, withCtx as g, createTextVNode as _ } from "vue";
|
|
3
|
+
const m = {
|
|
4
|
+
name: "AuthQR",
|
|
5
|
+
mixins: [i, a]
|
|
6
|
+
}, L = { class: "page-login content-boxed content-boxed-padding" }, h = { style: { "text-align": "center", width: "80%", margin: "0 auto", "margin-top": "130px" } }, b = { class: "center-text" }, f = { style: { margin: "0 auto", width: "85%", "text-align": "left" } }, y = { class: "center-text" };
|
|
7
|
+
function v(e, n, k, w, C, q) {
|
|
8
|
+
const l = r("router-link");
|
|
9
|
+
return u(), p("div", L, [
|
|
10
|
+
o("h5", h, t(e.ssoLang[e.appLanguage].use_tapni_on_the_web), 1),
|
|
11
|
+
n[6] || (n[6] = o("br", null, null, -1)),
|
|
12
|
+
o("div", b, [
|
|
13
|
+
n[3] || (n[3] = o("div", {
|
|
14
|
+
id: "qrCodeContainer",
|
|
15
|
+
class: "qrCodeRounded",
|
|
16
|
+
style: { "max-width": "100%" }
|
|
17
|
+
}, null, -1)),
|
|
18
|
+
n[4] || (n[4] = o("br", null, null, -1)),
|
|
19
|
+
n[5] || (n[5] = o("br", null, null, -1)),
|
|
20
|
+
o("div", f, [
|
|
21
|
+
o("h2", y, t(e.ssoLang[e.appLanguage].login_by_scanning_qr_code), 1),
|
|
22
|
+
n[0] || (n[0] = o("br", null, null, -1)),
|
|
23
|
+
o("h4", null, t(e.ssoLang[e.appLanguage].open_tapni_app_on_your_phone), 1),
|
|
24
|
+
o("h4", null, t(e.ssoLang[e.appLanguage].go_to_settings_link_a_device), 1),
|
|
25
|
+
o("h4", null, t(e.ssoLang[e.appLanguage].point_your_phone_at_this_qr_code), 1),
|
|
26
|
+
n[1] || (n[1] = o("br", null, null, -1)),
|
|
27
|
+
n[2] || (n[2] = o("br", null, null, -1))
|
|
28
|
+
]),
|
|
29
|
+
d(l, { to: "/login" }, {
|
|
30
|
+
default: g(() => [
|
|
31
|
+
_(t(e.ssoLang[e.appLanguage].choose_other_login_methods), 1)
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
})
|
|
35
|
+
])
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
38
|
+
const Q = /* @__PURE__ */ s(m, [["render", v]]);
|
|
39
|
+
export {
|
|
40
|
+
Q as default
|
|
41
|
+
};
|