@cloud-os/sandbox-app-standard-bridge 20251210.0.11 → 20251211.0.1
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/Bridge/System/Payload/SystemBridgePayload.d.ts +2 -1
- package/dist/Bridge/System/index.d.ts +2 -1
- package/dist/Bridge/System/index.js +5 -2
- package/dist/Components/SandBoxApplication/index.d.ts +4 -0
- package/dist/Components/SandBoxApplication/index.js +11 -0
- package/dist/Components/index.d.ts +1 -0
- package/dist/Components/index.js +1 -0
- package/dist/Event/System/SystemEvent.d.ts +2 -1
- package/dist/Interface/System/RunningApplicaationInfo.d.ts +0 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +11 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApplicationInfo, InstallApplicationInfo, ProcessInfo, RunningApplciationInfo } from "../../../index";
|
|
2
2
|
export interface SystemBridgePayload {
|
|
3
|
-
|
|
3
|
+
handleStartApplications: (...infos: ProcessInfo[]) => string[];
|
|
4
|
+
handleStopApplications: (...pids: string[]) => boolean[];
|
|
4
5
|
handleGetAllApplications: () => Promise<ApplicationInfo[]>;
|
|
5
6
|
handleInstallApplication: (info: InstallApplicationInfo) => Promise<boolean>;
|
|
6
7
|
handleUninstallApplication: (info: ApplicationInfo) => Promise<boolean>;
|
|
@@ -4,7 +4,8 @@ import { SystemBridgePayload } from "./Payload/SystemBridgePayload";
|
|
|
4
4
|
export default class SystemBridge implements SystemEvent {
|
|
5
5
|
private readonly payload;
|
|
6
6
|
constructor(payload: SystemBridgePayload);
|
|
7
|
-
|
|
7
|
+
startApplications(...infos: ProcessInfo[]): string[];
|
|
8
|
+
stopApplications(...pids: string[]): boolean[];
|
|
8
9
|
getAllApplicationsAsync(): Promise<ApplicationInfo[]>;
|
|
9
10
|
installApplicationAsync(info: InstallApplicationInfo): Promise<boolean>;
|
|
10
11
|
uninstallApplicationAsync(info: ApplicationInfo): Promise<boolean>;
|
|
@@ -3,8 +3,11 @@ export default class SystemBridge {
|
|
|
3
3
|
constructor(payload) {
|
|
4
4
|
this.payload = payload;
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
return this.payload.
|
|
6
|
+
startApplications(...infos) {
|
|
7
|
+
return this.payload.handleStartApplications(...infos);
|
|
8
|
+
}
|
|
9
|
+
stopApplications(...pids) {
|
|
10
|
+
return this.payload.handleStopApplications(...pids);
|
|
8
11
|
}
|
|
9
12
|
getAllApplicationsAsync() {
|
|
10
13
|
return this.payload.handleGetAllApplications();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { StyleProvider } from "@ant-design/cssinjs";
|
|
3
|
+
import { v4 as uuidv4 } from "uuid";
|
|
4
|
+
import { ConfigProvider } from "antd";
|
|
5
|
+
export default ({ children }) => {
|
|
6
|
+
return (_jsx(StyleProvider, { children: _jsx(ConfigProvider, { theme: {
|
|
7
|
+
cssVar: {
|
|
8
|
+
prefix: uuidv4(),
|
|
9
|
+
},
|
|
10
|
+
}, children: children }) }));
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SandBoxApplication } from "./SandBoxApplication/index";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SandBoxApplication } from "./SandBoxApplication/index";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApplicationInfo, InstallApplicationInfo, RunningApplciationInfo, ProcessInfo } from "../../index";
|
|
2
2
|
export interface SystemEvent {
|
|
3
|
-
|
|
3
|
+
startApplications(...infos: ProcessInfo[]): string[];
|
|
4
|
+
stopApplications(...pids: string[]): boolean[];
|
|
4
5
|
getAllApplicationsAsync(): Promise<ApplicationInfo[]>;
|
|
5
6
|
installApplicationAsync(info: InstallApplicationInfo): Promise<boolean>;
|
|
6
7
|
uninstallApplicationAsync(info: ApplicationInfo): Promise<boolean>;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-os/sandbox-app-standard-bridge",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20251211.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "jack8228@enerqi.tw <jack8228@enerqi.tw>",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,7 +16,16 @@
|
|
|
16
16
|
],
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"type": "module",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@ant-design/cssinjs": "^2.0.1",
|
|
21
|
+
"antd": "^6.1.0",
|
|
22
|
+
"react": "^18.3.1",
|
|
23
|
+
"react-dom": "^18.3.1",
|
|
24
|
+
"uuid": "^13.0.0"
|
|
25
|
+
},
|
|
19
26
|
"devDependencies": {
|
|
20
|
-
"typescript": "^5.9.3"
|
|
27
|
+
"typescript": "^5.9.3",
|
|
28
|
+
"@types/react": "^18.3.27",
|
|
29
|
+
"@types/react-dom": "~18.3.7"
|
|
21
30
|
}
|
|
22
31
|
}
|