@tapni/auth 1.0.4 → 1.0.6

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.
@@ -1,21 +1,25 @@
1
1
  {
2
- "_install-BzPu9V_c.js": {
3
- "file": "install-BzPu9V_c.js",
2
+ "_auth.css": {
3
+ "file": "auth.css",
4
+ "src": "_auth.css"
5
+ },
6
+ "_install-DBU_KAIr.js": {
7
+ "file": "install-DBU_KAIr.js",
4
8
  "name": "install",
5
9
  "dynamicImports": [
6
- "src/views/Account.vue",
7
10
  "src/views/QR.vue",
8
11
  "src/views/Apps.vue",
12
+ "src/views/Billing.vue",
9
13
  "src/views/CustomApp.vue",
10
14
  "src/views/General.vue",
11
15
  "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
12
16
  "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
13
17
  "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
14
- "node_modules/@capacitor/preferences/dist/esm/web.js"
18
+ "node_modules/@tapni/capacitor-reactive-localstorage-vue3/node_modules/@capacitor/preferences/dist/esm/web.js"
15
19
  ]
16
20
  },
17
21
  "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js": {
18
- "file": "web-XbruGdlD.js",
22
+ "file": "web-BhPSya4n.js",
19
23
  "name": "web",
20
24
  "src": "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
21
25
  "isDynamicEntry": true
@@ -26,71 +30,67 @@
26
30
  "src": "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
27
31
  "isDynamicEntry": true
28
32
  },
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
33
  "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js": {
36
34
  "file": "web-IFGkBi0t.js",
37
35
  "name": "web",
38
36
  "src": "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
39
37
  "isDynamicEntry": true
40
38
  },
39
+ "node_modules/@tapni/capacitor-reactive-localstorage-vue3/node_modules/@capacitor/preferences/dist/esm/web.js": {
40
+ "file": "web-LIfHmYL2.js",
41
+ "name": "web",
42
+ "src": "node_modules/@tapni/capacitor-reactive-localstorage-vue3/node_modules/@capacitor/preferences/dist/esm/web.js",
43
+ "isDynamicEntry": true
44
+ },
41
45
  "src/install.js": {
42
46
  "file": "TapniAuth.umd.js",
43
47
  "name": "install",
44
48
  "src": "src/install.js",
45
49
  "isEntry": true
46
50
  },
47
- "src/views/Account.vue": {
48
- "file": "Account-zep_QUuI.js",
49
- "name": "Account",
50
- "src": "src/views/Account.vue",
51
+ "src/views/Apps.vue": {
52
+ "file": "Apps-CQsB1lEC.js",
53
+ "name": "Apps",
54
+ "src": "src/views/Apps.vue",
51
55
  "isDynamicEntry": true,
52
56
  "imports": [
53
- "_install-BzPu9V_c.js"
57
+ "_install-DBU_KAIr.js"
54
58
  ]
55
59
  },
56
- "src/views/Apps.vue": {
57
- "file": "Apps-B9XB7Z7q.js",
58
- "name": "Apps",
59
- "src": "src/views/Apps.vue",
60
+ "src/views/Billing.vue": {
61
+ "file": "Billing-BIO99qab.js",
62
+ "name": "Billing",
63
+ "src": "src/views/Billing.vue",
60
64
  "isDynamicEntry": true,
61
65
  "imports": [
62
- "_install-BzPu9V_c.js"
66
+ "_install-DBU_KAIr.js"
63
67
  ]
64
68
  },
65
69
  "src/views/CustomApp.vue": {
66
- "file": "CustomApp-BzUsyycz.js",
70
+ "file": "CustomApp-CQ4RAku_.js",
67
71
  "name": "CustomApp",
68
72
  "src": "src/views/CustomApp.vue",
69
73
  "isDynamicEntry": true,
70
74
  "imports": [
71
- "_install-BzPu9V_c.js"
75
+ "_install-DBU_KAIr.js"
72
76
  ]
73
77
  },
74
78
  "src/views/General.vue": {
75
- "file": "General-DkcdjPYQ.js",
79
+ "file": "General-iSouoUZJ.js",
76
80
  "name": "General",
77
81
  "src": "src/views/General.vue",
78
82
  "isDynamicEntry": true,
79
83
  "imports": [
80
- "_install-BzPu9V_c.js"
84
+ "_install-DBU_KAIr.js"
81
85
  ]
82
86
  },
83
87
  "src/views/QR.vue": {
84
- "file": "QR-PW6cAG5j.js",
88
+ "file": "QR-CCoQyrlf.js",
85
89
  "name": "QR",
86
90
  "src": "src/views/QR.vue",
87
91
  "isDynamicEntry": true,
88
92
  "imports": [
89
- "_install-BzPu9V_c.js"
93
+ "_install-DBU_KAIr.js"
90
94
  ]
91
- },
92
- "style.css": {
93
- "file": "style.css",
94
- "src": "style.css"
95
95
  }
96
96
  }
@@ -0,0 +1,109 @@
1
+ import { a as l, _ as g, A as u, E as _ } from "./install-DBU_KAIr.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,113 @@
1
+ import { _ as d, A as u, b as g, E as _ } from "./install-DBU_KAIr.js";
2
+ import { resolveComponent as h, openBlock as e, createElementBlock as i, createElementVNode as s, createCommentVNode as r, createBlock as b, withCtx as m, toDisplayString as a, createTextVNode as f, Fragment as y, renderList as v } from "vue";
3
+ const w = {
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
+ }, k = { class: "page-login content-boxed content-boxed-padding" }, B = { class: "subheaderContainer full-top" }, x = ["src"], I = {
47
+ class: "center-text",
48
+ style: { "flex-grow": "1", "text-align": "center", margin: "0", "font-weight": "600" }
49
+ }, L = { class: "container left-text" }, A = { class: "center-text" }, C = { class: "full-top" }, E = { class: "firstRow" }, M = ["src"], N = ["src"];
50
+ function R(t, o, V, $, l, c) {
51
+ const p = h("router-link");
52
+ return e(), i("div", k, [
53
+ t.isModal ? (e(), i("a", {
54
+ key: 0,
55
+ onClick: o[0] || (o[0] = (...n) => c.close && c.close(...n)),
56
+ class: "color-black pull-right pointer",
57
+ style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
58
+ }, o[1] || (o[1] = [
59
+ s("i", { class: "font-17 color-black" }, [
60
+ s("img", {
61
+ src: "https://cdn.tapni.co/icons/down-arrow.png",
62
+ class: "responsive-image",
63
+ style: { width: "35%" }
64
+ })
65
+ ], -1)
66
+ ]))) : r("", !0),
67
+ s("div", B, [
68
+ t.isModal ? r("", !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, x)
81
+ ]),
82
+ _: 1
83
+ })),
84
+ s("h2", I, a(t.ssoLang[t.appLanguage].billing), 1)
85
+ ]),
86
+ s("div", L, [
87
+ s("p", A, a(t.ssoLang[t.appLanguage].billing_p), 1),
88
+ s("div", C, [
89
+ r("", !0),
90
+ f(" " + a(t.account.billing) + " ", 1),
91
+ (e(!0), i(y, null, v(l.subscriptions, (n) => (e(), i("div", {
92
+ key: n.id,
93
+ class: "settingRow half-bottom"
94
+ }, [
95
+ s("div", E, [
96
+ s("img", {
97
+ src: t.getIcon(t.app.t_apps_icon),
98
+ class: "withBackground"
99
+ }, null, 8, M),
100
+ s("h4", null, a(n.t_subscriptions_name), 1),
101
+ s("img", {
102
+ src: t.getIcon("arrow-gray-right.svg")
103
+ }, null, 8, N)
104
+ ])
105
+ ]))), 128))
106
+ ])
107
+ ])
108
+ ]);
109
+ }
110
+ const q = /* @__PURE__ */ d(w, [["render", R], ["__scopeId", "data-v-4d3e1bec"]]);
111
+ export {
112
+ q as default
113
+ };
@@ -0,0 +1,83 @@
1
+ import { _ as d, A as u, b as g, E as m } from "./install-DBU_KAIr.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
+ };