mapomodule 1.0.0 → 2.0.0-beta.11

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
@@ -1,53 +1,59 @@
1
- # mapomodule [![npm](https://img.shields.io/npm/v/mapomodule?style=flat-square)](https://www.npmjs.com/package/mapomodule) [![GitHub](https://img.shields.io/badge/license-MIT-green?style=flat-square)](https://github.com/lotrekagency/mapo/blob/master/LICENSE.md)
1
+ # mapomodule
2
2
 
3
- ## Setup
4
- Add `mapomodule` dependency to your project
5
- ```sh
6
- yarn add --dev mapomodule # or npm install --save-dev mapomodule
7
- ```
8
- Add mapomodule to the modules section of nuxt.config.js
9
- ```js
10
- {
11
- modules: [
12
- // Simple usage
13
- 'mapomodule',
14
-
15
- // With options
16
- ['mapomodule', { /* module options */ }]
17
- ]
18
- }
3
+ The Mapo meta-module: a single Nuxt module that registers the entire Mapo stack with one entry in `nuxt.config.ts`.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pnpm add mapomodule @nuxt/ui
19
9
  ```
20
-
21
- You can add options also from top level nuxt.config.js
22
-
23
- ```js
24
- {
25
- modules: [
26
- 'mapomodule'
27
- ],
10
+
11
+ ```ts
12
+ // nuxt.config.ts — @nuxt/ui MUST come before mapomodule
13
+ export default defineNuxtConfig({
14
+ modules: ["@nuxt/ui", "mapomodule"],
15
+
28
16
  mapo: {
29
- /* module options */
30
- }
31
- }
17
+ authLoginUrl: "/api/auth/login",
18
+ userInfoApi: "/api/profiles/me/",
19
+ logoutUrl: "/api/auth/logout",
20
+ loginUrl: "/login",
21
+
22
+ uikit: {
23
+ css: "~/assets/css/theme.css", // optional CSS token override
24
+ ui: { button: { defaultVariants: { color: "primary" } } }, // optional Nuxt UI defaults
25
+ },
26
+
27
+ form: {
28
+ // optional — global field registry defaults and debounce config
29
+ },
30
+ },
31
+ });
32
32
  ```
33
- ## Features
34
33
 
35
- - Exposes [`$mapo`](https://lotrekagency.github.io/mapo/core/) core sevices to provide set of utilities.
36
- - Injects mapo [`components`](https://lotrekagency.github.io/mapo/components/) in the default nuxt component discovery.
37
- - Adds meta information to router module from nuxt pages.
34
+ All options are optional and fall back to `MAPO_DEFAULTS`.
38
35
 
39
- 📑  Read more from the [documentation](https://lotrekagency.github.io/mapo/).
36
+ ## What it installs
40
37
 
41
- ## How to contribute
38
+ | Package | Status |
39
+ | ------------------- | ------------------------------------------------------------------------ |
40
+ | `@mapomodule/store` | ✅ Pinia stores |
41
+ | `@mapomodule/core` | ✅ Service layer (forwards `mapo` config) |
42
+ | `@mapomodule/uikit` | ✅ UI shell + theming + MapoOverride system + List engine + Detail shell |
43
+ | `@mapomodule/form` | ✅ Form engine (`MapoForm`, `MapoDetail`, `useMapoForm`, field types) |
44
+ | `@mapomodule/i18n` | 🔲 Planned |
42
45
 
43
- 1. Clone this repository
44
- 2. Install dependencies using `yarn bootstrap`
45
- 3. Start development server using `yarn dev`
46
+ ## Dev workflow
46
47
 
47
- ### Documenting components
48
- Always write some documentation regarding the components you're developing.
49
- Our documentation is generated directly from code thanks to [@Vuepress](https://vuepress.vuejs.org/), [@Vuese](https://vuese.org/) and [@jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown#readme).
48
+ ```bash
49
+ # watch mode rebuilds dist/ on src/ changes
50
+ pnpm dev:mapomodule # from monorepo root
51
+ ```
50
52
 
51
- 1. Generate doc `yarn doc:gen`
52
- 2. Preview vuepress doc `yarn doc:dev`
53
+ ## Reference
53
54
 
55
+ - [`@mapomodule/core`](../@mapomodule/core/) — CRUD, auth, middleware
56
+ - [`@mapomodule/store`](../@mapomodule/store/) — Pinia stores
57
+ - [`@mapomodule/uikit`](../@mapomodule/uikit/) — UI shell, theming, MapoOverride, List engine, MapoDetail
58
+ - [`@mapomodule/form`](../@mapomodule/form/) — form engine, field types, `useMapoForm`
59
+ - [docs/modules/core](../../docs/modules/core.md) — full config reference
@@ -0,0 +1,5 @@
1
+ export * from '@mapomodule/core/types';
2
+ export * from '@mapomodule/store/types';
3
+ export * from '@mapomodule/form/types';
4
+ export * from '@mapomodule/uikit/types';
5
+ export * from '@mapomodule/utils';
@@ -0,0 +1,5 @@
1
+ export * from '@mapomodule/core/types';
2
+ export * from '@mapomodule/store/types';
3
+ export * from '@mapomodule/form/types';
4
+ export * from '@mapomodule/uikit/types';
5
+ export * from '@mapomodule/utils';
package/dist/index.mjs ADDED
@@ -0,0 +1,5 @@
1
+ export * from '@mapomodule/core/types';
2
+ export * from '@mapomodule/store/types';
3
+ export * from '@mapomodule/form/types';
4
+ export * from '@mapomodule/uikit/types';
5
+ export * from '@mapomodule/utils';
@@ -0,0 +1,17 @@
1
+ import { NuxtModule } from '@nuxt/schema';
2
+ import { MapoOptions } from '@mapomodule/core';
3
+ import { MapoUikitOptions } from '@mapomodule/uikit';
4
+ import { MapoFormOptions } from '@mapomodule/form';
5
+ import { MapoI18nOptions } from '@mapomodule/i18n';
6
+
7
+ interface MapoModuleOptions extends MapoOptions {
8
+ /** Options forwarded to @mapomodule/uikit (CSS override, Nuxt UI defaults). */
9
+ uikit?: MapoUikitOptions;
10
+ /** Options forwarded to @mapomodule/form (field registry, groups, debounce). */
11
+ form?: MapoFormOptions;
12
+ /** Options forwarded to @mapomodule/i18n (default locale, extra locales). */
13
+ i18n?: MapoI18nOptions;
14
+ }
15
+ declare const _default: NuxtModule<MapoModuleOptions, MapoModuleOptions, false>;
16
+
17
+ export { _default as default };
@@ -0,0 +1,17 @@
1
+ import { NuxtModule } from '@nuxt/schema';
2
+ import { MapoOptions } from '@mapomodule/core';
3
+ import { MapoUikitOptions } from '@mapomodule/uikit';
4
+ import { MapoFormOptions } from '@mapomodule/form';
5
+ import { MapoI18nOptions } from '@mapomodule/i18n';
6
+
7
+ interface MapoModuleOptions extends MapoOptions {
8
+ /** Options forwarded to @mapomodule/uikit (CSS override, Nuxt UI defaults). */
9
+ uikit?: MapoUikitOptions;
10
+ /** Options forwarded to @mapomodule/form (field registry, groups, debounce). */
11
+ form?: MapoFormOptions;
12
+ /** Options forwarded to @mapomodule/i18n (default locale, extra locales). */
13
+ i18n?: MapoI18nOptions;
14
+ }
15
+ declare const _default: NuxtModule<MapoModuleOptions, MapoModuleOptions, false>;
16
+
17
+ export { _default as default };
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "mapomodule",
3
+ "configKey": "mapo",
4
+ "version": "2.0.0-beta.11",
5
+ "builder": {
6
+ "@nuxt/module-builder": "1.0.2",
7
+ "unbuild": "unknown"
8
+ }
9
+ }
@@ -0,0 +1,41 @@
1
+ import { defineNuxtModule, createResolver, hasNuxtModule, installModule } from '@nuxt/kit';
2
+
3
+ const module$1 = defineNuxtModule({
4
+ meta: {
5
+ name: "mapomodule",
6
+ configKey: "mapo"
7
+ },
8
+ async setup(options, _nuxt) {
9
+ const resolver = createResolver(import.meta.url);
10
+ if (!hasNuxtModule("@mapomodule/store")) {
11
+ await installModule(await resolver.resolvePath("@mapomodule/store"));
12
+ }
13
+ const { uikit, form, i18n, ...coreOptions } = options;
14
+ if (!hasNuxtModule("@mapomodule/i18n")) {
15
+ await installModule(
16
+ await resolver.resolvePath("@mapomodule/i18n"),
17
+ i18n ?? {}
18
+ );
19
+ }
20
+ if (!hasNuxtModule("@mapomodule/core")) {
21
+ await installModule(
22
+ await resolver.resolvePath("@mapomodule/core"),
23
+ coreOptions
24
+ );
25
+ }
26
+ if (!hasNuxtModule("@mapomodule/uikit")) {
27
+ await installModule(
28
+ await resolver.resolvePath("@mapomodule/uikit"),
29
+ uikit ?? {}
30
+ );
31
+ }
32
+ if (!hasNuxtModule("@mapomodule/form")) {
33
+ await installModule(
34
+ await resolver.resolvePath("@mapomodule/form"),
35
+ form ?? {}
36
+ );
37
+ }
38
+ }
39
+ });
40
+
41
+ export { module$1 as default };
@@ -0,0 +1,7 @@
1
+ import type { NuxtModule } from '@nuxt/schema'
2
+
3
+ import type { default as Module } from './module.mjs'
4
+
5
+ export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
+
7
+ export { default } from './module.mjs'
package/package.json CHANGED
@@ -1,28 +1,61 @@
1
1
  {
2
2
  "name": "mapomodule",
3
- "version": "1.0.0",
4
- "description": "Mapo is a nuxt module that helps in the creation of Administration Panels.",
5
- "author": "bnznamco <gabriele.baldi.01@gmail.com>",
6
- "keywords": [
7
- "mapo",
8
- "nuxt",
9
- "Admin",
10
- "Panel"
11
- ],
3
+ "version": "2.0.0-beta.11",
4
+ "description": "Mapo meta-package: registers and re-exports all @mapomodule/* modules",
5
+ "type": "module",
12
6
  "license": "MIT",
13
- "repository": "https://github.com/lotrekagency/mapo",
14
- "main": "./module.js",
15
- "dependencies": {
16
- "@mapomodule/core": "^1.0.0",
17
- "@mapomodule/integrations": "^1.0.0",
18
- "@mapomodule/routemeta": "^1.0.0",
19
- "@mapomodule/store": "^1.0.0",
20
- "@mapomodule/uikit": "^1.0.0",
21
- "@nuxtjs/axios": "^5.13.6",
22
- "lodash.mergewith": "^4.6.2"
7
+ "author": "Lotrek Agency (https://lotrek.it)",
8
+ "homepage": "https://lotrekagency.github.io/mapo-new/",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/lotrekagency/mapo-new.git",
12
+ "directory": "packages/mapomodule"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/lotrekagency/mapo-new/issues"
23
16
  },
24
17
  "publishConfig": {
25
- "access": "public"
18
+ "access": "public",
19
+ "tag": "next"
20
+ },
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/module.d.mts",
24
+ "import": "./dist/module.mjs"
25
+ },
26
+ "./types": {
27
+ "types": "./dist/index.d.mts",
28
+ "import": "./dist/index.mjs"
29
+ }
30
+ },
31
+ "files": [
32
+ "dist"
33
+ ],
34
+ "scripts": {
35
+ "dev": "nuxt-module-build build --stub --watch",
36
+ "build": "nuxt-module-build build",
37
+ "dev:prepare": "nuxt-module-build build --stub",
38
+ "typecheck": "tsc --noEmit",
39
+ "lint": "eslint src"
40
+ },
41
+ "peerDependencies": {
42
+ "nuxt": ">=4.0.0"
43
+ },
44
+ "dependencies": {
45
+ "@iconify-json/lucide": "^1.2.0",
46
+ "@mapomodule/core": "2.0.0-beta.7",
47
+ "@mapomodule/form": "2.0.0-beta.8",
48
+ "@mapomodule/i18n": "2.0.0-beta.2",
49
+ "@mapomodule/store": "2.0.0-beta.5",
50
+ "@mapomodule/uikit": "2.0.0-beta.10",
51
+ "@mapomodule/utils": "2.0.0-beta.3",
52
+ "@nuxt/ui": "^4.7.0"
26
53
  },
27
- "gitHead": "1e825711fb068d6195fe6dda607d1fb0e05109ec"
54
+ "devDependencies": {
55
+ "@nuxt/kit": "4.4.2",
56
+ "@nuxt/module-builder": "^1.0.2",
57
+ "@nuxt/schema": "4.4.2",
58
+ "nuxt": "^4.5.1",
59
+ "vue": "^3.5.40"
60
+ }
28
61
  }
package/CHANGELOG.md DELETED
@@ -1,492 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [1.0.0](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.60...v1.0.0) (2026-07-02)
7
-
8
- **Note:** Version bump only for package mapomodule
9
-
10
-
11
-
12
-
13
-
14
- # [1.0.0-alpha.60](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.59...v1.0.0-alpha.60) (2026-06-05)
15
-
16
- **Note:** Version bump only for package mapomodule
17
-
18
-
19
-
20
-
21
-
22
- # [1.0.0-alpha.59](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.58...v1.0.0-alpha.59) (2026-04-16)
23
-
24
- **Note:** Version bump only for package mapomodule
25
-
26
-
27
-
28
-
29
-
30
- # [1.0.0-alpha.58](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.57...v1.0.0-alpha.58) (2026-04-16)
31
-
32
- **Note:** Version bump only for package mapomodule
33
-
34
-
35
-
36
-
37
-
38
- # [1.0.0-alpha.57](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.56...v1.0.0-alpha.57) (2025-11-07)
39
-
40
- **Note:** Version bump only for package mapomodule
41
-
42
-
43
-
44
-
45
-
46
- # [1.0.0-alpha.56](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.55...v1.0.0-alpha.56) (2025-10-20)
47
-
48
- **Note:** Version bump only for package mapomodule
49
-
50
-
51
-
52
-
53
-
54
- # [1.0.0-alpha.55](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.54...v1.0.0-alpha.55) (2025-06-26)
55
-
56
- **Note:** Version bump only for package mapomodule
57
-
58
-
59
-
60
-
61
-
62
- # [1.0.0-alpha.54](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.53...v1.0.0-alpha.54) (2025-03-10)
63
-
64
- **Note:** Version bump only for package mapomodule
65
-
66
-
67
-
68
-
69
-
70
- # [1.0.0-alpha.53](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.52...v1.0.0-alpha.53) (2024-07-11)
71
-
72
- **Note:** Version bump only for package mapomodule
73
-
74
-
75
-
76
-
77
-
78
- # [1.0.0-alpha.52](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.51...v1.0.0-alpha.52) (2024-07-04)
79
-
80
- **Note:** Version bump only for package mapomodule
81
-
82
-
83
-
84
-
85
-
86
- # [1.0.0-alpha.51](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.50...v1.0.0-alpha.51) (2024-06-24)
87
-
88
- **Note:** Version bump only for package mapomodule
89
-
90
-
91
-
92
-
93
-
94
- # [1.0.0-alpha.50](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.49...v1.0.0-alpha.50) (2024-01-24)
95
-
96
- **Note:** Version bump only for package mapomodule
97
-
98
-
99
-
100
-
101
-
102
- # [1.0.0-alpha.49](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.48...v1.0.0-alpha.49) (2023-07-27)
103
-
104
- **Note:** Version bump only for package mapomodule
105
-
106
-
107
-
108
-
109
-
110
- # [1.0.0-alpha.48](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.47...v1.0.0-alpha.48) (2023-07-14)
111
-
112
- **Note:** Version bump only for package mapomodule
113
-
114
-
115
-
116
-
117
-
118
- # [1.0.0-alpha.47](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.46...v1.0.0-alpha.47) (2023-06-24)
119
-
120
- **Note:** Version bump only for package mapomodule
121
-
122
-
123
-
124
-
125
-
126
- # [1.0.0-alpha.46](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.45...v1.0.0-alpha.46) (2023-06-24)
127
-
128
- **Note:** Version bump only for package mapomodule
129
-
130
-
131
-
132
-
133
-
134
- # [1.0.0-alpha.45](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.44...v1.0.0-alpha.45) (2023-06-10)
135
-
136
- **Note:** Version bump only for package mapomodule
137
-
138
-
139
-
140
-
141
-
142
- # [1.0.0-alpha.44](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.43...v1.0.0-alpha.44) (2023-06-10)
143
-
144
- **Note:** Version bump only for package mapomodule
145
-
146
-
147
-
148
-
149
-
150
- # [1.0.0-alpha.43](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.42...v1.0.0-alpha.43) (2023-02-02)
151
-
152
- **Note:** Version bump only for package mapomodule
153
-
154
-
155
-
156
-
157
-
158
- # [1.0.0-alpha.42](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.41...v1.0.0-alpha.42) (2023-02-01)
159
-
160
- **Note:** Version bump only for package mapomodule
161
-
162
-
163
-
164
-
165
-
166
- # [1.0.0-alpha.41](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.40...v1.0.0-alpha.41) (2022-12-20)
167
-
168
- **Note:** Version bump only for package mapomodule
169
-
170
-
171
-
172
-
173
-
174
- # [1.0.0-alpha.40](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.39...v1.0.0-alpha.40) (2022-12-20)
175
-
176
- **Note:** Version bump only for package mapomodule
177
-
178
-
179
-
180
-
181
-
182
- # [1.0.0-alpha.39](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.38...v1.0.0-alpha.39) (2022-12-03)
183
-
184
- **Note:** Version bump only for package mapomodule
185
-
186
-
187
-
188
-
189
-
190
- # [1.0.0-alpha.38](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.37...v1.0.0-alpha.38) (2022-11-22)
191
-
192
-
193
- ### Bug Fixes
194
-
195
- * fix static resources base path ([ed8351d](https://github.com/lotrekagency/mapo/commit/ed8351d55f3c1cfee435faec4ebc684bb92a1e78))
196
-
197
-
198
-
199
-
200
-
201
- # [1.0.0-alpha.37](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.36...v1.0.0-alpha.37) (2022-11-14)
202
-
203
- **Note:** Version bump only for package mapomodule
204
-
205
-
206
-
207
-
208
-
209
- # [1.0.0-alpha.36](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.35...v1.0.0-alpha.36) (2022-11-12)
210
-
211
- **Note:** Version bump only for package mapomodule
212
-
213
-
214
-
215
-
216
-
217
- # [1.0.0-alpha.35](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.34...v1.0.0-alpha.35) (2022-11-11)
218
-
219
- **Note:** Version bump only for package mapomodule
220
-
221
-
222
-
223
-
224
-
225
- # [1.0.0-alpha.34](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.33...v1.0.0-alpha.34) (2022-11-11)
226
-
227
- **Note:** Version bump only for package mapomodule
228
-
229
-
230
-
231
-
232
-
233
- # [1.0.0-alpha.33](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.32...v1.0.0-alpha.33) (2022-10-14)
234
-
235
- **Note:** Version bump only for package mapomodule
236
-
237
-
238
-
239
-
240
-
241
- # [1.0.0-alpha.32](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.31...v1.0.0-alpha.32) (2022-09-28)
242
-
243
- **Note:** Version bump only for package mapomodule
244
-
245
-
246
-
247
-
248
-
249
- # [1.0.0-alpha.31](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.30...v1.0.0-alpha.31) (2022-09-14)
250
-
251
- **Note:** Version bump only for package mapomodule
252
-
253
-
254
-
255
-
256
-
257
- # [1.0.0-alpha.30](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.29...v1.0.0-alpha.30) (2022-09-13)
258
-
259
- **Note:** Version bump only for package mapomodule
260
-
261
-
262
-
263
-
264
-
265
- # [1.0.0-alpha.29](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.28...v1.0.0-alpha.29) (2022-09-03)
266
-
267
- **Note:** Version bump only for package mapomodule
268
-
269
-
270
-
271
-
272
-
273
- # [1.0.0-alpha.28](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.27...v1.0.0-alpha.28) (2022-09-01)
274
-
275
- **Note:** Version bump only for package mapomodule
276
-
277
-
278
-
279
-
280
-
281
- # [1.0.0-alpha.27](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.26...v1.0.0-alpha.27) (2022-08-25)
282
-
283
- **Note:** Version bump only for package mapomodule
284
-
285
-
286
-
287
-
288
-
289
- # [1.0.0-alpha.26](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.25...v1.0.0-alpha.26) (2022-08-11)
290
-
291
- **Note:** Version bump only for package mapomodule
292
-
293
-
294
-
295
-
296
-
297
- # [1.0.0-alpha.25](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.24...v1.0.0-alpha.25) (2022-08-02)
298
-
299
-
300
- ### Features
301
-
302
- * **i18n:** move i18n config to mapo defaults to enable mixed merges of user and mapo options. ([2190aa9](https://github.com/lotrekagency/mapo/commit/2190aa9ebf106d811a64e27502d3a45b75a3e9af))
303
-
304
-
305
-
306
-
307
-
308
- # [1.0.0-alpha.24](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.23...v1.0.0-alpha.24) (2022-07-22)
309
-
310
-
311
- ### Features
312
-
313
- * refactored translations, added vuetify translations ([bd37682](https://github.com/lotrekagency/mapo/commit/bd376820ad05a00f49088b9585b7bb26371e09f8))
314
-
315
-
316
-
317
-
318
-
319
- # [1.0.0-alpha.23](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.22...v1.0.0-alpha.23) (2022-05-04)
320
-
321
- **Note:** Version bump only for package mapomodule
322
-
323
-
324
-
325
-
326
-
327
- # [1.0.0-alpha.22](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.21...v1.0.0-alpha.22) (2022-05-01)
328
-
329
- **Note:** Version bump only for package mapomodule
330
-
331
-
332
-
333
-
334
-
335
- # [1.0.0-alpha.21](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.20...v1.0.0-alpha.21) (2022-04-25)
336
-
337
- **Note:** Version bump only for package mapomodule
338
-
339
-
340
-
341
-
342
-
343
- # [1.0.0-alpha.20](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.19...v1.0.0-alpha.20) (2022-04-25)
344
-
345
- **Note:** Version bump only for package mapomodule
346
-
347
-
348
-
349
-
350
-
351
- # [1.0.0-alpha.19](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.18...v1.0.0-alpha.19) (2022-04-06)
352
-
353
- **Note:** Version bump only for package mapomodule
354
-
355
-
356
-
357
-
358
-
359
- # [1.0.0-alpha.18](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.17...v1.0.0-alpha.18) (2022-04-04)
360
-
361
- **Note:** Version bump only for package mapomodule
362
-
363
-
364
-
365
-
366
-
367
- # [1.0.0-alpha.17](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.16...v1.0.0-alpha.17) (2022-04-03)
368
-
369
- **Note:** Version bump only for package mapomodule
370
-
371
-
372
-
373
-
374
-
375
- # [1.0.0-alpha.16](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.15...v1.0.0-alpha.16) (2022-04-03)
376
-
377
-
378
- ### Features
379
-
380
- * Added mapo integrations module! 🎉 ([76d2c80](https://github.com/lotrekagency/mapo/commit/76d2c805245b4cf49a33696339da52e4c17f4053))
381
-
382
-
383
- ### BREAKING CHANGES
384
-
385
- * This change removes all the camomilla cms references moving the compatibility layer in a detached package [mapo-integrations-camomilla](https://github.com/lotrekagency/mapo-integrations-camomilla). The guidelines to make mapo work with camomilla will be provided in the package readme.
386
-
387
-
388
-
389
-
390
-
391
- # [1.0.0-alpha.15](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.14...v1.0.0-alpha.15) (2022-03-11)
392
-
393
- **Note:** Version bump only for package mapomodule
394
-
395
-
396
-
397
-
398
-
399
- # [1.0.0-alpha.14](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.13...v1.0.0-alpha.14) (2022-03-01)
400
-
401
- **Note:** Version bump only for package mapomodule
402
-
403
-
404
-
405
-
406
-
407
- # [1.0.0-alpha.13](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2022-03-01)
408
-
409
- **Note:** Version bump only for package mapomodule
410
-
411
-
412
-
413
-
414
-
415
- # [1.0.0-alpha.12](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2022-02-16)
416
-
417
- **Note:** Version bump only for package mapomodule
418
-
419
-
420
-
421
-
422
-
423
- # [1.0.0-alpha.11](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2022-02-12)
424
-
425
- **Note:** Version bump only for package mapomodule
426
-
427
-
428
-
429
-
430
-
431
- # [1.0.0-alpha.10](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2022-02-11)
432
-
433
- **Note:** Version bump only for package mapomodule
434
-
435
-
436
-
437
-
438
-
439
- # [1.0.0-alpha.9](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2022-02-08)
440
-
441
- **Note:** Version bump only for package mapomodule
442
-
443
-
444
-
445
-
446
-
447
- # [1.0.0-alpha.8](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.7...v1.0.0-alpha.8) (2022-01-23)
448
-
449
- **Note:** Version bump only for package mapomodule
450
-
451
-
452
-
453
-
454
-
455
- # [1.0.0-alpha.7](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2022-01-13)
456
-
457
- **Note:** Version bump only for package mapomodule
458
-
459
-
460
-
461
-
462
-
463
- # [1.0.0-alpha.6](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2021-12-26)
464
-
465
- **Note:** Version bump only for package mapomodule
466
-
467
-
468
-
469
-
470
-
471
- # [1.0.0-alpha.5](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2021-12-20)
472
-
473
- **Note:** Version bump only for package mapomodule
474
-
475
-
476
-
477
-
478
-
479
- # [1.0.0-alpha.4](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2021-10-25)
480
-
481
- **Note:** Version bump only for package mapomodule
482
-
483
-
484
-
485
-
486
-
487
- # [1.0.0-alpha.3](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2021-10-25)
488
-
489
-
490
- ### Bug Fixes
491
-
492
- * Corrected load order of modules to prevent missing mapo components in some circumstances ([4fa16fb](https://github.com/lotrekagency/mapo/commit/4fa16fb549ee0e6368fe724c8305ffc789d5c2fc))
package/defaults.js DELETED
@@ -1,43 +0,0 @@
1
- import vuetify from '@mapomodule/uikit/defaults/vuetify'
2
- import i18n from '@mapomodule/uikit/defaults/i18n'
3
-
4
- export default {
5
- store: true,
6
- components: true,
7
- router: {
8
- base: process.env.PANEL_URL || '/',
9
- },
10
- build: {
11
- transpile: ["mapomodule"],
12
- postcss: null,
13
- },
14
- head: {
15
- titleTemplate: '%s - mapo',
16
- title: '🥭 mapo',
17
- meta: [
18
- { charset: 'utf-8' },
19
- { name: 'viewport', content: 'width=device-width, initial-scale=1' },
20
- { hid: 'description', name: 'description', content: '' }
21
- ],
22
- link: [
23
- { rel: 'icon', type: 'image/x-icon', href: '/mapo/favicon.ico' }
24
- ]
25
- },
26
- i18n,
27
- vuetify,
28
- axios: {
29
- withCredentials: true,
30
- },
31
-
32
- extendPlugins(plugins) {
33
- const index = plugins.findIndex(
34
- ({ src }) => src.endsWith('mapo/mapo.js')
35
- )
36
- const mapoPlugin = plugins[index]
37
- if (mapoPlugin) {
38
- plugins.splice(index, 1)
39
- plugins.push(mapoPlugin)
40
- }
41
- return plugins
42
- }
43
- }
package/module.js DELETED
@@ -1,36 +0,0 @@
1
- import mapoDefaults from './defaults'
2
- const _mergeWith = require('lodash.mergewith')
3
-
4
-
5
- function customMerger(objValue, srcValue, key) {
6
- const isFunction = function (obj) {
7
- return !!(obj && obj.constructor && obj.call && obj.apply);
8
- }
9
- if (key == 'extendPlugins' && isFunction(objValue) && isFunction(srcValue)) {
10
- return plugins => objValue(srcValue(plugins))
11
- }
12
- if (key == 'onBeforeLanguageSwitch' && isFunction(objValue) && isFunction(srcValue)) {
13
- return async (...args) => {await objValue(...args); await srcValue(...args);}
14
- }
15
- if (typeof objValue !== 'object') {
16
- return objValue
17
- }
18
- }
19
-
20
- export default async function MapoModule(moduleOptions) {
21
-
22
- const userModuleOptions = Object.keys(moduleOptions).length === 0 ? (this.options['mapo'] || {}) : moduleOptions
23
-
24
- this.options = _mergeWith(this.options, mapoDefaults, customMerger)
25
-
26
- this.requireModule(['@nuxtjs/axios', (this.options && this.options.axios) || userModuleOptions.axios || mapoDefaults.axios || {}])
27
- this.requireModule(['@mapomodule/store', userModuleOptions.store])
28
- this.requireModule(['@mapomodule/core', userModuleOptions])
29
- this.requireModule(['@mapomodule/integrations', userModuleOptions.integrations])
30
- /* Await prevents to load routemeta before mapo pages. Also needed to correclty load mapo components */
31
- await this.requireModule(['@mapomodule/uikit', userModuleOptions.ui])
32
- this.requireModule(['@mapomodule/routemeta', userModuleOptions.routemeta])
33
-
34
- }
35
-
36
- module.exports.meta = require('./package.json')