@xwiki/cristal-electron-main 0.20.0 → 0.21.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 +16 -0
- package/dist/index.cjs +126 -126
- package/package.json +11 -11
- package/src/index.ts +9 -8
- package/src/mainWindow.ts +1 -1
- package/src/menu.ts +1 -1
- package/src/reload.ts +1 -1
- package/src/security-restrictions.ts +1 -1
- package/vite.config.mjs +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.21.0",
|
|
4
4
|
"license": "LGPL 2.1",
|
|
5
5
|
"author": "XWiki Org Community <contact@xwiki.org>",
|
|
6
6
|
"homepage": "https://cristal.xwiki.org/",
|
|
@@ -13,19 +13,19 @@
|
|
|
13
13
|
"url": "https://jira.xwiki.org/projects/CRISTAL/"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"electron": "37.
|
|
16
|
+
"electron": "37.2.5",
|
|
17
17
|
"reflect-metadata": "0.2.2",
|
|
18
|
-
"@xwiki/cristal-electron
|
|
19
|
-
"@xwiki/cristal-electron-
|
|
20
|
-
"@xwiki/cristal-
|
|
21
|
-
"@xwiki/cristal-electron-authentication-
|
|
22
|
-
"@xwiki/cristal-electron-authentication-github-main": "0.
|
|
23
|
-
"@xwiki/cristal-electron-authentication-
|
|
18
|
+
"@xwiki/cristal-browser-electron": "0.21.0",
|
|
19
|
+
"@xwiki/cristal-electron-settings-main": "0.21.0",
|
|
20
|
+
"@xwiki/cristal-electron-storage": "0.21.0",
|
|
21
|
+
"@xwiki/cristal-electron-authentication-xwiki-main": "0.21.0",
|
|
22
|
+
"@xwiki/cristal-electron-authentication-github-main": "0.21.0",
|
|
23
|
+
"@xwiki/cristal-electron-authentication-nextcloud-main": "0.21.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/node": "22.
|
|
27
|
-
"typescript": "5.
|
|
28
|
-
"vite": "7.0.
|
|
26
|
+
"@types/node": "22.17.0",
|
|
27
|
+
"typescript": "5.9.2",
|
|
28
|
+
"vite": "7.0.6"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "tsc --project tsconfig.json && vite build",
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
2
|
* See the LICENSE file distributed with this work for additional
|
|
3
3
|
* information regarding copyright ownership.
|
|
4
4
|
*
|
|
@@ -67,15 +67,16 @@ if (process.env.NODE_ENV !== "development") {
|
|
|
67
67
|
*/
|
|
68
68
|
app
|
|
69
69
|
.whenReady()
|
|
70
|
+
// eslint-disable-next-line promise/always-return
|
|
70
71
|
.then(async () => {
|
|
71
72
|
await load();
|
|
72
|
-
restoreOrCreateWindow()
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
const w = await restoreOrCreateWindow();
|
|
74
|
+
loadBrowser(w);
|
|
75
|
+
loadGitHubAuthentication(w, loadFile);
|
|
76
|
+
loadNextcloudAuthentication(w, loadFile);
|
|
77
|
+
loadXWikiAuthentication(w, loadFile);
|
|
78
|
+
loadSettings();
|
|
79
|
+
|
|
79
80
|
/**
|
|
80
81
|
* @see https://www.electronjs.org/docs/latest/api/app#event-activate-macos Event: 'activate'.
|
|
81
82
|
*/
|
package/src/mainWindow.ts
CHANGED
package/src/menu.ts
CHANGED
package/src/reload.ts
CHANGED
package/vite.config.mjs
CHANGED