File tree 5 files changed +123
-55
lines changed
5 files changed +123
-55
lines changed Original file line number Diff line number Diff line change 49
49
"image-type" : " 4.1.0" ,
50
50
"ini" : " 2.0.0" ,
51
51
"is-animated" : " ^2.0.1" ,
52
- "is-svg" : " 4.2.2 " ,
52
+ "is-svg" : " 4.3.1 " ,
53
53
"jimp" : " 0.16.1" ,
54
54
"jsdom" : " 16.5.1" ,
55
55
"mime-types" : " 2.1.29" ,
56
56
"multer" : " 1.4.2" ,
57
57
"node-abi" : " 2.21.0" ,
58
- "open" : " 8.0.2 " ,
58
+ "open" : " 8.0.3 " ,
59
59
"portscanner" : " 2.2.0" ,
60
60
"rand-token" : " 1.0.1" ,
61
61
"request" : " ^2.88.2" ,
62
62
"rimraf" : " 3.0.2" ,
63
63
"sanitize-filename" : " 1.6.3" ,
64
- "sanitize-html" : " 2.3.2 " ,
64
+ "sanitize-html" : " 2.3.3 " ,
65
65
"sax" : " 1.2.4" ,
66
66
"semver" : " 7.3.4" ,
67
67
"serve-favicon" : " 2.5.0" ,
83
83
"electron-packager" : " 15.2.0" ,
84
84
"electron-rebuild" : " 2.3.5" ,
85
85
"esm" : " 3.2.25" ,
86
- "jasmine" : " 3.6.4 " ,
86
+ "jasmine" : " 3.7.0 " ,
87
87
"jsdoc" : " 3.6.6" ,
88
88
"lorem-ipsum" : " 2.0.3" ,
89
89
"rcedit" : " 3.0.0" ,
90
- "webpack" : " 5.25 .0" ,
90
+ "webpack" : " 5.27 .0" ,
91
91
"webpack-cli" : " 4.5.0"
92
92
},
93
93
"optionalDependencies" : {
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import ImagePropertiesWidget from "../widgets/type_property_widgets/image_proper
33
33
import NotePropertiesWidget from "../widgets/type_property_widgets/note_properties.js" ;
34
34
import NoteIconWidget from "../widgets/note_icon.js" ;
35
35
import SearchResultWidget from "../widgets/search_result.js" ;
36
+ import SyncStatusWidget from "../widgets/sync_status.js" ;
36
37
37
38
const RIGHT_PANE_CSS = `
38
39
<style>
@@ -141,6 +142,7 @@ export default class DesktopMainWindowLayout {
141
142
. child ( new FlexContainer ( 'row' ) . overflowing ( )
142
143
. css ( 'height' , '36px' )
143
144
. child ( new GlobalMenuWidget ( ) )
145
+ . child ( new SyncStatusWidget ( ) )
144
146
. child ( new TabRowWidget ( ) )
145
147
. child ( new TitleBarButtonsWidget ( ) ) )
146
148
. child ( new StandardTopWidget ( )
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ const TPL = `
63
63
<span class="caret"></span>
64
64
</button>
65
65
<div class="dropdown-menu dropdown-menu-right">
66
- <a data-trigger-command="renderActiveNote" class="dropdown-item render-note-button">Re-render note</a>
66
+ <a data-trigger-command="renderActiveNote" class="dropdown-item render-note-button"><kbd data-command="renderActiveNote"></kbd> Re-render note</a>
67
67
<div class="dropdown-item protect-button">
68
68
Protect the note
69
69
Original file line number Diff line number Diff line change
1
+ import BasicWidget from "./basic_widget.js" ;
2
+ import utils from "../services/utils.js" ;
3
+ import syncService from "../services/sync.js" ;
4
+
5
+ const TPL = `
6
+ <div class="sync-status-wrapper">
7
+ <style>
8
+ .sync-status-wrapper {
9
+ height: 35px;
10
+ box-sizing: border-box;
11
+ border-bottom: 1px solid var(--main-border-color);
12
+ }
13
+
14
+ .sync-status {
15
+ height: 34px;
16
+ box-sizing: border-box;
17
+ }
18
+
19
+ .sync-status button {
20
+ margin-right: 5px;
21
+ margin-left: 5px;
22
+ height: 34px;
23
+ border: none;
24
+ font-size: 180%;
25
+ padding-left: 10px;
26
+ padding-right: 10px;
27
+ }
28
+
29
+ .sync-status button span {
30
+ position: relative;
31
+ top: -5px;
32
+ }
33
+
34
+ .sync-status button:hover {
35
+ background-color: var(--hover-item-background-color);
36
+ }
37
+
38
+ .sync-status .dropdown-menu {
39
+ width: 20em;
40
+ }
41
+ </style>
42
+
43
+ <div class="sync-status">
44
+ <button type="button" class="btn btn-sm" title="Sync status">
45
+ <span class="bx bx-badge-check"></span>
46
+ <!-- <span class="bx bx-cloud-upload"></span>-->
47
+ <!-- <span class="bx bx-sync bx-spin bx-flip-horizontal"></span>-->
48
+ </button>
49
+ </div>
50
+ </div>
51
+ ` ;
52
+
53
+ export default class SyncStatusWidget extends BasicWidget {
54
+ doRender ( ) {
55
+ this . $widget = $ ( TPL ) ;
56
+ this . overflowing ( ) ;
57
+ }
58
+ }
You can’t perform that action at this time.
0 commit comments