@tapni/auth 0.0.155 → 0.0.156

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.
@@ -0,0 +1,58 @@
1
+ {
2
+ "_install-HnJgkMHx.js": {
3
+ "file": "install-HnJgkMHx.js",
4
+ "dynamicImports": [
5
+ "src/views/Account.vue",
6
+ "src/views/QR.vue",
7
+ "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
8
+ "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
9
+ "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
10
+ "node_modules/@capacitor/preferences/dist/esm/web.js"
11
+ ]
12
+ },
13
+ "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js": {
14
+ "file": "web-NrPZl3qD.js",
15
+ "src": "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
16
+ "isDynamicEntry": true
17
+ },
18
+ "node_modules/@capacitor-community/facebook-login/dist/esm/web.js": {
19
+ "file": "web-L3jORB19.js",
20
+ "src": "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
21
+ "isDynamicEntry": true
22
+ },
23
+ "node_modules/@capacitor/preferences/dist/esm/web.js": {
24
+ "file": "web-AImUTDQQ.js",
25
+ "src": "node_modules/@capacitor/preferences/dist/esm/web.js",
26
+ "isDynamicEntry": true
27
+ },
28
+ "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js": {
29
+ "file": "web-5VtGcKeU.js",
30
+ "src": "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
31
+ "isDynamicEntry": true
32
+ },
33
+ "src/install.js": {
34
+ "file": "TapniAuth.umd.js",
35
+ "src": "src/install.js",
36
+ "isEntry": true
37
+ },
38
+ "src/views/Account.vue": {
39
+ "file": "Account-gL0FSIxc.js",
40
+ "src": "src/views/Account.vue",
41
+ "isDynamicEntry": true,
42
+ "imports": [
43
+ "_install-HnJgkMHx.js"
44
+ ]
45
+ },
46
+ "src/views/QR.vue": {
47
+ "file": "QR-SuxiYcMd.js",
48
+ "src": "src/views/QR.vue",
49
+ "isDynamicEntry": true,
50
+ "imports": [
51
+ "_install-HnJgkMHx.js"
52
+ ]
53
+ },
54
+ "style.css": {
55
+ "file": "style.css",
56
+ "src": "style.css"
57
+ }
58
+ }
@@ -0,0 +1,111 @@
1
+ import { _ as l, A as d, E as r } from "./install-HnJgkMHx.js";
2
+ import { openBlock as g, createElementBlock as p, createElementVNode as t, toDisplayString as i, createCommentVNode as a, pushScopeId as _, popScopeId as u } from "vue";
3
+ var h = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
4
+ const m = {
5
+ mixins: [d],
6
+ data() {
7
+ return {
8
+ expanded: !1,
9
+ addAccountReady: !1,
10
+ appVersion: h.APP_VERSION
11
+ };
12
+ },
13
+ async mounted() {
14
+ this.getAccountSettings();
15
+ },
16
+ methods: {
17
+ continueTo(e) {
18
+ console.log("continue to " + e);
19
+ },
20
+ addAccount() {
21
+ this.$router.push("/login");
22
+ },
23
+ switchAccount(e) {
24
+ console.log("switch", e);
25
+ },
26
+ toggleAccountSettingsModal() {
27
+ this.$router.push("/mfa");
28
+ },
29
+ toggleLanguageModal() {
30
+ r.$emit("toggleSSOLanguageModal");
31
+ },
32
+ logoutAccount() {
33
+ this.logout({ refreshToken: this.refreshTokens[0], sendRequest: !0 });
34
+ }
35
+ }
36
+ }, o = (e) => (_("data-v-f536b602"), e = e(), u(), e), f = {
37
+ class: "page-login content-boxed content-boxed-padding center-text",
38
+ style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
39
+ }, v = /* @__PURE__ */ o(() => /* @__PURE__ */ t("br", null, null, -1)), A = { class: "bold full-top no-bottom center-text" }, E = { class: "full-bottom half-top center-text color-black font-16" };
40
+ const L = { class: "container" }, P = { class: "settingsCard pointer left-text" }, b = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
41
+ /* @__PURE__ */ t("img", {
42
+ src: "https://cdn.tapni.co/icons/newSettings.svg",
43
+ style: { width: "50px", "border-radius": "20px" }
44
+ })
45
+ ], -1)), S = { class: "middle" }, k = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
46
+ /* @__PURE__ */ t("img", { src: "https://cdn.tapni.co/icons/newArrowRight.svg" })
47
+ ], -1)), w = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "divider" }, null, -1)), x = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
48
+ /* @__PURE__ */ t("img", {
49
+ src: "https://cdn.tapni.co/icons/newPublicProfile.svg",
50
+ style: { width: "50px", "border-radius": "20px" }
51
+ })
52
+ ], -1)), O = { class: "middle" }, V = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
53
+ /* @__PURE__ */ t("img", { src: "https://cdn.tapni.co/icons/newArrowRight.svg" })
54
+ ], -1)), I = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "divider" }, null, -1)), T = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
55
+ /* @__PURE__ */ t("img", {
56
+ src: "https://cdn.tapni.co/icons/newLogout.svg",
57
+ style: { width: "50px", "border-radius": "20px" }
58
+ })
59
+ ], -1)), N = { class: "middle" }, R = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
60
+ /* @__PURE__ */ t("img", { src: "https://cdn.tapni.co/icons/newArrowRight.svg" })
61
+ ], -1));
62
+ function y(e, n, C, D, M, c) {
63
+ return g(), p("div", f, [
64
+ v,
65
+ t("h1", A, i(e.ssoLang[e.appLanguage].welcome), 1),
66
+ t("p", E, i(e.account.email), 1),
67
+ (e.display, a("", !0)),
68
+ t("div", L, [
69
+ a("", !0),
70
+ t("div", P, [
71
+ t("div", {
72
+ class: "device",
73
+ onClick: n[4] || (n[4] = (...s) => c.toggleAccountSettingsModal && c.toggleAccountSettingsModal(...s))
74
+ }, [
75
+ b,
76
+ t("div", S, [
77
+ t("h4", null, i(e.ssoLang[e.appLanguage].mfa), 1)
78
+ ]),
79
+ k
80
+ ]),
81
+ w,
82
+ t("div", {
83
+ class: "device",
84
+ onClick: n[5] || (n[5] = (...s) => c.toggleLanguageModal && c.toggleLanguageModal(...s))
85
+ }, [
86
+ x,
87
+ t("div", O, [
88
+ t("h4", null, i(e.ssoLang[e.appLanguage].change_language), 1)
89
+ ]),
90
+ V
91
+ ]),
92
+ I,
93
+ t("div", {
94
+ class: "device",
95
+ onClick: n[6] || (n[6] = (...s) => c.logoutAccount && c.logoutAccount(...s))
96
+ }, [
97
+ T,
98
+ t("div", N, [
99
+ t("h4", null, i(e.ssoLang[e.appLanguage].logout), 1)
100
+ ]),
101
+ R
102
+ ]),
103
+ a("", !0)
104
+ ])
105
+ ])
106
+ ]);
107
+ }
108
+ const U = /* @__PURE__ */ l(m, [["render", y], ["__scopeId", "data-v-f536b602"]]);
109
+ export {
110
+ U as default
111
+ };
@@ -0,0 +1,41 @@
1
+ import { _ as s, A as a, Q as i } from "./install-HnJgkMHx.js";
2
+ import { resolveComponent as l, openBlock as _, createElementBlock as r, createElementVNode as n, toDisplayString as o, createVNode as d, withCtx as u, createTextVNode as p } from "vue";
3
+ const g = {
4
+ name: "AuthQR",
5
+ mixins: [a, i]
6
+ }, h = { class: "page-login content-boxed content-boxed-padding" }, c = { style: { "text-align": "center", width: "80%", margin: "0 auto", "margin-top": "130px" } }, m = /* @__PURE__ */ n("br", null, null, -1), L = { class: "qrCodeLoginContainer center-text" }, b = /* @__PURE__ */ n("div", {
7
+ id: "qrCodeContainer",
8
+ class: "qrCodeRounded",
9
+ style: { "max-width": "100%" }
10
+ }, null, -1), f = /* @__PURE__ */ n("br", null, null, -1), y = /* @__PURE__ */ n("br", null, null, -1), C = { style: { margin: "0 auto", width: "85%", "text-align": "left" } }, v = { class: "center-text" }, k = /* @__PURE__ */ n("br", null, null, -1), q = /* @__PURE__ */ n("br", null, null, -1), w = /* @__PURE__ */ n("br", null, null, -1);
11
+ function x(e, A, Q, R, $, N) {
12
+ const t = l("router-link");
13
+ return _(), r("div", h, [
14
+ n("h5", c, o(e.ssoLang[e.appLanguage].use_tapni_on_the_web), 1),
15
+ m,
16
+ n("div", L, [
17
+ b,
18
+ f,
19
+ y,
20
+ n("div", C, [
21
+ n("h2", v, o(e.ssoLang[e.appLanguage].login_by_scanning_qr_code), 1),
22
+ k,
23
+ n("h4", null, o(e.ssoLang[e.appLanguage].open_tapni_app_on_your_phone), 1),
24
+ n("h4", null, o(e.ssoLang[e.appLanguage].go_to_settings_link_a_device), 1),
25
+ n("h4", null, o(e.ssoLang[e.appLanguage].point_your_phone_at_this_qr_code), 1),
26
+ q,
27
+ w
28
+ ]),
29
+ d(t, { to: "/login" }, {
30
+ default: u(() => [
31
+ p(o(e.ssoLang[e.appLanguage].choose_other_login_methods), 1)
32
+ ]),
33
+ _: 1
34
+ })
35
+ ])
36
+ ]);
37
+ }
38
+ const E = /* @__PURE__ */ s(g, [["render", x]]);
39
+ export {
40
+ E as default
41
+ };
@@ -0,0 +1,4 @@
1
+ import { i as f } from "./install-HnJgkMHx.js";
2
+ export {
3
+ f as default
4
+ };