@edgedev/create-edge-app 1.0.39 → 1.0.41
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/components/account.vue +31 -8
- package/components/billing.vue +8 -0
- package/components/subToolbar.vue +24 -0
- package/nuxt.config.ts +4 -0
- package/package.json +7 -7
package/components/account.vue
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { useRoute, useRouter } from 'vue-router'
|
|
3
|
+
|
|
2
4
|
const route = useRoute()
|
|
5
|
+
const router = useRouter()
|
|
3
6
|
const edgeGlobal = inject('edgeGlobal')
|
|
4
7
|
const site = computed(() => {
|
|
5
8
|
return route.params.collection
|
|
@@ -27,16 +30,17 @@ const config = useRuntimeConfig()
|
|
|
27
30
|
</script>
|
|
28
31
|
|
|
29
32
|
<template>
|
|
30
|
-
<v-card>
|
|
31
|
-
<
|
|
33
|
+
<v-card :rounded="0">
|
|
34
|
+
<sub-toolbar>
|
|
32
35
|
<v-icon class="mx-4">
|
|
33
|
-
mdi-account
|
|
36
|
+
mdi-account
|
|
34
37
|
</v-icon>
|
|
35
|
-
|
|
36
|
-
</
|
|
38
|
+
Account Settings
|
|
39
|
+
</sub-toolbar>
|
|
37
40
|
<v-card-text>
|
|
38
41
|
<v-row>
|
|
39
|
-
<v-col cols="3">
|
|
42
|
+
<v-col cols="12" sm="3" class="d-none d-sm-block">
|
|
43
|
+
<!-- Desktop sidebar -->
|
|
40
44
|
<v-card>
|
|
41
45
|
<v-list :lines="false" density="compact" nav>
|
|
42
46
|
<v-list-subheader class="">
|
|
@@ -51,7 +55,6 @@ const config = useRuntimeConfig()
|
|
|
51
55
|
</v-list-item>
|
|
52
56
|
</v-list>
|
|
53
57
|
<v-divider />
|
|
54
|
-
|
|
55
58
|
<v-list :lines="false" density="compact" nav>
|
|
56
59
|
<v-list-subheader class="">
|
|
57
60
|
My Settings
|
|
@@ -71,12 +74,32 @@ const config = useRuntimeConfig()
|
|
|
71
74
|
<v-divider />
|
|
72
75
|
</v-card>
|
|
73
76
|
</v-col>
|
|
74
|
-
<v-col cols="9">
|
|
77
|
+
<v-col cols="12" sm="9">
|
|
78
|
+
<!-- Mobile tabs -->
|
|
79
|
+
<v-tabs v-model="site" center-active show-arrows class="d-sm-none">
|
|
80
|
+
<v-tab key="org-settings" value="org-settings" to="/app/account/organization-settings">
|
|
81
|
+
Org Settings
|
|
82
|
+
</v-tab>
|
|
83
|
+
<v-tab key="org-members" value="org-members" to="/app/account/organization-members">
|
|
84
|
+
Org Members
|
|
85
|
+
</v-tab>
|
|
86
|
+
<v-tab key="my-profile" value="my-profile" to="/app/account/my-profile">
|
|
87
|
+
Profile
|
|
88
|
+
</v-tab>
|
|
89
|
+
<v-tab key="my-account" value="my-account" to="/app/account/my-account">
|
|
90
|
+
Account
|
|
91
|
+
</v-tab>
|
|
92
|
+
<v-tab key="my-organizations" value="my-organizations" to="/app/account/my-organizations">
|
|
93
|
+
Organizations
|
|
94
|
+
</v-tab>
|
|
95
|
+
</v-tabs>
|
|
96
|
+
<!-- Content -->
|
|
75
97
|
<edge-organization-settings v-if="site === 'organization-settings'" :org-fields="orgFields" />
|
|
76
98
|
<edge-my-account v-if="site === 'my-account'" />
|
|
77
99
|
<edge-my-profile v-if="site === 'my-profile'" :meta-fields="metaFields" />
|
|
78
100
|
<edge-organization-members v-if="site === 'organization-members'" />
|
|
79
101
|
<edge-my-organizations v-if="site === 'my-organizations'" :registration-code="config.public.registrationCode" />
|
|
102
|
+
<billing v-if="site === 'subscription'" />
|
|
80
103
|
</v-col>
|
|
81
104
|
</v-row>
|
|
82
105
|
</v-card-text>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
const el = ref(null)
|
|
3
|
+
const edgeFirebase = inject('edgeFirebase')
|
|
4
|
+
const user = computed(() => {
|
|
5
|
+
return edgeFirebase.user
|
|
6
|
+
})
|
|
7
|
+
watch (el, async () => {
|
|
8
|
+
if (user.value.loggedIn) {
|
|
9
|
+
globalState.secondHeaderHeight = el.value.$el.offsetHeight
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<v-layout-item ref="el" model-value position="top" class="text-center van-safe-area-top" size="64">
|
|
16
|
+
<v-toolbar flat class="px-4">
|
|
17
|
+
<slot />
|
|
18
|
+
</v-toolbar>
|
|
19
|
+
</v-layout-item>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<style lang="scss" scoped>
|
|
23
|
+
|
|
24
|
+
</style>
|
package/nuxt.config.ts
CHANGED
|
@@ -13,6 +13,9 @@ export default defineNuxtConfig({
|
|
|
13
13
|
registrationCode: process.env.REGISTRATION_CODE,
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
|
+
modules: [
|
|
17
|
+
'@vant/nuxt',
|
|
18
|
+
],
|
|
16
19
|
components: {
|
|
17
20
|
dirs: [
|
|
18
21
|
{ path: '~/components/formSubtypes', global: true, prefix: 'form-subtypes' },
|
|
@@ -24,4 +27,5 @@ export default defineNuxtConfig({
|
|
|
24
27
|
'process.env.DEBUG': false,
|
|
25
28
|
},
|
|
26
29
|
},
|
|
30
|
+
devtools: { enabled: false },
|
|
27
31
|
})
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edgedev/create-edge-app",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.41",
|
|
4
4
|
"description": "Create Edge Starter App",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-edge-app": "./bin/cli.js"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "nuxt build",
|
|
10
|
-
"dev": "nuxt dev",
|
|
11
|
-
"emulator": "nuxt dev --dotenv .env.dev",
|
|
10
|
+
"dev": "nuxt dev --host",
|
|
11
|
+
"emulator": "nuxt dev --dotenv .env.dev --host",
|
|
12
12
|
"build-emulator": "nuxt generate --dotenv .env.dev",
|
|
13
13
|
"generate": "nuxt generate",
|
|
14
14
|
"preview": "nuxt preview",
|
|
@@ -24,10 +24,11 @@
|
|
|
24
24
|
"@vant/nuxt": "1.0.3",
|
|
25
25
|
"eslint": "8.33.0",
|
|
26
26
|
"firebase": "9.17.1",
|
|
27
|
-
"nuxt": "3.
|
|
27
|
+
"nuxt": "3.9.3",
|
|
28
28
|
"sass": "1.58.0",
|
|
29
29
|
"typescript": "4.9.5",
|
|
30
|
-
"vuedraggable": "4.1.0"
|
|
30
|
+
"vuedraggable": "4.1.0",
|
|
31
|
+
"vuetify": "^3.5.1"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
34
|
"@capacitor/android": "5.4.1",
|
|
@@ -38,7 +39,6 @@
|
|
|
38
39
|
"@chenfengyuan/vue-number-input": "2",
|
|
39
40
|
"@edgedev/firebase": "latest",
|
|
40
41
|
"@vueuse/core": "10.4.1",
|
|
41
|
-
"maska": "2.1.9"
|
|
42
|
-
"vuetify": "3.3.19"
|
|
42
|
+
"maska": "2.1.9"
|
|
43
43
|
}
|
|
44
44
|
}
|