Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
epoc-editor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
learninglab
epoc
epoc-editor
Merge requests
!74
Resolve "e2e testing"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "e2e testing"
246-e2e-testing
into
main
Overview
0
Commits
13
Pipelines
8
Changes
25
Merged
VIAUD Nathan
requested to merge
246-e2e-testing
into
main
1 year ago
Overview
0
Commits
13
Pipelines
8
Changes
25
Expand
Closes
#246
0
0
Merge request reports
Compare
main
version 6
cb22f9a0
1 year ago
version 5
713d047b
1 year ago
version 4
4dd7d125
1 year ago
version 3
9fadbdfb
1 year ago
version 2
911554e2
1 year ago
version 1
6029f892
1 year ago
main (base)
and
latest version
latest version
77d2b220
13 commits,
1 year ago
version 6
cb22f9a0
14 commits,
1 year ago
version 5
713d047b
13 commits,
1 year ago
version 4
4dd7d125
10 commits,
1 year ago
version 3
9fadbdfb
8 commits,
1 year ago
version 2
911554e2
5 commits,
1 year ago
version 1
6029f892
2 commits,
1 year ago
25 files
+
771
−
20
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
25
Search (e.g. *.vue) (Ctrl+P)
electron/electron.js
+
8
−
3
Options
@@ -10,6 +10,8 @@ const { cleanPreview } = require('./components/preview');
const
path
=
require
(
'
path
'
);
const
{
autoUpdater
}
=
require
(
'
electron-updater
'
);
const
headless
=
process
.
argv
.
includes
(
'
--headless=true
'
);
let
mainWindow
;
let
splashWindow
;
// Open file with editor, on windows : using argv | on macOS using open-file event (see below)
@@ -31,7 +33,7 @@ autoUpdater.checkForUpdatesAndNotify();
// This method will be called when Electron has finished initialization and is ready to create browser windows.
app
.
whenReady
().
then
(()
=>
{
mainWindow
=
createMainWindow
();
splashWindow
=
createSplashWindow
();
if
(
!
headless
)
splashWindow
=
createSplashWindow
();
setupIpcListener
(
mainWindow
);
@@ -40,8 +42,11 @@ app.whenReady().then(() => {
waitEvent
(
mainWindow
,
'
ready-to-show
'
),
wait
(
200
)
]).
then
(
async
()
=>
{
splashWindow
.
destroy
();
mainWindow
.
show
();
if
(
!
headless
)
{
splashWindow
.
destroy
();
mainWindow
.
show
();
}
if
(
filepath
)
{
mainWindow
.
webContents
.
send
(
'
epocProjectPicked
'
,
JSON
.
stringify
({
name
:
null
,
modified
:
null
,
filepath
:
filepath
,
workdir
:
null
}));
}
Loading