@edgedev/create-edge-app 1.0.52 → 1.0.54

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/.env CHANGED
@@ -8,4 +8,5 @@ VITE_FIREBASE_MEASUREMENT_ID=
8
8
  VITE_FIREBASE_EMULATOR_AUTH=
9
9
  VITE_FIREBASE_EMULATOR_FIRESTORE=
10
10
  VITE_FIREBASE_EMULATOR_FUNCTIONS=
11
+ VITE_FIREBASE_EMULATOR_STORAGE=
11
12
  REGISTRATION_CODE=organization-registration-template
@@ -10,5 +10,11 @@
10
10
  "editor.codeActionsOnSave": {
11
11
  "source.fixAll.eslint": "explicit"
12
12
  },
13
+ "editor.formatOnSaveMode": "modifications",
14
+ "editor.trimFinalNewlines": false,
15
+ "vue.features.codeActions": false,
16
+ "editor.tabSize": 2,
17
+ "editor.insertSpaces": true,
18
+ "editor.detectIndentation": false,
13
19
  "vue3snippets.enable-compile-vue-file-on-did-save-code": false
14
- }
20
+ }
package/app.vue CHANGED
@@ -49,6 +49,14 @@ watch(currentOrganization, async () => {
49
49
  }
50
50
  })
51
51
 
52
+ const currentOrg = computed(() => edgeFirebase.data[`organizations/${edgeGlobal.edgeState.currentOrganization}`])
53
+
54
+ watch (currentOrg, async () => {
55
+ if (currentOrg.value) {
56
+ edgeGlobal.edgeState = subscribedStatus(currentOrg.value)
57
+ }
58
+ }, { immediate: true }, { deep: true })
59
+
52
60
  const orgName = computed(() => {
53
61
  const org = edgeGlobal.edgeState.organizations.find(org => org.docId === edgeGlobal.edgeState.currentOrganization)
54
62
  return org?.name
@@ -137,12 +145,28 @@ const menuItems = [
137
145
  </SidebarMenuItem>
138
146
  </SidebarMenu>
139
147
  </template>
148
+ <template #footer="slotProps">
149
+ <Card v-if="slotProps.sideBarState === 'expanded'">
150
+ <CardHeader class="p-2 pt-0 md:p-4">
151
+ <CardTitle>Upgrade to Pro</CardTitle>
152
+ <CardDescription>
153
+ Unlock all features and get unlimited access to our support
154
+ team.
155
+ </CardDescription>
156
+ </CardHeader>
157
+ <CardContent class="p-2 pt-0 md:p-4 md:pt-0">
158
+ <Button size="sm" class="w-full">
159
+ Upgrade
160
+ </Button>
161
+ </CardContent>
162
+ </Card>
163
+ </template>
140
164
  </edge-side-menu>
141
165
  </div>
142
166
  <div class="grow h-full">
143
167
  <div class="flex justify-between p-1">
144
168
  <div>
145
- <SidebarTrigger />
169
+ <!-- possible breadcrumbs -->
146
170
  </div>
147
171
  <div>
148
172
  <edge-user-menu :title="orgName" button-class="w-8 h-8" icon-class="w-6 h-6" />
package/package.json CHANGED
@@ -1,64 +1,64 @@
1
1
  {
2
- "name": "@edgedev/create-edge-app",
3
- "version": "1.0.52",
4
- "description": "Create Edge Starter App",
5
- "bin": {
6
- "create-edge-app": "./bin/cli.js"
7
- },
8
- "scripts": {
9
- "build": "nuxt build",
10
- "dev": "nuxt dev --host --port=3000",
11
- "emulator": "nuxt dev --dotenv .env.dev --host --port=3000",
12
- "build-emulator": "nuxt generate --dotenv .env.dev",
13
- "generate": "nuxt generate",
14
- "preview": "nuxt preview",
15
- "postinstall": "nuxt prepare"
16
- },
17
- "dependencies": {
18
- "@capacitor/android": "5.4.1",
19
- "@capacitor/app": "5.0.6",
20
- "@capacitor/core": "5.4.1",
21
- "@capacitor/ios": "5.4.1",
22
- "@capacitor/push-notifications": "5.1.0",
23
- "@chenfengyuan/vue-number-input": "2",
24
- "@edgedev/firebase": "latest",
25
- "@unovis/ts": "^1.4.1",
26
- "@unovis/vue": "^1.4.1",
27
- "@vee-validate/zod": "^4.13.1",
28
- "@vueuse/core": "10.4.1",
29
- "class-variance-authority": "^0.7.0",
30
- "clsx": "^2.1.1",
31
- "embla-carousel": "^8.1.5",
32
- "embla-carousel-vue": "^8.1.5",
33
- "lucide-vue-next": "^0.394.0",
34
- "maska": "2.1.9",
35
- "radix-vue": "^1.8.3",
36
- "tailwind-merge": "^2.3.0",
37
- "tailwindcss-animate": "^1.0.7",
38
- "v-calendar": "^3.1.2",
39
- "vaul-vue": "^0.1.2",
40
- "vee-validate": "^4.13.1",
41
- "vue-sonner": "^1.1.2",
42
- "vue-upload-component": "^3.1.17",
43
- "zod": "^3.23.8"
44
- },
45
- "devDependencies": {
46
- "@antfu/eslint-config": "0.35.1",
47
- "@capacitor/assets": "3.0.0",
48
- "@capacitor/cli": "5.4.1",
49
- "@mdi/font": "7.1.96",
50
- "@nuxt/devtools": "0.7.2",
51
- "@nuxtjs/color-mode": "^3.4.1",
52
- "@nuxtjs/tailwindcss": "^6.12.0",
53
- "@types/node": "18.11.18",
54
- "@vant/nuxt": "1.0.3",
55
- "eslint": "8.33.0",
56
- "firebase": "9.17.1",
57
- "nuxt": "3.9.3",
58
- "sass": "1.58.0",
59
- "shadcn-nuxt": "^0.10.4",
60
- "typescript": "4.9.5",
61
- "vuedraggable": "4.1.0",
62
- "vuetify": "^3.5.1"
63
- }
64
- }
2
+ "name": "@edgedev/create-edge-app",
3
+ "version": "1.0.54",
4
+ "description": "Create Edge Starter App",
5
+ "bin": {
6
+ "create-edge-app": "./bin/cli.js"
7
+ },
8
+ "scripts": {
9
+ "build": "nuxt build",
10
+ "dev": "nuxt dev --host --port=3000",
11
+ "emulator": "nuxt dev --dotenv .env.dev --host --port=3000",
12
+ "build-emulator": "nuxt generate --dotenv .env.dev",
13
+ "generate": "nuxt generate",
14
+ "preview": "nuxt preview",
15
+ "postinstall": "nuxt prepare"
16
+ },
17
+ "dependencies": {
18
+ "@capacitor/android": "5.4.1",
19
+ "@capacitor/app": "5.0.6",
20
+ "@capacitor/core": "5.4.1",
21
+ "@capacitor/ios": "5.4.1",
22
+ "@capacitor/push-notifications": "5.1.0",
23
+ "@chenfengyuan/vue-number-input": "2",
24
+ "@edgedev/firebase": "latest",
25
+ "@unovis/ts": "^1.4.1",
26
+ "@unovis/vue": "^1.4.1",
27
+ "@vee-validate/zod": "^4.13.1",
28
+ "@vueuse/core": "10.4.1",
29
+ "class-variance-authority": "^0.7.0",
30
+ "clsx": "^2.1.1",
31
+ "embla-carousel": "^8.1.5",
32
+ "embla-carousel-vue": "^8.1.5",
33
+ "lucide-vue-next": "^0.394.0",
34
+ "maska": "2.1.9",
35
+ "radix-vue": "^1.8.3",
36
+ "tailwind-merge": "^2.3.0",
37
+ "tailwindcss-animate": "^1.0.7",
38
+ "v-calendar": "^3.1.2",
39
+ "vaul-vue": "^0.1.2",
40
+ "vee-validate": "^4.13.1",
41
+ "vue-sonner": "^1.1.2",
42
+ "vue-upload-component": "^3.1.17",
43
+ "zod": "^3.23.8"
44
+ },
45
+ "devDependencies": {
46
+ "@antfu/eslint-config": "0.35.1",
47
+ "@capacitor/assets": "3.0.0",
48
+ "@capacitor/cli": "5.4.1",
49
+ "@mdi/font": "7.1.96",
50
+ "@nuxt/devtools": "0.7.2",
51
+ "@nuxtjs/color-mode": "^3.4.1",
52
+ "@nuxtjs/tailwindcss": "^6.12.0",
53
+ "@types/node": "18.11.18",
54
+ "@vant/nuxt": "1.0.3",
55
+ "eslint": "8.33.0",
56
+ "firebase": "9.17.1",
57
+ "nuxt": "3.9.3",
58
+ "sass": "1.58.0",
59
+ "shadcn-nuxt": "^0.10.4",
60
+ "typescript": "4.9.5",
61
+ "vuedraggable": "4.1.0",
62
+ "vuetify": "^3.5.1"
63
+ }
64
+ }