Skip to content

Commit 9908f4a

Browse files
author
stsdc
committed
Merge branch 'dev'
2 parents ec52fdf + d154c83 commit 9908f4a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2377
-632
lines changed

.babelrc

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
{
2-
"plugins": [["transform-react-jsx", { "pragma": "h" }]],
3-
"presets": [
4-
[
5-
"env",
6-
{
7-
"targets": {
8-
"browsers": ["last 2 versions"]
9-
}
10-
}
2+
"plugins": [
3+
["transform-react-jsx", {
4+
"pragma": "h"
5+
}],
6+
["transform-runtime", {
7+
"polyfill": false,
8+
"regenerator": true
9+
}]
10+
],
11+
"presets": [
12+
[
13+
"env",
14+
{
15+
"targets": {
16+
"browsers": ["last 2 versions"]
17+
}
18+
}
19+
]
1120
]
12-
]
1321
}

.eslintrc.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@
88
"atob": true,
99
"history": true,
1010
"location": true,
11-
"addEventListener": true
11+
"addEventListener": true,
12+
"localStorage": true
1213
},
1314
"rules": {
1415
"no-undef": "error",
1516
"no-unused-vars": [2, {
1617
"varsIgnorePattern": "h"
1718
}],
1819
"linebreak-style": "off",
19-
"indent": ["error", 4],
20-
20+
"prefer-template": "off",
21+
"indent": ["error", 4, { "SwitchCase": 1 }],
22+
"consistent-return": "off",
23+
"no-param-reassign": [2, { "props": false }],
2124
"react/jsx-indent": ["error", 4],
2225
"react/jsx-indent-props": ["error", 4],
2326
"react/no-unknown-property": "off",
@@ -30,6 +33,7 @@
3033
"react/prop-types": 0,
3134
"react/jsx-filename-extension": [1, {"extensions": [".js", ".jsx"]}],
3235
"react/jsx-uses-vars": 2,
36+
"react/jsx-one-expression-per-line": "off",
3337

3438
"no-use-before-define": "off",
3539
"jsx-quotes": "off",
@@ -43,7 +47,14 @@
4347
"import/no-dynamic-require": 0,
4448
"import/no-extraneous-dependencies": 0,
4549
"import/prefer-default-export": 0,
46-
"strict": 0
50+
"strict": 0,
51+
"global-require":"off",
52+
"jsx-a11y/interactive-supports-focus":"off",
53+
"no-else-return": "off",
54+
"jsx-a11y/no-noninteractive-element-interactions": "warn",
55+
"jsx-a11y/media-has-caption": "off",
56+
"object-curly-newline": "off",
57+
"no-unused-expressions": [ "error", {"allowTernary": true}]
4758
}
4859

4960
}

.jshintrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@
4141

4242
## How to build
4343
* Run `yarn install`
44-
* Run `npm run build`
44+
* Run `yarn build` to build productional files. There is also `yarn watch` command, it will watch for any changes in files and rebuild project
4545
* Run `utils/make_deb.sh`
4646
* Install Python dependencies `sudo pip3 install -r requirements.txt`
4747

4848
## How streaming works
4949
Streaming is done with [UV4L](https://www.linux-projects.org/uv4l/) drivers and [WebRTC streaming server](https://www.linux-projects.org/uv4l/webrtc-extension/). UV4L comes preinstalled with [TurtleOS](https://github.com/TurtleRover/TurtleOS).
5050
### Stream troubleshooting
5151
There are still some problems with streaming and we are working to fix them. If stream doesn't work on your device, you may try to experiment with `/etc/uv4l/uv4l-uvc.conf`, especially with `webrtc-enable-hw-codec` option and [`force_hw_vcodec`](https://github.com/TurtleRover/tcs/blob/984120b8469f603650f3c6f979bfc96e2dcbbbde/client/src/js/core/stream.js#L72) in `core/stream.js`. If you find any solution to your problem with streaming - please let us know or create a pull request.
52+

client/src/img/cursor.cur

-4.19 KB
Binary file not shown.

client/src/img/cursor.png

-213 Bytes
Binary file not shown.

client/src/img/ui/dot.svg

Lines changed: 10 additions & 8 deletions
Loading

client/src/img/ui/joystick.svg

Lines changed: 148 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)