This repository was archived by the owner on Dec 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Adding support for the shake sensor #91
Merged
Merged
Changes from all commits
Commits
Show all changes
95 commits
Select commit
Hold shift + click to select a range
cfb6b50
added temperature value
834974c
removed deead code
914539e
removed dummy
0ac8399
added type to the slider
f6ef3c5
remove unit notions
3f2d4a1
changes
5f07c08
Merge branch 'users/t-famoun/temperature_sensor' into users/t-famoun/…
2feafc1
merge with slider
48b265b
changes to the api
4f3a052
created new variable
58d00cb
solved conflicts
d2f2fc8
added degree sign
19fb713
removed extra spaces
b182527
more extra spaces removed
3129ea5
using varaiable for the slider color
3c36ae9
added null check
2b96786
merge with tep sens view
52b5dee
beautifying
f956493
beuatifying
829db51
merge with dev
bb322f3
solved conflicts
6e8a885
solving issues
773d0a6
Update src/view/components/toolbar/InputSlider.tsx
FMounz 8e3d1f2
used prettier
1917101
update3d branch
86a02f1
removed dummy
fc2a780
prettier again
FMounz fa72884
following good unsollicited advices 1
FMounz 38d4acd
cleaning up
FMounz 5e90f7b
Merge branch 'users/t-famoun/temperaturSensorLogic' into users/t-famo…
FMounz 061ec8e
adding light sensor cimponent
FMounz 48c9977
adding temp sensor
FMounz e12f435
changes
FMounz 2571ec6
added view for light sensor
FMounz bb9ae45
refectored process
FMounz 85e625a
added api call
FMounz b06b5db
solved error
a1ecab0
added API call
e2c4bd8
adding support for stop button
cbd47fb
Merge branch 'users/t-famoun/temperaturSensorLogic' of https://github…
b51c215
Merge branch 'users/t-famoun/temperaturSensorLogic' into users/t-famo…
8f837fb
Update src/extension.ts
FMounz a6813b6
Update src/view/components/toolbar/TemperatureSensorBar.tsx
FMounz 153a24a
rework setmessage
FMounz 36204ff
making changes
FMounz 35719ea
reformat
FMounz 9e114a4
let's follow best practices
FMounz a5dbd9f
resolved issue with input
b4d2d6e
adapted to temop sensor changes
6dfc255
removed dead lines
7fb0b8c
,erged zith dev
FMounz 1f8927f
added motion sensor control
FMounz 795db38
added api call
FMounz 98e5735
added scrollbar for sensors
9971cee
reduced size so people can see
f44f46d
added scrollbar
c98f599
Merge branch 'users/t-famoun/motion_sensor' into users/t-famoun/motio…
e5f5ef0
adding logic for sensor
be378cb
Merge branch 'users/t-famoun/motion_sensor' into users/t-famoun/motio…
6c29566
removed API call
a92c70e
merged with dev
dbdc106
solved font color for light theme
df1ad30
merged with dev
79825e6
merged with morio sensor view
0309e65
adding shake function
69ab946
adding event
0aeae7d
restaored api call
cb8820b
Merge branch 'users/t-famoun/motion_sensor_logic' into users/t-famoun…
3ea4dcc
added shake state with no out condition
be8622c
added shake button
c8df8dd
adding a sensor button
4a6722c
merged with dev
de287c6
adding accessibility function
bc68d06
merged with dev
a39624d
completed keypress
a8199d8
adding style
69850b9
moved button to top
546eec1
removed useless lines
9d4e5fe
dead code removed
309783c
cleaning up according to reviews
bbe1689
merged with dev
53d909b
solved issu from merge
085f4a1
solved more issues from merge
5826af3
added role
ef9c217
chenges sensorButton to functionnal component
cc663be
added test for shake sesor
632fa05
add focus border
0762eb0
change focus style
216e881
added style push
822a4a2
added outline on hover
b05c134
removed duplicate
1bffb1e
undo prettier formatting
6a74712
removed extra line
3c69d48
renamed util file
eaaf6f7
moved type decl
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
'switch', | ||
'temperature', | ||
'light', | ||
'shake', | ||
'motion_x', | ||
'motion_y', | ||
'motion_z' | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as React from "react"; | ||
import { ISensorButtonProps } from "./ToolbarUtils"; | ||
import "../../styles/SensorButton.css"; | ||
|
||
const SensorButton: React.FC<ISensorButtonProps> = props => { | ||
return ( | ||
<button | ||
onMouseUp={props.onMouseUp} | ||
onMouseDown={props.onMouseDown} | ||
onKeyUp={props.onKeyUp} | ||
onKeyDown={props.onKeyDown} | ||
aria-label={`${props.type} sensor button`} | ||
className="sensor-button" | ||
> | ||
{props.label} | ||
</button> | ||
); | ||
}; | ||
|
||
export default SensorButton; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.sensor-button { | ||
color: var(--vscode-badge-foreground); | ||
text-align: center; | ||
background-color: var(--vscode-button-background); | ||
width: 343px; | ||
height: 32px; | ||
border: none; | ||
font-weight: bolder; | ||
float: left; | ||
padding-left: 20px; | ||
margin-bottom: 20px; | ||
margin-top: 20px; | ||
} | ||
|
||
.sensor-button:focus, | ||
.sensor-button:active { | ||
outline-width: thick; | ||
outline-offset: 4px; | ||
outline: 2px solid var(--vscode-focusBorder); | ||
background-color: var(--vscode-button-hoverBackground); | ||
} | ||
.sensor-button:hover { | ||
background-color: var(--vscode-button-hoverBackground); | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.