Skip to content

Commit c98552c

Browse files
authoredJul 13, 2018
Merge pull request #13 from plotly/react-joystick
React joystick and build instructions
2 parents e92d804 + ccaf3d9 commit c98552c

13 files changed

+458
-73
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ venv/
1313
*.egg-info
1414
*.log
1515
.DS_Store
16+
.vscode

‎.prettierrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

‎README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ $ yarn run uninstall-local
7878
```
7979

8080

81-
## Publishing a Dash-DAQ tarball
81+
## Producing a new release tarball
8282

83-
See: https://community.plot.ly/t/publishing-a-dash-daq-tarball/10688
83+
```sh
84+
vim dash_daq/version.py # and increase it to X.X.X
85+
rm -rf node_modules dist build lib
86+
yarn install
87+
yarn build-tarball
88+
ls dist/dash_daq-X.X.X.tar.gz # this is your tarball
89+
```

‎dash_daq/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.0.1'
1+
__version__ = '0.0.3'

‎demo.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import dash_core_components as dcc
44
from dash.dependencies import Input, Output, State, Event
55

6-
from dash_daq import BooleanSwitch, ColorPicker, Gauge, GraduatedBar, Indicator, Knob, LEDDisplay, NumericInput, PowerButton, PrecisionInput, Slider, StopButton, Tank, Thermometer, ToggleSwitch, DarkThemeProvider
6+
from dash_daq import Joystick, BooleanSwitch, ColorPicker, Gauge, GraduatedBar, Indicator, Knob, LEDDisplay, NumericInput, PowerButton, PrecisionInput, Slider, StopButton, Tank, Thermometer, ToggleSwitch, DarkThemeProvider
77

88
app = dash.Dash('')
99

@@ -49,6 +49,10 @@
4949

5050
################ Set up light layout ################
5151
controls = html.Div([
52+
Joystick(
53+
id='demojoystick',
54+
label='Joystick',
55+
),
5256
Knob(
5357
id='demoKnob',
5458
label='Knob',
@@ -236,6 +240,10 @@
236240

237241
################ Set up dark layout ################
238242
dark_controls = html.Div([
243+
Joystick(
244+
id='dark-demojoystick',
245+
label='Joystick',
246+
),
239247
Knob(
240248
id='dark-demoKnob',
241249
label='Knob',

0 commit comments

Comments
 (0)
Please sign in to comment.