@edgedev/create-edge-app 1.0.38 → 1.0.40

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/README.md CHANGED
@@ -7,4 +7,30 @@ npm install -g --ignore-scripts @edgedev/create-edge-app
7
7
 
8
8
  #Then run this whenever you want to create a new app:
9
9
  npx @edgedev/create-edge-app yourappname
10
+
11
+ #Besides other insturtions for deep links also this:
12
+ Need to add this to Info.plist:
13
+
14
+ <key>CFBundleURLTypes</key>
15
+ <array>
16
+ <dict>
17
+ <key>CFBundleURLSchemes</key>
18
+ <array>
19
+ <string>com.edgemarketingdesign.offcall</string>
20
+ </array>
21
+ <key>CFBundleURLName</key>
22
+ <string>Offcall App URL</string>
23
+ <key>CFBundleURLTypes</key>
24
+ <array>
25
+ <dict>
26
+ <key>CFBundleURLSchemes</key>
27
+ <array>
28
+ <string>*</string>
29
+ </array>
30
+ <key>CFBundleURLName</key>
31
+ <string>Wildcard</string>
32
+ </dict>
33
+ </array>
34
+ </dict>
35
+ </array>
10
36
  ```
package/app.vue CHANGED
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ // TODO : ADD CODE FOR NOTIFICATIONS AND DEEP LINKING
2
3
  import { useTheme } from 'vuetify'
3
4
 
4
5
  const vueTheme = useTheme()
@@ -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
- <v-toolbar flat>
33
+ <v-card :rounded="0">
34
+ <sub-toolbar>
32
35
  <v-icon class="mx-4">
33
- mdi-account-group-outline
36
+ mdi-account
34
37
  </v-icon>
35
- {{ edgeGlobal.currentOrganizationObject.name }}
36
- </v-toolbar>
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
@@ -63,20 +66,34 @@ const config = useRuntimeConfig()
63
66
  <v-list-item link to="/app/account/my-account">
64
67
  <v-list-item-title>Account</v-list-item-title>
65
68
  </v-list-item>
66
- <v-list-item link to="/app/account/my-organizations">
67
- <v-list-item-title>Organizations</v-list-item-title>
68
- </v-list-item>
69
69
  </v-list>
70
70
 
71
71
  <v-divider />
72
72
  </v-card>
73
73
  </v-col>
74
- <v-col cols="9">
74
+ <v-col cols="12" sm="9">
75
+ <!-- Mobile tabs -->
76
+ <v-tabs v-model="site" center-active show-arrows class="d-sm-none">
77
+ <v-tab key="org-settings" value="org-settings" to="/app/account/organization-settings">
78
+ Org Settings
79
+ </v-tab>
80
+ <v-tab key="org-members" value="org-members" to="/app/account/organization-members">
81
+ Org Members
82
+ </v-tab>
83
+ <v-tab key="my-profile" value="my-profile" to="/app/account/my-profile">
84
+ Profile
85
+ </v-tab>
86
+ <v-tab key="my-account" value="my-account" to="/app/account/my-account">
87
+ Account
88
+ </v-tab>
89
+ </v-tabs>
90
+ <!-- Content -->
75
91
  <edge-organization-settings v-if="site === 'organization-settings'" :org-fields="orgFields" />
76
92
  <edge-my-account v-if="site === 'my-account'" />
77
93
  <edge-my-profile v-if="site === 'my-profile'" :meta-fields="metaFields" />
78
94
  <edge-organization-members v-if="site === 'organization-members'" />
79
95
  <edge-my-organizations v-if="site === 'my-organizations'" :registration-code="config.public.registrationCode" />
96
+ <billing v-if="site === 'subscription'" />
80
97
  </v-col>
81
98
  </v-row>
82
99
  </v-card-text>
@@ -0,0 +1,8 @@
1
+ <script setup>
2
+ </script>
3
+
4
+ <template>
5
+ <div>
6
+ <v-card v-if="globalState.subscribedStatus.isSubscribed" outlined />
7
+ </div>
8
+ </template>
@@ -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>
@@ -82,6 +82,12 @@ exports.webhook = onRequest(async (request, response) => {
82
82
  if (session.customer) {
83
83
  await docRef.update({ stripeCustomerId: session.customer })
84
84
  }
85
+ if (session?.lines?.data[0]?.plan?.product) {
86
+ await docRef.update({ stripeProductId: session.lines.data[0].plan.product })
87
+ }
88
+ if (session?.lines?.data[0]?.price?.id) {
89
+ await docRef.update({ stripePriceId: session.lines.data[0].price.id })
90
+ }
85
91
 
86
92
  if (['customer.subscription.created', 'customer.subscription.updated', 'customer.subscription.deleted'].includes(event.type)) {
87
93
  await docRef.update({ stripeSubscription: session.status })
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.38",
3
+ "version": "1.0.40",
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.1.2",
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
  }