first commit
This commit is contained in:
10
day01-new-project-manual/index.html
Normal file
10
day01-new-project-manual/index.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>标题</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>啦啦啦啦</h1>
|
||||
</body>
|
||||
</html>
|
||||
18
day01-new-project-manual/main.js
Normal file
18
day01-new-project-manual/main.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const { app, BowserWindow } = require('electron')
|
||||
|
||||
app.whenReady().then(() => {
|
||||
const mainWin = new BowserWindow({
|
||||
width: 600,
|
||||
height: 400
|
||||
})
|
||||
|
||||
mainWin.loadFile('index.html')
|
||||
|
||||
mainWin.on('close', () => {
|
||||
console.log(111);
|
||||
})
|
||||
})
|
||||
|
||||
app.on('window-all-closed', () => {
|
||||
app.quit()
|
||||
})
|
||||
1034
day01-new-project-manual/package-lock.json
generated
Normal file
1034
day01-new-project-manual/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
15
day01-new-project-manual/package.json
Normal file
15
day01-new-project-manual/package.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "xxxx",
|
||||
"version": "x.x.x",
|
||||
"description": "",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"start": "electron ."
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"electron": "^11.2.1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user