@owdproject/core 3.0.0-alpha.1 → 3.0.0-alpha.2
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/index.ts
CHANGED
|
@@ -7,4 +7,8 @@ export * from './runtime/utils/utilsCommon'
|
|
|
7
7
|
export * from './runtime/utils/utilsDebug'
|
|
8
8
|
export * from './runtime/utils/utilsDesktop'
|
|
9
9
|
export * from './runtime/utils/utilsTerminal'
|
|
10
|
-
export * from './runtime/utils/utilsWindow'
|
|
10
|
+
export * from './runtime/utils/utilsWindow'
|
|
11
|
+
export * from './runtime/stores/storeDesktop'
|
|
12
|
+
export * from './runtime/stores/storeDesktopVolume'
|
|
13
|
+
export * from './runtime/stores/storeDesktopWindow'
|
|
14
|
+
export * from './runtime/stores/storeDesktopWorkspace'
|
package/package.json
CHANGED
|
@@ -98,8 +98,6 @@ export class ApplicationManager implements IApplicationManager {
|
|
|
98
98
|
|
|
99
99
|
const entry: ApplicationEntry = applicationController.config.entries[entryKey]!
|
|
100
100
|
|
|
101
|
-
console.log('dio cane', entry)
|
|
102
|
-
|
|
103
101
|
await this.execAppCommand(applicationController.id, entry.command)
|
|
104
102
|
}
|
|
105
103
|
|
|
@@ -116,17 +114,16 @@ export class ApplicationManager implements IApplicationManager {
|
|
|
116
114
|
|
|
117
115
|
const applicationController: IApplicationController = this.apps.get(id)!
|
|
118
116
|
|
|
119
|
-
|
|
117
|
+
const commandSplit: string[] = command.split(" ")
|
|
118
|
+
const baseCommand = commandSplit[0] as keyof typeof applicationController.config.commands
|
|
119
|
+
|
|
120
|
+
if (applicationController.config.commands && !applicationController.config.commands.hasOwnProperty(baseCommand)) {
|
|
120
121
|
throw Error(`App command "${command}" is not defined in ${id} application`);
|
|
121
122
|
}
|
|
122
123
|
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
const commandFn: any = applicationController.config.commands![
|
|
126
|
-
commandSplit[0] as keyof typeof applicationController.config.commands
|
|
127
|
-
]
|
|
124
|
+
const commandFn: any = applicationController.config.commands![baseCommand]
|
|
128
125
|
|
|
129
|
-
commandFn(applicationController, commandSplit.
|
|
126
|
+
commandFn(applicationController, commandSplit.slice(1))
|
|
130
127
|
|
|
131
128
|
applicationController.setRunning(true)
|
|
132
129
|
|