@feedmepos/mf-mdm 1.3.3-beta.7 → 1.3.3-beta.70
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 +119 -16
- package/dist/app.js +2435 -2412
- package/dist/tests/components/BindOtpDialog.spec.d.ts +1 -0
- package/dist/tests/components/CreateDeviceDialog.spec.d.ts +1 -0
- package/dist/tests/components/DeleteDeviceDialog.spec.d.ts +1 -0
- package/dist/tests/components/DeviceInformationSideSheet.spec.d.ts +1 -0
- package/dist/tests/components/UnbindDeviceDialog.spec.d.ts +1 -0
- package/dist/tests/utils/api.spec.d.ts +1 -0
- package/dist/tests/utils/auth.spec.d.ts +1 -0
- package/dist/tests/utils/device.spec.d.ts +1 -0
- package/dist/tests/utils/helper.spec.d.ts +1 -0
- package/dist/tests/utils/messageHandler.spec.d.ts +1 -0
- package/dist/tests/utils/plugins.spec.d.ts +1 -0
- package/dist/tests/utils/router.spec.d.ts +1 -0
- package/dist/tests/views/DeviceList.spec.d.ts +1 -0
- package/dist/tests/views/RemoteSupportDialog.spec.d.ts +1 -0
- package/dist/tests/views/SubDevicesDialog.spec.d.ts +1 -0
- package/package.json +2 -2
- /package/dist/views/{DeviceListNew.vue.d.ts → DeviceList.vue.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,31 +1,134 @@
|
|
|
1
|
-
# @feedmepos/
|
|
1
|
+
# @feedmepos/mf-mdm
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A microfrontend package for device management in the FeedMe POS ecosystem.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Features
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- Device management and monitoring
|
|
8
|
+
- Remote support capabilities
|
|
9
|
+
- Sub-device management
|
|
10
|
+
- Configuration management
|
|
11
|
+
- Telemetry and logging controls
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
## Installation
|
|
10
14
|
|
|
11
|
-
```
|
|
12
|
-
pnpm install
|
|
15
|
+
```bash
|
|
16
|
+
pnpm install @feedmepos/mf-mdm
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Peer Dependencies
|
|
20
|
+
|
|
21
|
+
Make sure to install the required peer dependencies:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pnpm install tailwindcss@^3.3.3
|
|
13
25
|
```
|
|
14
26
|
|
|
15
|
-
|
|
27
|
+
## Development
|
|
16
28
|
|
|
17
|
-
|
|
18
|
-
|
|
29
|
+
### Prerequisites
|
|
30
|
+
|
|
31
|
+
- Node.js (LTS version)
|
|
32
|
+
- pnpm package manager
|
|
33
|
+
|
|
34
|
+
### Setup
|
|
35
|
+
|
|
36
|
+
1. Clone the repository
|
|
37
|
+
2. Install dependencies:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pnpm install
|
|
19
41
|
```
|
|
20
42
|
|
|
21
|
-
###
|
|
43
|
+
### Available Scripts
|
|
22
44
|
|
|
23
|
-
|
|
45
|
+
- `pnpm dev` - Start development server
|
|
46
|
+
- `pnpm build` - Build package for production
|
|
47
|
+
- Includes microfrontend build
|
|
48
|
+
- TypeScript declarations
|
|
49
|
+
- Asset copying
|
|
50
|
+
- `pnpm build:portal-v2` - Build for portal v2 compatibility
|
|
51
|
+
- `pnpm type-check` - Run TypeScript type checking
|
|
52
|
+
- `pnpm lint` - Run ESLint
|
|
53
|
+
- `pnpm test` - Run unit tests
|
|
54
|
+
- `pnpm format` - Format code using Prettier
|
|
55
|
+
|
|
56
|
+
### Building
|
|
57
|
+
|
|
58
|
+
The build process includes several steps:
|
|
59
|
+
|
|
60
|
+
1. Microfrontend build (`build:mf`)
|
|
61
|
+
2. TypeScript declaration generation (`build:dts`)
|
|
62
|
+
3. Asset copying (`build:copy-assets`)
|
|
63
|
+
|
|
64
|
+
Run all steps with:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
24
67
|
pnpm build
|
|
25
68
|
```
|
|
26
69
|
|
|
27
|
-
|
|
70
|
+
## Architecture
|
|
71
|
+
|
|
72
|
+
The package is structured as a Vue.js microfrontend with the following key components:
|
|
73
|
+
|
|
74
|
+
- Device List View
|
|
75
|
+
- Remote Support Dialog
|
|
76
|
+
- Sub-Devices Dialog
|
|
77
|
+
- Configuration Management
|
|
78
|
+
|
|
79
|
+
## Dependencies
|
|
80
|
+
|
|
81
|
+
### Core Dependencies
|
|
82
|
+
|
|
83
|
+
- Vue 3
|
|
84
|
+
- Vue Router
|
|
85
|
+
- Firebase
|
|
86
|
+
- Axios
|
|
87
|
+
|
|
88
|
+
### FeedMe Ecosystem Dependencies
|
|
89
|
+
|
|
90
|
+
- @feedmepos/core
|
|
91
|
+
- @feedmepos/mdm-package
|
|
92
|
+
- @feedmepos/mf-common
|
|
93
|
+
- @feedmepos/ui-library
|
|
94
|
+
|
|
95
|
+
## Contributing
|
|
96
|
+
|
|
97
|
+
1. Create a feature branch from main
|
|
98
|
+
2. Make your changes
|
|
99
|
+
3. Create and run tests
|
|
100
|
+
4. Bump package version
|
|
101
|
+
5. Submit a pull request
|
|
102
|
+
|
|
103
|
+
## Testing
|
|
104
|
+
|
|
105
|
+
Run the test suite with:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
pnpm test
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
The package uses Vitest for unit testing and Vue Test Utils for component testing.
|
|
112
|
+
|
|
113
|
+
## Versioning
|
|
114
|
+
|
|
115
|
+
We follow semantic versioning with the following deployment workflow:
|
|
116
|
+
|
|
117
|
+
1. When creating a PR:
|
|
118
|
+
|
|
119
|
+
- Bump the version in `package.json` (e.g., 1.3.2 -> 1.3.3)
|
|
120
|
+
- This version will be deployed to development environment for testing
|
|
121
|
+
|
|
122
|
+
2. After PR is merged to main:
|
|
123
|
+
- The same version will be automatically deployed to production
|
|
124
|
+
- The package versions will be updated in both development and production environments
|
|
125
|
+
|
|
126
|
+
Note: Version bumps should follow semantic versioning rules:
|
|
127
|
+
|
|
128
|
+
- MAJOR: Breaking changes (1.0.0 -> 2.0.0)
|
|
129
|
+
- MINOR: New features (1.1.0 -> 1.2.0)
|
|
130
|
+
- PATCH: Bug fixes and small changes (1.1.1 -> 1.1.2)
|
|
131
|
+
|
|
132
|
+
## License
|
|
28
133
|
|
|
29
|
-
|
|
30
|
-
pnpm lint
|
|
31
|
-
```
|
|
134
|
+
Proprietary - FeedMe POS
|