{"id":39352,"date":"2016-06-12T10:32:01","date_gmt":"2016-06-12T01:32:01","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=39352"},"modified":"2016-06-12T10:49:26","modified_gmt":"2016-06-12T01:49:26","slug":"electrons-api","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/electrons-api\/","title":{"rendered":"Electrons API - GitHub\u516c\u5f0f\u306eElectron API\u30c7\u30e2\u30a2\u30d7\u30ea"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2016\/06\/INewImage-70.png\" alt=\"NewImage\" title=\"NewImage.png\" border=\"0\" width=\"800\" height=\"500\" \/><\/p>\n<p>JavaScript\/HTML\/CSS\u3068\u3044\u3063\u305fWeb\u7cfb\u306e\u6280\u8853\u3092\u4f7f\u3063\u3066\u3001\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3067\u304d\u308bGitHub\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300c<a href=\"http:\/\/electron.atom.io\/\">Electron<\/a>\u300d\u3002\u3053\u306eElectron\u306eAPI\u306e\u30c7\u30e2\u3084\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u542b\u3080\u3001Mac\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u300cElectrons API\u300d\u304cMac App Store\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/itunes.apple.com\/jp\/app\/electron-apis\/id1119345146?mt=12&uo=4&at=10lbMu\" rel=\"nofollow\" target=\"_blank\"><img decoding=\"async\" align=\"left\" hspace=\"6\" src=\"http:\/\/is4.mzstatic.com\/image\/thumb\/Purple60\/v4\/3a\/ea\/fe\/3aeafebc-da57-5b9e-3c88-1b77ad5bf21a\/source.icns\/60x60bb.png\" width=\"75\" style=\"margin-right: 6px;\" \/><b>Electron APIs<\/b> <img decoding=\"async\" alt=\"App\" src=\"https:\/\/linkmaker.itunes.apple.com\/assets\/shared\/badges\/ja-jp\/macappstore-sm.svg\" style=\"vertical-align: text-bottom; margin-bottom: 0px;\" \/><\/a><br \/>\u30ab\u30c6\u30b4\u30ea: \u958b\u767a\u30c4\u30fc\u30eb<br \/>\u4fa1\u683c: \u7121\u6599<br \/>\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3001\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u3001\u30b5\u30f3\u30d7\u30eb\u306a\u3069\u3092\u542b\u3080Electron API\u5b66\u7fd2\u30a2\u30d7\u30ea\u3002<br clear=\"all\" \/><\/p>\n<p>\u300cElectron APIs\u300d\u306f\u3068\u3082\u3068\u3082GitHub\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u300c<a href=\"https:\/\/github.com\/electron\/electron-api-demos\">Electron API Demos<\/a>\u300d\u3092Mac App Store\u5411\u3051\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0\u3057\u76f4\u3057\u305f\u3082\u306e\u3002\u6a5f\u80fd\u7684\u306b\u306f\u540c\u69d8\u3067\u3001Electron\u3092\u4f7f\u3063\u305f\u57fa\u790e\u7684\u306a\u30a2\u30d7\u30ea\u306e\u4f5c\u6210\u65b9\u6cd5\u3084\u3001Electron API\u306e\u4f7f\u3044\u65b9\u3092\u5b66\u7fd2\u3067\u304d\u308b\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2016\/06\/Is-2016-06-12-10.17.48.png\" alt=\"S 2016 06 12 10 17 48\" title=\"s 2016-06-12 10.17.48.png\" border=\"0\" width=\"958\" height=\"571\" \/><\/p>\n<p>\u4f8b\u3048\u3070Window\u306b\u95a2\u3059\u308bAPI\u3092\u5b66\u7fd2\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u300cCreate and manage windows\u300d\u3067\u306f\u3001\u300cView Demo\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u5b9f\u969b\u306bHello World!\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"javascript\">const BrowserWindow = require('electron').remote.BrowserWindow\r\nconst path = require('path')\r\n\r\nconst newWindowBtn = document.getElementById('new-window')\r\n\r\nnewWindowBtn.addEventListener('click', function (event) {\r\n  const modalPath = path.join('file:\/\/', __dirname, '..\/..\/sections\/windows\/modal.html')\r\n  let win = new BrowserWindow({ width: 400, height: 320 })\r\n  win.on('closed', function () { win = null })\r\n  win.loadURL(modalPath)\r\n  win.show()\r\n})<\/code><\/pre>\n<p>\u305d\u306e\u4ed6\u30e1\u30cb\u30e5\u30fc\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u65b9\u6cd5\u3084\u3001\u30d5\u30a1\u30a4\u30eb\u30de\u30cd\u30fc\u30b8\u30e3\u306e\u547c\u3073\u51fa\u3057\u65b9\u3001\u901a\u4fe1\u65b9\u6cd5\u306a\u3069\u591a\u6570\u306e\u30b5\u30f3\u30d7\u30eb\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Electron\u3092\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3092\u8a08\u753b\u3057\u3066\u3044\u308b\u65b9\u306f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript\/HTML\/CSS\u3068\u3044\u3063\u305fWeb\u7cfb\u306e\u6280\u8853\u3092\u4f7f\u3063\u3066\u3001\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3067\u304d\u308bGitHub\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300cElectron\u300d\u3002\u3053\u306eElectron\u306eAPI\u306e\u30c7\u30e2\u3084\u30c1\u30e5\u30fc\u30c8\u30ea [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":39353,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[3146],"class_list":["post-39352","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-electron"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/39352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=39352"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/39352\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/39353"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=39352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=39352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=39352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}