This commit is contained in:
David Lechner
2020-05-22 19:54:48 -05:00
committed by David Lechner
parent 2a0cba80b8
commit dd9d789e9a
51 changed files with 171 additions and 0 deletions
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Action } from 'redux';
import { ThunkAction } from 'redux-thunk';
import {
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Action } from 'redux';
import { Command, HubType, ProtectionLevel, Result } from '../protocols/bootloader';
import { createCountFunc } from '../utils/iter';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Ace } from 'ace-builds';
import { Action } from 'redux';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Action } from 'redux';
import { ThunkAction } from 'redux-thunk';
import { getChecksum } from '../epics/hub';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { compile as mpyCrossCompile } from '@pybricks/mpy-cross-4';
import { Action } from 'redux';
import { ThunkAction } from 'redux-thunk';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Action } from 'redux';
import { createCountFunc } from '../utils/iter';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Action } from 'redux';
export enum TerminalDataActionType {
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import React from 'react';
import Button from 'react-bootstrap/Button';
import Image from 'react-bootstrap/Image';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import React from 'react';
import { Col, Row } from 'react-bootstrap';
import Container from 'react-bootstrap/Container';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { connect } from 'react-redux';
import { AnyAction } from 'redux';
import { ThunkDispatch } from 'redux-thunk';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import React, { ReactElement } from 'react';
import AceEditor from 'react-ace';
import { ReactReduxContext } from 'react-redux';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { connect } from 'react-redux';
import { Dispatch } from 'redux';
import { flashFirmware } from '../actions/bootloader';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { connect } from 'react-redux';
import { Dispatch } from 'redux';
import * as editor from '../actions/editor';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import React from 'react';
import Toast from 'react-bootstrap/Toast';
import { connect } from 'react-redux';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import React from 'react';
import { Collapse } from 'react-bootstrap';
import { connect } from 'react-redux';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import React from 'react';
import Button from 'react-bootstrap/Button';
import Image from 'react-bootstrap/Image';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { connect } from 'react-redux';
import { AnyAction } from 'redux';
import { ThunkDispatch } from 'redux-thunk';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Ace } from 'ace-builds';
import { connect } from 'react-redux';
import { AnyAction } from 'redux';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { connect } from 'react-redux';
import { Dispatch } from 'redux';
import * as editor from '../actions/editor';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import React from 'react';
import ProgressBar from 'react-bootstrap/ProgressBar';
import { connect } from 'react-redux';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { connect } from 'react-redux';
import { AnyAction } from 'redux';
import { ThunkDispatch } from 'redux-thunk';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import React from 'react';
import { connect } from 'react-redux';
import ResizeObserver from 'react-resize-observer';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import React from 'react';
import ButtonGroup from 'react-bootstrap/ButtonGroup';
import ButtonToolbar from 'react-bootstrap/ButtonToolbar';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { AnyAction } from 'redux';
import { Epic, combineEpics, ofType } from 'redux-observable';
import { map } from 'rxjs/operators';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { AnyAction } from 'redux';
import { Epic, combineEpics, ofType } from 'redux-observable';
import { Subject } from 'rxjs';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Epic, combineEpics } from 'redux-observable';
import { catchError } from 'rxjs/operators';
import ble from './ble';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { AnyAction } from 'redux';
import { Epic, combineEpics, ofType } from 'redux-observable';
import { Subject } from 'rxjs';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
// Override default variables before the import
$body-bg: #0088ce;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
// Ref: https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#lego-hub-boot-loader-service
import { assert } from '../utils';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Reducer, combineReducers } from 'redux';
import { BLEConnectActionType } from '../actions/ble';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Reducer, combineReducers } from 'redux';
import {
BootloaderConnectionActionType,
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Ace } from 'ace-builds';
import { Reducer, combineReducers } from 'redux';
import { CurrentEditorAction, EditorActionType } from '../actions/editor';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Reducer, combineReducers } from 'redux';
import {
HubActionType,
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { combineReducers } from 'redux';
import ble, { BLEState } from './ble';
import bootloader, { BootloaderState } from './bootloader';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Reducer } from 'react';
import { combineReducers } from 'redux';
import { NotificationAction, NotificationActionType } from '../actions/notification';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Reducer } from 'react';
import { combineReducers } from 'redux';
import { BootloaderAction, BootloaderActionType } from '../actions/bootloader';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Action } from 'redux';
import { runSaga, stdChannel } from 'redux-saga';
import {
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import JSZip from 'jszip';
import { Action } from 'redux';
import { Channel, buffers } from 'redux-saga';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { all } from 'redux-saga/effects';
import bootloader from './bootloader';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Action, Dispatch } from 'redux';
import {
BootloaderConnectionActionType,
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import * as FileSaver from 'file-saver';
import { Action, Dispatch } from 'redux';
import { EditorActionType, EditorOpenAction } from '../actions/editor';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { Action, Dispatch, Middleware } from 'redux';
import { RootState } from '../reducers';
import bootloader from './bootloader';
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
/**
* Asserts that an assumption is true. This is used to detect programmer errors
* and should never actually throw in a correctly written program.
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { count, createCountFunc } from './iter';
test('count', () => {
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
/**
* Creates an iterator that counts infinitely (to Number.MAX_SAFE_INTEGER really)
* starting from 0.
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { fmod, sumComplement32 } from './math';
describe('fmod', () => {
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
/**
* Compute modulo using floored division
* @param a first operand
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { polyfillBluetoothRemoteGATTCharacteristic } from './web-bluetooth';
describe('polyfillBluetoothRemoteGATTCharacteristic', () => {
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
/**
* Current definition of BluetoothRemoteGATTCharacteristic doesn't include
* new Web Bluetooth APIs.