@edgedev/create-edge-app 1.0.37 → 1.0.39
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 +26 -0
- package/app.vue +1 -0
- package/components/dashboard.vue +1 -1
- package/components/editor.vue +1 -1
- package/functions/stripe.js +6 -0
- package/package.json +1 -1
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
package/components/dashboard.vue
CHANGED
|
@@ -90,7 +90,7 @@ const deleteAction = () => {
|
|
|
90
90
|
</script>
|
|
91
91
|
|
|
92
92
|
<template>
|
|
93
|
-
<v-card v-if="state.afterMount">
|
|
93
|
+
<v-card v-if="state.afterMount" class="mx-auto" max-width="1200">
|
|
94
94
|
<v-toolbar flat>
|
|
95
95
|
<v-toolbar-title>{{ capitalizeFirstLetter(props.collection) }}</v-toolbar-title>
|
|
96
96
|
<v-text-field
|
package/components/editor.vue
CHANGED
|
@@ -148,7 +148,7 @@ watch(() => edgeFirebase.data[`${edgeGlobal.edgeState.organizationDocPath}/${pro
|
|
|
148
148
|
</script>
|
|
149
149
|
|
|
150
150
|
<template>
|
|
151
|
-
<v-card v-if="state.afterMount">
|
|
151
|
+
<v-card v-if="state.afterMount" class="mx-auto" max-width="1200">
|
|
152
152
|
<v-form
|
|
153
153
|
v-model="state.form"
|
|
154
154
|
validate-on="submit"
|
package/functions/stripe.js
CHANGED
|
@@ -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 })
|