Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
8681ba0e
Commit
8681ba0e
authored
Jul 06, 2023
by
Eva Ho
Browse files
clean up code
parent
6fbd96da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
app/forge.config.ts
app/forge.config.ts
+0
-3
app/src/index.ts
app/src/index.ts
+1
-2
No files found.
app/forge.config.ts
View file @
8681ba0e
import
type
{
ForgeConfig
}
from
'
@electron-forge/shared-types
'
import
type
{
ForgeConfig
}
from
'
@electron-forge/shared-types
'
import
{
MakerSquirrel
}
from
'
@electron-forge/maker-squirrel
'
import
{
MakerSquirrel
}
from
'
@electron-forge/maker-squirrel
'
import
{
MakerZIP
}
from
'
@electron-forge/maker-zip
'
import
{
MakerZIP
}
from
'
@electron-forge/maker-zip
'
import
{
MakerDeb
}
from
'
@electron-forge/maker-deb
'
import
{
MakerRpm
}
from
'
@electron-forge/maker-rpm
'
import
{
PublisherGithub
}
from
'
@electron-forge/publisher-github
'
import
{
PublisherGithub
}
from
'
@electron-forge/publisher-github
'
import
{
AutoUnpackNativesPlugin
}
from
'
@electron-forge/plugin-auto-unpack-natives
'
import
{
AutoUnpackNativesPlugin
}
from
'
@electron-forge/plugin-auto-unpack-natives
'
import
{
WebpackPlugin
}
from
'
@electron-forge/plugin-webpack
'
import
{
WebpackPlugin
}
from
'
@electron-forge/plugin-webpack
'
import
*
as
path
from
'
path
'
import
*
as
path
from
'
path
'
import
*
as
fs
from
'
fs
'
import
*
as
fs
from
'
fs
'
import
*
as
os
from
'
fs
'
import
{
mainConfig
}
from
'
./webpack.main.config
'
import
{
mainConfig
}
from
'
./webpack.main.config
'
import
{
rendererConfig
}
from
'
./webpack.renderer.config
'
import
{
rendererConfig
}
from
'
./webpack.renderer.config
'
...
...
app/src/index.ts
View file @
8681ba0e
import
{
spawn
,
exec
}
from
'
child_process
'
import
{
spawn
,
exec
}
from
'
child_process
'
import
{
app
,
autoUpdater
,
dialog
,
Tray
,
Menu
,
nativeTheme
,
Notification
}
from
'
electron
'
import
{
app
,
autoUpdater
,
dialog
,
Tray
,
Menu
,
nativeTheme
}
from
'
electron
'
import
*
as
path
from
'
path
'
import
*
as
path
from
'
path
'
import
*
as
fs
from
'
fs
'
import
*
as
fs
from
'
fs
'
require
(
'
@electron/remote/main
'
).
initialize
()
require
(
'
@electron/remote/main
'
).
initialize
()
let
tray
:
Tray
|
null
=
null
let
tray
:
Tray
|
null
=
null
let
secondInstance
:
Boolean
=
false
const
SingleInstanceLock
=
app
.
requestSingleInstanceLock
()
const
SingleInstanceLock
=
app
.
requestSingleInstanceLock
()
const
createSystemtray
=
()
=>
{
const
createSystemtray
=
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment