-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
c3: add custom timeout option for export c3: improve error handling c3: handle deprecated features c3: disable offline support electron: fix binaries not running when asar packaging disabled electron: add native fullscreen toggle electron: add ProjectFiles direct path ("ProjectFilesFolder" expression)
- Loading branch information
Showing
12 changed files
with
2,806 additions
and
2,475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
assets/electron/template/app/src/handlers/window/set-fullscreen.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* @param {import('@pipelab/core').MakeInputOutput<import('@pipelab/core').MessageSetFullscreen, 'input'>} json | ||
* @param {import('ws').WebSocket} ws | ||
* @param {import('electron').BrowserWindow} mainWindow | ||
*/ | ||
export default async (json, ws, mainWindow) => { | ||
if (json.body.value === 'fullscreen') { | ||
mainWindow.setFullScreen(true) | ||
} else if (json.body.value === 'normal') { | ||
mainWindow.setFullScreen(false) | ||
} else { | ||
throw new Error('Unsupported value ') | ||
} | ||
|
||
/** | ||
* @type {import('@pipelab/core').MakeInputOutput<import('@pipelab/core').MessageSetFullscreen, 'output'>} | ||
*/ | ||
const showsetFullscreenResult = { | ||
correlationId: json.correlationId, | ||
url: json.url, | ||
body: { | ||
success: true | ||
} | ||
} | ||
console.log('result', showsetFullscreenResult) | ||
ws.send(JSON.stringify(showsetFullscreenResult)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.