@xwiki/cristal-electron-main 0.11.0 → 0.12.0
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/CHANGELOG.md +13 -0
- package/dist/index.cjs +22 -22
- package/package.json +6 -6
- package/src/index.ts +7 -7
- package/src/mainWindow.ts +2 -2
- package/src/reload.ts +1 -1
- package/src/security-restrictions.ts +1 -1
- package/vite.config.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xwiki/cristal-electron-main",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"license": "LGPL 2.1",
|
|
5
5
|
"author": "XWiki Org Community <contact@xwiki.org>",
|
|
6
6
|
"homepage": "https://cristal.xwiki.org/",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"url": "https://jira.xwiki.org/projects/CRISTAL/"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"electron": "
|
|
17
|
-
"@xwiki/cristal-browser-electron": "0.
|
|
18
|
-
"@xwiki/cristal-electron-
|
|
19
|
-
"@xwiki/cristal-electron-
|
|
16
|
+
"electron": "33.0.2",
|
|
17
|
+
"@xwiki/cristal-browser-electron": "0.12.0",
|
|
18
|
+
"@xwiki/cristal-electron-authentication-xwiki-main": "0.12.0",
|
|
19
|
+
"@xwiki/cristal-electron-storage": "0.12.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@types/node": "22.
|
|
22
|
+
"@types/node": "22.8.7",
|
|
23
23
|
"cross-env": "7.0.3"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
package/src/index.ts
CHANGED
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
import { app, BrowserWindow } from "electron";
|
|
22
|
-
import "./security-restrictions";
|
|
23
21
|
import { restoreOrCreateWindow } from "./mainWindow";
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
// @ts-expect-error shouldn't happen but we need to generate the types for the whole project once.
|
|
22
|
+
import { loadFile } from "./reload";
|
|
23
|
+
import "./security-restrictions";
|
|
24
|
+
// @ts-expect-error shouldn't happen, but we need to generate the types for the whole project once.
|
|
28
25
|
import loadBrowser from "@xwiki/cristal-browser-electron/main";
|
|
29
26
|
import { load as loadAuthentication } from "@xwiki/cristal-electron-authentication-xwiki-main";
|
|
30
|
-
|
|
27
|
+
// @ts-expect-error shouldn't happen, but we need to generate the types for the whole project once.
|
|
28
|
+
import load from "@xwiki/cristal-electron-storage/main";
|
|
29
|
+
import { BrowserWindow, app } from "electron";
|
|
30
|
+
import { platform } from "node:process";
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Prevent electron from running multiple instances.
|
package/src/mainWindow.ts
CHANGED
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
import { app, BrowserWindow, shell } from "electron";
|
|
22
|
-
import { join } from "node:path";
|
|
23
21
|
import { loadFile } from "./reload";
|
|
22
|
+
import { BrowserWindow, app, shell } from "electron";
|
|
23
|
+
import { join } from "node:path";
|
|
24
24
|
|
|
25
25
|
async function createWindow() {
|
|
26
26
|
const browserWindow = new BrowserWindow({
|
package/src/reload.ts
CHANGED
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
import type { Session } from "electron";
|
|
22
21
|
import { app, shell } from "electron";
|
|
23
22
|
import { URL } from "node:url";
|
|
23
|
+
import type { Session } from "electron";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Union for all existing permissions in electron
|
package/vite.config.js
CHANGED
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
import { node } from "../.electron-vendors.cache.json";
|
|
22
|
-
import { join } from "node:path";
|
|
23
22
|
import { injectAppVersion } from "../version/inject-app-version-plugin.mjs";
|
|
23
|
+
import { join } from "node:path";
|
|
24
24
|
|
|
25
25
|
const PACKAGE_ROOT = __dirname;
|
|
26
26
|
const PROJECT_ROOT = join(PACKAGE_ROOT, "../..");
|