@edgedev/create-edge-app 1.0.60 → 1.0.61

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/app.vue CHANGED
@@ -121,15 +121,7 @@ const menuItems = [
121
121
  <template>
122
122
  <Toaster />
123
123
  <div class="flex flex-col h-screen">
124
- <!-- <edge-menu v-if="edgeFirebase.user.loggedIn" type="header" nav-class="justify-start" class="bg-slate-300 dark:bg-slate-900" :menu-items="menuItems">
125
- <template #start>
126
- <Package class="h-6 w-6 mr-2" />
127
- <h1 class="text-xl font-bold">
128
- {{ orgName }}
129
- </h1>
130
- </template>
131
- </edge-menu> -->
132
- <div class="flex h-full">
124
+ <div class="flex h-full w-full">
133
125
  <SidebarProvider>
134
126
  <div class="h-full">
135
127
  <edge-side-menu
@@ -163,33 +155,37 @@ const menuItems = [
163
155
  </template>
164
156
  </edge-side-menu>
165
157
  </div>
166
- <div class="grow h-full">
167
- <div class="flex justify-between p-1">
168
- <div>
169
- <!-- possible breadcrumbs -->
170
- </div>
171
- <div>
172
- <edge-user-menu v-if="edgeFirebase.user.loggedIn" :title="orgName" button-class="w-8 h-8" icon-class="w-6 h-6" />
173
- </div>
174
- </div>
175
- <NuxtPage keepalive />
158
+ <div class="grow h-full flex flex-col h-screen">
159
+ <edge-menu
160
+ v-if="edgeFirebase.user.loggedIn"
161
+ type="nav"
162
+ nav-class="justify-left mr-8"
163
+ :menu-items="menuItems"
164
+ >
165
+ <template #start>
166
+ <SidebarTrigger class="-ml-2 mr-2 h-4 w-4" />
167
+ <Package class="h-6 w-6 mr-2" />
168
+ <h1 class="text-xl font-bold">
169
+ {{ orgName }}
170
+ </h1>
171
+ </template>
172
+ </edge-menu>
173
+ <NuxtPage class="flex-1 flex flex-col overflow-y-auto p-3" keepalive />
174
+ <edge-menu
175
+ v-if="edgeFirebase.user.loggedIn"
176
+ type="footer"
177
+ nav-class="justify-end mr-8"
178
+ :menu-items="menuItems"
179
+ >
180
+ <template #start>
181
+ <div class="text-xs text-muted-foreground">
182
+ Copyright {{ new Date().getFullYear() }}
183
+ </div>
184
+ </template>
185
+ </edge-menu>
176
186
  </div>
177
187
  </SidebarProvider>
178
188
  </div>
179
- <!-- <edge-menu
180
- v-if="edgeFirebase.user.loggedIn"
181
- type="footer"
182
- button-class="text-slate-500"
183
- nav-class="justify-end mr-8"
184
- class="bg-slate-800"
185
- :menu-items="menuItems"
186
- >
187
- <template #start>
188
- <div class="text-xs text-muted-foreground">
189
- Copyright {{ new Date().getFullYear() }}
190
- </div>
191
- </template>
192
- </edge-menu> -->
193
189
  </div>
194
190
  </template>
195
191
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/create-edge-app",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "description": "Create Edge Starter App",
5
5
  "bin": {
6
6
  "create-edge-app": "./bin/cli.js"
@@ -56,17 +56,14 @@ const page = computed(() => {
56
56
  <template>
57
57
  <div
58
58
  v-if="edgeFirebase?.user?.loggedIn"
59
- class="p-3 w-full h-[calc(100vh-118px)] overflow-y-auto"
60
59
  >
61
- <div class="gap-2 h-full w-full justify-items-center">
62
- <Card class="w-full h-full bg-muted/50 max-w-7xl m-auto pt-3">
63
- <edge-organization-settings v-if="page === 'organization-settings'" :form-schema="orgSchema" :org-fields="orgFields" />
64
- <edge-my-account v-if="page === 'my-account'" />
65
- <edge-my-profile v-if="page === 'my-profile'" :form-schema="metaSchema" :meta-fields="metaFields" />
66
- <edge-organization-members v-if="page === 'organization-members'" />
67
- <edge-my-organizations v-if="page === 'my-organizations'" :registration-code="config.public.registrationCode" />
68
- <edge-billing v-if="page === 'subscription'" />
69
- </Card>
70
- </div>
60
+ <Card class="w-full flex-1 bg-muted/50 max-w-7xl m-auto ">
61
+ <edge-organization-settings v-if="page === 'organization-settings'" :subscribe-options="subscribeOptions" :form-schema="orgSchema" :org-fields="orgFields" />
62
+ <edge-my-account v-if="page === 'my-account'" />
63
+ <edge-my-profile v-if="page === 'my-profile'" :form-schema="metaSchema" :meta-fields="metaFields" />
64
+ <edge-organization-members v-if="page === 'organization-members'" />
65
+ <edge-my-organizations v-if="page === 'my-organizations'" :registration-code="config.public.registrationCode" />
66
+ <edge-billing v-if="page === 'subscription'" />
67
+ </Card>
71
68
  </div>
72
69
  </template>
@@ -73,9 +73,8 @@ onMounted(() => {
73
73
  <template>
74
74
  <div
75
75
  v-if="edgeFirebase?.user?.loggedIn"
76
- class="p-3 w-full h-[calc(100vh-118px)] overflow-y-auto"
77
76
  >
78
- <edge-dashboard v-if="docId === '' && collection !== ''" :filter="state.filter" :collection="collection">
77
+ <edge-dashboard v-if="docId === ''" :filter="state.filter" :collection="collection" class="flex-1">
79
78
  <template #header-start>
80
79
  <LayoutDashboard class="mr-2" />
81
80
  <span class="capitalize">{{ collection }}</span>
@@ -126,6 +125,7 @@ onMounted(() => {
126
125
  :doc-id="docId"
127
126
  :schema="schemas[collection]"
128
127
  :new-doc-schema="state.newDocs[collection]"
128
+ class="w-full max-w-7xl mx-auto flex-1"
129
129
  >
130
130
  <template #header-start="slotProps">
131
131
  <FilePenLine class="mr-2" />