File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change
1
+ import ( '/pages/src/fields.mjs' ) . then ( module => {
2
+ module . fieldGroupNames [ 'bike' ] = 'Bike/Trainer' ;
3
+ module . fields . push ( {
4
+ group : 'bike' ,
5
+ id : 'bike-gear' ,
6
+ key : 'Gear' ,
7
+ value : ( ) => Math . random ( ) * 22 + 1 | 0 ,
8
+ } ) ;
9
+ } ) ;
10
+
11
+ if ( electron . context . type === 'watching' ) {
12
+ import ( '/pages/src/watching.mjs' ) . then ( module => {
13
+ module . groupSpecs . bike = {
14
+ title : 'Bike/Trainer' ,
15
+ fields : [ {
16
+ id : 'bike-gear' ,
17
+ longName : 'Virtual Gear' ,
18
+ value : x => Math . random ( ) * 22 + 1 | 0 ,
19
+ key : 'Gear' ,
20
+ label : 'gear' ,
21
+ } ] ,
22
+ } ;
23
+ } ) ;
24
+ }
Original file line number Diff line number Diff line change 3
3
"name" : " The Neato Mod" ,
4
4
"description" : " I make things neato" ,
5
5
"author" : " Justin Mayfield" ,
6
- "website_url" : " https://saucellc.io " ,
7
- "version" : " 0.0.1 " ,
6
+ "website_url" : " https://www.sauce.llc " ,
7
+ "version" : " 0.0.2 " ,
8
8
"content_js" : [
9
9
" contents/run_everywhere.js" ,
10
+ " contents/add_a_data_field.js" ,
10
11
" contents/theme.js"
11
12
],
12
13
"content_css" : [
You can’t perform that action at this time.
0 commit comments