From 04209182c1e40cfa2f38f86046aea8e62ee8879b Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 19 Aug 2019 21:55:08 +0200 Subject: [PATCH] options dialog view split up --- src/views/dialogs/options.ejs | 227 ++---------------- src/views/dialogs/options/advanced.ejs | 25 ++ src/views/dialogs/options/appearance.ejs | 86 +++++++ src/views/dialogs/options/change_password.ejs | 20 ++ src/views/dialogs/options/note_revisions.ejs | 18 ++ .../dialogs/options/protected_session.ejs | 19 ++ src/views/dialogs/options/sidebar.ejs | 3 + src/views/dialogs/options/sync.ejs | 36 +++ 8 files changed, 223 insertions(+), 211 deletions(-) create mode 100644 src/views/dialogs/options/advanced.ejs create mode 100644 src/views/dialogs/options/appearance.ejs create mode 100644 src/views/dialogs/options/change_password.ejs create mode 100644 src/views/dialogs/options/note_revisions.ejs create mode 100644 src/views/dialogs/options/protected_session.ejs create mode 100644 src/views/dialogs/options/sidebar.ejs create mode 100644 src/views/dialogs/options/sync.ejs diff --git a/src/views/dialogs/options.ejs b/src/views/dialogs/options.ejs index 87231869b..efce20784 100644 --- a/src/views/dialogs/options.ejs +++ b/src/views/dialogs/options.ejs @@ -11,231 +11,36 @@

-
-

Settings on this options tab are saved automatically after each change.

- -
-
-
- - -
- -
- - - -
- -
- - -
-
- -

Zooming can be controlled with CTRL-+ and CTRL-= shortcuts as well.

- -

Font sizes

- -
-
- - -
- -
- % -
-
-
- -
- - -
- -
- % -
-
-
- -
- - -
- -
- % -
-
-
-
- -

Note that tree and detail font sizing is relative to the main font size setting.

- -

Left pane sizing

- -
-
- - - -
- -
- - - -
-
- -

Left pane width is calculated from the percent of window size, if this is smaller than minimum width, then minimum width is used. If you want to have fixed width left pane, set minimum width to the desired width and set percent to 0.

- -
-
- -
-
-
- - -
- -
- - -
- -
- - -
- - -
-
- -
-

Protected session timeout is a time period after which the protected session is wiped out from - browser's memory. This is measured from the last interaction with protected notes.

- -
-
- - -
- -
- - - -
-
-
- -
-

Note revision snapshot time interval is time in seconds after which new note revision will be created for the note.

- -
-
- - -
- -
- - - -
-
-
- -
-

Sync configuration

- -
-
- - -
- -
- - -
- -
- - - -

Note: If you leave proxy setting blank, system proxy will be used (applies to desktop/electron build only)

-
- -
- - - -
-
- -
- -

Sync test

- -

This will test connection and handshake to the sync server. If sync server isn't initialized, this will set it up to sync with local document.

- - -
- -
-

Sync

- - -
-
- - - -
-
- -

Debugging

- -

- -

This action will create a new copy of the database and anonymise it (remove all note content and leave only structure and metadata) - for sharing online for debugging purposes without fear of leaking your personal data.

- -

Vacuum database

- -

This will rebuild database which will typically result in smaller database file. No data will be actually changed.

- - -
+ <% include options/appearance.ejs %> + <% include options/sidebar.ejs %> + <% include options/change_password.ejs %> + <% include options/protected_session.ejs %> + <% include options/note_revisions.ejs %> + <% include options/sync.ejs %> + <% include options/advanced.ejs %>
diff --git a/src/views/dialogs/options/advanced.ejs b/src/views/dialogs/options/advanced.ejs new file mode 100644 index 000000000..a3f9c79a9 --- /dev/null +++ b/src/views/dialogs/options/advanced.ejs @@ -0,0 +1,25 @@ +
+

Sync

+ + +
+
+ + + +
+
+ +

Debugging

+ +

+ +

This action will create a new copy of the database and anonymise it (remove all note content and leave only structure and metadata) + for sharing online for debugging purposes without fear of leaking your personal data.

+ +

Vacuum database

+ +

This will rebuild database which will typically result in smaller database file. No data will be actually changed.

+ + +
\ No newline at end of file diff --git a/src/views/dialogs/options/appearance.ejs b/src/views/dialogs/options/appearance.ejs new file mode 100644 index 000000000..f5f6330e1 --- /dev/null +++ b/src/views/dialogs/options/appearance.ejs @@ -0,0 +1,86 @@ +
+

Settings on this options tab are saved automatically after each change.

+ +
+
+
+ + +
+ +
+ + + +
+ +
+ + +
+
+ +

Zooming can be controlled with CTRL-+ and CTRL-= shortcuts as well.

+ +

Font sizes

+ +
+
+ + +
+ +
+ % +
+
+
+ +
+ + +
+ +
+ % +
+
+
+ +
+ + +
+ +
+ % +
+
+
+
+ +

Note that tree and detail font sizing is relative to the main font size setting.

+ +

Left pane sizing

+ +
+
+ + + +
+ +
+ + + +
+
+ +

Left pane width is calculated from the percent of window size, if this is smaller than minimum width, then minimum width is used. If you want to have fixed width left pane, set minimum width to the desired width and set percent to 0.

+ +
+
\ No newline at end of file diff --git a/src/views/dialogs/options/change_password.ejs b/src/views/dialogs/options/change_password.ejs new file mode 100644 index 000000000..a092a9ee5 --- /dev/null +++ b/src/views/dialogs/options/change_password.ejs @@ -0,0 +1,20 @@ +
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+
\ No newline at end of file diff --git a/src/views/dialogs/options/note_revisions.ejs b/src/views/dialogs/options/note_revisions.ejs new file mode 100644 index 000000000..09e538a6f --- /dev/null +++ b/src/views/dialogs/options/note_revisions.ejs @@ -0,0 +1,18 @@ +
+

Note revisions snapshot interval

+ +

Note revision snapshot time interval is time in seconds after which new note revision will be created for the note.

+ +
+
+ + +
+ +
+ + + +
+
+
\ No newline at end of file diff --git a/src/views/dialogs/options/protected_session.ejs b/src/views/dialogs/options/protected_session.ejs new file mode 100644 index 000000000..ca361c9ef --- /dev/null +++ b/src/views/dialogs/options/protected_session.ejs @@ -0,0 +1,19 @@ +
+

Protected session timeout

+ +

Protected session timeout is a time period after which the protected session is wiped out from + browser's memory. This is measured from the last interaction with protected notes.

+ +
+
+ + +
+ +
+ + + +
+
+
\ No newline at end of file diff --git a/src/views/dialogs/options/sidebar.ejs b/src/views/dialogs/options/sidebar.ejs new file mode 100644 index 000000000..1bbbd8823 --- /dev/null +++ b/src/views/dialogs/options/sidebar.ejs @@ -0,0 +1,3 @@ +
+ Hi! +
\ No newline at end of file diff --git a/src/views/dialogs/options/sync.ejs b/src/views/dialogs/options/sync.ejs new file mode 100644 index 000000000..89bdaeb49 --- /dev/null +++ b/src/views/dialogs/options/sync.ejs @@ -0,0 +1,36 @@ +
+

Sync configuration

+ +
+
+ + +
+ +
+ + +
+ +
+ + + +

Note: If you leave proxy setting blank, system proxy will be used (applies to desktop/electron build only)

+
+ +
+ + + +
+
+ +
+ +

Sync test

+ +

This will test connection and handshake to the sync server. If sync server isn't initialized, this will set it up to sync with local document.

+ + +
\ No newline at end of file