Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PhieF/CarnetElectron.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2018-04-08 16:57:58 +0300
committerPhie <phie@phie.ovh>2018-04-08 16:57:58 +0300
commit610be6423ed3c4e500affbb6743c3538ffa7222f (patch)
tree30ac1b53c1b183dbfb14b9f8dc35649ff6e0cd7b /settings
parent54f4328a0c613351e426752523c5bcbcd9f2c8e4 (diff)
changing sync how to url
Diffstat (limited to 'settings')
-rw-r--r--settings/index.html62
-rw-r--r--settings/settings.js10
2 files changed, 41 insertions, 31 deletions
diff --git a/settings/index.html b/settings/index.html
index e70011f..09b2523 100644
--- a/settings/index.html
+++ b/settings/index.html
@@ -20,15 +20,16 @@
<body>
<style>
- .settings-button{
+ .settings-button {
cursor: pointer;
}
- .settings-box{
+
+ .settings-box {
margin-top: 15px;
- margin-left:calc(50% - 200px);
- width:400px;
+ margin-left: calc(50% - 200px);
+ width: 400px;
}
- </style>
+ </style>
<!-- The drawer is always open in large screens. The header is always shown,
even in small screens. -->
@@ -36,10 +37,10 @@
mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
-
+
<span class="mdl-layout-title">Settings</span>
<div class="mdl-layout-spacer"></div>
-
+
</header>
<div class="mdl-layout__drawer">
<nav class="mdl-navigation">
@@ -49,33 +50,34 @@
</nav>
</div>
<main class="mdl-layout__content" id="page-container" style="text-align:center;">
-
- <table class="mdl-data-table mdl-js-data-table mdl-data-table--selectable mdl-shadow--2dp settings-box" style="">
-
- <tr>
- <td class="mdl-data-table__cell--non-numeric settings-button" id="select_note_path_button">
- Select note path <br />
- <span id="current_root_path"></span>
- </td>
- </tr>
- <tr>
- <td class="mdl-data-table__cell--non-numeric settings-button">
- Cloud sync
- </td>
- </tr>
- <tr>
- <td class="mdl-data-table__cell--non-numeric settings-button" id="import">
- Import from Google Keep
- </td>
- </tr>
-
- </table>
-
+ <table class="mdl-data-table mdl-js-data-table mdl-data-table--selectable mdl-shadow--2dp settings-box" style="">
+
+ <tr>
+ <td class="mdl-data-table__cell--non-numeric settings-button" id="select_note_path_button">
+ Select note path
+ <br />
+ <span id="current_root_path"></span>
+ </td>
+ </tr>
+ <tr>
+ <td class="mdl-data-table__cell--non-numeric settings-button" id="cloudsync">
+ Cloud sync
+ </td>
+ </tr>
+ <tr>
+ <td class="mdl-data-table__cell--non-numeric settings-button" id="import">
+ Import from Google Keep
+ </td>
+ </tr>
+
+ </table>
+
+
</main>
<script src="settings.js">
</script>
- </div>
+ </div>
</body>
</html> \ No newline at end of file
diff --git a/settings/settings.js b/settings/settings.js
index 3327136..f5cbc6d 100644
--- a/settings/settings.js
+++ b/settings/settings.js
@@ -2,7 +2,8 @@ var SettingsHelper = require("./settings_helper").SettingsHelper;
var settingsHelper = new SettingsHelper();
var {
ipcRenderer,
- remote
+ remote,
+ shell
} = require('electron');
document.getElementById("select_note_path_button").onclick = function () {
var dialog = remote.dialog;
@@ -13,7 +14,14 @@ document.getElementById("select_note_path_button").onclick = function () {
settingsHelper.setNotePath(path)
})
}
+
document.getElementById("current_root_path").innerHTML = settingsHelper.getNotePath()
+
+document.getElementById("cloudsync").onclick = function () {
+ shell.openExternal('https://github.com/PhieF/QuickDocDocumentation/blob/master/CloudSync.md');
+ return false;
+};
+
const BrowserWindow = remote.BrowserWindow;
document.getElementById("import").onclick = function () {
var win = new BrowserWindow({