{"id":2209,"date":"2018-11-11T00:21:54","date_gmt":"2018-11-10T15:21:54","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=2209"},"modified":"2020-03-19T02:17:57","modified_gmt":"2020-03-18T17:17:57","slug":"electron-%e3%81%a7%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%90%8d%e3%82%92%e9%80%a3%e7%95%aa%e3%81%a7%e3%83%aa%e3%83%8d%e3%83%bc%e3%83%a0%e3%81%99%e3%82%8b%e3%82%a2%e3%83%97%e3%83%aa%e3%82%92%e3%81%a4","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=2209","title":{"rendered":"Electron \u3067\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u9023\u756a\u3067\u30ea\u30cd\u30fc\u30e0\u3059\u308b\u30a2\u30d7\u30ea\u3092\u3064\u304f\u308b\uff08\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\uff09"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u5c11\u3057\u524d\u306b\u516c\u958b\u3057\u305f\u8a18\u4e8b\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=2157\">Electron \u753b\u50cf\u3092\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3059\u308b\u3060\u3051\u3067\u30ea\u30b5\u30a4\u30ba\u3059\u308b\u30a2\u30d7\u30ea\u3092\u3064\u304f\u308b<\/a>\u00a0\u3092\u66f8\u3044\u3066\u3044\u3066\u611f\u3058\u3066\u3044\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306f\u3001\u300cElectron\u3092\u4f7f\u3048\u3070\u65e5\u3005\u306e\u696d\u52d9\u3092\u52b9\u7387\u5316\u3059\u308b\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u3092\u7c21\u5358\u306b\u3064\u304f\u308c\u308b\uff01\u300d\u3068\u3044\u3046\u3082\u306e\u3067\u3057\u305f\u3002<\/p>\n<p>\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u304c\u3001\u300c\u7c21\u5358\u306b\u300d\u3068\u3044\u3046\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u3082\u3061\u308d\u3093\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u738b\u8005C\u8a00\u8a9e\u3084Java\u3092\u4f7f\u3048\u3070\u30cd\u30a4\u30c6\u30a3\u30d6\u3067\u9ad8\u901f\u306a\u30a2\u30d7\u30ea\u3092\u3064\u304f\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304c\u3001\u3055\u3059\u304c\u306b<code>Electron<\/code>\u307b\u3069\u6577\u5c45\u304c\u4f4e\u3044\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u696d\u52d9\u6539\u5584\u30a2\u30d7\u30ea\u3092\u4f5c\u308d\u3046\u3068\u3057\u3066\u6642\u9593\u304c\u306a\u304f\u306a\u308a\u3001\u4ed6\u306e\u4f5c\u696d\u306b\u5f71\u97ff\u304c\u3067\u3066\u3057\u307e\u3046\u3088\u3046\u306a\u3053\u3068\u306f\u3057\u305f\u304f\u306f\u3042\u308a\u307e\u305b\u3093\u3088\u306d\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u4eca\u56de\u306e\u30c6\u30fc\u30de\u300c\u9023\u756a\u30ea\u30cd\u30fc\u30e0\u300d\u3059\u308b\u30a2\u30d7\u30ea\u3092<code>Electron<\/code>\u3067\u3064\u304f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305c\u3072<code>Electron<\/code>\u306e\u5b66\u7fd2\u306b\u5f79\u7acb\u3066\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1419 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/10.png\" alt=\"\" width=\"306\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/10.png 306w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/10-287x300.png 287w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/p>\n<p>\u203b \u958b\u767a\u74b0\u5883\uff1a Electron 2.0<\/p>\n<h1>\u958b\u767a\u3059\u308b\u30a2\u30d7\u30ea\u306e\u5185\u5bb9<\/h1>\n<p>\u4eca\u56de\u306f\u958b\u767a\u3059\u308bElectron\u30a2\u30d7\u30ea\u306e\u8a73\u7d30\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30d5\u30a9\u30eb\u30c0\u3092\u9078\u629e\u3057\u305f\u3089\u3001\u305d\u306e\u4e2d\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3059\u3079\u3066\u3092\u30ea\u30cd\u30fc\u30e0\u3059\u308b<\/li>\n<li>\u305f\u3060\u3057\u3001\u62e1\u5f35\u5b50\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u3001\u305d\u306e\u62e1\u5f35\u5b50\u3054\u3068\u306b\u9023\u756a\u3092\u632f\u3063\u3066\u3044\u304f\uff08\u203b\uff11\uff09<\/li>\n<li>\u9023\u756a\u306e\u6570\u5b57\u3092\u4f55\u6841\u306b\u3059\u308b\u306e\u304b\u3092\u9078\u3079\u308b\u3088\u3046\u306b\u3059\u308b<\/li>\n<li>\u3059\u3067\u306b\u540c\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u3063\u3066\u3082\u4e0a\u66f8\u304d\u3057\u306a\u3044\uff08\u203b\uff12\uff09<\/li>\n<li>\u4e26\u3079\u66ff\u3048\u9806\u306f\u3001\u540d\u524d\uff08\u6607\u9806\uff0f\u964d\u9806\uff09\u3068\u5909\u66f4\u65e5\u6642\uff08\u6607\u9806\uff0f\u964d\u9806\uff09<\/li>\n<\/ul>\n<p>\u203b\uff11\uff1a \u6b21\u306e\u3088\u3046\u306b\u9023\u756a\u3092\u632f\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>001.png, 002.png, 003.png \u30fb\u30fb\u30fb<\/li>\n<li>001.jpg, 002.jpg, 003.jpg \u30fb\u30fb\u30fb<\/li>\n<\/ul>\n<p>\u203b\uff12\uff1a \u3064\u307e\u308a\u3001\u30d5\u30a1\u30a4\u30eb\u6570\u304c\u6e1b\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u958b\u767a\u3092\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<h1>Electron\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001<a href=\"https:\/\/blog.capilano-fw.com\/?p=2054\">\u521d\u5fc3\u8005\u5411\u304d\uff01electron \u3067\u7c21\u5358\u306a\u30e1\u30e2\u5e33\u3092\u3064\u304f\u3063\u3066\u307f\u3088\u3046<\/a>\u306e <strong>&#8220;electron\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb&#8221;<\/strong> \u306b\u8a73\u3057\u304f\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30d5\u30a9\u30eb\u30c0\u540d\u306f<code>rename_files<\/code>\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2211\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-09-06-19-10.png\" alt=\"\" width=\"257\" height=\"141\" \/><\/p>\n<h1>\u30a2\u30d7\u30ea\u306e\u8a2d\u5b9a\u3092\u3059\u308b<\/h1>\n<p><code>main.js<\/code>\u3092\u958b\u3044\u3066\u30a2\u30d7\u30ea\u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<br \/>\n<span style=\"font-size: 1rem;\">\u30a6\u30a3\u30f3\u30c9\u30a6\u306f\u753b\u9762\u30c8\u30c3\u30d7\u4e2d\u592e\u3067\u958b\u304f\u3088\u3046\u306b\u3057\u307e\u3059\u3002\uff08\u8a73\u3057\u3044\u8aac\u660e\u3092\u898b\u305f\u3044\u4eba\u306f\u3001<\/span><a href=\"https:\/\/blog.capilano-fw.com\/?p=2157\">Electron \u753b\u50cf\u3092\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3059\u308b\u3060\u3051\u3067\u30ea\u30b5\u30a4\u30ba\u3059\u308b\u30a2\u30d7\u30ea\u3092\u3064\u304f\u308b<\/a>\u00a0<span style=\"font-size: 1rem;\">\u306e <strong>&#8220;\u30a2\u30d7\u30ea\u306e\u8a2d\u5b9a\u3092\u3059\u308b&#8221;<\/strong> \u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\uff09<\/span><\/p>\n<pre>const electron = require('electron')\r\nconst app = electron.app\r\nconst BrowserWindow = electron.BrowserWindow\r\n\r\nlet mainWindow\r\n\r\nfunction createWindow () {\r\n    \r\n    const screen = electron.screen.getPrimaryDisplay()\r\n    const width = 350\r\n    const height = 300\r\n    const x = parseInt(screen.workAreaSize.width*0.5 - width*0.5)\r\n\r\n<strong>    mainWindow = new BrowserWindow({<\/strong>\r\n<strong>        width: width,<\/strong>\r\n<strong>        height: height,<\/strong>\r\n<strong>        x: x,<\/strong>\r\n<strong>        y: 0,<\/strong>\r\n<strong>        autoHideMenuBar: true,\r\n        webPreferences: {\r\n            preload: path.join(__dirname, 'preload.js'), \r\n            nodeIntegration: true\r\n        }<\/strong>\r\n<strong>    })<\/strong>\r\n\r\n\/\/ \u6b8b\u308a\u306f\u7701\u7565<\/pre>\n<p><strong>\u3010\u8ffd\u8a18\uff1a2020.3.19\u3011<\/strong><code>Electron v5<\/code>\u4ee5\u964d\u306e\u305f\u3081\u306b<code>webPreferences<\/code>\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/p>\n<h1>\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u307e\u305a\u306f\u30a2\u30d7\u30ea\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u3082\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u306f<code>bootstrap 4<\/code>\u3092\u4f7f\u3046\u306e\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>npm i bootstrap --save<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001<code>bootstrap<\/code>\u3092\u4f7f\u3063\u3066HTML\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>&lt;link rel=\"stylesheet\" href=\".\/node_modules\/bootstrap\/dist\/css\/bootstrap.min.css\"&gt;<\/strong><\/pre>\n<pre><strong>&lt;div id=\"app\" class=\"container\"&gt;<\/strong>\r\n<strong>    &lt;div style=\"padding:15px 0;\"&gt;<\/strong>\r\n<strong>        &lt;label&gt;<\/strong>\r\n<strong>        &lt;span class=\"btn btn-light\"&gt;<\/strong>\r\n<strong>            \u30d5\u30a9\u30eb\u30c0\u3092\u9078\u629e<\/strong>\r\n<strong>            &lt;input type=\"file\" style=\"display:none\" webkitdirectory&gt;<\/strong>\r\n<strong>        &lt;\/span&gt;<\/strong>\r\n<strong>        &lt;\/label&gt;<\/strong>\r\n<strong>    &lt;\/div&gt;<\/strong>\r\n<strong>    &lt;table class=\"table\"&gt;<\/strong>\r\n<strong>        &lt;tr&gt;<\/strong>\r\n<strong>            &lt;td&gt;\u9023\u756a\u6570\u5b57\uff1a&lt;\/td&gt;<\/strong>\r\n<strong>            &lt;td&gt;<\/strong>\r\n<strong>                &lt;select class=\"form-control\"&gt;<\/strong>\r\n<strong>                    &lt;option&gt;4\u6841&lt;\/option&gt;<\/strong>\r\n<strong>                &lt;\/select&gt;<\/strong>\r\n<strong>            &lt;\/td&gt;<\/strong>\r\n<strong>        &lt;\/tr&gt;<\/strong>\r\n<strong>        &lt;tr&gt;<\/strong>\r\n<strong>            &lt;td&gt;\u4e26\u3079\u66ff\u3048\u9806\uff1a&lt;\/td&gt;<\/strong>\r\n<strong>            &lt;td&gt;<\/strong>\r\n<strong>                &lt;select class=\"form-control\"&gt;<\/strong>\r\n<strong>                    &lt;option&gt;\u540d\u524d\uff08\u6607\u9806\uff09&lt;\/option&gt;<\/strong>\r\n<strong>                &lt;\/select&gt;<\/strong>\r\n<strong>            &lt;\/td&gt;<\/strong>\r\n<strong>        &lt;\/tr&gt;<\/strong>\r\n<strong>    &lt;\/table&gt;<\/strong>\r\n<strong>    &lt;div class=\"text-muted\"&gt;\uff08\u3053\u3053\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u8868\u793a\uff09&lt;\/div&gt;<\/strong>\r\n<strong>    &lt;button style=\"position:absolute;right:15px;bottom:15px;\" class=\"btn btn-danger\"&gt;\u958b\u59cb\u3059\u308b&lt;\/button&gt;<\/strong>\r\n<strong>&lt;\/div&gt;<\/strong><\/pre>\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2213\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-09-17-15-35.png\" alt=\"\" width=\"352\" height=\"332\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-09-17-15-35.png 352w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-09-17-15-35-300x283.png 300w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/p>\n<h1>JavaScript\u90e8\u5206\u3092\u3064\u304f\u308b<\/h1>\n<h2>Vue\u306e\u57fa\u672c\u5f62\u3092\u3064\u304f\u308b<\/h2>\n<p>\u4eca\u56de\u3082JavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306bVue\u3092\u4f7f\u3044\u307e\u3059\u306e\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>npm i vue --save<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001<code>index.html<\/code>\u5185\u306bid\u3092\u3064\u3051Vue\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<pre>&lt;div <strong>id=\"app\"<\/strong> class=\"container\"&gt;<\/pre>\n<pre><strong>&lt;script src=\".\/node_modules\/vue\/dist\/vue.min.js\"&gt;&lt;\/script&gt;<\/strong>\r\n<strong>&lt;script&gt;<\/strong>\r\n\r\n<strong>    new Vue({<\/strong>\r\n<strong>        el: '#app'<\/strong>\r\n<strong>    })<\/strong>\r\n\r\n<strong>&lt;\/script&gt;<\/strong><\/pre>\n<h2>\u30d5\u30a9\u30eb\u30c0\u9078\u629e\u90e8\u5206<\/h2>\n<p>\u3067\u306f\u30a2\u30d7\u30ea\u306e\u4e00\u756a\u4e0a\u306b\u3042\u308b <strong>&#8220;\u30d5\u30a9\u30eb\u30c0\u3092\u9078\u629e&#8221;<\/strong> \u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u3001\u30ea\u30cd\u30fc\u30e0\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u304c\u9078\u629e\u3055\u308c\u305f\u3068\u304d\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001<code>data<\/code>\u306b\u9078\u629e\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\u306e\u30d1\u30b9\u3092\u683c\u7d0d\u3059\u308b\u5909\u6570\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<pre>data: {\r\n    <strong>folderPath: ''<\/strong>\r\n},<\/pre>\n<p>\u305d\u3057\u3066\u3001<code>&lt;input&gt;<\/code>\u30bf\u30b0\u306b<code>change<\/code>\u30a4\u30d9\u30f3\u30c8\u3092\u3064\u3051\u3001<code>onFolderChange()<\/code>\u304c\u5b9f\u884c\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;input type=\"file\" style=\"display:none\" <strong>@change=\"onFolderChanged($event)\"<\/strong> webkitdirectory&gt;<\/pre>\n<p>\u6700\u5f8c\u306b<code>onFolderChanged()<\/code>\u306e\u672c\u4f53\u3067\u3059\u3002<\/p>\n<pre>methods: {\r\n    <strong>onFolderChanged(e) {<\/strong>\r\n<strong>        const files = e.target.files<\/strong>\r\n<strong>        if(files.length &gt; 0) {<\/strong>\r\n<strong>            const folder = files[0]<\/strong>\r\n<strong>            this.folderPath = folder.path<\/strong>\r\n<strong>        } else {<\/strong>\r\n<strong>            this.folderPath = ''<\/strong>\r\n<strong>        }<\/strong>\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u306f\u3001\u30d5\u30a9\u30eb\u30c0\u304c\u9078\u629e\u3055\u305b\u308c\u3066\u3044\u308c\u3070\u3001<code>folderPath<\/code>\u306b\u305d\u306e\u30d1\u30b9\u3092\u3001\u305d\u3046\u3067\u306a\u3051\u308c\u3070\u7a7a\u767d\u3092\u683c\u7d0d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u9023\u756a\u6570\u5b57\u3092\u9078\u629e\u3059\u308b\u90e8\u5206<\/h2>\n<p>\u7d9a\u3044\u3066\u3001\u9023\u756a\u6570\u5b57\u3092\u9078\u629e\u3059\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f<code>data<\/code>\u306b\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u6841\u3092\u7ba1\u7406\u3059\u308b<code>digit<\/code>\uff08\u521d\u671f\u5024<code>4<\/code>\uff09\u3068\u305d\u306e\u9078\u629e\u80a2<code>digitOptions<\/code>\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>data: {\r\n    folderPath: '',\r\n<strong>    digit: 4,<\/strong>\r\n<strong>    digitOptions: [3, 4, 5, 6]<\/strong>\r\n},<\/pre>\n<p>\u6b21\u306b<code>digit<\/code>\u3092<code>&lt;select&gt;<\/code>\u30bf\u30b0\u3078\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;select class=\"form-control\" <strong>v-model=\"digit\"<\/strong>&gt;<\/pre>\n<p>\u305d\u3057\u3066\u3001\u6700\u5f8c\u306b<code>v-for<\/code>\u3092\u4f7f\u3063\u3066\u9078\u629e\u80a2\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre>&lt;option <strong>v-for=\"digitOption in digitOptions\"<\/strong> :value=\"digitOption\"&gt;{{ digitOption }}\u6841&lt;\/option&gt;<\/pre>\n<p>\u3053\u308c\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u9078\u629e\u80a2\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2215\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-09-17-41-38.png\" alt=\"\" width=\"344\" height=\"293\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-09-17-41-38.png 344w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-09-17-41-38-300x256.png 300w\" sizes=\"auto, (max-width: 344px) 100vw, 344px\" \/><\/p>\n<h2>\u4e26\u3079\u66ff\u3048\u9806\u3092\u9078\u629e\u3059\u308b\u90e8\u5206<\/h2>\n<p>\u3053\u3061\u3089\u3082\u307e\u305a\u3001\u9078\u629e\u3055\u308c\u305f\u4e26\u3079\u66ff\u3048\u30bf\u30a4\u30d7\u3092\u7ba1\u7406\u3059\u308b<code>sort<\/code>\u3068\u305d\u306e\u9078\u629e\u80a2\u306e<code>sortOptions<\/code>\u3092\u5909\u6570\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<pre>data: {\r\n    \/\/ \u7701\u7565\r\n    <strong>sort: 0,<\/strong>\r\n<strong>    sortOptions: [<\/strong>\r\n<strong>        { value: 'name asc', text: '\u540d\u524d\uff08\u6607\u9806\uff09' },<\/strong>\r\n<strong>        { value: 'name desc', text: '\u540d\u524d\uff08\u964d\u9806\uff09' },<\/strong>\r\n<strong>        { value: 'modified asc', text: '\u5909\u66f4\u65e5\u6642\uff08\u6607\u9806\uff09' },<\/strong>\r\n<strong>        { value: 'modified desc', text: '\u5909\u66f4\u65e5\u6642\uff08\u6607\u9806\uff09' },<\/strong>\r\n<strong>    ]<\/strong>\r\n},<\/pre>\n<p>\u305d\u3057\u3066\u3001<code>&lt;select&gt;<\/code>\u30bf\u30b0\u306b<code>sort<\/code>\u3092\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3055\u305b\u3001<\/p>\n<pre>&lt;select class=\"form-control\" <strong>v-model=\"sort\"<\/strong>&gt;<\/pre>\n<p><code>v-for<\/code>\u3092\u4f7f\u3063\u3066\u9078\u629e\u80a2\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<pre>&lt;option <strong>v-for=\"(sortOption,index) in sortOptions\"<\/strong> :value=\"index\" v-text=\"sortOption.text\"&gt;&lt;\/option&gt;<\/pre>\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2216\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-09-17-50-26.png\" alt=\"\" width=\"347\" height=\"296\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-09-17-50-26.png 347w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-09-17-50-26-300x256.png 300w\" sizes=\"auto, (max-width: 347px) 100vw, 347px\" \/><\/p>\n<h2>\u30e1\u30c3\u30bb\u30fc\u30b8\u90e8\u5206\u3092\u3064\u304f\u308b<\/h2>\n<p>\u7d9a\u3044\u3066\u30ea\u30cd\u30fc\u30e0\u306e\u5b8c\u4e86\u3084\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u90e8\u5206\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3068\u3044\u3063\u3066\u3082<code>data<\/code>\u306b<code>message<\/code>\u3092\u767b\u9332\u3057\u3001\u305d\u308c\u3092\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre>data: {\r\n    \/\/ \u7701\u7565\r\n    <strong>message: ''<\/strong>\r\n},<\/pre>\n<pre>&lt;div class=\"text-muted\" <strong>v-text=\"message\"<\/strong>&gt;&lt;\/div&gt;<\/pre>\n<h2>\u30ea\u30cd\u30fc\u30e0\u3059\u308b\u90e8\u5206\u3092\u3064\u304f\u308b<\/h2>\n<p>\u3067\u306f\u672c\u984c\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u30ea\u30cd\u30fc\u30e0\u3059\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<h3>\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3092\u3064\u3051\u308b<\/h3>\n<p>\u307e\u305a\u306f\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3068\u304d\u306e\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3067<code>rename()<\/code>\u304c\u5b9f\u884c\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;button style=\"position:absolute;right:15px;bottom:15px;\" class=\"btn btn-danger\" <strong>@click=\"rename()\"<\/strong>&gt;\u958b\u59cb\u3059\u308b&lt;\/button&gt;<\/pre>\n<p>\u305d\u3057\u3066\u3001<code>rename()<\/code>\u5185\u306f\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>rename() {\r\n    <strong>this.message = ''<\/strong>\r\n<strong>    if(this.folderPath == '') {<\/strong>\r\n<strong>        this.message = '[\u30a8\u30e9\u30fc] \u30d5\u30a9\u30eb\u30c0\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002'<\/strong>\r\n<strong>    }<\/strong> else if(confirm('\u9023\u756a\u30ea\u30cd\u30fc\u30e0\u3092\u5b9f\u884c\u3057\u307e\u3059\u304b\uff1f')) {\r\n        \/\/ \u3053\u3053\u3067\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\r\n    }\r\n},<\/pre>\n<p>\u3061\u306a\u307f\u306b\u3001\u30d5\u30a9\u30eb\u30c0\u304c\u9078\u629e\u3055\u308c\u3066\u306a\u3044\u5834\u5408\u306f\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2217\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-09-18-51-21.png\" alt=\"\" width=\"352\" height=\"332\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-09-18-51-21.png 352w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-09-18-51-21-300x283.png 300w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/p>\n<h3>\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u5168\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97\u3059\u308b<\/h3>\n<p>\u3067\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97\u3057\u3001\u3055\u3089\u306b\u9078\u629e\u3055\u308c\u305f\u4e26\u3073\u66ff\u3048\u9806\u3067\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u4e26\u3079\u304b\u3048\u305f\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306fElectron\uff08NodeJS\uff09\u3067\u30d5\u30a1\u30a4\u30eb\u3068\u30d1\u30b9\u3092\u64cd\u4f5c\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8<code>fs<\/code>\u3001<code>path<\/code>\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<pre><strong>const fs = require('fs')\r\nconst path = require('path')<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306f\u3001<code>getFileNames()<\/code>\u3067\u3059\u3002<\/p>\n<pre>rename() {\r\n    this.message = ''\r\n    if(this.folderPath == '') {\r\n        this.message = '[\u30a8\u30e9\u30fc] \u30d5\u30a9\u30eb\u30c0\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002'\r\n    } else if(confirm('\u9023\u756a\u30ea\u30cd\u30fc\u30e0\u3092\u5b9f\u884c\u3057\u307e\u3059\u304b\uff1f')) {\r\n        <strong>const fileNames = this.getFileNames()<\/strong>\r\n    }\r\n},<\/pre>\n<p>\u305d\u3057\u3066\u6b21\u304c\u305d\u306e\u4e2d\u8eab\u3067\u3059\u304c\u3001\u5c11\u3057\u9577\u3044\u30b3\u30fc\u30c9\u306b\u306a\u3063\u305f\u305f\u3081\u3001<code>getFileNames()<\/code>\u672c\u4f53\u3068\u3001\u4e26\u3079\u66ff\u3048\u3092\u3059\u308b<code>sortFiles()<\/code>\u306b\u5206\u5272\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>\uff08getFileNames\uff09<\/strong><\/p>\n<pre>getFileNames() {\r\n    const dir = this.folderPath\r\n<strong>    const files = fs.readdirSync(dir)<\/strong>\r\n<strong>        .filter((name) =&gt; {<\/strong>\r\n<strong>            return (fs.statSync(dir +'\/'+ name).isFile())<\/strong>\r\n<strong>        })<\/strong>\r\n<strong>        .map((name) =&gt; {<\/strong>\r\n<strong>            return {<\/strong>\r\n<strong>                name: name,<\/strong>\r\n<strong>                time: fs.statSync(dir +'\/'+ name).mtime.getTime()<\/strong>\r\n<strong>            }<\/strong>\r\n<strong>        })<\/strong>\r\n    const sortedFiles = <strong>this.sortFiles(files)<\/strong>\r\n    let fileNames = []\r\n    <strong>sortedFiles.map((file) =&gt; {<\/strong>\r\n<strong>        fileNames.push(file.name)<\/strong>\r\n<strong>    })<\/strong>\r\n    return fileNames\r\n},<\/pre>\n<p>\u307e\u305a\u3001<code>fs.readdirSync()<\/code>\u3092\u4f7f\u3063\u3066\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u30ea\u30b9\u30c8\u306e\u4e2d\u306b\u306f\u30d5\u30a9\u30eb\u30c0\u3082\u542b\u307e\u308c\u3066\u3044\u308b\u306e\u3067<code>filter<\/code>\u3092\u4f7f\u3063\u3066\u30d5\u30a9\u30eb\u30c0\u5f62\u5f0f\u306e\u3082\u306e\u3092\u9664\u5916\u3002\u305d\u3057\u3066\u3001\u4e26\u3079\u66ff\u3048\u306e\u305f\u3081\u306b<code>name<\/code>\uff08\u30d5\u30a1\u30a4\u30eb\u540d\uff09\u3068<code>time<\/code>\uff08\u5909\u66f4\u65e5\u6642\uff09\u3092\u6301\u3063\u305f\u30c7\u30fc\u30bf\u3078\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001<code>sortFiles()<\/code>\u3067\u4e26\u3079\u66ff\u3048\u3092\u3057\u3066\uff08\u6b21\u306e\u9805\u76ee\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\uff09\u3001\u6700\u5f8c\u306b\u305d\u3053\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u540d\u3060\u3051\u3092\u629c\u304d\u51fa\u3057\u3066<code>return<\/code>\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\uff08sortFiles\uff09<\/strong><\/p>\n<p>\u7d9a\u3044\u3066\u4e26\u3079\u66ff\u3048\u90e8\u5206\u3067\u3059\u3002<\/p>\n<pre>sortFiles(files) {\r\n    <strong>const sort = this.sortOptions[this.sort].value<\/strong>\r\n    let sorted\r\n    <strong>if(sort == 'name asc') {<\/strong>\r\n<strong>        sorted = files.sort((a, b) =&gt; {<\/strong>\r\n<strong>            return (b.name &lt; a.name) ? 1 : -1<\/strong>\r\n<strong>        })<\/strong>\r\n<strong>    } else if(sort == 'name desc') {<\/strong>\r\n<strong>        sorted = files.sort((a, b) =&gt; {<\/strong>\r\n<strong>            return (b.name &lt; a.name) ? -1 : 1<\/strong>\r\n<strong>        })<\/strong>\r\n<strong>    } else if(sort == 'modified asc') {<\/strong>\r\n<strong>        sorted = files.sort((a, b) =&gt; {<\/strong>\r\n<strong>            return a.time - b.time<\/strong>\r\n<strong>        })<\/strong>\r\n<strong>    } else if(sort == 'modified desc') {<\/strong>\r\n<strong>        sorted = files.sort((a, b) =&gt; {<\/strong>\r\n<strong>            return b.time - a.time<\/strong>\r\n<strong>        })<\/strong>\r\n<strong>    }<\/strong>\r\n    return sorted\r\n}<\/pre>\n<p>\u307e\u305a\u59cb\u3081\u306b\u4e26\u3079\u66ff\u3048\u306e\u65b9\u5f0f\uff08\u4f8b\u3048\u3070\u3001<code>name asc<\/code>\u306a\u3069\uff09\u3092\u53d6\u5f97\u3057\u5404\u4e26\u3079\u66ff\u3048\u8a08\u7b97\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u304b\u3089\u3001<\/p>\n<ul>\n<li>\u540d\u524d\uff08\u6607\u9806\uff09<\/li>\n<li>\u540d\u524d\uff08\u964d\u9806\uff09<\/li>\n<li>\u5909\u66f4\u65e5\u6642\uff08\u6607\u9806\uff09<\/li>\n<li>\u5909\u66f4\u65e5\u6642\uff08\u964d\u9806\uff09<\/li>\n<\/ul>\n<p>\u3067\u3059\u3002<\/p>\n<h3>\u30ea\u30cd\u30fc\u30e0\u3059\u308b<\/h3>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30ea\u30cd\u30fc\u30e0\u3059\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\nconst fileNames = this.getFileNames()\r\nconst dir = this.folderPath\r\nlet numbers = {}\r\n<strong>for(let fileName of fileNames) {<\/strong>\r\n<strong>    let originalPath = dir +'\/'+ fileName<\/strong>\r\n<strong>    let tempPath = dir +'\/temp-'+ fileName<\/strong>\r\n<strong>    fs.renameSync(originalPath, tempPath)<\/strong>\r\n<strong>}<\/strong>\r\n<strong>for(let i in fileNames) {<\/strong>\r\n<strong>    let fileName = fileNames[i]<\/strong>\r\n<strong>    let originalPath = dir +'\/temp-'+ fileName<\/strong>\r\n<strong>    let extension = path.extname(fileName)<\/strong>\r\n<strong>    if(numbers[extension] == undefined) {<\/strong>\r\n<strong>        numbers[extension] = 0<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>    numbers[extension]++<\/strong>\r\n<strong>    let fileNumber = numbers[extension]<\/strong>\r\n<strong>    let newFileName = this.numberFileName(fileNumber, extension)<\/strong>\r\n<strong>    let newPath = dir +'\/'+ newFileName<\/strong>\r\n<strong>    fs.renameSync(originalPath, newPath)<\/strong>\r\n<strong>}<\/strong>\r\nthis.message = '\u30ea\u30cd\u30fc\u30e0\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff01'\r\n\/\/ \u7701\u7565<\/pre>\n<p>\u307e\u305a\u3001\u6700\u521d\u306e<code>for<\/code>\u30eb\u30fc\u30d7\u3067\u4e00\u65e6\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u306b<code>temp-<\/code>\u3092\u3064\u3051\u3066\u30ea\u30cd\u30fc\u30e0\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u65b0\u3057\u3044\u540d\u524d\u3068\u540c\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u3068\u4e0a\u66f8\u304d\u3055\u308c\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u3053\u308c\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306e\u51e6\u7406\u3067\u3059\u3002\uff08\u672c\u5f53\u306ffor\u30eb\u30fc\u30d7\u306f\uff11\u56de\u3067\u3044\u3051\u307e\u3059\u304c\u3001\u3069\u3046\u3057\u3066\u3082\u8aac\u660e\u304c\u96e3\u3057\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u3088\u308a\u30b7\u30f3\u30d7\u30eb\u306a\u65b9\u6cd5\u3092\u9078\u3073\u307e\u3057\u305f\u3002\u3082\u3057\u51e6\u7406\u30b9\u30d4\u30fc\u30c9\u3092\u3042\u3052\u305f\u3044\u5834\u5408\u306f\u3001\u3054\u81ea\u8eab\u3067\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3057\u3066\u304f\u3060\u3055\u3044\u3002m_ _m\uff09<\/p>\n<p>\u305d\u3057\u3066\u3001\u65b0\u3057\u3044\u756a\u53f7\u3092\u3064\u3051\u305f\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u30ea\u30cd\u30fc\u30e0\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u3001\u91cd\u8981\u306a\u306e\u304c\u3001<code>numbers<\/code>\u3068\u3044\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002<br \/>\n\u3053\u308c\u306f\u3001\u62e1\u5f35\u5b50\u3054\u3068\u306b\u756a\u53f7\u3092\u7ba1\u7406\u3057\u3066\u3044\u3066\u3001\u540c\u3058\u62e1\u5f35\u5b50\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u308b\u3068\u6570\u5b57\u3092\uff11\u3064\u8db3\u3057\u3066\u305d\u3053\u304b\u3089\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u3064\u304f\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><strong>{<\/strong>\r\n<strong>    '.jpg': 1,<\/strong>\r\n<strong>    '.png': 5,<\/strong>\r\n<strong>    '.pdf': 3<\/strong>\r\n<strong>}<\/strong><\/pre>\n<h1>\u6559\u6750\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h1>\n<p>\u4eca\u56de\u5b9f\u969b\u306b\u958b\u767a\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u203b \u305f\u3060\u3057\u3001\u3042\u304f\u307e\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u7d39\u4ecb\u306e\u305f\u3081\u306b\u4f5c\u6210\u3057\u305f\u3082\u306e\u3067\u3059\u306e\u3067\u3001\u5b9f\u969b\u554f\u984c\u3042\u307e\u308a\u30c6\u30b9\u30c8\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u91cd\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u8a66\u3055\u306a\u3044\u3088\u3046\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/blog.capilano-fw.com?download=2220&amp;tmstv=1777547163\" rel=\"nofollow\" id=\"download-link-2220\" data-redirect=\"false\" >\n\tElectron \u3067\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u9023\u756a\u30ea\u30cd\u30fc\u30e0<\/a>\n\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u5c11\u3057\u524d\u306b\u516c\u958b\u3057\u305f\u8a18\u4e8b\u00a0Electron \u753b\u50cf\u3092\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3059\u308b\u3060\u3051\u3067\u30ea\u30b5\u30a4\u30ba\u3059\u308b\u30a2\u30d7\u30ea\u3092\u3064\u304f\u308b\u00a0\u3092\u66f8\u3044\u3066\u3044\u3066\u611f\u3058\u3066\u3044\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 \u305d\u308c\u306f\u3001 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=2209\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Electron \u3067\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u9023\u756a\u3067\u30ea\u30cd\u30fc\u30e0\u3059\u308b\u30a2\u30d7\u30ea\u3092\u3064\u304f\u308b\uff08\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":2227,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,12,97],"tags":[110],"class_list":["post-2209","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electron","category-vue-js","category-97","tag-110"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/2209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2209"}],"version-history":[{"count":9,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/2209\/revisions"}],"predecessor-version":[{"id":6246,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/2209\/revisions\/6246"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/2227"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}