@interopio/iocd-cli 0.0.5 → 0.0.6
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 +2 -4
- package/dist/cli.js +24 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/build.command.d.ts +3 -0
- package/dist/commands/build.command.d.ts.map +1 -0
- package/dist/commands/{installer.command.js → build.command.js} +5 -5
- package/dist/commands/build.command.js.map +1 -0
- package/dist/commands/license.command.d.ts.map +1 -1
- package/dist/commands/license.command.js +2 -3
- package/dist/commands/license.command.js.map +1 -1
- package/dist/commands/setup.command.js +1 -1
- package/dist/commands/setup.command.js.map +1 -1
- package/dist/sentry.d.ts +2 -0
- package/dist/sentry.d.ts.map +1 -0
- package/dist/sentry.js +67 -0
- package/dist/sentry.js.map +1 -0
- package/dist/services/app.service.d.ts +1 -1
- package/dist/services/app.service.d.ts.map +1 -1
- package/dist/services/app.service.js +3 -2
- package/dist/services/app.service.js.map +1 -1
- package/dist/services/components/components.service.d.ts +2 -2
- package/dist/services/components/components.service.d.ts.map +1 -1
- package/dist/services/components/components.service.js +15 -11
- package/dist/services/components/components.service.js.map +1 -1
- package/dist/services/config/cli.config.d.ts +2 -1
- package/dist/services/config/cli.config.d.ts.map +1 -1
- package/dist/services/config/config.service.d.ts.map +1 -1
- package/dist/services/config/config.service.js +3 -2
- package/dist/services/config/config.service.js.map +1 -1
- package/dist/services/create.service.d.ts.map +1 -1
- package/dist/services/create.service.js +9 -8
- package/dist/services/create.service.js.map +1 -1
- package/dist/services/installer/electronForge.js +9 -9
- package/dist/services/installer/electronForge.js.map +1 -1
- package/dist/services/installer/installer.service.d.ts.map +1 -1
- package/dist/services/installer/installer.service.js +15 -16
- package/dist/services/installer/installer.service.js.map +1 -1
- package/dist/services/modifications/modifications.service.d.ts +1 -1
- package/dist/services/modifications/modifications.service.d.ts.map +1 -1
- package/dist/services/modifications/modifications.service.js +1 -1
- package/dist/services/modifications/modifications.service.js.map +1 -1
- package/dist/templates/{web-groups/apps/web-groups → groups/apps/groups}/iocd.app.json +3 -3
- package/dist/templates/groups/apps/{web-groups → groups}/package.json +4 -5
- package/dist/templates/groups/apps/{web-groups → groups}/src/index.tsx +0 -1
- package/dist/templates/groups/template.json +1 -1
- package/dist/templates/ioconnect-desktop/.github/workflows/build-installers.yml +18 -115
- package/dist/templates/ioconnect-desktop/iocd.cli.config.json +1 -1
- package/dist/templates/ioconnect-desktop/package.json +1 -1
- package/dist/templates/launchpad/apps/launchpad/iocd.app.json +5 -5
- package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/iocd.app.json +3 -3
- package/dist/templates/{splash-screen → splash}/template.json +1 -1
- package/dist/templates/workspaces/apps/workspaces/iocd.app.json +3 -3
- package/dist/templates/workspaces/apps/workspaces/package.json +1 -1
- package/dist/templates/workspaces/apps/workspaces/src/GroupHeaderButtons.tsx +1 -1
- package/dist/utils/delay.d.ts +2 -0
- package/dist/utils/delay.d.ts.map +1 -0
- package/dist/utils/delay.js +7 -0
- package/dist/utils/delay.js.map +1 -0
- package/dist/utils/error.handler.d.ts +2 -1
- package/dist/utils/error.handler.d.ts.map +1 -1
- package/dist/utils/error.handler.js +45 -4
- package/dist/utils/error.handler.js.map +1 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +2 -1
- package/dist/utils/logger.js.map +1 -1
- package/package.json +2 -1
- package/dist/commands/installer.command.d.ts +0 -3
- package/dist/commands/installer.command.d.ts.map +0 -1
- package/dist/commands/installer.command.js.map +0 -1
- package/dist/templates/groups/apps/web-groups/iocd.app.json +0 -20
- package/dist/templates/launchpad/apps/launchpad/config/iocd.app.def.prod.json +0 -2
- package/dist/templates/launchpad/apps/launchpad/config/iocd.system.prod.json +0 -3
- package/dist/templates/splash-screen/apps/splash-screen/config/system-prod.json +0 -8
- package/dist/templates/web-groups/apps/web-groups/README.md +0 -15
- package/dist/templates/web-groups/apps/web-groups/config/web-group-dev.json +0 -13
- package/dist/templates/web-groups/apps/web-groups/config/web-group-prod.json +0 -12
- package/dist/templates/web-groups/apps/web-groups/index.html +0 -18
- package/dist/templates/web-groups/apps/web-groups/package.json +0 -28
- package/dist/templates/web-groups/apps/web-groups/public/favicon.ico +0 -0
- package/dist/templates/web-groups/apps/web-groups/public/logo192.png +0 -0
- package/dist/templates/web-groups/apps/web-groups/public/logo512.png +0 -0
- package/dist/templates/web-groups/apps/web-groups/public/manifest.json +0 -25
- package/dist/templates/web-groups/apps/web-groups/public/robots.txt +0 -3
- package/dist/templates/web-groups/apps/web-groups/src/App.css +0 -38
- package/dist/templates/web-groups/apps/web-groups/src/App.tsx +0 -11
- package/dist/templates/web-groups/apps/web-groups/src/index.css +0 -13
- package/dist/templates/web-groups/apps/web-groups/src/index.tsx +0 -25
- package/dist/templates/web-groups/apps/web-groups/src/logo.svg +0 -1
- package/dist/templates/web-groups/apps/web-groups/src/reportWebVitals.ts +0 -15
- package/dist/templates/web-groups/apps/web-groups/tsconfig.json +0 -26
- package/dist/templates/web-groups/apps/web-groups/vite.config.ts +0 -8
- package/dist/templates/web-groups/template.json +0 -12
- package/dist/templates/workspaces/apps/workspaces/config/workspaces-prod.json +0 -20
- /package/dist/templates/groups/apps/{web-groups → groups}/README.md +0 -0
- /package/dist/templates/groups/apps/{web-groups → groups}/config/web-group-dev.json +0 -0
- /package/dist/templates/groups/apps/{web-groups → groups}/index.html +0 -0
- /package/dist/templates/groups/apps/{web-groups → groups}/public/favicon.ico +0 -0
- /package/dist/templates/groups/apps/{web-groups → groups}/public/logo192.png +0 -0
- /package/dist/templates/groups/apps/{web-groups → groups}/public/logo512.png +0 -0
- /package/dist/templates/groups/apps/{web-groups → groups}/public/manifest.json +0 -0
- /package/dist/templates/groups/apps/{web-groups → groups}/public/robots.txt +0 -0
- /package/dist/templates/groups/apps/{web-groups → groups}/src/App.css +0 -0
- /package/dist/templates/groups/apps/{web-groups → groups}/src/App.tsx +0 -0
- /package/dist/templates/groups/apps/{web-groups → groups}/src/index.css +0 -0
- /package/dist/templates/groups/apps/{web-groups → groups}/src/logo.svg +0 -0
- /package/dist/templates/groups/apps/{web-groups → groups}/src/reportWebVitals.ts +0 -0
- /package/dist/templates/groups/apps/{web-groups → groups}/tsconfig.json +0 -0
- /package/dist/templates/groups/apps/{web-groups → groups}/vite.config.ts +0 -0
- /package/dist/templates/launchpad/apps/launchpad/config/{iocd.system.installer.json → iocd.system.build.json} +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/README.md +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/config/system-dev.json +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/index.html +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/package-lock.json +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/package.json +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/public/assets/fonts/PTSans-Regular.ttf +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/public/assets/images/logo-light.svg +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/public/assets/images/splash-bg.png +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/public/assets/styles/style.css +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/public/assets/styles/style.css.map +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/public/assets/styles/style.scss +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/src/main.ts +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/src/types.ts +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/tsconfig.json +0 -0
- /package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/vite.config.ts +0 -0
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
}
|
|
13
13
|
]
|
|
14
14
|
},
|
|
15
|
-
"
|
|
15
|
+
"build": {
|
|
16
16
|
"script": "build",
|
|
17
17
|
"modifications": [
|
|
18
18
|
{
|
|
19
|
-
"source": "/config/iocd.system.
|
|
20
|
-
"destination": "/modifications-
|
|
19
|
+
"source": "/config/iocd.system.build.json",
|
|
20
|
+
"destination": "/modifications-build/iocd/config/system.json.merge-launchpad"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
"source": "/dist",
|
|
24
|
-
"destination": "/modifications-
|
|
23
|
+
"source": "/dist/",
|
|
24
|
+
"destination": "/modifications-build/iocd/assets/app-launchpad"
|
|
25
25
|
}
|
|
26
26
|
]
|
|
27
27
|
}
|
package/dist/templates/{splash-screen/apps/splash-screen → splash/apps/splash}/iocd.app.json
RENAMED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
}
|
|
9
9
|
]
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"build": {
|
|
12
12
|
"script": "build",
|
|
13
13
|
"modifications": [
|
|
14
14
|
{
|
|
15
|
-
"source": "/dist",
|
|
16
|
-
"destination": "/modifications-
|
|
15
|
+
"source": "/dist/",
|
|
16
|
+
"destination": "/modifications-build/iocd/assets/splash"
|
|
17
17
|
}
|
|
18
18
|
]
|
|
19
19
|
}
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
}
|
|
9
9
|
]
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"build": {
|
|
12
12
|
"script": "build",
|
|
13
13
|
"modifications": [
|
|
14
14
|
{
|
|
15
|
-
"source": "/dist",
|
|
16
|
-
"destination": "/modifications-
|
|
15
|
+
"source": "/dist/",
|
|
16
|
+
"destination": "/modifications-build/iocd/assets/workspaces"
|
|
17
17
|
}
|
|
18
18
|
]
|
|
19
19
|
}
|
|
@@ -2,7 +2,7 @@ import { GroupHeaderButtons as DefaultGroupHeaderButtons, GroupHeaderButtonsProp
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
const GroupHeaderButtons: React.FC<GroupHeaderButtonsProps> = (props) => {
|
|
5
|
-
return <DefaultGroupHeaderButtons {...props}
|
|
5
|
+
return <DefaultGroupHeaderButtons {...props} />;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../src/utils/delay.ts"],"names":[],"mappings":"AAAA,wBAAsB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAErD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delay.js","sourceRoot":"","sources":["../../src/utils/delay.ts"],"names":[],"mappings":";;AAAA,sBAEC;AAFM,KAAK,UAAU,KAAK,CAAC,EAAU;IACpC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -24,7 +24,8 @@ export declare class CLIError extends Error {
|
|
|
24
24
|
}
|
|
25
25
|
export declare class ErrorHandler {
|
|
26
26
|
private static logger;
|
|
27
|
-
static handle(error: Error | CLIError): void
|
|
27
|
+
static handle(error: Error | CLIError): Promise<void>;
|
|
28
28
|
static wrap(fn: () => Promise<any>): Promise<any>;
|
|
29
|
+
private static sendToSentry;
|
|
29
30
|
}
|
|
30
31
|
//# sourceMappingURL=error.handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.handler.d.ts","sourceRoot":"","sources":["../../src/utils/error.handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"error.handler.d.ts","sourceRoot":"","sources":["../../src/utils/error.handler.ts"],"names":[],"mappings":"AAQA,oBAAY,SAAS;IACnB,OAAO,IAAI;IACX,cAAc,IAAI;IAClB,aAAa,IAAI;IACjB,iBAAiB,IAAI;IACrB,eAAe,IAAI;IACnB,gBAAgB,IAAI;IACpB,gBAAgB,IAAI;IACpB,SAAS,IAAI;IACb,WAAW,IAAI;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qBAAa,QAAS,SAAQ,KAAK;IACjC,SAAgB,IAAI,EAAE,SAAS,CAAC;IAChC,SAAyB,KAAK,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IACnD,SAAgB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtC,SAAgB,WAAW,EAAE,OAAO,CAAC;gBAEzB,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB;CAQ3D;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAC,MAAM,CAAwB;WAEzB,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,QAAQ;WAwCpC,IAAI,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC;IAOxD,OAAO,CAAC,MAAM,CAAC,YAAY;CAkC5B"}
|
|
@@ -37,6 +37,10 @@ exports.ErrorHandler = exports.CLIError = exports.ErrorCode = void 0;
|
|
|
37
37
|
const logger_1 = require("./logger");
|
|
38
38
|
const colors_1 = require("./colors");
|
|
39
39
|
const clack = __importStar(require("@clack/prompts"));
|
|
40
|
+
const config_service_1 = require("../services/config/config.service");
|
|
41
|
+
const fs_1 = require("fs");
|
|
42
|
+
const Sentry = __importStar(require("@sentry/node"));
|
|
43
|
+
const delay_1 = require("./delay");
|
|
40
44
|
var ErrorCode;
|
|
41
45
|
(function (ErrorCode) {
|
|
42
46
|
ErrorCode[ErrorCode["GENERAL"] = 1] = "GENERAL";
|
|
@@ -66,7 +70,7 @@ class CLIError extends Error {
|
|
|
66
70
|
exports.CLIError = CLIError;
|
|
67
71
|
class ErrorHandler {
|
|
68
72
|
static logger = logger_1.Logger.getInstance();
|
|
69
|
-
static handle(error) {
|
|
73
|
+
static async handle(error) {
|
|
70
74
|
this.logger.error((0, colors_1.red)('✖'), (0, colors_1.bold)('Error:'), error);
|
|
71
75
|
if (error.cause) {
|
|
72
76
|
this.logger.error('Caused by:', error.cause);
|
|
@@ -90,15 +94,52 @@ class ErrorHandler {
|
|
|
90
94
|
// Ensure all logs are flushed before exit
|
|
91
95
|
this.logger.flush();
|
|
92
96
|
// Give a small delay to ensure flush completes, then exit
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
97
|
+
await (0, delay_1.delay)(100);
|
|
98
|
+
if (config_service_1.ConfigManager.config.sentry) {
|
|
99
|
+
this.sendToSentry(error);
|
|
100
|
+
// Wait a bit to ensure Sentry sends the error before exiting
|
|
101
|
+
await (0, delay_1.delay)(100);
|
|
102
|
+
}
|
|
103
|
+
process.exit(exitCode);
|
|
96
104
|
}
|
|
97
105
|
static wrap(fn) {
|
|
98
106
|
return fn().catch(error => {
|
|
99
107
|
this.handle(error);
|
|
100
108
|
});
|
|
101
109
|
}
|
|
110
|
+
static sendToSentry(error) {
|
|
111
|
+
try {
|
|
112
|
+
Sentry.withScope((scope) => {
|
|
113
|
+
// Set error context
|
|
114
|
+
scope.setTag('errorCode', error instanceof CLIError ? error.code : 'GENERAL');
|
|
115
|
+
scope.setLevel('error');
|
|
116
|
+
// Add log file as attachment
|
|
117
|
+
try {
|
|
118
|
+
const logContent = (0, fs_1.readFileSync)(this.logger.getLogPath(), 'utf8');
|
|
119
|
+
scope.addAttachment({
|
|
120
|
+
filename: 'cli.log',
|
|
121
|
+
data: logContent,
|
|
122
|
+
contentType: 'text/plain'
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
catch (logError) {
|
|
126
|
+
console.error('Failed to attach log file to Sentry:', logError);
|
|
127
|
+
}
|
|
128
|
+
// Add CLI-specific context
|
|
129
|
+
scope.setContext('cli', {
|
|
130
|
+
version: require('../../package.json').version,
|
|
131
|
+
command: process.argv.slice(2).join(' '),
|
|
132
|
+
platform: process.platform,
|
|
133
|
+
nodeVersion: process.version
|
|
134
|
+
});
|
|
135
|
+
// Capture the error
|
|
136
|
+
Sentry.captureException(error);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
catch (sentryError) {
|
|
140
|
+
console.error('Failed to send error to Sentry:', sentryError);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
102
143
|
}
|
|
103
144
|
exports.ErrorHandler = ErrorHandler;
|
|
104
145
|
//# sourceMappingURL=error.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.handler.js","sourceRoot":"","sources":["../../src/utils/error.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAkC;AAClC,qCAAmD;AACnD,sDAAwC;
|
|
1
|
+
{"version":3,"file":"error.handler.js","sourceRoot":"","sources":["../../src/utils/error.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAkC;AAClC,qCAAmD;AACnD,sDAAwC;AACxC,sEAAkE;AAClE,2BAAkC;AAClC,qDAAuC;AACvC,mCAAgC;AAEhC,IAAY,SAUX;AAVD,WAAY,SAAS;IACnB,+CAAW,CAAA;IACX,6DAAkB,CAAA;IAClB,2DAAiB,CAAA;IACjB,mEAAqB,CAAA;IACrB,+DAAmB,CAAA;IACnB,iEAAoB,CAAA;IACpB,iEAAoB,CAAA;IACpB,mDAAa,CAAA;IACb,uDAAe,CAAA;AACjB,CAAC,EAVW,SAAS,yBAAT,SAAS,QAUpB;AASD,MAAa,QAAS,SAAQ,KAAK;IACjB,IAAI,CAAY;IACP,KAAK,CAAqB;IACnC,WAAW,CAAW;IACtB,WAAW,CAAU;IAErC,YAAY,OAAe,EAAE,UAA2B,EAAE;QACxD,KAAK,CAAC,OAAO,CAAC,CAA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["../../src/utils/logger.ts"],"names":[],"mappings":"AAQA,qBAAa,MAAM;IAEjB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAS;IAChC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,OAAO,CAAS;IAExB,OAAO;IAKA,gBAAgB;WAIT,WAAW,IAAI,MAAM;IAOnC,OAAO,CAAC,YAAY;IA2Fb,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAI/C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAIhD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAI/C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAIhD,KAAK,IAAI,IAAI;IAMb,UAAU,IAAI,MAAM;IAIpB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAQlC,QAAQ,IAAI,IAAI;WAIT,KAAK,IAAI,IAAI;CAM5B"}
|
package/dist/utils/logger.js
CHANGED
|
@@ -42,6 +42,7 @@ const node_os_1 = require("node:os");
|
|
|
42
42
|
const node_path_1 = require("node:path");
|
|
43
43
|
const node_fs_1 = require("node:fs");
|
|
44
44
|
const clack = __importStar(require("@clack/prompts"));
|
|
45
|
+
const colors_1 = require("./colors");
|
|
45
46
|
//import chalk from 'chalk';
|
|
46
47
|
class Logger {
|
|
47
48
|
static instance;
|
|
@@ -100,7 +101,7 @@ class Logger {
|
|
|
100
101
|
const firstMessage = loggingEvent.data[0];
|
|
101
102
|
const firstWord = firstMessage.split(" ")[0];
|
|
102
103
|
if (firstMessage.toLowerCase().includes("successfully")) {
|
|
103
|
-
clack.log.success(fullMessage);
|
|
104
|
+
clack.log.success((0, colors_1.green)(fullMessage));
|
|
104
105
|
}
|
|
105
106
|
else if (firstWord.endsWith('ing')) {
|
|
106
107
|
clack.log.step(fullMessage);
|
package/dist/utils/logger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA4B;AAC5B,qCAAiC;AACjC,yCAAiC;AACjC,qCAAoC;AACpC,sDAAwC;AACxC,4BAA4B;AAE5B,MAAa,MAAM;IAET,MAAM,CAAC,QAAQ,CAAS;IACxB,MAAM,CAAgB;IACtB,OAAO,CAAS;IAExB;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QACnC,IAAI,CAAC,MAAM,GAAG,gBAAM,CAAC,SAAS,EAAE,CAAC;IACnC,CAAC;IAEM,gBAAgB;QACnB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IAClD,CAAC;IAEM,MAAM,CAAC,WAAW;QACvB,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YACrB,MAAM,CAAC,QAAQ,GAAG,IAAI,MAAM,EAAE,CAAC;QACjC,CAAC;QACD,OAAO,MAAM,CAAC,QAAQ,CAAC;IACzB,CAAC;IAEO,YAAY;QAClB,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QACjE,MAAM,WAAW,GAAG,OAAO,SAAS,MAAM,CAAC;QAC3C,MAAM,MAAM,GAAG,IAAA,gBAAI,EAAC,IAAA,gBAAM,GAAE,EAAE,qBAAqB,CAAC,CAAC;QACrD,MAAM,OAAO,GAAG,IAAA,gBAAI,EAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAE1C,8BAA8B;QAC9B,IAAA,mBAAS,EAAC,MAAM,EAAE,EAAE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B,MAAM,CAAC,QAAQ,GAAG,SAAgB,CAAC;QACrC,CAAC;IACH,CAAC;CACF;AA7JD,wBA6JC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interopio/iocd-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "CLI tool for setting up, building and packaging io.Connect Desktop platforms",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"@clack/prompts": "^0.7.0",
|
|
41
41
|
"@electron/notarize": "^3.1.0",
|
|
42
42
|
"@electron/osx-sign": "^2.2.0",
|
|
43
|
+
"@sentry/node": "^10.17.0",
|
|
43
44
|
"commander": "^14.0.0",
|
|
44
45
|
"concurrently": "^9.2.1",
|
|
45
46
|
"dotenv": "^17.2.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"installer.command.d.ts","sourceRoot":"","sources":["../../src/commands/installer.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,eAAO,MAAM,gBAAgB,SAUvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"installer.command.js","sourceRoot":"","sources":["../../src/commands/installer.command.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,+EAAwE;AACxE,0DAAsD;AAEzC,QAAA,gBAAgB,GAAG,IAAI,mBAAO,CAAC,WAAW,CAAC;KACnD,WAAW,CAAC,iFAAiF,CAAC;KAC9F,MAAM,CAAC,iBAAiB,EAAE,+BAA+B,EAAE,eAAe,CAAC;KAC3E,MAAM,CAAC,cAAc,EAAE,8GAA8G,EAAE,KAAK,CAAC;KAC7I,MAAM,CAAC,KAAK,EAAE,OAAiD,EAAE,EAAE;IAChE,IAAI,CAAC;QACD,MAAM,IAAA,iCAAa,EAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,4BAAY,CAAC,MAAM,CAAC,KAAc,CAAC,CAAC;IACxC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"dev": {
|
|
3
|
-
"script": "start",
|
|
4
|
-
"modifications": [
|
|
5
|
-
{
|
|
6
|
-
"source": "/config/web-group-dev.json",
|
|
7
|
-
"destination": "/modifications-dev/iocd/config/apps/webGroup.json"
|
|
8
|
-
}
|
|
9
|
-
]
|
|
10
|
-
},
|
|
11
|
-
"installer": {
|
|
12
|
-
"script": "build",
|
|
13
|
-
"modifications": [
|
|
14
|
-
{
|
|
15
|
-
"source": "/dist",
|
|
16
|
-
"destination": "/modifications-installer/iocd/assets/webGroups/app-react"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Web Group App for io.Connect Desktop
|
|
2
|
-
|
|
3
|
-
Template for creating a [custom Web Group App](https://docs.interop.io/desktop/capabilities/windows/window-management/overview/index.html#extending_web_groups) for **io.Connect Desktop**.
|
|
4
|
-
|
|
5
|
-
## Prerequisites
|
|
6
|
-
|
|
7
|
-
For an **io.Connect Desktop** project, **io.Connect Desktop** 9.0 or newer is required.
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
- Run `npm install` to install all dependencies.
|
|
12
|
-
- Run `npm run start` to start the app.
|
|
13
|
-
- Open the `webGroup.json` definition file located in the `%LocalAppData%\interop.io\io.Connect Desktop\Desktop\config\apps` folder, set the `"disabled"` property to `false`, and set the `"url"` property of the `"details"` top-level key to the location of your Web Group App (the default is `http://localhost:5173`).
|
|
14
|
-
- Set the `"groupType"` property of the `stickywindows.json` file located in `%LocalAppData%\interop.io\io.Connect Desktop\Desktop\config` to `"Web"`.
|
|
15
|
-
- Start **io.Connect Desktop** to start using and modifying your Web Group App.
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en" style="height: 100%;">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<link rel="shortcut icon" href="/favicon.ico" />
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
|
8
|
-
<meta name="theme-color" content="#000000" />
|
|
9
|
-
<link rel="manifest" href="/manifest.json" />
|
|
10
|
-
<title>{{name}}</title>
|
|
11
|
-
</head>
|
|
12
|
-
|
|
13
|
-
<body style="overflow: hidden; margin: 0px; height: 100%; width: 100%;">
|
|
14
|
-
<div id="root" style="display: flex; flex-direction: row; overflow: hidden; height: 100%; width: 100%;"></div>
|
|
15
|
-
<script type="module" src="/src/index.tsx"></script>
|
|
16
|
-
</body>
|
|
17
|
-
|
|
18
|
-
</html>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "groups-react",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "0.0.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "vite --port 5175",
|
|
8
|
-
"build": "tsc -b && vite build"
|
|
9
|
-
},
|
|
10
|
-
"dependencies": {
|
|
11
|
-
"@interopio/desktop": "^6.8.4",
|
|
12
|
-
"@interopio/groups-ui-react": "^2.4.0",
|
|
13
|
-
"@interopio/react-hooks": "^3.4.7",
|
|
14
|
-
"react": "18.0.0",
|
|
15
|
-
"react-dom": "18.0.0",
|
|
16
|
-
"react-scripts": "5.0.1",
|
|
17
|
-
"typescript": "^4.6.4",
|
|
18
|
-
"web-vitals": "^2.1.4"
|
|
19
|
-
},
|
|
20
|
-
"devDependencies": {
|
|
21
|
-
"@types/node": "^22.8.6",
|
|
22
|
-
"@types/react": "^18.3.12",
|
|
23
|
-
"@types/react-dom": "^18.3.1",
|
|
24
|
-
"@vitejs/plugin-react": "^4.3.3",
|
|
25
|
-
"globals": "^15.11.0",
|
|
26
|
-
"vite": "^5.4.10"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"short_name": "io.Connect Web Group App",
|
|
3
|
-
"name": "io.Connect Web Group App",
|
|
4
|
-
"icons": [
|
|
5
|
-
{
|
|
6
|
-
"src": "favicon.ico",
|
|
7
|
-
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
-
"type": "image/x-icon"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "logo192.png",
|
|
12
|
-
"type": "image/png",
|
|
13
|
-
"sizes": "192x192"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"src": "logo512.png",
|
|
17
|
-
"type": "image/png",
|
|
18
|
-
"sizes": "512x512"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"start_url": ".",
|
|
22
|
-
"display": "standalone",
|
|
23
|
-
"theme_color": "#000000",
|
|
24
|
-
"background_color": "#ffffff"
|
|
25
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
.App {
|
|
2
|
-
text-align: center;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.App-logo {
|
|
6
|
-
height: 40vmin;
|
|
7
|
-
pointer-events: none;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
11
|
-
.App-logo {
|
|
12
|
-
animation: App-logo-spin infinite 20s linear;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.App-header {
|
|
17
|
-
background-color: #282c34;
|
|
18
|
-
min-height: 100vh;
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
font-size: calc(10px + 2vmin);
|
|
24
|
-
color: white;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.App-link {
|
|
28
|
-
color: #61dafb;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@keyframes App-logo-spin {
|
|
32
|
-
from {
|
|
33
|
-
transform: rotate(0deg);
|
|
34
|
-
}
|
|
35
|
-
to {
|
|
36
|
-
transform: rotate(360deg);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { useContext } from 'react'
|
|
2
|
-
import Group from "@interopio/groups-ui-react";
|
|
3
|
-
import "@interopio/groups-ui-react/dist/styles/groups.css";
|
|
4
|
-
import { IOConnectContext } from '@interopio/react-hooks';
|
|
5
|
-
|
|
6
|
-
const App = () => {
|
|
7
|
-
(window as any).io = useContext(IOConnectContext);
|
|
8
|
-
return <Group />
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export default App;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
margin: 0;
|
|
3
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
4
|
-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
5
|
-
sans-serif;
|
|
6
|
-
-webkit-font-smoothing: antialiased;
|
|
7
|
-
-moz-osx-font-smoothing: grayscale;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
code {
|
|
11
|
-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
|
12
|
-
monospace;
|
|
13
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ReactDOM from 'react-dom/client';
|
|
3
|
-
import App from './App';
|
|
4
|
-
import reportWebVitals from './reportWebVitals';
|
|
5
|
-
import { IOConnectProvider } from "@interopio/react-hooks";
|
|
6
|
-
import IODesktop from '@interopio/desktop';
|
|
7
|
-
|
|
8
|
-
ReactDOM.createRoot(document.getElementById('root')!).render(
|
|
9
|
-
<React.StrictMode>
|
|
10
|
-
<IOConnectProvider settings={{
|
|
11
|
-
desktop: {
|
|
12
|
-
factory: (config: any) => {
|
|
13
|
-
return IODesktop();
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}}>
|
|
17
|
-
<App />
|
|
18
|
-
</IOConnectProvider>
|
|
19
|
-
</React.StrictMode >
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
// If you want to start measuring performance in your app, pass a function
|
|
23
|
-
// to log results (for example: reportWebVitals(console.log))
|
|
24
|
-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
25
|
-
reportWebVitals();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReportHandler } from 'web-vitals';
|
|
2
|
-
|
|
3
|
-
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
|
|
4
|
-
if (onPerfEntry && onPerfEntry instanceof Function) {
|
|
5
|
-
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
|
6
|
-
getCLS(onPerfEntry);
|
|
7
|
-
getFID(onPerfEntry);
|
|
8
|
-
getFCP(onPerfEntry);
|
|
9
|
-
getLCP(onPerfEntry);
|
|
10
|
-
getTTFB(onPerfEntry);
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default reportWebVitals;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es5",
|
|
4
|
-
"lib": [
|
|
5
|
-
"dom",
|
|
6
|
-
"dom.iterable",
|
|
7
|
-
"esnext"
|
|
8
|
-
],
|
|
9
|
-
"allowJs": true,
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"allowSyntheticDefaultImports": true,
|
|
13
|
-
"strict": true,
|
|
14
|
-
"forceConsistentCasingInFileNames": true,
|
|
15
|
-
"noFallthroughCasesInSwitch": true,
|
|
16
|
-
"module": "esnext",
|
|
17
|
-
"moduleResolution": "node",
|
|
18
|
-
"resolveJsonModule": true,
|
|
19
|
-
"isolatedModules": true,
|
|
20
|
-
"noEmit": true,
|
|
21
|
-
"jsx": "react-jsx"
|
|
22
|
-
},
|
|
23
|
-
"include": [
|
|
24
|
-
"src"
|
|
25
|
-
]
|
|
26
|
-
}
|