@7365admin1/layer-common 1.8.0

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.
Files changed (198) hide show
  1. package/.changeset/README.md +8 -0
  2. package/.changeset/config.json +11 -0
  3. package/.editorconfig +12 -0
  4. package/.github/workflows/main.yml +17 -0
  5. package/.github/workflows/publish.yml +39 -0
  6. package/.nuxtrc +1 -0
  7. package/.playground/app.vue +41 -0
  8. package/.playground/eslint.config.mjs +6 -0
  9. package/.playground/nuxt.config.ts +22 -0
  10. package/.playground/pages/feedback.vue +30 -0
  11. package/CHANGELOG.md +263 -0
  12. package/README.md +73 -0
  13. package/app.vue +3 -0
  14. package/components/AccessCardAddForm.vue +363 -0
  15. package/components/AccessManagement.vue +420 -0
  16. package/components/Avatar/Main.vue +68 -0
  17. package/components/BillingMain.vue +66 -0
  18. package/components/BtnUploadFile.vue +139 -0
  19. package/components/BuildingForm.vue +303 -0
  20. package/components/BuildingManagement/buildings.vue +335 -0
  21. package/components/BuildingManagement/units.vue +350 -0
  22. package/components/BuildingUnitFormAdd.vue +441 -0
  23. package/components/BuildingUnitFormEdit.vue +429 -0
  24. package/components/CameraForm.vue +264 -0
  25. package/components/CameraMain.vue +352 -0
  26. package/components/Card/DeleteConfirmation.vue +51 -0
  27. package/components/Card/MemberInfoSummary.vue +44 -0
  28. package/components/Card/Toggle.vue +25 -0
  29. package/components/Chat/Bubbles.vue +53 -0
  30. package/components/Chat/Information.vue +416 -0
  31. package/components/Chat/ListCard.vue +62 -0
  32. package/components/Chat/Message.vue +158 -0
  33. package/components/Chat/Navigation.vue +150 -0
  34. package/components/ConfirmDialog.vue +66 -0
  35. package/components/Container/Standard.vue +33 -0
  36. package/components/DashboardPlaceholder.vue +1524 -0
  37. package/components/Dialog/DeleteConfirmation.vue +51 -0
  38. package/components/Dialog/ReplaceAutofillPrompt.vue +49 -0
  39. package/components/Dialog/UpdateMoreAction.vue +103 -0
  40. package/components/DocumentForm.vue +187 -0
  41. package/components/DocumentManagement.vue +376 -0
  42. package/components/Editor.vue +95 -0
  43. package/components/EntryPassMain.vue +518 -0
  44. package/components/Feedback/Form.vue +173 -0
  45. package/components/FeedbackDetail.vue +599 -0
  46. package/components/FeedbackMain.vue +588 -0
  47. package/components/FormDialog.vue +65 -0
  48. package/components/ImageCarousel.vue +138 -0
  49. package/components/Input/Date.vue +177 -0
  50. package/components/Input/DateTimePicker.vue +131 -0
  51. package/components/Input/File.vue +236 -0
  52. package/components/Input/FileV2.vue +234 -0
  53. package/components/Input/InputPhoneNumberV2.vue +164 -0
  54. package/components/Input/ListGroupSelection.vue +96 -0
  55. package/components/Input/NRICNumber.vue +53 -0
  56. package/components/Input/NewDate.vue +123 -0
  57. package/components/Input/Number.vue +124 -0
  58. package/components/Input/Password.vue +22 -0
  59. package/components/Input/PhoneNumber.vue +188 -0
  60. package/components/Input/VehicleNumber.vue +49 -0
  61. package/components/InputLabel.vue +22 -0
  62. package/components/InvitationForm.vue +359 -0
  63. package/components/InvitationMain.vue +310 -0
  64. package/components/Layout/Header.vue +129 -0
  65. package/components/Layout/NavigationDrawer.vue +44 -0
  66. package/components/ListItem.vue +35 -0
  67. package/components/ListView.vue +87 -0
  68. package/components/LocalPagination.vue +31 -0
  69. package/components/MemberMain.vue +459 -0
  70. package/components/NFC/NFCPatrolReportMain.vue +591 -0
  71. package/components/NFC/NFCPatrolRouteForm.vue +596 -0
  72. package/components/NFC/NFCPatrolRouteMain.vue +539 -0
  73. package/components/NFC/NFCTagForm.vue +236 -0
  74. package/components/NFC/NFCTagMain.vue +337 -0
  75. package/components/NFC/PatrolSettings.vue +130 -0
  76. package/components/NavigationItem.vue +83 -0
  77. package/components/NumberSettingField.vue +107 -0
  78. package/components/OnlineFormConfigurationForm.vue +290 -0
  79. package/components/OnlineFormsConfiguration.vue +429 -0
  80. package/components/PeopleForm.vue +452 -0
  81. package/components/PlaceholderComponent.vue +34 -0
  82. package/components/RolePermissionFormCreate.vue +161 -0
  83. package/components/RolePermissionFormPreviewUpdate.vue +183 -0
  84. package/components/RolePermissionMain.vue +361 -0
  85. package/components/SearchVehicleNumberUser.vue +91 -0
  86. package/components/ServiceProviderFormCreate.vue +154 -0
  87. package/components/ServiceProviderMain.vue +547 -0
  88. package/components/SignaturePad.vue +73 -0
  89. package/components/Snackbar.vue +23 -0
  90. package/components/SpecificAttr.vue +53 -0
  91. package/components/SupplyManagement.vue +292 -0
  92. package/components/SwitchContext.vue +108 -0
  93. package/components/TableList.vue +150 -0
  94. package/components/TableListSecondary.vue +164 -0
  95. package/components/TableMain.vue +142 -0
  96. package/components/TableWithButton.vue +94 -0
  97. package/components/VehicleUpdateMoreAction.vue +84 -0
  98. package/components/VideoPlayer.vue +125 -0
  99. package/components/VisitorForm.vue +659 -0
  100. package/components/VisitorFormSelection.vue +53 -0
  101. package/components/VisitorManagement.vue +490 -0
  102. package/components/WorkOrder/Create.vue +284 -0
  103. package/components/WorkOrder/Detail.vue +71 -0
  104. package/components/WorkOrder/ListView.vue +96 -0
  105. package/components/WorkOrder/Main.vue +489 -0
  106. package/components/Workorder.vue +1 -0
  107. package/composables/useAddress.ts +107 -0
  108. package/composables/useBuilding.ts +250 -0
  109. package/composables/useBuildingUnit.ts +116 -0
  110. package/composables/useCard.ts +46 -0
  111. package/composables/useCommonPermission.ts +207 -0
  112. package/composables/useCustomer.ts +113 -0
  113. package/composables/useCustomerSite.ts +56 -0
  114. package/composables/useDashboard.ts +31 -0
  115. package/composables/useDashboardData.ts +425 -0
  116. package/composables/useDocument.ts +57 -0
  117. package/composables/useFacility.ts +246 -0
  118. package/composables/useFeedback.ts +119 -0
  119. package/composables/useFile.ts +55 -0
  120. package/composables/useInvoice.ts +18 -0
  121. package/composables/useLocal.ts +131 -0
  122. package/composables/useLocalAuth.ts +137 -0
  123. package/composables/useLocalSetup.ts +13 -0
  124. package/composables/useMember.ts +111 -0
  125. package/composables/useNFCPatrolRoute.ts +77 -0
  126. package/composables/useNFCPatrolSettings.ts +19 -0
  127. package/composables/useNFCPatrolTag.ts +53 -0
  128. package/composables/useOnlineForm.ts +67 -0
  129. package/composables/useOrg.ts +129 -0
  130. package/composables/usePDFDownload.ts +25 -0
  131. package/composables/usePaymentMethod.ts +101 -0
  132. package/composables/usePeople.ts +81 -0
  133. package/composables/usePermission.ts +54 -0
  134. package/composables/usePhoneCountries.ts +561 -0
  135. package/composables/usePrice.ts +15 -0
  136. package/composables/usePromoCode.ts +36 -0
  137. package/composables/useRecapPermission.ts +26 -0
  138. package/composables/useRole.ts +104 -0
  139. package/composables/useSecurityUtils.ts +18 -0
  140. package/composables/useServiceProvider.ts +224 -0
  141. package/composables/useSite.ts +109 -0
  142. package/composables/useSiteEntryPassSettings.ts +46 -0
  143. package/composables/useSiteSettings.ts +123 -0
  144. package/composables/useSubscription.ts +150 -0
  145. package/composables/useUser.ts +132 -0
  146. package/composables/useUtils.ts +445 -0
  147. package/composables/useVerification.ts +34 -0
  148. package/composables/useVisitor.ts +120 -0
  149. package/composables/useWorkOrder.ts +85 -0
  150. package/error.vue +41 -0
  151. package/layouts/plain.vue +7 -0
  152. package/middleware/01.auth.ts +20 -0
  153. package/middleware/02.org.ts +21 -0
  154. package/middleware/03.customer.ts +13 -0
  155. package/middleware/member.ts +4 -0
  156. package/nuxt.config.ts +54 -0
  157. package/package.json +39 -0
  158. package/pages/index.vue +3 -0
  159. package/pages/payment-method-linked.vue +31 -0
  160. package/pages/require-customer.vue +56 -0
  161. package/pages/require-organization-membership.vue +47 -0
  162. package/pages/unauthorized.vue +29 -0
  163. package/plugins/API.ts +21 -0
  164. package/plugins/iconify.client.ts +5 -0
  165. package/plugins/secure-member.client.ts +86 -0
  166. package/plugins/vuetify.ts +62 -0
  167. package/public/bg-camera.jpg +0 -0
  168. package/public/bg-city.jpg +0 -0
  169. package/public/bg-condo.jpg +0 -0
  170. package/public/images/icons/delete-icon.png +0 -0
  171. package/public/sprite.svg +1 -0
  172. package/tsconfig.json +3 -0
  173. package/types/address.d.ts +13 -0
  174. package/types/building.d.ts +27 -0
  175. package/types/camera.d.ts +31 -0
  176. package/types/card.d.ts +22 -0
  177. package/types/customer.d.ts +27 -0
  178. package/types/document.d.ts +6 -0
  179. package/types/feedback.d.ts +68 -0
  180. package/types/local.d.ts +74 -0
  181. package/types/member.d.ts +21 -0
  182. package/types/online-form.d.ts +15 -0
  183. package/types/org.d.ts +13 -0
  184. package/types/people.d.ts +24 -0
  185. package/types/permission.d.ts +25 -0
  186. package/types/phone-number.d.ts +10 -0
  187. package/types/price.d.ts +17 -0
  188. package/types/promo-code.d.ts +19 -0
  189. package/types/role.d.ts +11 -0
  190. package/types/select.d.ts +4 -0
  191. package/types/service-provider.d.ts +15 -0
  192. package/types/site.d.ts +20 -0
  193. package/types/subscription.d.ts +23 -0
  194. package/types/user.d.ts +19 -0
  195. package/types/verification.d.ts +20 -0
  196. package/types/visitor.d.ts +42 -0
  197. package/types/work-order.d.ts +42 -0
  198. package/utils/phoneMasks.ts +1703 -0
@@ -0,0 +1,8 @@
1
+ # Changesets
2
+
3
+ Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4
+ with multi-package repos, or single-package repos to help you version and publish your code. You can
5
+ find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6
+
7
+ We have a quick list of common questions to get you started engaging with this project in
8
+ [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://unpkg.com/@changesets/config@3.0.5/schema.json",
3
+ "changelog": "@changesets/cli/changelog",
4
+ "commit": false,
5
+ "fixed": [],
6
+ "linked": [],
7
+ "access": "restricted",
8
+ "baseBranch": "main",
9
+ "updateInternalDependencies": "patch",
10
+ "ignore": []
11
+ }
package/.editorconfig ADDED
@@ -0,0 +1,12 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_size = 2
5
+ indent_style = space
6
+ end_of_line = lf
7
+ charset = utf-8
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+
11
+ [*.md]
12
+ trim_trailing_whitespace = false
@@ -0,0 +1,17 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches:
5
+ - "**"
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - uses: actions/setup-node@v4
13
+ with:
14
+ node-version: 20.x
15
+ cache: "yarn"
16
+ - run: yarn install --frozen-lockfile && yarn dev:prepare
17
+ - run: yarn build
@@ -0,0 +1,39 @@
1
+ name: Publish
2
+ on:
3
+ workflow_run:
4
+ workflows: [CI]
5
+ branches: [main]
6
+ types: [completed]
7
+
8
+ concurrency: ${{ github.workflow }}-${{ github.ref }}
9
+
10
+ permissions:
11
+ contents: write
12
+ pull-requests: write
13
+
14
+ jobs:
15
+ publish:
16
+ if: ${{ github.event.workflow_run.conclusion == 'success' }}
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - uses: actions/setup-node@v4
22
+ with:
23
+ node-version: 20.x
24
+ cache: "yarn" # Use yarn for caching
25
+ cache-dependency-path: yarn.lock # Cache Yarn lockfile
26
+
27
+ - run: yarn install --immutable # Install dependencies with immutable lockfile
28
+
29
+ - name: Create .npmrc for publishing
30
+ run: |
31
+ echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' > ~/.npmrc
32
+
33
+ - name: Create Release Pull Request or Publish
34
+ id: changesets
35
+ uses: changesets/action@v1
36
+ with:
37
+ publish: yarn release # Use yarn for publishing
38
+ env:
39
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/.nuxtrc ADDED
@@ -0,0 +1 @@
1
+ typescript.includeWorkspace = true
@@ -0,0 +1,41 @@
1
+ <template>
2
+ <v-app>
3
+ <LayoutHeader />
4
+
5
+ <LayoutNavigationDrawer :navigation-items="navigationItems" />
6
+
7
+ <v-main>
8
+ <NuxtLayout> <NuxtPage /> </NuxtLayout>
9
+ </v-main>
10
+ </v-app>
11
+ </template>
12
+
13
+ <script setup lang="ts">
14
+ const navigationItems = computed(() => {
15
+ const items: Array<TNavigationItem> = [];
16
+ items.push(
17
+ {
18
+ title: "Create new request",
19
+ route: { name: "index" },
20
+ icon: "mdi-plus",
21
+ },
22
+ {
23
+ title: "Requests",
24
+ route: { name: "index" },
25
+ icon: "mdi-account-circle",
26
+ },
27
+ {
28
+ title: "Draft",
29
+ route: { name: "index" },
30
+ icon: "mdi-account-circle",
31
+ },
32
+ {
33
+ title: "Feedback",
34
+ route: { name: "feedback" },
35
+ icon: "mdi-account-circle",
36
+ }
37
+ );
38
+
39
+ return items;
40
+ });
41
+ </script>
@@ -0,0 +1,6 @@
1
+ // @ts-check
2
+ import withNuxt from './.nuxt/eslint.config.mjs'
3
+
4
+ export default withNuxt(
5
+ // Your custom configs here
6
+ )
@@ -0,0 +1,22 @@
1
+ export default defineNuxtConfig({
2
+ extends: [".."],
3
+ modules: ["@nuxt/eslint"],
4
+ compatibilityDate: "2024-11-03",
5
+
6
+ runtimeConfig: {
7
+ public: {
8
+ cookieConfig: {
9
+ domain: (process.env.DOMAIN as string) ?? "localhost",
10
+ secure: true,
11
+ maxAge: 30 * 24 * 60 * 60,
12
+ },
13
+ APP_NAME: (process.env.APP_NAME as string) ?? "App",
14
+ APP_NAME_ROUTE: (process.env.APP_NAME_ROUTE as string) ?? "index",
15
+ APP_ACCOUNT: (process.env.APP_ACCOUNT as string) ?? "",
16
+ API_DO_STORAGE_ENDPOINT:
17
+ (process.env.API_DO_STORAGE_ENDPOINT as string) ?? "",
18
+ APP_ADMIN: (process.env.APP_ADMIN as string) ?? "",
19
+ APP_CBA_RECAP: (process.env.APP_CBA_RECAP as string) ?? "",
20
+ },
21
+ },
22
+ });
@@ -0,0 +1,30 @@
1
+ <template>
2
+ <v-row class="no-gutters" align="center" justify="center">
3
+ <v-col cols="12" md="10" lg="10">
4
+ <FeedbackListView @click:create="showCreateDialog = true" />
5
+ </v-col>
6
+
7
+ <v-dialog
8
+ v-model="showCreateDialog"
9
+ fullscreen
10
+ transition="dialog-right-transition"
11
+ persistent
12
+ >
13
+ <v-card
14
+ class="ml-auto"
15
+ style="
16
+ height: 100vh;
17
+ width: 400px;
18
+ border-top-left-radius: 12px;
19
+ border-bottom-left-radius: 12px;
20
+ "
21
+ >
22
+ <FeedbackFormCreate @close="showCreateDialog = false" />
23
+ </v-card>
24
+ </v-dialog>
25
+ </v-row>
26
+ </template>
27
+
28
+ <script lang="ts" setup>
29
+ const showCreateDialog = ref(false);
30
+ </script>
package/CHANGELOG.md ADDED
@@ -0,0 +1,263 @@
1
+ # @iservice365/layer-common
2
+
3
+ ## 1.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 2da6822: Add Video Player Reusable Component
8
+ - 1cd7163: Update changes in Layer-common
9
+ - 6acd43c: update delete to put in people by id delete
10
+
11
+ ### Patch Changes
12
+
13
+ - 09ce435: add new date utils
14
+
15
+ ## 1.7.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 183d932: Update Changes in Visitor Management
20
+
21
+ ## 1.6.0
22
+
23
+ ### Minor Changes
24
+
25
+ - 9cbea14: Publish Changes in Components (CKEditor)
26
+
27
+ ## 1.5.7
28
+
29
+ ### Patch Changes
30
+
31
+ - cec19dc: Dashboard static data - follow up release
32
+
33
+ ## 1.5.6
34
+
35
+ ### Patch Changes
36
+
37
+ - ec81e23: Dashboard static data initial release
38
+
39
+ ## 1.5.5
40
+
41
+ ### Patch Changes
42
+
43
+ - 426239f: Update components
44
+
45
+ ## 1.5.4
46
+
47
+ ### Patch Changes
48
+
49
+ - 2eec28d: Fix component
50
+
51
+ ## 1.5.3
52
+
53
+ ### Patch Changes
54
+
55
+ - cb26db2: Fix component
56
+
57
+ ## 1.5.2
58
+
59
+ ### Patch Changes
60
+
61
+ - e76d332: Fix auth middleware
62
+
63
+ ## 1.5.1
64
+
65
+ ### Patch Changes
66
+
67
+ - dbc4dc4: Fix service provider invite
68
+
69
+ ## 1.5.0
70
+
71
+ ### Minor Changes
72
+
73
+ - 1a1f3e0: Virtual patrol initial release
74
+
75
+ ## 1.4.2
76
+
77
+ ### Patch Changes
78
+
79
+ - d71fd3b: Add new services
80
+
81
+ ## 1.4.1
82
+
83
+ ### Patch Changes
84
+
85
+ - 8290615: Add pool maintenance services
86
+
87
+ ## 1.4.0
88
+
89
+ ### Minor Changes
90
+
91
+ - 1183813: Add new apps
92
+
93
+ ## 1.3.2
94
+
95
+ ### Patch Changes
96
+
97
+ - 34a35ff: Update dependencies
98
+
99
+ ## 1.3.1
100
+
101
+ ### Patch Changes
102
+
103
+ - 25ae6f4: Building Mgmt - add building mgmt components
104
+
105
+ ## 1.3.0
106
+
107
+ ### Minor Changes
108
+
109
+ - 88b8014: ## What's Changed
110
+
111
+ - 20089 add edit guest feature by @aguirremac17 in https://github.com/Seven365-Pte-Ltd/iservice365-layer-common/pull/156
112
+ - chore: remove deltefile integration in frontend by @aguirremac17 in https://github.com/Seven365-Pte-Ltd/iservice365-layer-common/pull/157
113
+ - Work Order subject form update by @Jerome7365 in https://github.com/Seven365-Pte-Ltd/iservice365-layer-common/pull/158
114
+ - chore: update query key to status by @aguirremac17 in https://github.com/Seven365-Pte-Ltd/iservice365-layer-common/pull/159
115
+ - 20114 update key type to status in visitor management by @aguirremac17 in https://github.com/Seven365-Pte-Ltd/iservice365-layer-common/pull/160
116
+ - Update Work Order Component And Composable by @Jerome7365 in https://github.com/Seven365-Pte-Ltd/iservice365-layer-common/pull/161
117
+
118
+ **Full Changelog**: https://github.com/Seven365-Pte-Ltd/iservice365-layer-common/compare/v1.2.0...1.3.0
119
+
120
+ ## 1.2.0
121
+
122
+ ### Minor Changes
123
+
124
+ - 770867c: People mgmt - initial release
125
+
126
+ ## 1.1.0
127
+
128
+ ### Minor Changes
129
+
130
+ - 8e753ee: Customer site - add get customer site by site id as service provider
131
+
132
+ ## 1.0.11
133
+
134
+ ### Patch Changes
135
+
136
+ - 368e98f: Invitation - Add key to API request
137
+
138
+ ## 1.0.10
139
+
140
+ ### Patch Changes
141
+
142
+ - 4cdf32b: Invitation form - revise app selection
143
+
144
+ ## 1.0.9
145
+
146
+ ### Patch Changes
147
+
148
+ - 681b0f4: Update dependencies - vuetify
149
+
150
+ ## 1.0.8
151
+
152
+ ### Patch Changes
153
+
154
+ - 2ba3c2e: Invitation revision - add site support
155
+
156
+ ## 1.0.7
157
+
158
+ ### Patch Changes
159
+
160
+ - 09115c2: Fixed user and member invite
161
+
162
+ ## 1.0.6
163
+
164
+ ### Patch Changes
165
+
166
+ - adf0043: Revision - add invitation form as component
167
+
168
+ ## 1.0.5
169
+
170
+ ### Patch Changes
171
+
172
+ - f7ff2ae: Revision - member only data request adjustment
173
+
174
+ ## 1.0.4
175
+
176
+ ### Patch Changes
177
+
178
+ - 789ece4: Revamp service provider site management
179
+
180
+ ## 1.0.3
181
+
182
+ ### Patch Changes
183
+
184
+ - e9ca53e: Add icones.js
185
+
186
+ ## 1.0.2
187
+
188
+ ### Patch Changes
189
+
190
+ - e7832f9: Remove nuxt signature pad
191
+
192
+ ## 1.0.1
193
+
194
+ ### Patch Changes
195
+
196
+ - 4d92608: Vehicle mgmt - initial release
197
+
198
+ ## 1.0.0
199
+
200
+ ### Major Changes
201
+
202
+ - d24ed34: Building mgmt initial release
203
+
204
+ ## 0.2.2
205
+
206
+ ### Patch Changes
207
+
208
+ - c627e9b: Switch to session based auth
209
+
210
+ ## 0.2.1
211
+
212
+ ### Patch Changes
213
+
214
+ - ff09e54: Breaking change - switched to session based authentication
215
+
216
+ ## 0.2.0
217
+
218
+ ### Minor Changes
219
+
220
+ - 7df0f0f: Add iconify
221
+
222
+ ## 0.1.0
223
+
224
+ ### Minor Changes
225
+
226
+ - ebad9c7: Add Manage Account Button To Default App Header
227
+
228
+ ## 0.0.6
229
+
230
+ ### Patch Changes
231
+
232
+ - 5251017: Enhance switch context component
233
+
234
+ ## 0.0.5
235
+
236
+ ### Patch Changes
237
+
238
+ - 07a1941: chore: adjust navigation drawer and header
239
+
240
+ ## 0.0.4
241
+
242
+ ### Patch Changes
243
+
244
+ - e317a6b: replace icons
245
+
246
+ ## 0.0.3
247
+
248
+ ### Patch Changes
249
+
250
+ - ef16085: adjust services to navigation drawer
251
+
252
+ ## 0.0.2
253
+
254
+ ### Patch Changes
255
+
256
+ - de78b1f: Add error page and plain layout
257
+
258
+ ## 0.0.1
259
+
260
+ ### Patch Changes
261
+
262
+ - 1a370ad: Init
263
+ - 3ccdbc0: Init
package/README.md ADDED
@@ -0,0 +1,73 @@
1
+ # Nuxt Layer Starter
2
+
3
+ Create Nuxt extendable layer with this GitHub template.
4
+
5
+ ## Setup
6
+
7
+ Make sure to install the dependencies:
8
+
9
+ ```bash
10
+ pnpm install
11
+ ```
12
+
13
+ ## Working on your layer
14
+
15
+ Your layer is at the root of this repository, it is exactly like a regular Nuxt project, except you can publish it on NPM.
16
+
17
+ The `.playground` directory should help you on trying your layer during development.
18
+
19
+ Running `pnpm dev` will prepare and boot `.playground` directory, which imports your layer itself.
20
+
21
+ ## Distributing your layer
22
+
23
+ Your Nuxt layer is shaped exactly the same as any other Nuxt project, except you can publish it on NPM.
24
+
25
+ To do so, you only have to check if `files` in `package.json` are valid, then run:
26
+
27
+ ```bash
28
+ npm publish --access public
29
+ ```
30
+
31
+ Once done, your users will only have to run:
32
+
33
+ ```bash
34
+ npm install --save your-layer
35
+ ```
36
+
37
+ Then add the dependency to their `extends` in `nuxt.config`:
38
+
39
+ ```ts
40
+ defineNuxtConfig({
41
+ extends: 'your-layer'
42
+ })
43
+ ```
44
+
45
+ ## Development Server
46
+
47
+ Start the development server on http://localhost:3000
48
+
49
+ ```bash
50
+ pnpm dev
51
+ ```
52
+
53
+ ## Production
54
+
55
+ Build the application for production:
56
+
57
+ ```bash
58
+ pnpm build
59
+ ```
60
+
61
+ Or statically generate it with:
62
+
63
+ ```bash
64
+ pnpm generate
65
+ ```
66
+
67
+ Locally preview production build:
68
+
69
+ ```bash
70
+ pnpm preview
71
+ ```
72
+
73
+ Checkout the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
package/app.vue ADDED
@@ -0,0 +1,3 @@
1
+ <template>
2
+ <h1>Common Layer</h1>
3
+ </template>