@interopio/iocd-cli 0.0.3 → 0.0.5
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/dist/commands/apps.command.js +8 -9
- package/dist/commands/apps.command.js.map +1 -1
- package/dist/commands/components.command.js +20 -6
- package/dist/commands/components.command.js.map +1 -1
- package/dist/commands/installer.command.js +1 -1
- package/dist/commands/installer.command.js.map +1 -1
- package/dist/commands/setup.command.d.ts.map +1 -1
- package/dist/commands/setup.command.js +14 -6
- package/dist/commands/setup.command.js.map +1 -1
- package/dist/services/app.service.d.ts +4 -3
- package/dist/services/app.service.d.ts.map +1 -1
- package/dist/services/app.service.js +17 -16
- package/dist/services/app.service.js.map +1 -1
- package/dist/services/components/component.config.js +1 -1
- package/dist/services/components/components.service.d.ts +9 -1
- package/dist/services/components/components.service.d.ts.map +1 -1
- package/dist/services/components/components.service.js +93 -47
- package/dist/services/components/components.service.js.map +1 -1
- package/dist/services/components/stores/github.store.d.ts +1 -0
- package/dist/services/components/stores/github.store.d.ts.map +1 -1
- package/dist/services/components/stores/github.store.js +4 -3
- package/dist/services/components/stores/github.store.js.map +1 -1
- package/dist/services/components/stores/local.store.d.ts +1 -0
- package/dist/services/components/stores/local.store.d.ts.map +1 -1
- package/dist/services/components/stores/local.store.js +3 -2
- package/dist/services/components/stores/local.store.js.map +1 -1
- package/dist/services/components/stores/s3.store.d.ts +1 -0
- package/dist/services/components/stores/s3.store.d.ts.map +1 -1
- package/dist/services/components/stores/s3.store.js +3 -2
- package/dist/services/components/stores/s3.store.js.map +1 -1
- package/dist/services/components/stores/store.d.ts +1 -0
- package/dist/services/components/stores/store.d.ts.map +1 -1
- package/dist/services/components/version.selector.d.ts.map +1 -1
- package/dist/services/components/version.selector.js +2 -5
- package/dist/services/components/version.selector.js.map +1 -1
- package/dist/services/config/cli.config.d.ts +1 -0
- 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 +6 -2
- package/dist/services/config/config.service.js.map +1 -1
- package/dist/services/installer/electronForge.d.ts +3 -1
- package/dist/services/installer/electronForge.d.ts.map +1 -1
- package/dist/services/installer/electronForge.js +13 -8
- package/dist/services/installer/electronForge.js.map +1 -1
- package/dist/services/installer/installer.service.d.ts +1 -1
- package/dist/services/installer/installer.service.d.ts.map +1 -1
- package/dist/services/installer/installer.service.js +34 -12
- package/dist/services/installer/installer.service.js.map +1 -1
- package/dist/services/installer/prerequisites.js +4 -0
- package/dist/services/installer/prerequisites.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 +68 -58
- package/dist/services/modifications/modifications.service.js.map +1 -1
- package/dist/services/template.service.js +1 -1
- package/dist/templates/groups/apps/web-groups/README.md +15 -0
- package/dist/templates/groups/apps/web-groups/config/web-group-dev.json +13 -0
- package/dist/templates/groups/apps/web-groups/index.html +18 -0
- package/dist/templates/groups/apps/web-groups/iocd.app.json +20 -0
- package/dist/templates/groups/apps/web-groups/package.json +27 -0
- package/dist/templates/groups/apps/web-groups/public/favicon.ico +0 -0
- package/dist/templates/groups/apps/web-groups/public/logo192.png +0 -0
- package/dist/templates/groups/apps/web-groups/public/logo512.png +0 -0
- package/dist/templates/groups/apps/web-groups/public/manifest.json +25 -0
- package/dist/templates/groups/apps/web-groups/public/robots.txt +3 -0
- package/dist/templates/groups/apps/web-groups/src/App.css +38 -0
- package/dist/templates/groups/apps/web-groups/src/App.tsx +11 -0
- package/dist/templates/groups/apps/web-groups/src/index.css +13 -0
- package/dist/templates/groups/apps/web-groups/src/index.tsx +25 -0
- package/dist/templates/groups/apps/web-groups/src/logo.svg +1 -0
- package/dist/templates/groups/apps/web-groups/src/reportWebVitals.ts +15 -0
- package/dist/templates/groups/apps/web-groups/tsconfig.json +26 -0
- package/dist/templates/groups/apps/web-groups/vite.config.ts +8 -0
- package/dist/templates/groups/template.json +12 -0
- package/dist/templates/ioconnect-desktop/forge.config.js +13 -10
- package/dist/templates/ioconnect-desktop/iocd.cli.config.json +2 -1
- package/dist/templates/ioconnect-desktop/modifications/iocd/config/system.json.merge +2 -1
- package/dist/templates/ioconnect-desktop/modifications/iocd/config/system.json.merge-autoUpdate +10 -0
- package/dist/templates/ioconnect-desktop/package.json +1 -6
- package/dist/templates/launchpad/apps/launchpad/config/iocd.system.installer.json +3 -0
- package/dist/templates/launchpad/apps/launchpad/iocd.app.json +6 -10
- package/dist/templates/launchpad/apps/launchpad/package.json +4 -4
- package/dist/templates/launchpad/apps/launchpad/src/app/app.tsx +7 -4
- package/dist/templates/splash-screen/apps/splash-screen/iocd.app.json +4 -4
- package/dist/templates/web-groups/apps/web-groups/iocd.app.json +3 -7
- package/dist/templates/workspaces/apps/workspaces/iocd.app.json +3 -7
- package/dist/templates/workspaces/apps/workspaces/package.json +4 -4
- package/dist/utils/logger.js +1 -1
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/pacakge.json.helper.d.ts +8 -4
- package/dist/utils/pacakge.json.helper.d.ts.map +1 -1
- package/dist/utils/pacakge.json.helper.js +6 -13
- package/dist/utils/pacakge.json.helper.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
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": "^3.0.0",
|
|
13
|
+
"@interopio/react-hooks": "^3.5.12",
|
|
14
|
+
"react": "18.0.0",
|
|
15
|
+
"react-dom": "18.0.0",
|
|
16
|
+
"typescript": "^4.6.4",
|
|
17
|
+
"web-vitals": "^5.1.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/node": "^22.8.6",
|
|
21
|
+
"@types/react": "^18.3.12",
|
|
22
|
+
"@types/react-dom": "^18.3.1",
|
|
23
|
+
"@vitejs/plugin-react": "^4.3.3",
|
|
24
|
+
"globals": "^15.11.0",
|
|
25
|
+
"vite": "^5.4.10"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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();
|
|
@@ -0,0 +1 @@
|
|
|
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>
|
|
@@ -0,0 +1,15 @@
|
|
|
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;
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "groups",
|
|
3
|
+
"displayName": "Groups App",
|
|
4
|
+
"description": "Adds custom groups application support to io.Connect Desktop",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"type": "application",
|
|
7
|
+
"setupUI": {
|
|
8
|
+
"text": "Add a custom groups app to io.CD",
|
|
9
|
+
"separate": false,
|
|
10
|
+
"selected": false
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -15,6 +15,19 @@ module.exports = {
|
|
|
15
15
|
{ name: '@electron-forge/maker-dmg' },
|
|
16
16
|
],
|
|
17
17
|
publishers: [
|
|
18
|
+
// {
|
|
19
|
+
// // Publishes to GitHub Releases, creating a new release for each version of your app.
|
|
20
|
+
// // see https://www.electronforge.io/config/publishers/github
|
|
21
|
+
// name: '@electron-forge/publisher-github',
|
|
22
|
+
// config: {
|
|
23
|
+
// repository: {
|
|
24
|
+
// owner: '',
|
|
25
|
+
// name: ''
|
|
26
|
+
// },
|
|
27
|
+
// draft: false,
|
|
28
|
+
// force: true,
|
|
29
|
+
// }
|
|
30
|
+
// },
|
|
18
31
|
// {
|
|
19
32
|
// name: '@electron-forge/publisher-electron-release-server',
|
|
20
33
|
// config: {
|
|
@@ -23,16 +36,6 @@ module.exports = {
|
|
|
23
36
|
// password: 'password'
|
|
24
37
|
// }
|
|
25
38
|
// },
|
|
26
|
-
// {
|
|
27
|
-
// name: '@electron-forge/publisher-github',
|
|
28
|
-
// config: {
|
|
29
|
-
// repository: {
|
|
30
|
-
// owner: 'me',
|
|
31
|
-
// name: 'awesome-thing'
|
|
32
|
-
// },
|
|
33
|
-
// prerelease: true
|
|
34
|
-
// }
|
|
35
|
-
// }
|
|
36
39
|
],
|
|
37
40
|
// DO NOT REMOVE - keep these hooks
|
|
38
41
|
hooks: {
|
|
@@ -6,12 +6,7 @@
|
|
|
6
6
|
"start": "iocd start",
|
|
7
7
|
"test": "iocd test",
|
|
8
8
|
"setup": "iocd setup",
|
|
9
|
-
"
|
|
10
|
-
"apply-modifications": "iocd modifications apply",
|
|
11
|
-
"install-apps": "iocd apps install",
|
|
12
|
-
"build-apps": "iocd apps build",
|
|
13
|
-
"start-apps": "iocd apps start",
|
|
14
|
-
"make-installer": "iocd installer"
|
|
9
|
+
"installer": "iocd installer"
|
|
15
10
|
},
|
|
16
11
|
"keywords": [
|
|
17
12
|
"io.connect",
|
|
@@ -4,28 +4,24 @@
|
|
|
4
4
|
"modifications": [
|
|
5
5
|
{
|
|
6
6
|
"source": "/config/iocd.system.dev.json",
|
|
7
|
-
"destination": "/modifications/iocd/config/system.json.merge-launchpad"
|
|
7
|
+
"destination": "/modifications-dev/iocd/config/system.json.merge-launchpad"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"source": "/config/iocd.app.def.dev.json",
|
|
11
|
-
"destination": "/modifications/iocd/config/apps/launchpad-3.0.json"
|
|
11
|
+
"destination": "/modifications-dev/iocd/config/apps/launchpad-3.0.json"
|
|
12
12
|
}
|
|
13
13
|
]
|
|
14
14
|
},
|
|
15
|
-
"
|
|
15
|
+
"installer": {
|
|
16
16
|
"script": "build",
|
|
17
17
|
"modifications": [
|
|
18
18
|
{
|
|
19
|
-
"source": "/config/iocd.system.
|
|
20
|
-
"destination": "/modifications/iocd/config/system.json.merge-launchpad"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"source": "/config/iocd.app.def.prod.json",
|
|
24
|
-
"destination": "/modifications/iocd/config/apps/launchpad-3.0.json"
|
|
19
|
+
"source": "/config/iocd.system.installer.json",
|
|
20
|
+
"destination": "/modifications-installer/iocd/config/system.json.merge-launchpad"
|
|
25
21
|
},
|
|
26
22
|
{
|
|
27
23
|
"source": "/dist",
|
|
28
|
-
"destination": "/modifications/iocd/assets/app-launchpad"
|
|
24
|
+
"destination": "/modifications-installer/iocd/assets/app-launchpad"
|
|
29
25
|
}
|
|
30
26
|
]
|
|
31
27
|
}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"build": "vite build"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@interopio/components-react": "^0.
|
|
12
|
-
"@interopio/home-ui-react": "^2.
|
|
13
|
-
"@interopio/react-hooks": "^4.
|
|
14
|
-
"@interopio/workspaces-ui-react": "^4.
|
|
11
|
+
"@interopio/components-react": "^0.8.0",
|
|
12
|
+
"@interopio/home-ui-react": "^2.1.1",
|
|
13
|
+
"@interopio/react-hooks": "^4.1.1",
|
|
14
|
+
"@interopio/workspaces-ui-react": "^4.1.1"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@vitejs/plugin-react": "^5.0.2",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Launchpad, PlatformPrefsProvider } from "@interopio/home-ui-react";
|
|
2
1
|
import { IOConnectProvider } from "@interopio/react-hooks";
|
|
2
|
+
import { LaunchpadBody, LaunchpadHeader, LaunchpadContentsContainer, PlatformPrefsProvider } from "@interopio/home-ui-react";
|
|
3
3
|
import { ioConfig } from "./constants";
|
|
4
4
|
import { ThemeProvider, IONotifications } from "@interopio/components-react";
|
|
5
5
|
import Logo from "../components/logo";
|
|
@@ -16,7 +16,7 @@ export function App() {
|
|
|
16
16
|
<PlatformPrefsProvider>
|
|
17
17
|
<ThemeProvider>
|
|
18
18
|
<NotificationsProvider>
|
|
19
|
-
<
|
|
19
|
+
<LaunchpadContentsContainer
|
|
20
20
|
components={{
|
|
21
21
|
header: {
|
|
22
22
|
BeforeSearch: () => <Logo />,
|
|
@@ -28,7 +28,10 @@ export function App() {
|
|
|
28
28
|
)
|
|
29
29
|
}
|
|
30
30
|
}}
|
|
31
|
-
|
|
31
|
+
>
|
|
32
|
+
<LaunchpadHeader />
|
|
33
|
+
<LaunchpadBody />
|
|
34
|
+
</LaunchpadContentsContainer>
|
|
32
35
|
</NotificationsProvider>
|
|
33
36
|
</ThemeProvider>
|
|
34
37
|
</PlatformPrefsProvider>
|
|
@@ -36,4 +39,4 @@ export function App() {
|
|
|
36
39
|
);
|
|
37
40
|
}
|
|
38
41
|
|
|
39
|
-
export default App;
|
|
42
|
+
export default App;
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
"modifications": [
|
|
5
5
|
{
|
|
6
6
|
"source": "/config/system-dev.json",
|
|
7
|
-
"destination": "/modifications/iocd/config/system.json.merge-splash"
|
|
7
|
+
"destination": "/modifications-dev/iocd/config/system.json.merge-splash"
|
|
8
8
|
}
|
|
9
9
|
]
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"installer": {
|
|
12
12
|
"script": "build",
|
|
13
13
|
"modifications": [
|
|
14
14
|
{
|
|
15
|
-
"source": "/
|
|
16
|
-
"destination": "/modifications/iocd/
|
|
15
|
+
"source": "/dist",
|
|
16
|
+
"destination": "/modifications-installer/iocd/assets/splash"
|
|
17
17
|
}
|
|
18
18
|
]
|
|
19
19
|
}
|
|
@@ -4,20 +4,16 @@
|
|
|
4
4
|
"modifications": [
|
|
5
5
|
{
|
|
6
6
|
"source": "/config/web-group-dev.json",
|
|
7
|
-
"destination": "/modifications/iocd/config/apps/webGroup.json"
|
|
7
|
+
"destination": "/modifications-dev/iocd/config/apps/webGroup.json"
|
|
8
8
|
}
|
|
9
9
|
]
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"installer": {
|
|
12
12
|
"script": "build",
|
|
13
13
|
"modifications": [
|
|
14
14
|
{
|
|
15
15
|
"source": "/dist",
|
|
16
|
-
"destination": "/modifications/iocd/assets/webGroups/app-react"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"source": "/config/web-group-prod.json",
|
|
20
|
-
"destination": "/modifications/iocd/config/apps/webGroup.json"
|
|
16
|
+
"destination": "/modifications-installer/iocd/assets/webGroups/app-react"
|
|
21
17
|
}
|
|
22
18
|
]
|
|
23
19
|
}
|
|
@@ -4,20 +4,16 @@
|
|
|
4
4
|
"modifications": [
|
|
5
5
|
{
|
|
6
6
|
"source": "/config/workspaces-dev.json",
|
|
7
|
-
"destination": "/modifications/iocd/config/apps/workspaces.json"
|
|
7
|
+
"destination": "/modifications-dev/iocd/config/apps/workspaces.json"
|
|
8
8
|
}
|
|
9
9
|
]
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"installer": {
|
|
12
12
|
"script": "build",
|
|
13
13
|
"modifications": [
|
|
14
14
|
{
|
|
15
15
|
"source": "/dist",
|
|
16
|
-
"destination": "/modifications/iocd/assets/workspaces"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"source": "/config/workspaces-prod.json",
|
|
20
|
-
"destination": "/modifications/iocd/config/apps/workspaces.json"
|
|
16
|
+
"destination": "/modifications-installer/iocd/assets/workspaces"
|
|
21
17
|
}
|
|
22
18
|
]
|
|
23
19
|
}
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@interopio/desktop": "^6.8.4",
|
|
13
|
-
"@interopio/react-hooks": "^
|
|
14
|
-
"@interopio/workspaces-api": "^
|
|
15
|
-
"@interopio/workspaces-ui-react": "^
|
|
13
|
+
"@interopio/react-hooks": "^4.1.1",
|
|
14
|
+
"@interopio/workspaces-api": "^4.1.1",
|
|
15
|
+
"@interopio/workspaces-ui-react": "^4.1.1",
|
|
16
16
|
"react": "^16.13.1",
|
|
17
17
|
"react-dom": "^16.13.1"
|
|
18
18
|
},
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
"vite": "^5.4.10",
|
|
27
27
|
"web-vitals": "^0.2.4"
|
|
28
28
|
}
|
|
29
|
-
}
|
|
29
|
+
}
|
package/dist/utils/logger.js
CHANGED
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,EAA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AC,OAAe,EAAE,GAAG,IAAe;QAC7C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;IACrC,CAAC;IAEM,KAAK,CAAC,OAAe,EAAE,GAAG,IAAe;QAC9C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;IACtC,CAAC;IAEM,KAAK;QACV,wDAAwD;QACxD,oDAAoD;QACpD,gBAAM,CAAC,QAAQ,EAAE,CAAC;IACpB,CAAC;IAEM,UAAU;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAEM,UAAU,CAAC,OAAgB;QAChC,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC;QAC9B,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC;QAC7B,CAAC;IACH,CAAC;IAEM,QAAQ;QACb,gBAAM,CAAC,QAAQ,EAAE,CAAC;IACpB,CAAC;IAEM,MAAM,CAAC,KAAK;QACjB,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;YACpB,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;YAC3B,MAAM,CAAC,QAAQ,GAAG,SAAgB,CAAC;QACrC,CAAC;IACH,CAAC;CACF;AA7JD,wBA6JC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export declare class PackageJSONHelper {
|
|
2
2
|
private static packageJsonPath;
|
|
3
|
+
/** Returns the package.json of the CLI */
|
|
3
4
|
static getCliPackageJson(): any;
|
|
4
|
-
|
|
5
|
-
static
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
/** Returns the package.json of the project that runs the CLI. Sometimes this might be undefined if we use npx */
|
|
6
|
+
static getPackageJson(): {
|
|
7
|
+
version: string;
|
|
8
|
+
dependencies: any;
|
|
9
|
+
devDependencies: any;
|
|
10
|
+
peerDependencies: any;
|
|
11
|
+
} | undefined;
|
|
8
12
|
}
|
|
9
13
|
//# sourceMappingURL=pacakge.json.helper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pacakge.json.helper.d.ts","sourceRoot":"","sources":["../../src/utils/pacakge.json.helper.ts"],"names":[],"mappings":"AAKA,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAC,eAAe,CAAgC;IAE9D,MAAM,CAAC,iBAAiB,IAAI,GAAG;IAQ/B,MAAM,CAAC,cAAc,IAAI
|
|
1
|
+
{"version":3,"file":"pacakge.json.helper.d.ts","sourceRoot":"","sources":["../../src/utils/pacakge.json.helper.ts"],"names":[],"mappings":"AAKA,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAC,eAAe,CAAgC;IAE9D,0CAA0C;IAC1C,MAAM,CAAC,iBAAiB,IAAI,GAAG;IAQ/B,iHAAiH;IACjH,MAAM,CAAC,cAAc,IAAI;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,GAAG,CAAC;QAAC,eAAe,EAAE,GAAG,CAAC;QAAC,gBAAgB,EAAE,GAAG,CAAA;KAAE,GAAG,SAAS;CAUzH"}
|
|
@@ -40,6 +40,7 @@ const fs_1 = require("fs");
|
|
|
40
40
|
const find_package_dir_1 = require("./find.package.dir");
|
|
41
41
|
class PackageJSONHelper {
|
|
42
42
|
static packageJsonPath = path_1.default.resolve('package.json');
|
|
43
|
+
/** Returns the package.json of the CLI */
|
|
43
44
|
static getCliPackageJson() {
|
|
44
45
|
const path = (0, path_1.join)((0, find_package_dir_1.findPackageRoot)(), "package.json");
|
|
45
46
|
if ((0, fs_1.existsSync)(path)) {
|
|
@@ -47,25 +48,17 @@ class PackageJSONHelper {
|
|
|
47
48
|
}
|
|
48
49
|
return {};
|
|
49
50
|
}
|
|
51
|
+
/** Returns the package.json of the project that runs the CLI. Sometimes this might be undefined if we use npx */
|
|
50
52
|
static getPackageJson() {
|
|
53
|
+
if (!(0, fs_1.existsSync)(this.packageJsonPath)) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
51
56
|
const packageJson = file_1.FileUtils.readJson(this.packageJsonPath);
|
|
52
57
|
if (!packageJson) {
|
|
53
|
-
|
|
58
|
+
return undefined;
|
|
54
59
|
}
|
|
55
60
|
return packageJson;
|
|
56
61
|
}
|
|
57
|
-
static async updatePackageJson(updates) {
|
|
58
|
-
const packageJson = this.getPackageJson();
|
|
59
|
-
const updated = { ...packageJson, ...updates };
|
|
60
|
-
await file_1.FileUtils.writeJson(this.packageJsonPath, updated);
|
|
61
|
-
}
|
|
62
|
-
static async getComponentConfig() {
|
|
63
|
-
const packageJson = this.getPackageJson();
|
|
64
|
-
return packageJson.iocdComponents || {};
|
|
65
|
-
}
|
|
66
|
-
static async updateComponentConfig(components) {
|
|
67
|
-
await this.updatePackageJson({ iocdComponents: components });
|
|
68
|
-
}
|
|
69
62
|
}
|
|
70
63
|
exports.PackageJSONHelper = PackageJSONHelper;
|
|
71
64
|
//# sourceMappingURL=pacakge.json.helper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pacakge.json.helper.js","sourceRoot":"","sources":["../../src/utils/pacakge.json.helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAkC;AAClC,iCAAmC;AACnC,2BAAgC;AAChC,yDAAqD;AAErD,MAAa,iBAAiB;IACpB,MAAM,CAAC,eAAe,GAAG,cAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE9D,MAAM,CAAC,iBAAiB;QACtB,MAAM,IAAI,GAAG,IAAA,WAAI,EAAC,IAAA,kCAAe,GAAE,EAAE,cAAc,CAAC,CAAC;QACrD,IAAI,IAAA,eAAU,EAAC,IAAI,CAAC,EAAE,CAAC;YACrB,OAAO,gBAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC;QACD,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