web-mojo 2.2.59 → 2.2.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/README.md +64 -31
- package/dist/admin.cjs.js +1 -1
- package/dist/admin.es.js +1 -1
- package/dist/auth.cjs.js +1 -1
- package/dist/auth.es.js +1 -1
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +1 -1
- package/dist/chunks/ChatView--RU8JTqz.js +2 -0
- package/dist/chunks/ChatView--RU8JTqz.js.map +1 -0
- package/dist/chunks/ChatView-B0ySc2UA.js +2 -0
- package/dist/chunks/ChatView-B0ySc2UA.js.map +1 -0
- package/dist/chunks/{MetricsMiniChartWidget-x2gFjHOU.js → MetricsMiniChartWidget-BzuQ1Imn.js} +2 -2
- package/dist/chunks/{MetricsMiniChartWidget-x2gFjHOU.js.map → MetricsMiniChartWidget-BzuQ1Imn.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-BeD1slGs.js → MetricsMiniChartWidget-C3oO3WuD.js} +2 -2
- package/dist/chunks/{MetricsMiniChartWidget-BeD1slGs.js.map → MetricsMiniChartWidget-C3oO3WuD.js.map} +1 -1
- package/dist/chunks/WebSocketClient-BoF7TV7i.js +2 -0
- package/dist/chunks/WebSocketClient-BoF7TV7i.js.map +1 -0
- package/dist/chunks/WebSocketClient-BxL2M7p0.js +2 -0
- package/dist/chunks/WebSocketClient-BxL2M7p0.js.map +1 -0
- package/dist/chunks/{version-ioN546cp.js → version-DIc2BmEi.js} +2 -2
- package/dist/chunks/{version-ioN546cp.js.map → version-DIc2BmEi.js.map} +1 -1
- package/dist/chunks/{version-C3dnl1bg.js → version-gdAy0irj.js} +2 -2
- package/dist/chunks/{version-C3dnl1bg.js.map → version-gdAy0irj.js.map} +1 -1
- package/dist/docit.cjs.js +1 -1
- package/dist/docit.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/lightbox.cjs.js +1 -1
- package/dist/lightbox.es.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/ChatView-D4A9rIX3.js +0 -2
- package/dist/chunks/ChatView-D4A9rIX3.js.map +0 -1
- package/dist/chunks/ChatView-nxaq8aIo.js +0 -2
- package/dist/chunks/ChatView-nxaq8aIo.js.map +0 -1
- package/dist/chunks/WebSocketClient-B-wc3mez.js +0 -2
- package/dist/chunks/WebSocketClient-B-wc3mez.js.map +0 -1
- package/dist/chunks/WebSocketClient-BdZ9QYll.js +0 -2
- package/dist/chunks/WebSocketClient-BdZ9QYll.js.map +0 -1
package/README.md
CHANGED
|
@@ -13,9 +13,10 @@
|
|
|
13
13
|
**📖 [View Full Documentation](https://nativemojo.com/web-mojo/)**
|
|
14
14
|
|
|
15
15
|
Complete guides covering:
|
|
16
|
+
- **Application Layer** - WebApp, PortalApp, Pages
|
|
16
17
|
- **Core Concepts** - View, Model, Collection, Templates, Events
|
|
17
|
-
- **
|
|
18
|
-
- **
|
|
18
|
+
- **Components** - Sidebar, TopNav, Dialog, TableView, DataView, and more
|
|
19
|
+
- **Extensions** - Charts, Maps, Admin tools, FileUpload, LightBox, TabView, and more
|
|
19
20
|
- **Best Practices** - KISS principles, common pitfalls, optimization
|
|
20
21
|
|
|
21
22
|
---
|
|
@@ -287,27 +288,51 @@ app.start();
|
|
|
287
288
|
|
|
288
289
|
## 📖 Documentation Structure
|
|
289
290
|
|
|
290
|
-
Our documentation is organized
|
|
291
|
+
Our documentation is organized into focused sections — browse online or click any link below:
|
|
292
|
+
|
|
293
|
+
### Application Layer
|
|
294
|
+
- [WebApp](https://nativemojo.com/web-mojo/#core/WebApp.md) — routing, state, REST, EventBus
|
|
295
|
+
- [PortalApp](https://nativemojo.com/web-mojo/#core/PortalApp.md) — auth, sidebar, topbar, groups
|
|
296
|
+
- [Page](https://nativemojo.com/web-mojo/#pages/Page.md) — routed pages, `onEnter`/`onExit`, params
|
|
297
|
+
|
|
298
|
+
### Core Concepts
|
|
299
|
+
- [View](https://nativemojo.com/web-mojo/#core/View.md) — component lifecycle, templates, actions
|
|
300
|
+
- [Templates](https://nativemojo.com/web-mojo/#core/Templates.md) — Mustache + 70+ formatters ⚠️ read pitfalls
|
|
301
|
+
- [Model](https://nativemojo.com/web-mojo/#core/Model.md) — data layer with REST integration
|
|
302
|
+
- [Collection](https://nativemojo.com/web-mojo/#core/Collection.md) — lists, pagination, querying
|
|
303
|
+
- [Events](https://nativemojo.com/web-mojo/#core/Events.md) — EventBus, EventEmitter, delegation
|
|
304
|
+
- [DataFormatter](https://nativemojo.com/web-mojo/#core/DataFormatter.md) — all 80+ built-in formatters
|
|
305
|
+
|
|
306
|
+
### Services
|
|
307
|
+
- [Rest](https://nativemojo.com/web-mojo/#services/Rest.md) — HTTP client: GET/POST/PUT/PATCH/DELETE, file upload
|
|
308
|
+
- [ToastService](https://nativemojo.com/web-mojo/#services/ToastService.md) — Bootstrap 5 toast notifications
|
|
309
|
+
- [WebSocketClient](https://nativemojo.com/web-mojo/#services/WebSocketClient.md) — auto-reconnect WebSocket
|
|
310
|
+
|
|
311
|
+
### Components
|
|
312
|
+
- [Sidebar & TopNav](https://nativemojo.com/web-mojo/#components/SidebarTopNav.md) — portal navigation, homeless pages
|
|
313
|
+
- [Dialog](https://nativemojo.com/web-mojo/#components/Dialog.md) — modals, alerts, confirms, busy indicator
|
|
314
|
+
- [TableView](https://nativemojo.com/web-mojo/#components/TableView.md) / [TablePage](https://nativemojo.com/web-mojo/#components/TablePage.md) — data tables
|
|
315
|
+
- [ListView](https://nativemojo.com/web-mojo/#components/ListView.md) — list component for collections
|
|
316
|
+
- [DataView](https://nativemojo.com/web-mojo/#components/DataView.md) — structured data display
|
|
291
317
|
|
|
292
|
-
|
|
293
|
-
-
|
|
294
|
-
-
|
|
295
|
-
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
7. [Advanced Views](https://nativemojo.com/web-mojo/#core/AdvancedViews.md) - Canvas, WebGL, optimization
|
|
318
|
+
### Extensions
|
|
319
|
+
- [Charts](https://nativemojo.com/web-mojo/#extensions/Charts.md) — Chart.js integration (SeriesChart, PieChart)
|
|
320
|
+
- [Admin](https://nativemojo.com/web-mojo/#extensions/Admin.md) — pre-built admin pages and views
|
|
321
|
+
- [TabView](https://nativemojo.com/web-mojo/#extensions/TabView.md) — tab navigation
|
|
322
|
+
- [MapView](https://nativemojo.com/web-mojo/#extensions/MapView.md) / [MapLibreView](https://nativemojo.com/web-mojo/#extensions/MapLibreView.md) — maps
|
|
323
|
+
- [Location](https://nativemojo.com/web-mojo/#extensions/Location.md) — geolocation services
|
|
324
|
+
- [LightBox](https://nativemojo.com/web-mojo/#extensions/LightBox.md) — image lightbox
|
|
325
|
+
- [FileUpload](https://nativemojo.com/web-mojo/#extensions/FileUpload.md) — file upload utilities
|
|
326
|
+
- [TimelineView](https://nativemojo.com/web-mojo/#extensions/TimelineView.md) — timeline visualization
|
|
327
|
+
|
|
328
|
+
### Essential Reading Order
|
|
329
|
+
|
|
330
|
+
1. [View.md](https://nativemojo.com/web-mojo/#core/View.md) — understand the component lifecycle
|
|
331
|
+
2. [Templates.md](https://nativemojo.com/web-mojo/#core/Templates.md) — learn Mustache + pipe formatters ⚠️ read the pitfalls!
|
|
332
|
+
3. [Model.md](https://nativemojo.com/web-mojo/#core/Model.md) — connect to your REST API
|
|
333
|
+
4. [Collection.md](https://nativemojo.com/web-mojo/#core/Collection.md) — work with lists of data
|
|
334
|
+
5. [WebApp.md](https://nativemojo.com/web-mojo/#core/WebApp.md) — wire the app together
|
|
335
|
+
6. [Page.md](https://nativemojo.com/web-mojo/#pages/Page.md) — create routed pages
|
|
311
336
|
|
|
312
337
|
---
|
|
313
338
|
|
|
@@ -366,15 +391,23 @@ npm test
|
|
|
366
391
|
```
|
|
367
392
|
web-mojo/
|
|
368
393
|
├── src/
|
|
369
|
-
│ ├── core/
|
|
370
|
-
│ ├── extensions/
|
|
371
|
-
│ └── styles/
|
|
372
|
-
├── docs/
|
|
373
|
-
│
|
|
374
|
-
│
|
|
375
|
-
│
|
|
376
|
-
├──
|
|
377
|
-
|
|
394
|
+
│ ├── core/ # Core framework (View, Model, Collection, Router…)
|
|
395
|
+
│ ├── extensions/ # Optional extensions (charts, maps, admin, auth…)
|
|
396
|
+
│ └── styles/ # CSS styles
|
|
397
|
+
├── docs/
|
|
398
|
+
│ └── web-mojo/ # Framework documentation (served on GitHub Pages)
|
|
399
|
+
│ ├── core/ # WebApp, PortalApp, View, Model, Collection, Events…
|
|
400
|
+
│ ├── pages/ # Page (routed screens)
|
|
401
|
+
│ ├── services/ # Rest, ToastService, WebSocketClient
|
|
402
|
+
│ ├── components/ # Sidebar & TopNav, Dialog, TableView, ListView…
|
|
403
|
+
│ ├── extensions/ # Charts, Admin, Maps, LightBox, TabView, FileUpload…
|
|
404
|
+
│ ├── models/ # Built-in models (User, Group, Job, Email…)
|
|
405
|
+
│ ├── utils/ # MOJOUtils
|
|
406
|
+
│ ├── mixins/ # EventEmitter & EventDelegate
|
|
407
|
+
│ ├── README.md # Documentation index
|
|
408
|
+
│ └── index.html # Interactive documentation portal
|
|
409
|
+
├── examples/ # Working example projects
|
|
410
|
+
└── tests/ # Test suites
|
|
378
411
|
```
|
|
379
412
|
|
|
380
413
|
---
|