@lvce-editor/shared-process 0.128.4 → 0.128.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/package.json +1 -1
- package/src/parts/BuiltinExtensionsPath/BuiltinExtensionsPath.js +1 -1
- package/src/parts/ElectronWindow/ElectronWindow.ipc.js +1 -0
- package/src/parts/ElectronWindow/ElectronWindow.js +4 -0
- package/src/parts/ExportStatic/ExportStatic.js +5 -3
- package/src/parts/GetElectronFileResponseAbsolutePath/GetElectronFileResponseAbsolutePath.js +1 -1
- package/src/parts/GetElectronFileResponseContent/GetElectronFileResponseContent.js +1 -1
- package/src/parts/ModuleMap/ModuleMap.js +1 -0
- package/src/parts/Platform/Platform.js +3 -3
- package/src/parts/PreloadUrl/PreloadUrl.js +1 -1
package/package.json
CHANGED
|
@@ -3,6 +3,6 @@ import { fileURLToPath } from 'url'
|
|
|
3
3
|
|
|
4
4
|
export const getBuiltinExtensionsPath = () => {
|
|
5
5
|
const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'))
|
|
6
|
-
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '
|
|
6
|
+
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', 'd354297', 'extensions')
|
|
7
7
|
return builtinExtensionsPath
|
|
8
8
|
}
|
|
@@ -14,6 +14,7 @@ export const Commands = {
|
|
|
14
14
|
openNewWithUri: ElectronWindow.openNewWithUri,
|
|
15
15
|
reload: ElectronWindow.reload,
|
|
16
16
|
setBrowserFullWidthGestureEnabled: ElectronWindow.setBrowserFullWidthGestureEnabled,
|
|
17
|
+
show: ElectronWindow.show,
|
|
17
18
|
takeEditorTransfer: ElectronWindow.takeEditorTransfer,
|
|
18
19
|
toggleDevtools: ElectronWindow.toggleDevtools,
|
|
19
20
|
toggleFullScreen: ElectronWindow.toggleFullScreen,
|
|
@@ -116,6 +116,10 @@ export const focus = (windowId) => {
|
|
|
116
116
|
return ParentIpc.invoke('ElectronWindow.executeWebContentsFunction', windowId, 'focus')
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
export const show = (windowId) => {
|
|
120
|
+
return ParentIpc.invoke('ElectronWindow.executeWindowFunction', windowId, 'show')
|
|
121
|
+
}
|
|
122
|
+
|
|
119
123
|
export const handleClose = (windowId) => {
|
|
120
124
|
// TODO
|
|
121
125
|
}
|
|
@@ -860,9 +860,11 @@ export const exportStatic = async ({
|
|
|
860
860
|
})
|
|
861
861
|
console.timeEnd('addTestFiles')
|
|
862
862
|
}
|
|
863
|
-
const
|
|
864
|
-
|
|
865
|
-
|
|
863
|
+
for (const route of ['chat', 'board', 'boards']) {
|
|
864
|
+
const routePath = Path.join(root, 'dist', route)
|
|
865
|
+
await FileSystem.mkdir(routePath)
|
|
866
|
+
await FileSystem.copyFile(Path.join(root, 'dist', 'index.html'), Path.join(routePath, 'index.html'))
|
|
867
|
+
}
|
|
866
868
|
return {
|
|
867
869
|
commitHash,
|
|
868
870
|
}
|
package/src/parts/GetElectronFileResponseAbsolutePath/GetElectronFileResponseAbsolutePath.js
CHANGED
|
@@ -37,7 +37,7 @@ const getIconAbsolutePath = (pathName) => {
|
|
|
37
37
|
|
|
38
38
|
const driveLetterWithoutSlashPath = /^\/?[A-Za-z]:[^/]/
|
|
39
39
|
const driveLetterPath = /^\/?[A-Za-z]:\//
|
|
40
|
-
const appRoutePattern = /(?:^|\/)(?:board|chat)\/?$/
|
|
40
|
+
const appRoutePattern = /(?:^|\/)(?:boards|board|chat)\/?$/
|
|
41
41
|
|
|
42
42
|
const getRemoteAbsolutePath = (pathName) => {
|
|
43
43
|
const uri = pathName.slice('/remote'.length)
|
|
@@ -6,7 +6,7 @@ import * as ShouldTranspileTypescript from '../ShouldTranspileTypescript/ShouldT
|
|
|
6
6
|
import * as TranspileTypeScript from '../TranspileTypeScript/TranspileTypeScript.js'
|
|
7
7
|
|
|
8
8
|
const useCache = false // TODO enable this
|
|
9
|
-
const appRoutePattern = /(?:^|\/)(?:board|chat)\/?$/
|
|
9
|
+
const appRoutePattern = /(?:^|\/)(?:boards|board|chat)\/?$/
|
|
10
10
|
|
|
11
11
|
const getWorkspaceUri = (url) => {
|
|
12
12
|
const baseUrl = `${Platform.scheme}://-/`
|
|
@@ -93,6 +93,7 @@ export const getModuleId = (commandId) => {
|
|
|
93
93
|
case 'ElectronWindow.openNewWithUri':
|
|
94
94
|
case 'ElectronWindow.reload':
|
|
95
95
|
case 'ElectronWindow.setBrowserFullWidthGestureEnabled':
|
|
96
|
+
case 'ElectronWindow.show':
|
|
96
97
|
case 'ElectronWindow.takeEditorTransfer':
|
|
97
98
|
case 'ElectronWindow.toggleDevtools':
|
|
98
99
|
case 'ElectronWindow.toggleFullScreen':
|
|
@@ -56,11 +56,11 @@ export const getSetupName = () => {
|
|
|
56
56
|
return 'Lvce-Setup'
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
export const version = '0.128.
|
|
59
|
+
export const version = '0.128.5'
|
|
60
60
|
|
|
61
|
-
export const commit = '
|
|
61
|
+
export const commit = 'd354297'
|
|
62
62
|
|
|
63
|
-
export const date = '2026-11-
|
|
63
|
+
export const date = '2026-11-20T16:09:12.000Z'
|
|
64
64
|
|
|
65
65
|
export const getVersion = () => {
|
|
66
66
|
return version
|
|
@@ -2,5 +2,5 @@ import { join } from 'node:path'
|
|
|
2
2
|
import * as Root from '../Root/Root.js'
|
|
3
3
|
|
|
4
4
|
export const getPreloadUrl = () => {
|
|
5
|
-
return join(Root.root, 'static', '
|
|
5
|
+
return join(Root.root, 'static', 'd354297', 'packages', 'preload', 'dist', 'index.js')
|
|
6
6
|
}
|