@@ -20,11 +20,11 @@ export const CLUE_TEMPERATURE_MODAL_CONTENT = (
20
20
/> ,
21
21
] ,
22
22
descriptionText : "toolbar-clue-temperature-sensor.description" ,
23
- descriptionTitle : "toolbar-temperature-sensor.title" ,
23
+ descriptionTitle : "toolbar-clue- temperature-sensor.title" ,
24
24
id : "temperature" ,
25
25
tagInput : TAG_INPUT_SVG ,
26
26
tagOutput : undefined ,
27
- tryItDescription : "toolbar-temperature-sensor.tryItDescription" ,
27
+ tryItDescription : "toolbar-clue- temperature-sensor.tryItDescription" ,
28
28
} ;
29
29
} ;
30
30
@@ -33,11 +33,11 @@ export const CLUE_GPIO_MODAL_CONTENT = (
33
33
sensorValues : { [ key : string ] : number }
34
34
) : IModalContent => {
35
35
return {
36
- descriptionTitle : "toolbar-gpio.title" ,
36
+ descriptionTitle : "toolbar-clue- gpio.title" ,
37
37
tagInput : TAG_INPUT_SVG ,
38
38
tagOutput : TAG_OUTPUT_SVG ,
39
- descriptionText : "toolbar-gpio.description" ,
40
- tryItDescription : "toolbar-gpio.tryItDescription" ,
39
+ descriptionText : "toolbar-clue- gpio.description" ,
40
+ tryItDescription : "toolbar-clue- gpio.tryItDescription" ,
41
41
components : undefined ,
42
42
id : "GPIO" ,
43
43
} ;
@@ -58,12 +58,12 @@ export const CLUE_ACCELEROMETER_MODAL_CONTENT = (
58
58
axisValues = { accelerometerSensorValues }
59
59
/>
60
60
) ,
61
- descriptionText : "toolbar-accelerometer-sensor.description" ,
62
- descriptionTitle : "toolbar-accelerometer-sensor.title" ,
61
+ descriptionText : "toolbar-clue- accelerometer-sensor.description" ,
62
+ descriptionTitle : "toolbar-clue- accelerometer-sensor.title" ,
63
63
id : "accelerometer" ,
64
64
tagInput : TAG_INPUT_SVG ,
65
65
tagOutput : undefined ,
66
- tryItDescription : "toolbar-accelerometer-sensor.tryItDescription" ,
66
+ tryItDescription : "toolbar-clue- accelerometer-sensor.tryItDescription" ,
67
67
} ;
68
68
} ;
69
69
@@ -85,12 +85,12 @@ export const CLUE_LIGHT_MODAL_CONTENT = (
85
85
axisProperties = { SENSOR_PROPERTIES . CLUE_LIGHT_PROPERTIES }
86
86
/>
87
87
) ,
88
- descriptionText : "toolbar-accelerometer -sensor.description" ,
89
- descriptionTitle : "toolbar-accelerometer -sensor.title" ,
90
- id : "accelerometer " ,
88
+ descriptionText : "toolbar-clue-light -sensor.description" ,
89
+ descriptionTitle : "toolbar-clue-light -sensor.title" ,
90
+ id : "light_sensor " ,
91
91
tagInput : TAG_INPUT_SVG ,
92
92
tagOutput : undefined ,
93
- tryItDescription : "toolbar-accelerometer -sensor.tryItDescription" ,
93
+ tryItDescription : "toolbar-clue-light -sensor.tryItDescription" ,
94
94
} ;
95
95
} ;
96
96
export const CLUE_HUMIDITY_MODAL_CONTENT = (
@@ -101,39 +101,39 @@ export const CLUE_HUMIDITY_MODAL_CONTENT = (
101
101
H : sensorValues [ SENSOR_LIST . HUMIDITY ] ,
102
102
} ;
103
103
return {
104
- descriptionTitle : "toolbar-light -sensor.title" ,
104
+ descriptionTitle : "toolbar-clue-humidity -sensor.title" ,
105
105
tagInput : TAG_INPUT_SVG ,
106
106
tagOutput : undefined ,
107
- descriptionText : "toolbar-light -sensor.description" ,
108
- tryItDescription : "toolbar-light -sensor.tryItDescription" ,
107
+ descriptionText : "toolbar-clue-humidity -sensor.description" ,
108
+ tryItDescription : "toolbar-clue-humidity -sensor.tryItDescription" ,
109
109
components : [
110
110
< ThreeDimensionSlider
111
111
onUpdateValue = { onUpdateValue }
112
112
axisValues = { humiditySensorValues }
113
113
axisProperties = { SENSOR_PROPERTIES . CLUE_HUMIDITY_PROPERTIES }
114
114
/> ,
115
115
] ,
116
- id : "light_sensor " ,
116
+ id : "humidity_sensor " ,
117
117
} ;
118
118
} ;
119
119
export const CLUE_GESTURE_MODAL_CONTENT = (
120
120
onSelectGestures ?: ( event : React . ChangeEvent < HTMLSelectElement > ) => void ,
121
121
sendGesture ?: ( isActive : boolean ) => void
122
122
) : IModalContent => {
123
123
return {
124
- descriptionTitle : "toolbar-light -sensor.title" ,
124
+ descriptionTitle : "toolbar-clue-gesture -sensor.title" ,
125
125
tagInput : TAG_INPUT_SVG ,
126
126
tagOutput : undefined ,
127
- descriptionText : "toolbar-light -sensor.description" ,
128
- tryItDescription : "toolbar-light -sensor.tryItDescription" ,
127
+ descriptionText : "toolbar-clue-gesture -sensor.description" ,
128
+ tryItDescription : "toolbar-clue-gesture -sensor.tryItDescription" ,
129
129
components : [
130
130
< Gesture
131
131
gestures = { GESTURES_CLUE }
132
132
onSelectGestures = { onSelectGestures }
133
133
onSendGesture = { sendGesture }
134
134
/> ,
135
135
] ,
136
- id : "light_sensor " ,
136
+ id : "gesture_sensor " ,
137
137
} ;
138
138
} ;
139
139
export const CLUE_PROXIMITY_MODAL_CONTENT = (
@@ -144,19 +144,19 @@ export const CLUE_PROXIMITY_MODAL_CONTENT = (
144
144
P : sensorValues [ SENSOR_LIST . PROXIMITY ] ,
145
145
} ;
146
146
return {
147
- descriptionTitle : "toolbar-light -sensor.title" ,
147
+ descriptionTitle : "toolbar-clue-proximity -sensor.title" ,
148
148
tagInput : TAG_INPUT_SVG ,
149
149
tagOutput : undefined ,
150
- descriptionText : "toolbar-light -sensor.description" ,
151
- tryItDescription : "toolbar-light -sensor.tryItDescription" ,
150
+ descriptionText : "toolbar-clue-proximity -sensor.description" ,
151
+ tryItDescription : "toolbar-clue-proximity -sensor.tryItDescription" ,
152
152
components : [
153
153
< ThreeDimensionSlider
154
154
onUpdateValue = { onUpdateValue }
155
155
axisValues = { proximitySensorValues }
156
156
axisProperties = { SENSOR_PROPERTIES . CLUE__PROXIMITY_PROPERTIES }
157
157
/> ,
158
158
] ,
159
- id : "light_sensor " ,
159
+ id : "proximity_sensor " ,
160
160
} ;
161
161
} ;
162
162
export const CLUE_PRESSURE_MODAL_CONTENT = (
@@ -167,31 +167,31 @@ export const CLUE_PRESSURE_MODAL_CONTENT = (
167
167
P : sensorValues [ SENSOR_LIST . PRESSURE ] ,
168
168
} ;
169
169
return {
170
- descriptionTitle : "toolbar-light -sensor.title" ,
170
+ descriptionTitle : "toolbar-clue-pressure -sensor.title" ,
171
171
tagInput : TAG_INPUT_SVG ,
172
172
tagOutput : undefined ,
173
- descriptionText : "toolbar-light -sensor.description" ,
174
- tryItDescription : "toolbar-light -sensor.tryItDescription" ,
173
+ descriptionText : "toolbar-clue-pressure -sensor.description" ,
174
+ tryItDescription : "toolbar-clue-pressure -sensor.tryItDescription" ,
175
175
components : [
176
176
< ThreeDimensionSlider
177
177
onUpdateValue = { onUpdateValue }
178
178
axisValues = { pressureSensorValues }
179
179
axisProperties = { SENSOR_PROPERTIES . CLUE_PRESSURE_PROPERTIES }
180
180
/> ,
181
181
] ,
182
- id : "light_sensor " ,
182
+ id : "pressure_sensor " ,
183
183
} ;
184
184
} ;
185
185
export const CLUE_BUTTON_CONTENT = (
186
186
onUpdateValue : ( sensor : SENSOR_LIST , value : number ) => void ,
187
187
sensorValues : { [ key : string ] : number }
188
188
) : IModalContent => {
189
189
return {
190
- descriptionTitle : "toolbar-microbit -a-b-push.title" ,
190
+ descriptionTitle : "toolbar-clue -a-b-push.title" ,
191
191
tagInput : undefined ,
192
192
tagOutput : TAG_INPUT_SVG ,
193
- descriptionText : "toolbar-microbit -a-b-push.description" ,
194
- tryItDescription : "toolbar-microbit -a-b-push.tryItDescription" ,
193
+ descriptionText : "toolbar-clue -a-b-push.description" ,
194
+ tryItDescription : "toolbar-clue -a-b-push.tryItDescription" ,
195
195
components : undefined ,
196
196
id : "microbit_button" ,
197
197
} ;
@@ -202,13 +202,13 @@ export const CLUE_BLUETOOTH_CONTENT = (
202
202
sensorValues : { [ key : string ] : number }
203
203
) : IModalContent => {
204
204
return {
205
- descriptionTitle : "toolbar-microbit-a-b-push .title" ,
205
+ descriptionTitle : "toolbar-clue-bluetooth .title" ,
206
206
tagInput : undefined ,
207
207
tagOutput : TAG_INPUT_SVG ,
208
- descriptionText : "toolbar-microbit-a-b-push .description" ,
209
- tryItDescription : "toolbar-microbit-a-b-push .tryItDescription" ,
208
+ descriptionText : "toolbar-clue-bluetooth .description" ,
209
+ tryItDescription : "toolbar-clue-bluetooth .tryItDescription" ,
210
210
components : undefined ,
211
- id : "microbit_button " ,
211
+ id : "bluetooth " ,
212
212
} ;
213
213
} ;
214
214
@@ -217,26 +217,26 @@ export const CLUE_SOUND_MODAL_CONTENT = (
217
217
sensorValues : { [ key : string ] : number }
218
218
) : IModalContent => {
219
219
return {
220
- descriptionTitle : "toolbar-speaker .title" ,
220
+ descriptionTitle : "toolbar-clue-sound-sensor .title" ,
221
221
tagInput : undefined ,
222
222
tagOutput : TAG_OUTPUT_SVG ,
223
- descriptionText : "toolbar-speaker .description" ,
224
- tryItDescription : "toolbar-speaker .tryItDescription" ,
223
+ descriptionText : "toolbar-clue-sound-sensor .description" ,
224
+ tryItDescription : "toolbar-clue-sound-sensor .tryItDescription" ,
225
225
components : [ FEATURE_REQUEST_ON_GITHUB ] ,
226
- id : "speaker " ,
226
+ id : "sound_sensor " ,
227
227
} ;
228
228
} ;
229
229
export const CLUE_LED_CONTENT = (
230
230
onUpdateValue : ( sensor : SENSOR_LIST , value : number ) => void ,
231
231
sensorValues : { [ key : string ] : number }
232
232
) : IModalContent => {
233
233
return {
234
- descriptionTitle : "toolbar-microbit -led.title" ,
234
+ descriptionTitle : "toolbar-clue -led.title" ,
235
235
tagInput : undefined ,
236
236
tagOutput : TAG_OUTPUT_SVG ,
237
- descriptionText : "toolbar-microbit -led.description" ,
238
- tryItDescription : "toolbar-microbit -led.tryItDescription" ,
237
+ descriptionText : "toolbar-clue -led.description" ,
238
+ tryItDescription : "toolbar-clue -led.tryItDescription" ,
239
239
components : undefined ,
240
- id : "microbit_LED " ,
240
+ id : "clue_neopixel " ,
241
241
} ;
242
242
} ;
0 commit comments