@goweekdays/layer-common 1.4.3 → 1.4.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.
- package/CHANGELOG.md +6 -0
- package/components/MemberMain.vue +7 -2
- package/composables/useLedgerBilling.ts +24 -0
- package/composables/useVerification.ts +12 -0
- package/nuxt.config.ts +3 -0
- package/package.json +1 -1
- package/pages/index.vue +34 -13
- package/composables/usePayment.ts +0 -22
package/CHANGELOG.md
CHANGED
|
@@ -15,7 +15,13 @@
|
|
|
15
15
|
</v-col>
|
|
16
16
|
|
|
17
17
|
<v-col cols="12">
|
|
18
|
-
<v-card
|
|
18
|
+
<v-card
|
|
19
|
+
width="100%"
|
|
20
|
+
variant="outlined"
|
|
21
|
+
border="thin"
|
|
22
|
+
rounded="lg"
|
|
23
|
+
:loading="loading"
|
|
24
|
+
>
|
|
19
25
|
<v-toolbar density="compact" color="grey-lighten-4">
|
|
20
26
|
<template #prepend>
|
|
21
27
|
<v-btn fab icon density="comfortable" @click="getAll()">
|
|
@@ -62,7 +68,6 @@
|
|
|
62
68
|
hide-default-header
|
|
63
69
|
hide-default-footer
|
|
64
70
|
style="max-height: calc(100vh - (126px))"
|
|
65
|
-
:loading="loading"
|
|
66
71
|
@click:row="handleRowClick"
|
|
67
72
|
>
|
|
68
73
|
</v-data-table>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default function useLedgerBilling() {
|
|
2
|
+
function getAll({ org = "", search = "", page = 1, status = "" } = {}) {
|
|
3
|
+
return $fetch<Record<string, any>>("/api/ledger/billings", {
|
|
4
|
+
method: "GET",
|
|
5
|
+
query: {
|
|
6
|
+
org,
|
|
7
|
+
search,
|
|
8
|
+
page,
|
|
9
|
+
status,
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function getById(id = "") {
|
|
15
|
+
return $fetch<Record<string, any>>(`/api/ledger/billings/id/${id}`, {
|
|
16
|
+
method: "GET",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return {
|
|
21
|
+
getAll,
|
|
22
|
+
getById,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -39,10 +39,22 @@ export default function useUser() {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
function orgSetupFee(
|
|
43
|
+
value: Pick<TOrg, "name" | "email" | "contact" | "createdBy"> & {
|
|
44
|
+
seats: number;
|
|
45
|
+
}
|
|
46
|
+
) {
|
|
47
|
+
return $fetch<Record<string, any>>("/api/verifications/org-setup-fee", {
|
|
48
|
+
method: "POST",
|
|
49
|
+
body: value,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
42
53
|
return {
|
|
43
54
|
getVerifications,
|
|
44
55
|
inviteMember,
|
|
45
56
|
signUp,
|
|
46
57
|
cancelInvite,
|
|
58
|
+
orgSetupFee,
|
|
47
59
|
};
|
|
48
60
|
}
|
package/nuxt.config.ts
CHANGED
|
@@ -61,6 +61,9 @@ export default defineNuxtConfig({
|
|
|
61
61
|
"/api/plans/**": {
|
|
62
62
|
proxy: `${process.env.API_CORE}/api/plans/**`,
|
|
63
63
|
},
|
|
64
|
+
"/api/payments/**": {
|
|
65
|
+
proxy: `${process.env.API_CORE}/api/payments/**`,
|
|
66
|
+
},
|
|
64
67
|
"/api/members/**": { proxy: `${process.env.API_CORE}/api/members/**` },
|
|
65
68
|
"/api/teams/**": { proxy: `${process.env.API_CORE}/api/teams/**` },
|
|
66
69
|
"/api/entities/**": { proxy: `${process.env.API_CORE}/api/entities/**` },
|
package/package.json
CHANGED
package/pages/index.vue
CHANGED
|
@@ -5,18 +5,39 @@
|
|
|
5
5
|
</v-col>
|
|
6
6
|
|
|
7
7
|
<v-col cols="12" class="text-center mt-6" v-if="currentUser">
|
|
8
|
-
<v-row no-gutters
|
|
9
|
-
<v-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
<v-row no-gutters>
|
|
9
|
+
<v-col cols="12" class="mb-2">
|
|
10
|
+
<v-row no-gutters justify="center">
|
|
11
|
+
<v-btn
|
|
12
|
+
class="text-none"
|
|
13
|
+
rounded="xl"
|
|
14
|
+
variant="tonal"
|
|
15
|
+
size="large"
|
|
16
|
+
@click="handleSignin()"
|
|
17
|
+
>
|
|
18
|
+
<span class="d-inline-block text-truncate" style="width: 250px">
|
|
19
|
+
login as {{ currentUser?.email }}
|
|
20
|
+
</span>
|
|
21
|
+
</v-btn>
|
|
22
|
+
</v-row>
|
|
23
|
+
</v-col>
|
|
24
|
+
|
|
25
|
+
<v-col cols="12">
|
|
26
|
+
<v-row no-gutters justify="center">
|
|
27
|
+
<v-btn
|
|
28
|
+
class="text-none"
|
|
29
|
+
rounded="xl"
|
|
30
|
+
variant="flat"
|
|
31
|
+
color="black"
|
|
32
|
+
size="large"
|
|
33
|
+
:to="{ name: 'login' }"
|
|
34
|
+
>
|
|
35
|
+
<span class="d-inline-block text-truncate" style="width: 250px">
|
|
36
|
+
login with another account
|
|
37
|
+
</span>
|
|
38
|
+
</v-btn>
|
|
39
|
+
</v-row>
|
|
40
|
+
</v-col>
|
|
20
41
|
</v-row>
|
|
21
42
|
</v-col>
|
|
22
43
|
|
|
@@ -31,7 +52,7 @@
|
|
|
31
52
|
size="large"
|
|
32
53
|
:to="{ name: 'login' }"
|
|
33
54
|
>
|
|
34
|
-
|
|
55
|
+
Login
|
|
35
56
|
</v-btn>
|
|
36
57
|
</v-col>
|
|
37
58
|
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export default function usePayment() {
|
|
2
|
-
function getPayments({
|
|
3
|
-
search = "",
|
|
4
|
-
id = "",
|
|
5
|
-
page = 1,
|
|
6
|
-
status = "completed",
|
|
7
|
-
} = {}) {
|
|
8
|
-
return $fetch<Record<string, any>>("/api/payments", {
|
|
9
|
-
method: "GET",
|
|
10
|
-
query: {
|
|
11
|
-
search,
|
|
12
|
-
id,
|
|
13
|
-
page,
|
|
14
|
-
status,
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return {
|
|
20
|
-
getPayments,
|
|
21
|
-
};
|
|
22
|
-
}
|