Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaoye
mycard
Commits
4d2eaa0a
Commit
4d2eaa0a
authored
Sep 17, 2021
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
dc6e0585
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
487 additions
and
421 deletions
+487
-421
angular.json
angular.json
+8
-2
main.js
main.js
+7
-3
package-lock.json
package-lock.json
+470
-414
package.json
package.json
+2
-2
No files found.
angular.json
View file @
4d2eaa0a
...
@@ -48,7 +48,13 @@
...
@@ -48,7 +48,13 @@
"glob"
,
"glob"
,
"aria2"
,
"aria2"
,
"fast-glob"
,
"fast-glob"
,
"fs-extra"
"fs-extra"
,
"jquery-i18n"
,
"strophe.js"
,
"strophejs-plugin-caps"
,
"strophejs-plugin-disco"
,
"strophejs-plugin-muc"
,
"strophejs-plugin-roster"
],
],
"customWebpackConfig"
:
{},
"customWebpackConfig"
:
{},
"outputPath"
:
"dist/mycard"
,
"outputPath"
:
"dist/mycard"
,
...
@@ -86,7 +92,7 @@
...
@@ -86,7 +92,7 @@
"vendorChunk"
:
true
,
"vendorChunk"
:
true
,
"extractLicenses"
:
false
,
"extractLicenses"
:
false
,
"sourceMap"
:
true
,
"sourceMap"
:
true
,
"namedChunks"
:
true
,
"namedChunks"
:
true
}
}
},
},
"defaultConfiguration"
:
"production"
"defaultConfiguration"
:
"production"
...
...
main.js
View file @
4d2eaa0a
...
@@ -10,7 +10,9 @@ const Store = require('electron-store');
...
@@ -10,7 +10,9 @@ const Store = require('electron-store');
const
isDev
=
require
(
'
electron-is-dev
'
);
const
isDev
=
require
(
'
electron-is-dev
'
);
const
child_process
=
require
(
'
child_process
'
);
const
child_process
=
require
(
'
child_process
'
);
const
path
=
require
(
'
path
'
);
const
path
=
require
(
'
path
'
);
require
(
'
@electron/remote/main
'
).
initialize
();
import
remote
from
'
@electron/remote/main
'
;
remote
.
initialize
();
const
store
=
new
Store
();
const
store
=
new
Store
();
const
locale
=
store
.
get
(
'
locale
'
);
const
locale
=
store
.
get
(
'
locale
'
);
...
@@ -85,8 +87,9 @@ autoUpdater.on('update-downloaded', (event) => {
...
@@ -85,8 +87,9 @@ autoUpdater.on('update-downloaded', (event) => {
width
:
640
,
width
:
640
,
height
:
360
,
height
:
360
,
autoHideMenuBar
:
true
,
autoHideMenuBar
:
true
,
webPreferences
:
{
nodeIntegration
:
true
,
contextIsolation
:
false
,
enableRemoteModule
:
true
}
webPreferences
:
{
nodeIntegration
:
true
,
contextIsolation
:
false
}
});
});
remote
.
enable
(
updateWindow
.
webContents
);
updateWindow
.
loadFile
(
'
projects/update/update.html
'
);
updateWindow
.
loadFile
(
'
projects/update/update.html
'
);
updateWindow
.
webContents
.
on
(
'
new-window
'
,
function
(
e
,
url
)
{
updateWindow
.
webContents
.
on
(
'
new-window
'
,
function
(
e
,
url
)
{
e
.
preventDefault
();
e
.
preventDefault
();
...
@@ -154,9 +157,10 @@ async function createWindow() {
...
@@ -154,9 +157,10 @@ async function createWindow() {
minWidth
:
1024
,
minWidth
:
1024
,
minHeight
:
640
,
minHeight
:
640
,
frame
:
process
.
platform
===
'
darwin
'
,
frame
:
process
.
platform
===
'
darwin
'
,
webPreferences
:
{
nodeIntegration
:
true
,
contextIsolation
:
false
,
enableRemoteModule
:
true
,
webviewTag
:
true
,
webSecurity
:
false
},
webPreferences
:
{
nodeIntegration
:
true
,
contextIsolation
:
false
,
webviewTag
:
true
,
webSecurity
:
false
},
titleBarStyle
:
process
.
platform
===
'
darwin
'
?
'
hidden
'
:
undefined
titleBarStyle
:
process
.
platform
===
'
darwin
'
?
'
hidden
'
:
undefined
});
});
remote
.
enable
(
mainWindow
.
webContents
);
// and load the index.html of the app.
// and load the index.html of the app.
if
(
isDev
)
{
if
(
isDev
)
{
...
...
package-lock.json
View file @
4d2eaa0a
This diff is collapsed.
Click to expand it.
package.json
View file @
4d2eaa0a
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"description"
:
"萌卡客户端"
,
"description"
:
"萌卡客户端"
,
"author"
:
"zh99998 <zh99998@gmail.com>"
,
"author"
:
"zh99998 <zh99998@gmail.com>"
,
"dependencies"
:
{
"dependencies"
:
{
"
@electron/remote
"
:
"
^
1.2
.1
"
,
"
@electron/remote
"
:
"
^
2.0
.1
"
,
"
bootstrap
"
:
"
^5.1.0
"
,
"
bootstrap
"
:
"
^5.1.0
"
,
"
electron-browser-storage
"
:
"
^1.0.7
"
,
"
electron-browser-storage
"
:
"
^1.0.7
"
,
"
electron-is-dev
"
:
"
^2.0.0
"
,
"
electron-is-dev
"
:
"
^2.0.0
"
,
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
"
aria2
"
:
"
^4.1.2
"
,
"
aria2
"
:
"
^4.1.2
"
,
"
candy
"
:
"
https://github.com/moecube/candy/releases/download/v2.2.0/candy.tar.gz
"
,
"
candy
"
:
"
https://github.com/moecube/candy/releases/download/v2.2.0/candy.tar.gz
"
,
"
candy-shop
"
:
"
github:candy-chat/candy-plugins
"
,
"
candy-shop
"
:
"
github:candy-chat/candy-plugins
"
,
"
electron
"
:
"
^1
3.3.0
"
,
"
electron
"
:
"
^1
4.0.1
"
,
"
electron-builder
"
:
"
^22.11.7
"
,
"
electron-builder
"
:
"
^22.11.7
"
,
"
electron-builder-notarize
"
:
"
^1.2.0
"
,
"
electron-builder-notarize
"
:
"
^1.2.0
"
,
"
exports-loader
"
:
"
^3.0.0
"
,
"
exports-loader
"
:
"
^3.0.0
"
,
...
...
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