diff options
author | Phie <phie@phie.ovh> | 2018-11-12 20:41:18 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2018-11-12 20:41:18 +0300 |
commit | fb5fb39b3ded0ba8bad1642e536b8f32930c232e (patch) | |
tree | 5b595b82297c469ec688e0542584fbb700f7d375 /utils | |
parent | 450bb225681761abaa723d2f3c9e24d72f072ca8 (diff) |
fixing note importer
Diffstat (limited to 'utils')
-rw-r--r-- | utils/folder-picker.html | 59 |
1 files changed, 33 insertions, 26 deletions
diff --git a/utils/folder-picker.html b/utils/folder-picker.html index e3e7969..a61505b 100644 --- a/utils/folder-picker.html +++ b/utils/folder-picker.html @@ -18,55 +18,62 @@ <body> <style> - .icon{ - width:20px; - margin:5px; - margin-right:10px; + .icon { + width: 20px; + margin: 5px; + margin-right: 10px; } - .value{ + + .value { display: none; } - .mdl-data-table{ + + .mdl-data-table { width: 400px; } - .settings-button{ + + .settings-button { cursor: pointer; } - .centered-container{ + + .centered-container { margin-top: 15px; - margin-left:calc(50% - 200px); - width:400px; + margin-left: calc(50% - 200px); + width: 400px; } - </style> - + </style> + <div id="note-selection-view"> <div class="centered-container"> - <button class="mdl-button mdl-js-button mdl-button--raised import-button" style="width:400px"> + <button class="mdl-button mdl-js-button mdl-button--raised import-button" style="width:400px"> Pick folder </button> </div> <div class="centered-container"> - - <div id="progress-view"> - Loading notes list - <div id="p2" style="margin:auto" class="mdl-progress mdl-js-progress mdl-progress__indeterminate"></div> - </div> + + <div id="progress-view"> + Loading notes list + <div id="p2" style="margin:auto" class="mdl-progress mdl-js-progress mdl-progress__indeterminate"></div> </div> + </div> <div id="table-container" class="centered-container"> - + </div> <div class="centered-container" style="margin-bottom:10px;"> - <button class="mdl-button mdl-js-button mdl-button--raised import-button" style="width:400px"> - Pick folder - </button> + <button class="mdl-button mdl-js-button mdl-button--raised import-button" style="width:400px"> + Pick folder + </button> </div> - + </div> <script> - var folderPicker = new FolderPicker(); -folderPicker.listPath("/home/phoenamandre/") -</script> + var { + remote + } = require('electron') + var folderPicker = new FolderPicker(); + folderPicker.listPath(remote.app.getPath("home")) + </script> </body> |