@@ -89,6 +89,82 @@ export const CLUE_LIGHT_MODAL_CONTENT = (
89
89
id : "light_sensor" ,
90
90
} ;
91
91
} ;
92
+ export const CLUE_HUMIDITY_MODAL_CONTENT = (
93
+ onUpdateValue : ( sensor : SENSOR_LIST , value : number ) => void ,
94
+ sensorValues : { [ key : string ] : number }
95
+ ) : IModalContent => {
96
+ return {
97
+ descriptionTitle : "toolbar-light-sensor.title" ,
98
+ tagInput : TAG_INPUT_SVG ,
99
+ tagOutput : undefined ,
100
+ descriptionText : "toolbar-light-sensor.description" ,
101
+ tryItDescription : "toolbar-light-sensor.tryItDescription" ,
102
+ components : [
103
+ < LightSensorBar
104
+ onUpdateValue = { onUpdateValue }
105
+ value = { sensorValues [ SENSOR_LIST . LIGHT ] }
106
+ /> ,
107
+ ] ,
108
+ id : "light_sensor" ,
109
+ } ;
110
+ } ;
111
+ export const CLUE_GESTURE_MODAL_CONTENT = (
112
+ onUpdateValue : ( sensor : SENSOR_LIST , value : number ) => void ,
113
+ sensorValues : { [ key : string ] : number }
114
+ ) : IModalContent => {
115
+ return {
116
+ descriptionTitle : "toolbar-light-sensor.title" ,
117
+ tagInput : TAG_INPUT_SVG ,
118
+ tagOutput : undefined ,
119
+ descriptionText : "toolbar-light-sensor.description" ,
120
+ tryItDescription : "toolbar-light-sensor.tryItDescription" ,
121
+ components : [
122
+ < LightSensorBar
123
+ onUpdateValue = { onUpdateValue }
124
+ value = { sensorValues [ SENSOR_LIST . LIGHT ] }
125
+ /> ,
126
+ ] ,
127
+ id : "light_sensor" ,
128
+ } ;
129
+ } ;
130
+ export const CLUE_PROXIMITY_MODAL_CONTENT = (
131
+ onUpdateValue : ( sensor : SENSOR_LIST , value : number ) => void ,
132
+ sensorValues : { [ key : string ] : number }
133
+ ) : IModalContent => {
134
+ return {
135
+ descriptionTitle : "toolbar-light-sensor.title" ,
136
+ tagInput : TAG_INPUT_SVG ,
137
+ tagOutput : undefined ,
138
+ descriptionText : "toolbar-light-sensor.description" ,
139
+ tryItDescription : "toolbar-light-sensor.tryItDescription" ,
140
+ components : [
141
+ < LightSensorBar
142
+ onUpdateValue = { onUpdateValue }
143
+ value = { sensorValues [ SENSOR_LIST . LIGHT ] }
144
+ /> ,
145
+ ] ,
146
+ id : "light_sensor" ,
147
+ } ;
148
+ } ;
149
+ export const CLUE_PRESSURE_MODAL_CONTENT = (
150
+ onUpdateValue : ( sensor : SENSOR_LIST , value : number ) => void ,
151
+ sensorValues : { [ key : string ] : number }
152
+ ) : IModalContent => {
153
+ return {
154
+ descriptionTitle : "toolbar-light-sensor.title" ,
155
+ tagInput : TAG_INPUT_SVG ,
156
+ tagOutput : undefined ,
157
+ descriptionText : "toolbar-light-sensor.description" ,
158
+ tryItDescription : "toolbar-light-sensor.tryItDescription" ,
159
+ components : [
160
+ < LightSensorBar
161
+ onUpdateValue = { onUpdateValue }
162
+ value = { sensorValues [ SENSOR_LIST . LIGHT ] }
163
+ /> ,
164
+ ] ,
165
+ id : "light_sensor" ,
166
+ } ;
167
+ } ;
92
168
export const CLUE_BUTTON_CONTENT = (
93
169
onUpdateValue : ( sensor : SENSOR_LIST , value : number ) => void ,
94
170
sensorValues : { [ key : string ] : number }
@@ -103,21 +179,23 @@ export const CLUE_BUTTON_CONTENT = (
103
179
id : "microbit_button" ,
104
180
} ;
105
181
} ;
106
- export const MICROBIT_SOUND_MODAL_CONTENT = (
182
+
183
+ export const CLUE_BLUETOOTH_CONTENT = (
107
184
onUpdateValue : ( sensor : SENSOR_LIST , value : number ) => void ,
108
185
sensorValues : { [ key : string ] : number }
109
186
) : IModalContent => {
110
187
return {
111
- descriptionTitle : "toolbar-microbit-sound .title" ,
188
+ descriptionTitle : "toolbar-microbit-a-b-push .title" ,
112
189
tagInput : undefined ,
113
- tagOutput : TAG_OUTPUT_SVG ,
114
- descriptionText : "toolbar-microbit-sound .description" ,
115
- tryItDescription : "toolbar-microbit-sound .tryItDescription" ,
116
- components : [ FEATURE_REQUEST_ON_GITHUB ] ,
117
- id : "microbit_sound " ,
190
+ tagOutput : TAG_INPUT_SVG ,
191
+ descriptionText : "toolbar-microbit-a-b-push .description" ,
192
+ tryItDescription : "toolbar-microbit-a-b-push .tryItDescription" ,
193
+ components : undefined ,
194
+ id : "microbit_button " ,
118
195
} ;
119
196
} ;
120
- export const SPEAKER_MODAL_CONTENT = (
197
+
198
+ export const CLUE_SOUND_MODAL_CONTENT = (
121
199
onUpdateValue : ( sensor : SENSOR_LIST , value : number ) => void ,
122
200
sensorValues : { [ key : string ] : number }
123
201
) : IModalContent => {
@@ -131,7 +209,7 @@ export const SPEAKER_MODAL_CONTENT = (
131
209
id : "speaker" ,
132
210
} ;
133
211
} ;
134
- export const MICROBIT_LED_CONTENT = (
212
+ export const CLUE_LED_CONTENT = (
135
213
onUpdateValue : ( sensor : SENSOR_LIST , value : number ) => void ,
136
214
sensorValues : { [ key : string ] : number }
137
215
) : IModalContent => {
0 commit comments