@@ -14,49 +14,49 @@ module.exports = [
1414 label : "Empty" ,
1515 click : ( menuItem , currentWindow ) => {
1616 currentWindow . webContents . send ( "new-file" , { } )
17- }
17+ } ,
1818 } ,
1919 {
2020 label : "Computer Vision" ,
2121 click : ( menuItem , currentWindow ) => {
2222 currentWindow . webContents . send ( "new-file" , {
23- templateName : menuItem . label
23+ templateName : menuItem . label ,
2424 } )
25- }
25+ } ,
2626 } ,
2727 {
2828 label : "Data Entry" ,
2929 click : ( menuItem , currentWindow ) => {
3030 currentWindow . webContents . send ( "new-file" , {
31- templateName : menuItem . label
31+ templateName : menuItem . label ,
3232 } )
33- }
33+ } ,
3434 } ,
3535 {
3636 label : "Natural Language" ,
3737 click : ( menuItem , currentWindow ) => {
3838 currentWindow . webContents . send ( "new-file" , {
39- templateName : menuItem . label
39+ templateName : menuItem . label ,
4040 } )
41- }
41+ } ,
4242 } ,
4343 {
4444 label : "Audio Transcription" ,
4545 click : ( menuItem , currentWindow ) => {
4646 currentWindow . webContents . send ( "new-file" , {
47- templateName : menuItem . label
47+ templateName : menuItem . label ,
4848 } )
49- }
49+ } ,
5050 } ,
5151 {
5252 label : "Composite" ,
5353 click : ( menuItem , currentWindow ) => {
5454 currentWindow . webContents . send ( "new-file" , {
55- templateName : menuItem . label
55+ templateName : menuItem . label ,
5656 } )
57- }
58- }
59- ]
57+ } ,
58+ } ,
59+ ] ,
6060 } ,
6161 {
6262 role : "open" ,
@@ -70,69 +70,69 @@ module.exports = [
7070 currentWindow . webContents . send ( "open-file" , {
7171 name : path . basename ( filePaths [ 0 ] ) ,
7272 path : filePaths [ 0 ] ,
73- content : fs . readFileSync ( filePaths [ 0 ] ) . toString ( )
73+ content : fs . readFileSync ( filePaths [ 0 ] ) . toString ( ) ,
7474 } )
7575 } )
76- }
76+ } ,
7777 } ,
7878 {
7979 role : "copy" ,
8080 label : "Copy" ,
8181 accelerator : "CommandOrControl+C" ,
82- selector : "copy:"
82+ selector : "copy:" ,
8383 } ,
8484 {
8585 role : "paste" ,
8686 label : "Paste" ,
8787 accelerator : "CommandOrControl+V" ,
88- selector : "paste:"
88+ selector : "paste:" ,
8989 } ,
9090 {
9191 role : "selectAll" ,
9292 label : "Select All" ,
9393 accelerator : "CommandOrControl+A" ,
94- selector : "selectAll:"
94+ selector : "selectAll:" ,
9595 } ,
9696 {
9797 role : "cut" ,
9898 label : "Cut" ,
9999 accelerator : "CommandOrControl+X" ,
100- selector : "cut:"
100+ selector : "cut:" ,
101101 } ,
102102 {
103103 role : "undo" ,
104104 label : "Undo" ,
105105 accelerator : "CommandOrControl+Z" ,
106- selector : "undo:"
106+ selector : "undo:" ,
107107 } ,
108108 {
109109 role : "save" ,
110110 accelerator : "CommandOrControl+S" ,
111111 label : "Save" ,
112112 click : ( menuItem , currentWindow ) => {
113113 currentWindow . webContents . send ( "save-file" )
114- }
114+ } ,
115115 } ,
116116 {
117117 role : "save" ,
118118 accelerator : "CommandOrControl+Shift+S" ,
119119 label : "Save As" ,
120120 click : ( menuItem , currentWindow ) => {
121121 currentWindow . webContents . send ( "save-file-as" )
122- }
122+ } ,
123123 } ,
124124 {
125125 role : "export" ,
126126 label : "Export CSV" ,
127127 click : ( menuItem , currentWindow ) => {
128128 currentWindow . webContents . send ( "export-to-csv" )
129- }
129+ } ,
130130 } ,
131131 { type : "separator" } ,
132132 {
133- role : "quit"
134- }
135- ]
133+ role : "quit" ,
134+ } ,
135+ ] ,
136136 } ,
137137 {
138138 label : "Edit" ,
@@ -141,33 +141,33 @@ module.exports = [
141141 role : "copy" ,
142142 label : "Copy" ,
143143 accelerator : "CommandOrControl+C" ,
144- selector : "copy:"
144+ selector : "copy:" ,
145145 } ,
146146 {
147147 role : "paste" ,
148148 label : "Paste" ,
149149 accelerator : "CommandOrControl+V" ,
150- selector : "paste:"
150+ selector : "paste:" ,
151151 } ,
152152 {
153153 role : "selectAll" ,
154154 label : "Select All" ,
155155 accelerator : "CommandOrControl+A" ,
156- selector : "selectAll:"
156+ selector : "selectAll:" ,
157157 } ,
158158 {
159159 role : "cut" ,
160160 label : "Cut" ,
161161 accelerator : "CommandOrControl+X" ,
162- selector : "cut:"
162+ selector : "cut:" ,
163163 } ,
164164 {
165165 role : "undo" ,
166166 label : "Undo" ,
167167 accelerator : "CommandOrControl+Z" ,
168- selector : "undo:"
168+ selector : "undo:" ,
169169 } ,
170- ]
170+ ] ,
171171 } ,
172172 {
173173 label : "Navigate" ,
@@ -176,9 +176,9 @@ module.exports = [
176176 label : "Welcome Page" ,
177177 click : ( menuItem , currentWindow ) => {
178178 currentWindow . webContents . send ( "open-welcome-page" )
179- }
180- }
181- ]
179+ } ,
180+ } ,
181+ ] ,
182182 } ,
183183 {
184184 label : "About" ,
@@ -189,12 +189,12 @@ module.exports = [
189189 shell . openItem (
190190 "https://github.com/openhumanannotation/universal-data-tool"
191191 )
192- }
193- }
194- ]
192+ } ,
193+ } ,
194+ ] ,
195195 } ,
196196 {
197197 label : "Debug" ,
198- submenu : [ { role : "reload" } , { role : "toggledevtools" } ]
199- }
198+ submenu : [ { role : "reload" } , { role : "toggledevtools" } ] ,
199+ } ,
200200]
0 commit comments