<html>
<head>
<title>Electron</title>
<style>
body {
color: #555;
font-family: 'Open Sans',Helvetica,Arial,sans-serif;
padding: 30px;
}
h2 {
color: #2b6cc2;
font-family: "Crimson Text",Georgia,serif;
font-weight: 400;
line-height: 1.1;
letter-spacing: -0.015em;
}
a {
color: #2b6cc2;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
pre, code {
font-family: "Menlo","Lucida Console",monospace;
border: 1px solid #ddd;
background-color: #f8f8f8;
border-radius: 3px;
}
pre {
white-space: pre-wrap;
font-size: 13px;
line-height: 19px;
overflow: auto;
padding: 6px 10px;
}
#holder {
border: 4px dashed #ccc;
margin: 0 auto;
height: 300px;
color: #ccc;
font-size: 40px;
line-height: 300px;
text-align: center;
-webkit-user-select: none;
}
#holder.hover {
border: 4px dashed #999;
color: #eee;
}
</style>
</head>
<body>
<script>
const electron = require('electron');
const remote = electron.remote;
const shell = electron.shell;
var execPath = remote.process.execPath;
var command = execPath + ' path-to-your-app';
document.onclick = function(e) {
e.preventDefault();
if (e.target.tagName == 'A')
shell.openExternal(e.target.href);
return false;
};
document.ondragover = document.ondrop = function(e) {
e.preventDefault();
return false;
};
</script>
<h2>
<script>
document.write(`Welcome to Electron (v${process.versions.electron})`)
</script>
</h2>
<p>
To run your app with Electron, execute the following command under your
Console (or Terminal):
</p>
<script>document.write('<pre>' + command + '</pre>')</script>
<p>
The <code>path-to-your-app</code> should be the path to your own Electron
app, you can read the
<script>
document.write(
`<a href='https://github.com/atom/electron/blob/v${process.versions.electron}/docs/tutorial/quick-start.md'>quick start</a>`
);
</script>
guide in Electron's
<script>
document.write(
`<a href='https://github.com/atom/electron/tree/v${process.versions.electron}/docs#readme'>docs</a>`
);
</script>
on how to write one.
</p>
<p>
Or you can just drag your app here to run it:
</p>
<div id="holder">
Drag your app here to run it
</div>
<script>
var holder = document.getElementById('holder');
holder.ondragover = function () {
this.className = 'hover';
return false;
};
holder.ondragleave = holder.ondragend = function () {
this.className = '';
return false;
};
holder.ondrop = function (e) {
this.className = '';
e.preventDefault();
var file = e.dataTransfer.files[0];
require('child_process').execFile(execPath, [file.path], {
detached: true, stdio: 'ignore'
}).unref();
return false;
};
</script>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
redis 可视化工具 medis for mac(破解) Medis是一款非常实用的Redis管理应用工具。软件提供了一些 redis-cli 难以实现的功能,包括创建键副本、修改列表值等,同时你还能够直接读写 JSON 和 MessagePack 格式的数据,以及读写各种 Redis 配置。非常不错的一款软件。
资源推荐
资源详情
资源评论
收起资源包目录
Medis.app.zip (31个子文件)
Medis.app
Contents
Frameworks
Electron Framework.framework
Resources 26B
Versions
A
Resources
snapshot_blob.bin 573KB
natives_blob.bin 401KB
icudtl.dat 9.73MB
content_shell.pak 8.3MB
MainMenu.nib 2KB
Info.plist 761B
Electron Framework 60.52MB
Libraries
libnode.dylib 15.53MB
Current 1B
Electron Framework 35B
Libraries 26B
Medis Helper NP.app
Contents
Info.plist 849B
MacOS
Medis Helper NP 8KB
PkgInfo 8B
Medis Helper.app
Contents
Info.plist 712B
MacOS
Medis Helper 8KB
PkgInfo 8B
Medis Helper EH.app
Contents
Info.plist 849B
MacOS
Medis Helper EH 8KB
PkgInfo 8B
Resources
atom.asar 152KB
atom.icns 197KB
default_app
default_app.js 475B
main.js 7KB
package.json 75B
index.html 3KB
app.asar 5.71MB
Info.plist 1KB
MacOS
Electron 8KB
PkgInfo 8B
共 31 条
- 1
资源评论
- 「已注销」2019-02-25辣鸡骗分的,Github 上最老的那个版本
码上成功欧耶
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功