@interopio/iocd-cli 0.0.10 → 0.0.12
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 +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/apps.command.js +1 -1
- package/dist/commands/apps.command.js.map +1 -1
- package/dist/commands/components.command.js +1 -1
- package/dist/commands/components.command.js.map +1 -1
- package/dist/commands/create.command.js +24 -2
- package/dist/commands/create.command.js.map +1 -1
- package/dist/commands/dev.command.js +1 -1
- package/dist/commands/dev.command.js.map +1 -1
- package/dist/commands/modifications.command.js +2 -5
- package/dist/commands/modifications.command.js.map +1 -1
- package/dist/commands/setup.command.js +1 -1
- package/dist/commands/setup.command.js.map +1 -1
- package/dist/services/app.service.js +13 -11
- package/dist/services/app.service.js.map +1 -1
- package/dist/services/components/component.config.js +1 -1
- package/dist/services/components/component.config.js.map +1 -1
- package/dist/services/components/components.service.js +1 -1
- package/dist/services/components/components.service.js.map +1 -1
- package/dist/services/components/file.helper.js +1 -1
- package/dist/services/components/file.helper.js.map +1 -1
- package/dist/services/components/stores/github.store.js +104 -4
- package/dist/services/components/stores/github.store.js.map +1 -1
- package/dist/services/components/stores/local.store.js +1 -1
- package/dist/services/components/stores/local.store.js.map +1 -1
- package/dist/services/components/stores/s3.store.js +1 -1
- package/dist/services/components/stores/s3.store.js.map +1 -1
- package/dist/services/create.service.js +95 -18
- package/dist/services/create.service.js.map +1 -1
- package/dist/services/dev.service.js +2 -2
- package/dist/services/dev.service.js.map +1 -1
- package/dist/services/installer/electronForge.js +1 -1
- package/dist/services/installer/electronForge.js.map +1 -1
- package/dist/services/installer/installer.service.js +3 -13
- package/dist/services/installer/installer.service.js.map +1 -1
- package/dist/services/installer/macOS.helper.js +1 -1
- package/dist/services/installer/macOS.helper.js.map +1 -1
- package/dist/services/installer/prerequisites.js +1 -1
- package/dist/services/installer/prerequisites.js.map +1 -1
- package/dist/services/installer/windows.helper.js +1 -1
- package/dist/services/installer/windows.helper.js.map +1 -1
- package/dist/services/license.service.js +1 -1
- package/dist/services/license.service.js.map +1 -1
- package/dist/services/modifications/macOS.helper.js +1 -1
- package/dist/services/modifications/macOS.helper.js.map +1 -1
- package/dist/services/modifications/modifications.service.js +2 -2
- package/dist/services/modifications/modifications.service.js.map +1 -1
- package/dist/services/modifications/windows.helper.js +1 -1
- package/dist/services/modifications/windows.helper.js.map +1 -1
- package/dist/services/template.service.js +1 -1
- package/dist/services/template.service.js.map +1 -1
- package/dist/templates/splash/apps/splash/assets/fonts/Inter-Regular.ttf +0 -0
- package/dist/templates/splash/apps/splash/assets/images/splash-background.png +0 -0
- package/dist/templates/splash/apps/splash/assets/styles/style.css +39 -0
- package/dist/templates/splash/apps/splash/iocd.app.json +6 -18
- package/dist/templates/splash/apps/splash/script.js +53 -0
- package/dist/templates/splash/apps/splash/splash.html +25 -0
- package/dist/utils/error.handler.js +1 -1
- package/dist/utils/error.handler.js.map +1 -1
- package/dist/utils/logger.js +9 -8
- package/dist/utils/logger.js.map +1 -1
- package/package.json +6 -2
- package/dist/templates/splash/apps/splash/README.md +0 -119
- package/dist/templates/splash/apps/splash/config/system-dev.json +0 -9
- package/dist/templates/splash/apps/splash/index.html +0 -55
- package/dist/templates/splash/apps/splash/package-lock.json +0 -1059
- package/dist/templates/splash/apps/splash/package.json +0 -17
- package/dist/templates/splash/apps/splash/public/assets/fonts/PTSans-Regular.ttf +0 -0
- package/dist/templates/splash/apps/splash/public/assets/images/logo-light.svg +0 -85
- package/dist/templates/splash/apps/splash/public/assets/images/splash-bg.png +0 -0
- package/dist/templates/splash/apps/splash/public/assets/styles/style.css +0 -149
- package/dist/templates/splash/apps/splash/public/assets/styles/style.scss +0 -90
- package/dist/templates/splash/apps/splash/src/main.ts +0 -93
- package/dist/templates/splash/apps/splash/src/types.ts +0 -28
- package/dist/templates/splash/apps/splash/tsconfig.json +0 -25
- package/dist/templates/splash/apps/splash/vite.config.ts +0 -27
- /package/dist/templates/splash/apps/splash/{public/assets → assets}/styles/style.css.map +0 -0
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
# io.Connect Desktop Splash Screen
|
|
2
|
-
|
|
3
|
-
A modern TypeScript-based splash screen application built with Vite for io.Connect Desktop.
|
|
4
|
-
|
|
5
|
-
## Overview
|
|
6
|
-
|
|
7
|
-
This splash screen application is built using Vite with TypeScript and replicates the functionality of the original JavaScript-based splash screen. It provides a loading interface during application startup with status updates and gateway connectivity testing.
|
|
8
|
-
|
|
9
|
-
## Features
|
|
10
|
-
|
|
11
|
-
- **TypeScript Support**: Full type safety with proper interfaces
|
|
12
|
-
- **Modern Build System**: Vite for fast development and optimized builds
|
|
13
|
-
- **Status Updates**: Displays loading messages and progress
|
|
14
|
-
- **Gateway Testing**: Tests WebSocket connectivity to the gateway
|
|
15
|
-
- **URL Parameter Support**: Configurable via query parameters
|
|
16
|
-
- **Responsive Design**: Maintains the original visual design
|
|
17
|
-
|
|
18
|
-
## Development
|
|
19
|
-
|
|
20
|
-
### Prerequisites
|
|
21
|
-
|
|
22
|
-
- Node.js (v16 or higher)
|
|
23
|
-
- npm
|
|
24
|
-
|
|
25
|
-
### Getting Started
|
|
26
|
-
|
|
27
|
-
1. Install dependencies:
|
|
28
|
-
```bash
|
|
29
|
-
npm install
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
2. Start development server:
|
|
33
|
-
```bash
|
|
34
|
-
npm run dev
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
3. Build for production:
|
|
38
|
-
```bash
|
|
39
|
-
npm run build
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
4. Preview production build:
|
|
43
|
-
```bash
|
|
44
|
-
npm run preview
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### Type Checking
|
|
48
|
-
|
|
49
|
-
Run TypeScript type checking:
|
|
50
|
-
```bash
|
|
51
|
-
npm run type-check
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## URL Parameters
|
|
55
|
-
|
|
56
|
-
The splash screen accepts the following URL parameters:
|
|
57
|
-
|
|
58
|
-
- `message`: Initial status message to display
|
|
59
|
-
- `version`: Application version number
|
|
60
|
-
- `env`: Environment name (e.g., "DEMO", "PROD")
|
|
61
|
-
- `region`: Region identifier (e.g., "INTEROP.IO")
|
|
62
|
-
|
|
63
|
-
Example:
|
|
64
|
-
```
|
|
65
|
-
splash.html?message=Starting&env=DEMO®ion=INTEROP.IO&version=9.0.0.25
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## API Integration
|
|
69
|
-
|
|
70
|
-
The splash screen integrates with the main application via the `glue42splash` global object:
|
|
71
|
-
|
|
72
|
-
### Events
|
|
73
|
-
|
|
74
|
-
- **updateStatus**: Updates the status message
|
|
75
|
-
```typescript
|
|
76
|
-
glue42splash.on("updateStatus", (arg: { text: string }) => {
|
|
77
|
-
// Updates status display
|
|
78
|
-
});
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
- **pingGW**: Tests gateway connectivity
|
|
82
|
-
```typescript
|
|
83
|
-
glue42splash.on("pingGW", (arg: { gwURL: string }) => {
|
|
84
|
-
// Tests WebSocket connection to gateway
|
|
85
|
-
});
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
## File Structure
|
|
89
|
-
|
|
90
|
-
```
|
|
91
|
-
src/
|
|
92
|
-
├── main.ts # Main application logic
|
|
93
|
-
├── types.ts # TypeScript type definitions
|
|
94
|
-
public/
|
|
95
|
-
├── assets/ # Copied from original splash screen
|
|
96
|
-
│ ├── images/ # Logo and background images
|
|
97
|
-
│ ├── styles/ # CSS styles
|
|
98
|
-
│ └── fonts/ # Custom fonts
|
|
99
|
-
└── index.html # Main HTML template
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
## Build Output
|
|
103
|
-
|
|
104
|
-
The build process generates optimized files in the `dist/` directory:
|
|
105
|
-
- `index.html` - Main HTML file
|
|
106
|
-
- `assets/` - Bundled and optimized JavaScript/CSS files
|
|
107
|
-
- `assets/` - Static assets (images, fonts, styles)
|
|
108
|
-
|
|
109
|
-
## Migration from Original
|
|
110
|
-
|
|
111
|
-
This Vite-based implementation maintains 100% functional compatibility with the original JavaScript-based splash screen while adding:
|
|
112
|
-
|
|
113
|
-
- TypeScript type safety
|
|
114
|
-
- Modern ES6+ syntax and features
|
|
115
|
-
- Optimized build process
|
|
116
|
-
- Better development experience
|
|
117
|
-
- Modular code organization
|
|
118
|
-
|
|
119
|
-
The visual appearance and all functionality remain identical to ensure seamless integration with existing io.Connect Desktop applications.
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" http-equiv="CACHE-CONTROL" content="NO-CACHE" />
|
|
5
|
-
<meta
|
|
6
|
-
name="viewport"
|
|
7
|
-
content="width=device-width, initial-scale=1,
|
|
8
|
-
shrink-to-fit=no"
|
|
9
|
-
/>
|
|
10
|
-
<meta name="description" content="io.Connect Desktop" />
|
|
11
|
-
<meta name="author" content="interop.io" />
|
|
12
|
-
<link rel="stylesheet" href="/assets/styles/style.css" />
|
|
13
|
-
<title>io.Connect Desktop</title>
|
|
14
|
-
</head>
|
|
15
|
-
|
|
16
|
-
<body style="-webkit-app-region: drag">
|
|
17
|
-
<div class="splash-wrapper">
|
|
18
|
-
<div class="logo-wrapper">
|
|
19
|
-
<img
|
|
20
|
-
src="/assets/images/logo-light.svg"
|
|
21
|
-
width="160"
|
|
22
|
-
class="logo"
|
|
23
|
-
/>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="version" id="version"><span> </span></div>
|
|
26
|
-
<div class="status" id="status">...</div>
|
|
27
|
-
<div class="loader">
|
|
28
|
-
<div></div>
|
|
29
|
-
<div></div>
|
|
30
|
-
<div></div>
|
|
31
|
-
<div></div>
|
|
32
|
-
<div></div>
|
|
33
|
-
<div></div>
|
|
34
|
-
<div></div>
|
|
35
|
-
<div></div>
|
|
36
|
-
<div></div>
|
|
37
|
-
<div></div>
|
|
38
|
-
<div></div>
|
|
39
|
-
<div></div>
|
|
40
|
-
<div></div>
|
|
41
|
-
<div></div>
|
|
42
|
-
<div></div>
|
|
43
|
-
<div></div>
|
|
44
|
-
<div></div>
|
|
45
|
-
<div></div>
|
|
46
|
-
<div></div>
|
|
47
|
-
<div></div>
|
|
48
|
-
</div>
|
|
49
|
-
<div class="copyright" id="copyright">
|
|
50
|
-
Interop Inc All rights reserved.
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
<script type="module" src="/src/main.ts"></script>
|
|
54
|
-
</body>
|
|
55
|
-
</html>
|