@tapni/auth 0.0.168 → 1.0.2

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 (41) hide show
  1. package/dist/.vite/manifest.json +48 -10
  2. package/dist/Account-IR-XgmiM.js +153 -0
  3. package/dist/Apps-CQXLKu2F.js +112 -0
  4. package/dist/CustomApp-FxfYHVid.js +112 -0
  5. package/dist/General-BVjTsECb.js +477 -0
  6. package/dist/{QR-UQySwgoT.js → QR-B60f-H2Q.js} +11 -11
  7. package/dist/TapniAuth.es.js +1 -1
  8. package/dist/TapniAuth.umd.js +17 -17
  9. package/dist/index.css +193 -0
  10. package/dist/{install-KFv1Z6O7.js → install-BOPYSGGa.js} +3487 -3504
  11. package/dist/style.css +1 -1
  12. package/dist/{web-NrPZl3qD.js → web-XbruGdlD.js} +2 -5
  13. package/package.json +3 -3
  14. package/src/App.vue +6 -19
  15. package/src/components/{Language.vue → DELETE_Language.vue} +26 -16
  16. package/src/components/{LinkIcon.vue → DELETE_LinkIcon.vue} +1 -1
  17. package/src/components/{ModalOverlay.vue → DELETE_ModalOverlay.vue} +2 -2
  18. package/src/components/{OTP.vue → DELETE_OTP.vue} +3 -3
  19. package/src/main.js +1 -0
  20. package/src/mixins/DELETE_mfa-auth.mixin.js +53 -0
  21. package/src/mixins/auth.mixin.js +7 -1
  22. package/src/mixins/global.mixin.js +7 -0
  23. package/src/routes.js +27 -15
  24. package/src/store/auth.js +1 -1
  25. package/src/store/constants.js +2 -6
  26. package/src/store/locales/cn.js +1 -1
  27. package/src/store/locales/en.js +28 -3
  28. package/src/views/Account.vue +72 -110
  29. package/src/views/Apps.vue +106 -0
  30. package/src/views/CustomApp.vue +106 -0
  31. package/src/views/General.vue +192 -0
  32. package/src/views/Login.vue +27 -10
  33. package/src/views/QR.vue +1 -1
  34. package/src/views/Security.vue +322 -0
  35. package/src/views/Welcome.vue +10 -4
  36. package/dist/Account-uZVmDKkt.js +0 -113
  37. package/src/mixins/mfa-auth.mixin.js +0 -76
  38. package/src/views/MFA.vue +0 -117
  39. /package/dist/{web-L3jORB19.js → web-AXRKjAOB.js} +0 -0
  40. /package/dist/{web-5VtGcKeU.js → web-IFGkBi0t.js} +0 -0
  41. /package/dist/{web-AImUTDQQ.js → web-LIfHmYL2.js} +0 -0
@@ -1,9 +1,13 @@
1
1
  {
2
- "_install-KFv1Z6O7.js": {
3
- "file": "install-KFv1Z6O7.js",
2
+ "_install-BOPYSGGa.js": {
3
+ "file": "install-BOPYSGGa.js",
4
+ "name": "install",
4
5
  "dynamicImports": [
5
6
  "src/views/Account.vue",
6
7
  "src/views/QR.vue",
8
+ "src/views/Apps.vue",
9
+ "src/views/CustomApp.vue",
10
+ "src/views/General.vue",
7
11
  "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
8
12
  "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
9
13
  "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
@@ -11,44 +15,78 @@
11
15
  ]
12
16
  },
13
17
  "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js": {
14
- "file": "web-NrPZl3qD.js",
18
+ "file": "web-XbruGdlD.js",
19
+ "name": "web",
15
20
  "src": "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
16
21
  "isDynamicEntry": true
17
22
  },
18
23
  "node_modules/@capacitor-community/facebook-login/dist/esm/web.js": {
19
- "file": "web-L3jORB19.js",
24
+ "file": "web-AXRKjAOB.js",
25
+ "name": "web",
20
26
  "src": "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
21
27
  "isDynamicEntry": true
22
28
  },
23
29
  "node_modules/@capacitor/preferences/dist/esm/web.js": {
24
- "file": "web-AImUTDQQ.js",
30
+ "file": "web-LIfHmYL2.js",
31
+ "name": "web",
25
32
  "src": "node_modules/@capacitor/preferences/dist/esm/web.js",
26
33
  "isDynamicEntry": true
27
34
  },
28
35
  "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js": {
29
- "file": "web-5VtGcKeU.js",
36
+ "file": "web-IFGkBi0t.js",
37
+ "name": "web",
30
38
  "src": "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
31
39
  "isDynamicEntry": true
32
40
  },
33
41
  "src/install.js": {
34
42
  "file": "TapniAuth.umd.js",
43
+ "name": "install",
35
44
  "src": "src/install.js",
36
45
  "isEntry": true
37
46
  },
38
47
  "src/views/Account.vue": {
39
- "file": "Account-uZVmDKkt.js",
48
+ "file": "Account-IR-XgmiM.js",
49
+ "name": "Account",
40
50
  "src": "src/views/Account.vue",
41
51
  "isDynamicEntry": true,
42
52
  "imports": [
43
- "_install-KFv1Z6O7.js"
53
+ "_install-BOPYSGGa.js"
54
+ ]
55
+ },
56
+ "src/views/Apps.vue": {
57
+ "file": "Apps-CQXLKu2F.js",
58
+ "name": "Apps",
59
+ "src": "src/views/Apps.vue",
60
+ "isDynamicEntry": true,
61
+ "imports": [
62
+ "_install-BOPYSGGa.js"
63
+ ]
64
+ },
65
+ "src/views/CustomApp.vue": {
66
+ "file": "CustomApp-FxfYHVid.js",
67
+ "name": "CustomApp",
68
+ "src": "src/views/CustomApp.vue",
69
+ "isDynamicEntry": true,
70
+ "imports": [
71
+ "_install-BOPYSGGa.js"
72
+ ]
73
+ },
74
+ "src/views/General.vue": {
75
+ "file": "General-BVjTsECb.js",
76
+ "name": "General",
77
+ "src": "src/views/General.vue",
78
+ "isDynamicEntry": true,
79
+ "imports": [
80
+ "_install-BOPYSGGa.js"
44
81
  ]
45
82
  },
46
83
  "src/views/QR.vue": {
47
- "file": "QR-UQySwgoT.js",
84
+ "file": "QR-B60f-H2Q.js",
85
+ "name": "QR",
48
86
  "src": "src/views/QR.vue",
49
87
  "isDynamicEntry": true,
50
88
  "imports": [
51
- "_install-KFv1Z6O7.js"
89
+ "_install-BOPYSGGa.js"
52
90
  ]
53
91
  },
54
92
  "style.css": {
@@ -0,0 +1,153 @@
1
+ import { _ as g, A as d, C as u, E as h } from "./install-BOPYSGGa.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-BOPYSGGa.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-BOPYSGGa.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
+ };