@tapni/auth 1.0.3 → 1.0.4

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.
Files changed (37) hide show
  1. package/dist/.vite/manifest.json +96 -0
  2. package/dist/Account-zep_QUuI.js +153 -0
  3. package/dist/Apps-B9XB7Z7q.js +112 -0
  4. package/dist/CustomApp-BzUsyycz.js +112 -0
  5. package/dist/General-DkcdjPYQ.js +477 -0
  6. package/dist/QR-PW6cAG5j.js +41 -0
  7. package/dist/TapniAuth.es.js +4 -0
  8. package/dist/TapniAuth.umd.js +141 -0
  9. package/dist/install-BzPu9V_c.js +18428 -0
  10. package/dist/style.css +1 -0
  11. package/dist/web-AXRKjAOB.js +92 -0
  12. package/dist/web-IFGkBi0t.js +86 -0
  13. package/dist/web-LIfHmYL2.js +54 -0
  14. package/dist/web-XbruGdlD.js +121 -0
  15. package/package.json +1 -1
  16. package/dist/assets/Account-CElX1bG1.js +0 -1
  17. package/dist/assets/Apps-B-GkviQb.css +0 -1
  18. package/dist/assets/Apps-DH6XpQ6k.js +0 -1
  19. package/dist/assets/CustomApp-D-PMGrCn.js +0 -1
  20. package/dist/assets/CustomApp-x1ZBgKin.css +0 -1
  21. package/dist/assets/General-BD2qnORR.js +0 -1
  22. package/dist/assets/General-OSR9oXHj.css +0 -1
  23. package/dist/assets/Inter-ZO3WBJgw.ttf +0 -0
  24. package/dist/assets/QR-CpmQl6vr.js +0 -1
  25. package/dist/assets/fontawesome-webfont-CQDK8MU3.ttf +0 -0
  26. package/dist/assets/fontawesome-webfont-DXgy9qkh.svg +0 -2671
  27. package/dist/assets/fontawesome-webfont-G5YE5S7X.eot +0 -0
  28. package/dist/assets/index-CNOQuLc_.css +0 -1
  29. package/dist/assets/index-DXEfDC45.js +0 -176
  30. package/dist/assets/web-1uupGAU9.js +0 -5
  31. package/dist/assets/web-BMHaq5cV.js +0 -1
  32. package/dist/assets/web-CvQGphDR.js +0 -1
  33. package/dist/assets/web-DMittTOZ.js +0 -1
  34. package/dist/assets/web-DhQdITWf.js +0 -1
  35. package/dist/assets/web-EiIhTtxC.js +0 -1
  36. package/dist/assets/web-OwpPF4YF.js +0 -1
  37. package/dist/index.html +0 -36
@@ -0,0 +1,96 @@
1
+ {
2
+ "_install-BzPu9V_c.js": {
3
+ "file": "install-BzPu9V_c.js",
4
+ "name": "install",
5
+ "dynamicImports": [
6
+ "src/views/Account.vue",
7
+ "src/views/QR.vue",
8
+ "src/views/Apps.vue",
9
+ "src/views/CustomApp.vue",
10
+ "src/views/General.vue",
11
+ "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
12
+ "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
13
+ "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
14
+ "node_modules/@capacitor/preferences/dist/esm/web.js"
15
+ ]
16
+ },
17
+ "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js": {
18
+ "file": "web-XbruGdlD.js",
19
+ "name": "web",
20
+ "src": "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
21
+ "isDynamicEntry": true
22
+ },
23
+ "node_modules/@capacitor-community/facebook-login/dist/esm/web.js": {
24
+ "file": "web-AXRKjAOB.js",
25
+ "name": "web",
26
+ "src": "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
27
+ "isDynamicEntry": true
28
+ },
29
+ "node_modules/@capacitor/preferences/dist/esm/web.js": {
30
+ "file": "web-LIfHmYL2.js",
31
+ "name": "web",
32
+ "src": "node_modules/@capacitor/preferences/dist/esm/web.js",
33
+ "isDynamicEntry": true
34
+ },
35
+ "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js": {
36
+ "file": "web-IFGkBi0t.js",
37
+ "name": "web",
38
+ "src": "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
39
+ "isDynamicEntry": true
40
+ },
41
+ "src/install.js": {
42
+ "file": "TapniAuth.umd.js",
43
+ "name": "install",
44
+ "src": "src/install.js",
45
+ "isEntry": true
46
+ },
47
+ "src/views/Account.vue": {
48
+ "file": "Account-zep_QUuI.js",
49
+ "name": "Account",
50
+ "src": "src/views/Account.vue",
51
+ "isDynamicEntry": true,
52
+ "imports": [
53
+ "_install-BzPu9V_c.js"
54
+ ]
55
+ },
56
+ "src/views/Apps.vue": {
57
+ "file": "Apps-B9XB7Z7q.js",
58
+ "name": "Apps",
59
+ "src": "src/views/Apps.vue",
60
+ "isDynamicEntry": true,
61
+ "imports": [
62
+ "_install-BzPu9V_c.js"
63
+ ]
64
+ },
65
+ "src/views/CustomApp.vue": {
66
+ "file": "CustomApp-BzUsyycz.js",
67
+ "name": "CustomApp",
68
+ "src": "src/views/CustomApp.vue",
69
+ "isDynamicEntry": true,
70
+ "imports": [
71
+ "_install-BzPu9V_c.js"
72
+ ]
73
+ },
74
+ "src/views/General.vue": {
75
+ "file": "General-DkcdjPYQ.js",
76
+ "name": "General",
77
+ "src": "src/views/General.vue",
78
+ "isDynamicEntry": true,
79
+ "imports": [
80
+ "_install-BzPu9V_c.js"
81
+ ]
82
+ },
83
+ "src/views/QR.vue": {
84
+ "file": "QR-PW6cAG5j.js",
85
+ "name": "QR",
86
+ "src": "src/views/QR.vue",
87
+ "isDynamicEntry": true,
88
+ "imports": [
89
+ "_install-BzPu9V_c.js"
90
+ ]
91
+ },
92
+ "style.css": {
93
+ "file": "style.css",
94
+ "src": "style.css"
95
+ }
96
+ }
@@ -0,0 +1,153 @@
1
+ import { _ as g, A as d, C as u, E as h } from "./install-BzPu9V_c.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,112 @@
1
+ import { _ as h, A as u, E as _ } from "./install-BzPu9V_c.js";
2
+ import { resolveComponent as m, openBlock as r, createElementBlock as d, createCommentVNode as e, createElementVNode as t, createVNode as n, withCtx as a, toDisplayString as g, pushScopeId as f, popScopeId as w } from "vue";
3
+ const v = {
4
+ name: "AuthSecurity",
5
+ mixins: [u],
6
+ props: {
7
+ payload: {
8
+ type: Object,
9
+ default: {}
10
+ }
11
+ },
12
+ data() {
13
+ return {
14
+ loading: !1
15
+ };
16
+ },
17
+ async mounted() {
18
+ this.isLoggedIn || this.$router.push("/login");
19
+ },
20
+ methods: {
21
+ close() {
22
+ _.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
23
+ }
24
+ }
25
+ }, i = (s) => (f("data-v-3e0687c7"), s = s(), w(), s), y = { class: "page-login content-boxed content-boxed-padding" }, b = /* @__PURE__ */ i(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
26
+ /* @__PURE__ */ t("img", {
27
+ src: "https://cdn.tapni.co/icons/down-arrow.png",
28
+ class: "responsive-image",
29
+ style: { width: "35%" }
30
+ })
31
+ ], -1)), k = [
32
+ b
33
+ ], I = { class: "subheaderContainer full-top" }, x = ["src"], S = {
34
+ class: "center-text",
35
+ style: { "flex-grow": "1", "text-align": "center", margin: "0", "font-weight": "600" }
36
+ }, A = { class: "container left-text" }, B = { class: "center-text" }, C = { class: "full-top" }, E = { class: "firstRow" }, L = ["src"], M = /* @__PURE__ */ i(() => /* @__PURE__ */ t("h4", null, "Tapni", -1)), R = ["src"], $ = { class: "firstRow" }, N = ["src"], V = /* @__PURE__ */ i(() => /* @__PURE__ */ t("h4", null, "MailSign", -1)), j = ["src"];
37
+ function D(s, c, O, T, q, l) {
38
+ const o = m("router-link");
39
+ return r(), d("div", y, [
40
+ s.isModal ? (r(), d("a", {
41
+ key: 0,
42
+ onClick: c[0] || (c[0] = (...p) => l.close && l.close(...p)),
43
+ class: "color-black pull-right pointer",
44
+ style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
45
+ }, k)) : e("", !0),
46
+ t("div", I, [
47
+ n(o, {
48
+ to: "/account",
49
+ class: "button gray-button pointer left-button"
50
+ }, {
51
+ default: a(() => [
52
+ t("img", {
53
+ src: s.getIcon("arrow-gray-right.svg"),
54
+ height: "20",
55
+ width: "20",
56
+ class: "btn-icon",
57
+ style: { rotate: "180deg" }
58
+ }, null, 8, x)
59
+ ]),
60
+ _: 1
61
+ }),
62
+ t("h2", S, g(s.ssoLang[s.appLanguage].apps), 1)
63
+ ]),
64
+ t("div", A, [
65
+ t("p", B, g(s.ssoLang[s.appLanguage].apps_p), 1),
66
+ t("div", C, [
67
+ e("", !0),
68
+ n(o, {
69
+ to: "/apps/tapni",
70
+ class: "settingRow"
71
+ }, {
72
+ default: a(() => [
73
+ t("div", E, [
74
+ t("img", {
75
+ src: s.getIcon("tapni-logo-small-black.png"),
76
+ class: "withBackground"
77
+ }, null, 8, L),
78
+ M,
79
+ t("img", {
80
+ src: s.getIcon("arrow-gray-right.svg")
81
+ }, null, 8, R)
82
+ ])
83
+ ]),
84
+ _: 1
85
+ }),
86
+ n(o, {
87
+ to: "/apps/mailsign",
88
+ class: "settingRow half-top"
89
+ }, {
90
+ default: a(() => [
91
+ t("div", $, [
92
+ t("img", {
93
+ src: s.getIcon("app-logo-mailsign.svg"),
94
+ class: "withBackground"
95
+ }, null, 8, N),
96
+ V,
97
+ t("img", {
98
+ src: s.getIcon("arrow-gray-right.svg")
99
+ }, null, 8, j)
100
+ ])
101
+ ]),
102
+ _: 1
103
+ }),
104
+ e("", !0)
105
+ ])
106
+ ])
107
+ ]);
108
+ }
109
+ const G = /* @__PURE__ */ h(v, [["render", D], ["__scopeId", "data-v-3e0687c7"]]);
110
+ export {
111
+ G as default
112
+ };
@@ -0,0 +1,112 @@
1
+ import { _ as h, A as u, E as _ } from "./install-BzPu9V_c.js";
2
+ import { resolveComponent as m, openBlock as r, createElementBlock as d, createCommentVNode as e, createElementVNode as t, createVNode as n, withCtx as a, toDisplayString as p, pushScopeId as f, popScopeId as w } from "vue";
3
+ const v = {
4
+ name: "AuthSecurity",
5
+ mixins: [u],
6
+ props: {
7
+ payload: {
8
+ type: Object,
9
+ default: {}
10
+ }
11
+ },
12
+ data() {
13
+ return {
14
+ loading: !1
15
+ };
16
+ },
17
+ async mounted() {
18
+ this.isLoggedIn || this.$router.push("/login");
19
+ },
20
+ methods: {
21
+ close() {
22
+ _.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
23
+ }
24
+ }
25
+ }, i = (s) => (f("data-v-851bd608"), s = s(), w(), s), b = { class: "page-login content-boxed content-boxed-padding" }, y = /* @__PURE__ */ i(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
26
+ /* @__PURE__ */ t("img", {
27
+ src: "https://cdn.tapni.co/icons/down-arrow.png",
28
+ class: "responsive-image",
29
+ style: { width: "35%" }
30
+ })
31
+ ], -1)), k = [
32
+ y
33
+ ], I = { class: "subheaderContainer full-top" }, x = ["src"], C = {
34
+ class: "center-text",
35
+ style: { "flex-grow": "1", "text-align": "center", margin: "0", "font-weight": "600" }
36
+ }, S = { class: "container left-text" }, A = { class: "center-text" }, B = { class: "full-top" }, E = { class: "firstRow" }, $ = ["src"], M = /* @__PURE__ */ i(() => /* @__PURE__ */ t("h4", null, "Tapni", -1)), R = ["src"], L = { class: "firstRow" }, N = ["src"], V = /* @__PURE__ */ i(() => /* @__PURE__ */ t("h4", null, "MailSign", -1)), j = ["src"];
37
+ function D(s, c, O, T, q, l) {
38
+ const o = m("router-link");
39
+ return r(), d("div", b, [
40
+ s.isModal ? (r(), d("a", {
41
+ key: 0,
42
+ onClick: c[0] || (c[0] = (...g) => l.close && l.close(...g)),
43
+ class: "color-black pull-right pointer",
44
+ style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
45
+ }, k)) : e("", !0),
46
+ t("div", I, [
47
+ n(o, {
48
+ to: "/account",
49
+ class: "button gray-button pointer left-button"
50
+ }, {
51
+ default: a(() => [
52
+ t("img", {
53
+ src: s.getIcon("arrow-gray-right.svg"),
54
+ height: "20",
55
+ width: "20",
56
+ class: "btn-icon",
57
+ style: { rotate: "180deg" }
58
+ }, null, 8, x)
59
+ ]),
60
+ _: 1
61
+ }),
62
+ t("h2", C, p(s.$route.params.app), 1)
63
+ ]),
64
+ t("div", S, [
65
+ t("p", A, p(s.ssoLang[s.appLanguage].apps_p), 1),
66
+ t("div", B, [
67
+ e("", !0),
68
+ n(o, {
69
+ to: "/apps/tapni",
70
+ class: "settingRow"
71
+ }, {
72
+ default: a(() => [
73
+ t("div", E, [
74
+ t("img", {
75
+ src: s.getIcon("tapni-logo-small-black.png"),
76
+ class: "withBackground"
77
+ }, null, 8, $),
78
+ M,
79
+ t("img", {
80
+ src: s.getIcon("arrow-gray-right.svg")
81
+ }, null, 8, R)
82
+ ])
83
+ ]),
84
+ _: 1
85
+ }),
86
+ n(o, {
87
+ to: "/apps/mailsign",
88
+ class: "settingRow half-top"
89
+ }, {
90
+ default: a(() => [
91
+ t("div", L, [
92
+ t("img", {
93
+ src: s.getIcon("app-logo-mailsign.svg"),
94
+ class: "withBackground"
95
+ }, null, 8, N),
96
+ V,
97
+ t("img", {
98
+ src: s.getIcon("arrow-gray-right.svg")
99
+ }, null, 8, j)
100
+ ])
101
+ ]),
102
+ _: 1
103
+ }),
104
+ e("", !0)
105
+ ])
106
+ ])
107
+ ]);
108
+ }
109
+ const G = /* @__PURE__ */ h(v, [["render", D], ["__scopeId", "data-v-851bd608"]]);
110
+ export {
111
+ G as default
112
+ };