feat(electron): improve development tools

This commit is contained in:
charlie
2021-01-19 17:39:55 +08:00
committed by Tienson Qin
parent deeb97a0b5
commit 0ce2f6ba84
10 changed files with 186 additions and 37 deletions

30
resources/dev.html Normal file
View File

@@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Electron Development Entries</title>
</head>
<body>
<div style="padding: 50px; text-align: center;">
<h1>
Development Mode :)
</h1>
<h3>
<a href="http://localhost:3000">
http://localhost:3000
</a> <br> <br>
<a href="http://localhost:3001">
http://localhost:3001
</a>
</h3>
</div>
<script>
require('electron').ipcRenderer.on('hello', (e, v) => {
console.info('[hello] ', v)
})
</script>
</body>
</html>