@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.
Files changed (79) hide show
  1. package/README.md +1 -1
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/commands/apps.command.js +1 -1
  5. package/dist/commands/apps.command.js.map +1 -1
  6. package/dist/commands/components.command.js +1 -1
  7. package/dist/commands/components.command.js.map +1 -1
  8. package/dist/commands/create.command.js +24 -2
  9. package/dist/commands/create.command.js.map +1 -1
  10. package/dist/commands/dev.command.js +1 -1
  11. package/dist/commands/dev.command.js.map +1 -1
  12. package/dist/commands/modifications.command.js +2 -5
  13. package/dist/commands/modifications.command.js.map +1 -1
  14. package/dist/commands/setup.command.js +1 -1
  15. package/dist/commands/setup.command.js.map +1 -1
  16. package/dist/services/app.service.js +13 -11
  17. package/dist/services/app.service.js.map +1 -1
  18. package/dist/services/components/component.config.js +1 -1
  19. package/dist/services/components/component.config.js.map +1 -1
  20. package/dist/services/components/components.service.js +1 -1
  21. package/dist/services/components/components.service.js.map +1 -1
  22. package/dist/services/components/file.helper.js +1 -1
  23. package/dist/services/components/file.helper.js.map +1 -1
  24. package/dist/services/components/stores/github.store.js +104 -4
  25. package/dist/services/components/stores/github.store.js.map +1 -1
  26. package/dist/services/components/stores/local.store.js +1 -1
  27. package/dist/services/components/stores/local.store.js.map +1 -1
  28. package/dist/services/components/stores/s3.store.js +1 -1
  29. package/dist/services/components/stores/s3.store.js.map +1 -1
  30. package/dist/services/create.service.js +95 -18
  31. package/dist/services/create.service.js.map +1 -1
  32. package/dist/services/dev.service.js +2 -2
  33. package/dist/services/dev.service.js.map +1 -1
  34. package/dist/services/installer/electronForge.js +1 -1
  35. package/dist/services/installer/electronForge.js.map +1 -1
  36. package/dist/services/installer/installer.service.js +3 -13
  37. package/dist/services/installer/installer.service.js.map +1 -1
  38. package/dist/services/installer/macOS.helper.js +1 -1
  39. package/dist/services/installer/macOS.helper.js.map +1 -1
  40. package/dist/services/installer/prerequisites.js +1 -1
  41. package/dist/services/installer/prerequisites.js.map +1 -1
  42. package/dist/services/installer/windows.helper.js +1 -1
  43. package/dist/services/installer/windows.helper.js.map +1 -1
  44. package/dist/services/license.service.js +1 -1
  45. package/dist/services/license.service.js.map +1 -1
  46. package/dist/services/modifications/macOS.helper.js +1 -1
  47. package/dist/services/modifications/macOS.helper.js.map +1 -1
  48. package/dist/services/modifications/modifications.service.js +2 -2
  49. package/dist/services/modifications/modifications.service.js.map +1 -1
  50. package/dist/services/modifications/windows.helper.js +1 -1
  51. package/dist/services/modifications/windows.helper.js.map +1 -1
  52. package/dist/services/template.service.js +1 -1
  53. package/dist/services/template.service.js.map +1 -1
  54. package/dist/templates/splash/apps/splash/assets/fonts/Inter-Regular.ttf +0 -0
  55. package/dist/templates/splash/apps/splash/assets/images/splash-background.png +0 -0
  56. package/dist/templates/splash/apps/splash/assets/styles/style.css +39 -0
  57. package/dist/templates/splash/apps/splash/iocd.app.json +6 -18
  58. package/dist/templates/splash/apps/splash/script.js +53 -0
  59. package/dist/templates/splash/apps/splash/splash.html +25 -0
  60. package/dist/utils/error.handler.js +1 -1
  61. package/dist/utils/error.handler.js.map +1 -1
  62. package/dist/utils/logger.js +9 -8
  63. package/dist/utils/logger.js.map +1 -1
  64. package/package.json +6 -2
  65. package/dist/templates/splash/apps/splash/README.md +0 -119
  66. package/dist/templates/splash/apps/splash/config/system-dev.json +0 -9
  67. package/dist/templates/splash/apps/splash/index.html +0 -55
  68. package/dist/templates/splash/apps/splash/package-lock.json +0 -1059
  69. package/dist/templates/splash/apps/splash/package.json +0 -17
  70. package/dist/templates/splash/apps/splash/public/assets/fonts/PTSans-Regular.ttf +0 -0
  71. package/dist/templates/splash/apps/splash/public/assets/images/logo-light.svg +0 -85
  72. package/dist/templates/splash/apps/splash/public/assets/images/splash-bg.png +0 -0
  73. package/dist/templates/splash/apps/splash/public/assets/styles/style.css +0 -149
  74. package/dist/templates/splash/apps/splash/public/assets/styles/style.scss +0 -90
  75. package/dist/templates/splash/apps/splash/src/main.ts +0 -93
  76. package/dist/templates/splash/apps/splash/src/types.ts +0 -28
  77. package/dist/templates/splash/apps/splash/tsconfig.json +0 -25
  78. package/dist/templates/splash/apps/splash/vite.config.ts +0 -27
  79. /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&region=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,9 +0,0 @@
1
- {
2
- "splash": {
3
- "disabled": false,
4
- "url": "http://localhost:5177/",
5
- "width": 350,
6
- "height": 233,
7
- "blockStartup": true
8
- }
9
- }
@@ -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>