From e1af247de022caee8b421b944c2a54f5e5e7d9c5 Mon Sep 17 00:00:00 2001 From: Thiago Teixeira Date: Fri, 2 Nov 2018 10:59:55 -0700 Subject: [PATCH] Removed MIT license. Added copyright to all files. --- LICENSE | 8 +------- frontend/public/fonts/fonts.css | 5 +++++ frontend/public/index.html | 1 + frontend/src/App.test.js | 5 +++++ frontend/src/ConnectionState.js | 5 +++++ frontend/src/ConnectionStatus.css | 5 +++++ frontend/src/ConnectionStatus.js | 5 ++++- frontend/src/MainMenu.css | 5 +++++ frontend/src/MainMenu.js | 5 ++++- frontend/src/PersistentWebsocket.css | 5 +++++ frontend/src/PersistentWebsocket.js | 5 ++++- frontend/src/SettingsDialog.js | 5 ++++- frontend/src/StaticConnection.js | 9 ++++++--- frontend/src/StreamlitDialog.css | 5 +++++ frontend/src/StreamlitDialog.js | 5 +++++ frontend/src/WebClient.css | 5 +++++ frontend/src/WebClient.js | 5 +++++ frontend/src/WebsocketConnection.js | 4 ++-- frontend/src/baseconsts.js | 5 +++++ frontend/src/dataFrameProto.js | 5 +++++ frontend/src/elements/Audio.css | 0 frontend/src/elements/Audio.js | 5 +++++ frontend/src/elements/Balloons.css | 5 +++++ frontend/src/elements/Balloons.js | 5 +++++ frontend/src/elements/Chart.css | 5 +++++ frontend/src/elements/Chart.js | 5 +++++ frontend/src/elements/DataFrame.css | 5 +++++ frontend/src/elements/DataFrame.js | 5 ++++- frontend/src/elements/DeckGlChart.css | 5 +++++ frontend/src/elements/DeckGlChart.js | 5 +++++ frontend/src/elements/DocString.css | 5 +++++ frontend/src/elements/DocString.js | 5 ++++- frontend/src/elements/ExceptionElement.css | 12 ++++-------- frontend/src/elements/ExceptionElement.js | 5 ++++- frontend/src/elements/ImageList.css | 5 +++++ frontend/src/elements/ImageList.js | 5 +++++ frontend/src/elements/Map.js | 5 ++++- frontend/src/elements/Table.css | 5 +++++ frontend/src/elements/Table.js | 5 ++++- frontend/src/elements/Text.css | 5 +++++ frontend/src/elements/Text.js | 5 ++++- frontend/src/elements/VegaLiteChart.css | 5 +++++ frontend/src/elements/VegaLiteChart.js | 5 +++++ frontend/src/elements/Video.css | 0 frontend/src/elements/Video.js | 5 +++++ frontend/src/format.js | 5 +++++ frontend/src/format.test.js | 5 +++++ frontend/src/immutableProto.js | 5 ++++- frontend/src/index.css | 5 +++++ frontend/src/index.js | 5 +++++ frontend/src/registerServiceWorker.js | 5 +++++ frontend/src/remotetracking.js | 6 ++++++ lib/streamlit/Chart.py | 2 ++ lib/streamlit/ChartComponent.py | 2 ++ lib/streamlit/Connection.py | 2 ++ lib/streamlit/DeckGlChart.py | 2 ++ lib/streamlit/DeltaGenerator.py | 3 +++ lib/streamlit/DictBuilder.py | 2 ++ lib/streamlit/ReportQueue.py | 2 ++ lib/streamlit/S3Connection.py | 2 ++ lib/streamlit/VegaLiteChart.py | 2 ++ lib/streamlit/__init__.py | 2 ++ lib/streamlit/__main__.py | 2 ++ lib/streamlit/caching.py | 2 ++ lib/streamlit/caseconverters.py | 2 ++ lib/streamlit/chartconfig.py | 3 +++ lib/streamlit/compatibility.py | 2 ++ lib/streamlit/config.py | 2 ++ lib/streamlit/data_frame_proto.py | 2 ++ lib/streamlit/dicttools.py | 2 ++ lib/streamlit/errors.py | 2 ++ lib/streamlit/generic_binary_proto.py | 2 ++ lib/streamlit/image_proto.py | 2 ++ lib/streamlit/logger.py | 2 ++ lib/streamlit/policy.py | 3 +++ lib/streamlit/protobuf/__init__.py | 2 ++ lib/streamlit/proxy/ClientWebSocket.py | 2 ++ lib/streamlit/proxy/FSObserver.py | 3 +++ lib/streamlit/proxy/LocalWebSocket.py | 2 ++ lib/streamlit/proxy/Proxy.py | 2 ++ lib/streamlit/proxy/ProxyConnection.py | 3 +++ lib/streamlit/proxy/__init__.py | 2 ++ lib/streamlit/proxy/__main__.py | 2 ++ lib/streamlit/reference.py | 4 ++++ lib/streamlit/streamlit_msg_proto.py | 2 ++ lib/streamlit/util.py | 2 ++ 86 files changed, 304 insertions(+), 31 deletions(-) delete mode 100644 frontend/src/elements/Audio.css delete mode 100644 frontend/src/elements/Video.css diff --git a/LICENSE b/LICENSE index 0520753dc409..ae1f76a0c19f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1 @@ -Copyright 2018 Adrien Treuille - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +Copyright 2018 Streamlit Inc. All rights reserved. diff --git a/frontend/public/fonts/fonts.css b/frontend/public/fonts/fonts.css index b55a7087d09a..1ce79c1b7908 100644 --- a/frontend/public/fonts/fonts.css +++ b/frontend/public/fonts/fonts.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + /* Mono */ @font-face diff --git a/frontend/public/index.html b/frontend/public/index.html index 4068b75c4389..e3325e0a968e 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -1,4 +1,5 @@ + diff --git a/frontend/src/App.test.js b/frontend/src/App.test.js index b84af98d7203..66abe4f4648d 100644 --- a/frontend/src/App.test.js +++ b/frontend/src/App.test.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; diff --git a/frontend/src/ConnectionState.js b/frontend/src/ConnectionState.js index 0fbd70e55128..6ab37efb3eed 100644 --- a/frontend/src/ConnectionState.js +++ b/frontend/src/ConnectionState.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + export const ConnectionState = { CONNECTED: 'connected', DISCONNECTED: 'disconnected', diff --git a/frontend/src/ConnectionStatus.css b/frontend/src/ConnectionStatus.css index 0072515559f8..0be8201b19bc 100644 --- a/frontend/src/ConnectionStatus.css +++ b/frontend/src/ConnectionStatus.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + #ConnectionStatus { display: flex; align-items: center; diff --git a/frontend/src/ConnectionStatus.js b/frontend/src/ConnectionStatus.js index 4c1665cc926c..8512fbc9d9ac 100644 --- a/frontend/src/ConnectionStatus.js +++ b/frontend/src/ConnectionStatus.js @@ -1,5 +1,8 @@ /** - * Implements a persistent websocket connection. + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + * + * @fileoverview Implements a persistent websocket connection. * Displays itself as an icon indicating the connection type. */ diff --git a/frontend/src/MainMenu.css b/frontend/src/MainMenu.css index 229e9053c381..c7f9c420f7b1 100644 --- a/frontend/src/MainMenu.css +++ b/frontend/src/MainMenu.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + #MainMenuButton { height: 2.5rem; width: 2.5rem; diff --git a/frontend/src/MainMenu.js b/frontend/src/MainMenu.js index ea8c175181b9..e05d62103560 100644 --- a/frontend/src/MainMenu.js +++ b/frontend/src/MainMenu.js @@ -1,5 +1,8 @@ /** - * Implements a persistent websocket connection. + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + * + * @fileoverview Implements a persistent websocket connection. * Displays itself as an icon indicating the connection type. */ diff --git a/frontend/src/PersistentWebsocket.css b/frontend/src/PersistentWebsocket.css index 8d70ca7c9531..2b4106576d34 100644 --- a/frontend/src/PersistentWebsocket.css +++ b/frontend/src/PersistentWebsocket.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + #websocket-icon { fill: #101620; } diff --git a/frontend/src/PersistentWebsocket.js b/frontend/src/PersistentWebsocket.js index 9ebaab2a868f..c4b75b602b78 100644 --- a/frontend/src/PersistentWebsocket.js +++ b/frontend/src/PersistentWebsocket.js @@ -1,5 +1,8 @@ /** - * Implements a persistent websocket connection. + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + * + * @fileoverview Implements a persistent websocket connection. * Displays itself as an icon indicating the connection type. */ diff --git a/frontend/src/SettingsDialog.js b/frontend/src/SettingsDialog.js index a3b226945517..ca94d0a1eafe 100644 --- a/frontend/src/SettingsDialog.js +++ b/frontend/src/SettingsDialog.js @@ -1,5 +1,8 @@ /** - * Implements a dialog that is used to configure user settings. + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + * + * @fileoverview Implements a dialog that is used to configure user settings. */ import React, {PureComponent} from 'react'; diff --git a/frontend/src/StaticConnection.js b/frontend/src/StaticConnection.js index 51ed89aa9905..e0e500484746 100644 --- a/frontend/src/StaticConnection.js +++ b/frontend/src/StaticConnection.js @@ -1,7 +1,10 @@ /** - * This class is the "brother" of WebsocketConnection. The class implements - * loading deltas over an HTTP connection (as opposed to with websockets). - * Like WebsocketConnection it also implements: + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + * + * @fileoverview This class is the "brother" of WebsocketConnection. The class + * implements loading deltas over an HTTP connection (as opposed to with + * websockets). Like WebsocketConnection it also implements: * * get_status() - returns information to display status in the GUI * connected_to_proxy() - always returns false diff --git a/frontend/src/StreamlitDialog.css b/frontend/src/StreamlitDialog.css index 79d5a60bc246..d1455fe91eee 100644 --- a/frontend/src/StreamlitDialog.css +++ b/frontend/src/StreamlitDialog.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + .streamlit-upload-first-line { margin-bottom: 0.5rem; } diff --git a/frontend/src/StreamlitDialog.js b/frontend/src/StreamlitDialog.js index 09fcdfb74c25..e3c3d80d63c5 100644 --- a/frontend/src/StreamlitDialog.js +++ b/frontend/src/StreamlitDialog.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + import React from 'react'; import { diff --git a/frontend/src/WebClient.css b/frontend/src/WebClient.css index d447d4649f47..b5cc624aa7cf 100644 --- a/frontend/src/WebClient.css +++ b/frontend/src/WebClient.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + /** * Palette: * - Black: #101620 diff --git a/frontend/src/WebClient.js b/frontend/src/WebClient.js index 068d946353f4..a524869e19c2 100644 --- a/frontend/src/WebClient.js +++ b/frontend/src/WebClient.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + /*jshint loopfunc:false */ import React, { PureComponent } from 'react'; diff --git a/frontend/src/WebsocketConnection.js b/frontend/src/WebsocketConnection.js index 4fdd9514a5fe..2f96e109b34c 100644 --- a/frontend/src/WebsocketConnection.js +++ b/frontend/src/WebsocketConnection.js @@ -1,6 +1,6 @@ /** - * Implements a websocket connection over which we can send and receive - * Google protocol buffers. It guarnatees message arrival order. + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. */ import {ForwardMsg, BackMsg} from './protobuf'; diff --git a/frontend/src/baseconsts.js b/frontend/src/baseconsts.js index c755fcd90a60..6ac2a7414ba6 100644 --- a/frontend/src/baseconsts.js +++ b/frontend/src/baseconsts.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + /** * Port used to connect to the prod proxy server. */ diff --git a/frontend/src/dataFrameProto.js b/frontend/src/dataFrameProto.js index 5745d6f1b60e..d92f1bf62968 100644 --- a/frontend/src/dataFrameProto.js +++ b/frontend/src/dataFrameProto.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + /** * Utilities to get information out of a protobuf.DataFrame. */ diff --git a/frontend/src/elements/Audio.css b/frontend/src/elements/Audio.css deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/frontend/src/elements/Audio.js b/frontend/src/elements/Audio.js index 15a627798f02..8d96c5500949 100644 --- a/frontend/src/elements/Audio.js +++ b/frontend/src/elements/Audio.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + import React, { PureComponent } from 'react'; import { Alert } from 'reactstrap'; diff --git a/frontend/src/elements/Balloons.css b/frontend/src/elements/Balloons.css index af071f0a3b88..6acc6b3c0aad 100644 --- a/frontend/src/elements/Balloons.css +++ b/frontend/src/elements/Balloons.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + .balloons > .balloon { position: fixed; bottom: 0; diff --git a/frontend/src/elements/Balloons.js b/frontend/src/elements/Balloons.js index 04938c4ab5a1..16f1b6f8b25a 100644 --- a/frontend/src/elements/Balloons.js +++ b/frontend/src/elements/Balloons.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + import React, { PureComponent } from 'react'; import { Balloons as BalloonsProto } from '../protobuf'; import './Balloons.css'; diff --git a/frontend/src/elements/Chart.css b/frontend/src/elements/Chart.css index f7a1e7be5210..37f37019712c 100644 --- a/frontend/src/elements/Chart.css +++ b/frontend/src/elements/Chart.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + .recharts-wrapper { font-size: 0.8rem; } diff --git a/frontend/src/elements/Chart.js b/frontend/src/elements/Chart.js index 1993b9d3c584..28863596320e 100644 --- a/frontend/src/elements/Chart.js +++ b/frontend/src/elements/Chart.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + import React, { PureComponent } from 'react'; import { Alert } from 'reactstrap'; import { tableGetRowsAndCols, indexGet, tableGet, INDEX_COLUMN_DESIGNATOR } from '../dataFrameProto'; diff --git a/frontend/src/elements/DataFrame.css b/frontend/src/elements/DataFrame.css index f406d26fe7e8..355969f21d04 100644 --- a/frontend/src/elements/DataFrame.css +++ b/frontend/src/elements/DataFrame.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + .streamlit-container .dataframe { font-size: 0.8rem; font-family: 'IBM Plex Mono', monospace; diff --git a/frontend/src/elements/DataFrame.js b/frontend/src/elements/DataFrame.js index 2d90239a786a..bfb045a329cf 100644 --- a/frontend/src/elements/DataFrame.js +++ b/frontend/src/elements/DataFrame.js @@ -1,5 +1,8 @@ /** - * Component display a Pandas Dataframe. + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + * + * @fileoverview Component display a Pandas Dataframe. */ import React, { PureComponent } from 'react'; diff --git a/frontend/src/elements/DeckGlChart.css b/frontend/src/elements/DeckGlChart.css index b3408a89a2e1..82441e3eacae 100644 --- a/frontend/src/elements/DeckGlChart.css +++ b/frontend/src/elements/DeckGlChart.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + .deckglchart { position: relative; } diff --git a/frontend/src/elements/DeckGlChart.js b/frontend/src/elements/DeckGlChart.js index e3a50c191cd9..61b030875353 100644 --- a/frontend/src/elements/DeckGlChart.js +++ b/frontend/src/elements/DeckGlChart.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import DeckGL, { diff --git a/frontend/src/elements/DocString.css b/frontend/src/elements/DocString.css index b336f5bf0603..39f6e021f0a8 100644 --- a/frontend/src/elements/DocString.css +++ b/frontend/src/elements/DocString.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + .streamlit-container .doc-containter { background-color: #F0F3F9; padding: 0.5rem 1rem; diff --git a/frontend/src/elements/DocString.js b/frontend/src/elements/DocString.js index 9a10c12ecaa9..cdc06fbd81e8 100644 --- a/frontend/src/elements/DocString.js +++ b/frontend/src/elements/DocString.js @@ -1,5 +1,8 @@ /** - * Represents formatted text. + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + * + * @fileoverview Represents formatted text. */ import React, { PureComponent} from 'react'; diff --git a/frontend/src/elements/ExceptionElement.css b/frontend/src/elements/ExceptionElement.css index 82815f2a9b51..83d0ea8eb2ce 100644 --- a/frontend/src/elements/ExceptionElement.css +++ b/frontend/src/elements/ExceptionElement.css @@ -1,14 +1,10 @@ -.streamlit-container .exception { - /* height: 400px; */ - /* background-color: #F0F3F9; - padding: 0.5rem 1rem;*/ -} +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ .streamlit-container .exception .message { - /* padding-bottom: 0.5rem; */ margin-bottom: 0.5rem; - /* border-bottom: 1px solid #E6E9EF; */ - /* font-weight: bold; */ } .streamlit-container .exception .stack-trace { diff --git a/frontend/src/elements/ExceptionElement.js b/frontend/src/elements/ExceptionElement.js index c06d1f0c2652..b951bb5cfeed 100644 --- a/frontend/src/elements/ExceptionElement.js +++ b/frontend/src/elements/ExceptionElement.js @@ -1,5 +1,8 @@ /** - * Displays a Python Exception in the Report. + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + * + * @fileoverview Displays a Python Exception in the Report. */ import React, { PureComponent} from 'react'; diff --git a/frontend/src/elements/ImageList.css b/frontend/src/elements/ImageList.css index b8a07079e361..cc06b4a62106 100644 --- a/frontend/src/elements/ImageList.css +++ b/frontend/src/elements/ImageList.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + .streamlit-container .image-container { display: inline-block; margin-right: 10px; diff --git a/frontend/src/elements/ImageList.js b/frontend/src/elements/ImageList.js index 1b3ab54134bf..327ccc053b8a 100644 --- a/frontend/src/elements/ImageList.js +++ b/frontend/src/elements/ImageList.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + import React, { PureComponent } from 'react'; import { Alert } from 'reactstrap'; diff --git a/frontend/src/elements/Map.js b/frontend/src/elements/Map.js index a3dce95b286f..4af295bb1a96 100644 --- a/frontend/src/elements/Map.js +++ b/frontend/src/elements/Map.js @@ -1,5 +1,8 @@ /** - * Displays a Python Exception in the Report. + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + * + * @fileoverview Displays a Python Exception in the Report. */ import React, { PureComponent} from 'react'; diff --git a/frontend/src/elements/Table.css b/frontend/src/elements/Table.css index db20fbcc7435..1daac0b80f15 100644 --- a/frontend/src/elements/Table.css +++ b/frontend/src/elements/Table.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + .streamlit-container .streamlit-table { font-size: 0.8rem; font-family: 'IBM Plex Mono', monospace; diff --git a/frontend/src/elements/Table.js b/frontend/src/elements/Table.js index 431ca7031e48..3e4439cfb78a 100644 --- a/frontend/src/elements/Table.js +++ b/frontend/src/elements/Table.js @@ -1,5 +1,8 @@ /** - * Component display a Pandas Dataframe. + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + * + * @fileoverview Component display a Pandas Dataframe. */ import React, { PureComponent } from 'react'; diff --git a/frontend/src/elements/Text.css b/frontend/src/elements/Text.css index d82ac50e08fc..d567e917bd38 100644 --- a/frontend/src/elements/Text.css +++ b/frontend/src/elements/Text.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + .streamlit-container .fixed-width { font-family: 'IBM Plex Mono', monospace; white-space: pre; diff --git a/frontend/src/elements/Text.js b/frontend/src/elements/Text.js index c097f143462d..e91c79b75dc9 100644 --- a/frontend/src/elements/Text.js +++ b/frontend/src/elements/Text.js @@ -1,5 +1,8 @@ /** - * Represents formatted text. + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + * + * @fileoverview Represents formatted text. */ import React, { PureComponent} from 'react'; diff --git a/frontend/src/elements/VegaLiteChart.css b/frontend/src/elements/VegaLiteChart.css index a7eabb750e72..2904b0ca3f8e 100644 --- a/frontend/src/elements/VegaLiteChart.css +++ b/frontend/src/elements/VegaLiteChart.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + #vg-tooltip-element td { border: none; } diff --git a/frontend/src/elements/VegaLiteChart.js b/frontend/src/elements/VegaLiteChart.js index f7c5f45c3229..4175a7544546 100644 --- a/frontend/src/elements/VegaLiteChart.js +++ b/frontend/src/elements/VegaLiteChart.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + import React, { Component } from 'react'; import { Alert } from 'reactstrap'; import { tableGetRowsAndCols, indexGet, tableGet } from '../dataFrameProto'; diff --git a/frontend/src/elements/Video.css b/frontend/src/elements/Video.css deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/frontend/src/elements/Video.js b/frontend/src/elements/Video.js index 7d7185bf4427..dccdeb28ad2d 100644 --- a/frontend/src/elements/Video.js +++ b/frontend/src/elements/Video.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + import React, { PureComponent } from 'react'; import { Alert } from 'reactstrap'; diff --git a/frontend/src/format.js b/frontend/src/format.js index 5434c516a4de..b90505a8c23d 100644 --- a/frontend/src/format.js +++ b/frontend/src/format.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + /** * Text formatting utilities */ diff --git a/frontend/src/format.test.js b/frontend/src/format.test.js index 9aa0111e4d2e..9cd531a13ffd 100644 --- a/frontend/src/format.test.js +++ b/frontend/src/format.test.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + const format = require('./format'); test('class Duration constructor', () => { diff --git a/frontend/src/immutableProto.js b/frontend/src/immutableProto.js index e009693ab276..191773aecda4 100644 --- a/frontend/src/immutableProto.js +++ b/frontend/src/immutableProto.js @@ -1,5 +1,8 @@ /** - * Utility functions for dealing with immutable protobuf objects. + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + * + * @fileoverview Utility functions for dealing with immutable protobuf objects. */ import { fromJS } from 'immutable'; diff --git a/frontend/src/index.css b/frontend/src/index.css index 7b50a0428c03..2e9a137cf253 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + ::-webkit-scrollbar { width: 6px; height: 6px; diff --git a/frontend/src/index.js b/frontend/src/index.js index 000b3e79dab6..33e5f57c00a9 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + import React from 'react'; import ReactDOM from 'react-dom'; diff --git a/frontend/src/registerServiceWorker.js b/frontend/src/registerServiceWorker.js index 12542ba2295a..ccd3efdcd817 100644 --- a/frontend/src/registerServiceWorker.js +++ b/frontend/src/registerServiceWorker.js @@ -1,3 +1,8 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + */ + // In production, we register a service worker to serve assets from local cache. // This lets the app load faster on subsequent visits in production, and gives diff --git a/frontend/src/remotetracking.js b/frontend/src/remotetracking.js index d68dc09207a6..1dbae39bd2a6 100644 --- a/frontend/src/remotetracking.js +++ b/frontend/src/remotetracking.js @@ -1,3 +1,9 @@ +/** + * @license + * Copyright 2018 Streamlit Inc. All rights reserved. + * + */ + import { IS_DEV_ENV } from './baseconsts'; /** diff --git a/lib/streamlit/Chart.py b/lib/streamlit/Chart.py index dbc69dc83596..28a9234290b6 100644 --- a/lib/streamlit/Chart.py +++ b/lib/streamlit/Chart.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + """A Python wrapper around ReChart charts. See: recharts.org diff --git a/lib/streamlit/ChartComponent.py b/lib/streamlit/ChartComponent.py index 345ec3e67e53..029cc5626d46 100644 --- a/lib/streamlit/ChartComponent.py +++ b/lib/streamlit/ChartComponent.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + # Python 2/3 compatibility from __future__ import print_function, division, unicode_literals, absolute_import from streamlit.compatibility import setup_2_3_shims diff --git a/lib/streamlit/Connection.py b/lib/streamlit/Connection.py index 4024e77acc45..dafe6c31c47f 100644 --- a/lib/streamlit/Connection.py +++ b/lib/streamlit/Connection.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + """Connection management methods.""" # Python 2/3 compatibility diff --git a/lib/streamlit/DeckGlChart.py b/lib/streamlit/DeckGlChart.py index 835e2605bfc9..461f2c8be40b 100644 --- a/lib/streamlit/DeckGlChart.py +++ b/lib/streamlit/DeckGlChart.py @@ -1,3 +1,5 @@ +# Copyright 2018 Streamlit Inc. All rights reserved. + """A Python wrapper around DeckGl.""" # Python 2/3 compatibility diff --git a/lib/streamlit/DeltaGenerator.py b/lib/streamlit/DeltaGenerator.py index 6dbc96c90806..b4c965896601 100644 --- a/lib/streamlit/DeltaGenerator.py +++ b/lib/streamlit/DeltaGenerator.py @@ -1,4 +1,7 @@ # -*- coding: future_fstrings -*- + +# Copyright 2018 Streamlit Inc. All rights reserved. + """Allows us to create and absorb changes (aka Deltas) to elements.""" # Python 2/3 compatibility diff --git a/lib/streamlit/DictBuilder.py b/lib/streamlit/DictBuilder.py index 647c2e30f4d3..4c02f816d76d 100644 --- a/lib/streamlit/DictBuilder.py +++ b/lib/streamlit/DictBuilder.py @@ -1,3 +1,5 @@ +# Copyright 2018 Streamlit Inc. All rights reserved. + # Python 2/3 compatibility from __future__ import print_function, division, unicode_literals, absolute_import from streamlit.compatibility import setup_2_3_shims diff --git a/lib/streamlit/ReportQueue.py b/lib/streamlit/ReportQueue.py index 1f2430c32668..649642586606 100644 --- a/lib/streamlit/ReportQueue.py +++ b/lib/streamlit/ReportQueue.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + """ A queue of deltas associated with a particular Report. Whenever possible, deltas are combined. diff --git a/lib/streamlit/S3Connection.py b/lib/streamlit/S3Connection.py index 5c3c3bde1934..9cd908373d8f 100644 --- a/lib/streamlit/S3Connection.py +++ b/lib/streamlit/S3Connection.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + """Handles a connecton to an S3 bucket to send Report data.""" # Python 2/3 compatibility diff --git a/lib/streamlit/VegaLiteChart.py b/lib/streamlit/VegaLiteChart.py index efc6b4f9c0b8..cf6afc6d1ab6 100644 --- a/lib/streamlit/VegaLiteChart.py +++ b/lib/streamlit/VegaLiteChart.py @@ -1,3 +1,5 @@ +# Copyright 2018 Streamlit Inc. All rights reserved. + """A Python wrapper around Vega Lite. """ diff --git a/lib/streamlit/__init__.py b/lib/streamlit/__init__.py index 9860ae51fa68..5e82d789389b 100644 --- a/lib/streamlit/__init__.py +++ b/lib/streamlit/__init__.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + """Exports everything that should be visible to Streamlit users. The functions in this package wrap member functions of DeltaGenerator, as well diff --git a/lib/streamlit/__main__.py b/lib/streamlit/__main__.py index 97702687cab2..b3469b62a743 100644 --- a/lib/streamlit/__main__.py +++ b/lib/streamlit/__main__.py @@ -1,3 +1,5 @@ +# Copyright 2018 Streamlit Inc. All rights reserved. + """This is a script which is run when the streamlit package is executed.""" import getpass import sys diff --git a/lib/streamlit/caching.py b/lib/streamlit/caching.py index 451b0a0f4881..1bcf0e541f07 100644 --- a/lib/streamlit/caching.py +++ b/lib/streamlit/caching.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + """A library of useful utilities.""" # Python 2/3 compatibility diff --git a/lib/streamlit/caseconverters.py b/lib/streamlit/caseconverters.py index 7ddd946aadc8..405a99f01057 100644 --- a/lib/streamlit/caseconverters.py +++ b/lib/streamlit/caseconverters.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + # Python 2/3 compatibility from __future__ import print_function, division, unicode_literals, absolute_import from streamlit.compatibility import setup_2_3_shims diff --git a/lib/streamlit/chartconfig.py b/lib/streamlit/chartconfig.py index 8a1ed030f93e..24dfc71fff6a 100644 --- a/lib/streamlit/chartconfig.py +++ b/lib/streamlit/chartconfig.py @@ -1,4 +1,7 @@ # -*- coding: future_fstrings -*- + +# Copyright 2018 Streamlit Inc. All rights reserved. + """Declarative configuration for Streamlit's native ReCharts-based charts.""" # Python 2/3 compatibility diff --git a/lib/streamlit/compatibility.py b/lib/streamlit/compatibility.py index 1a9edca28584..f383a893678e 100644 --- a/lib/streamlit/compatibility.py +++ b/lib/streamlit/compatibility.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + """Smooths out some differences between python 2 and 3. It is meant to be called as follows: diff --git a/lib/streamlit/config.py b/lib/streamlit/config.py index c86535aa76c3..53a379f2b1d9 100644 --- a/lib/streamlit/config.py +++ b/lib/streamlit/config.py @@ -1,3 +1,5 @@ +# Copyright 2018 Streamlit Inc. All rights reserved. + """Loads the configuration data.""" # Package Imports diff --git a/lib/streamlit/data_frame_proto.py b/lib/streamlit/data_frame_proto.py index 87447cd17316..a452348144f6 100644 --- a/lib/streamlit/data_frame_proto.py +++ b/lib/streamlit/data_frame_proto.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + """Helper functions to marshall a pandas.DataFrame into a protobuf.Dataframe.""" # Python 2/3 compatibility diff --git a/lib/streamlit/dicttools.py b/lib/streamlit/dicttools.py index 0f8f68c53456..7bf2cbbe9bf7 100644 --- a/lib/streamlit/dicttools.py +++ b/lib/streamlit/dicttools.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + """Tools for working with dicts.""" # Python 2/3 compatibility diff --git a/lib/streamlit/errors.py b/lib/streamlit/errors.py index 3dfc098fb45a..8064fa54b505 100644 --- a/lib/streamlit/errors.py +++ b/lib/streamlit/errors.py @@ -1,3 +1,5 @@ +# Copyright 2018 Streamlit Inc. All rights reserved. + class NoStaticFiles(Exception): pass diff --git a/lib/streamlit/generic_binary_proto.py b/lib/streamlit/generic_binary_proto.py index da3025fe2e11..e9912220c68b 100644 --- a/lib/streamlit/generic_binary_proto.py +++ b/lib/streamlit/generic_binary_proto.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + # Python 2/3 compatibility from __future__ import print_function, division, unicode_literals, absolute_import from future.types import newbytes diff --git a/lib/streamlit/image_proto.py b/lib/streamlit/image_proto.py index 4a2f207fc3d9..25e399798b5c 100644 --- a/lib/streamlit/image_proto.py +++ b/lib/streamlit/image_proto.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + """ Converts a numpy image array and list of caption to protobuf.ImageList. """ diff --git a/lib/streamlit/logger.py b/lib/streamlit/logger.py index bd35885b53d8..dde774b77757 100644 --- a/lib/streamlit/logger.py +++ b/lib/streamlit/logger.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + """Logging module.""" # Python 2/3 compatibility diff --git a/lib/streamlit/policy.py b/lib/streamlit/policy.py index 19d2be300a8a..5db372b375ee 100644 --- a/lib/streamlit/policy.py +++ b/lib/streamlit/policy.py @@ -1,4 +1,7 @@ """Generate default public S3 policy.""" + +# Copyright 2018 Streamlit Inc. All rights reserved. + import sys from textwrap import dedent diff --git a/lib/streamlit/protobuf/__init__.py b/lib/streamlit/protobuf/__init__.py index fdda78087728..74acb96304d3 100644 --- a/lib/streamlit/protobuf/__init__.py +++ b/lib/streamlit/protobuf/__init__.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + """ Constructs the protobuf module. diff --git a/lib/streamlit/proxy/ClientWebSocket.py b/lib/streamlit/proxy/ClientWebSocket.py index b8e7fc4286b8..8e84558c8858 100644 --- a/lib/streamlit/proxy/ClientWebSocket.py +++ b/lib/streamlit/proxy/ClientWebSocket.py @@ -1,3 +1,5 @@ +# Copyright 2018 Streamlit Inc. All rights reserved. + """Websocket handler class which the web client connects to.""" from tornado import gen diff --git a/lib/streamlit/proxy/FSObserver.py b/lib/streamlit/proxy/FSObserver.py index a152c8fc1f71..6125ff910dff 100644 --- a/lib/streamlit/proxy/FSObserver.py +++ b/lib/streamlit/proxy/FSObserver.py @@ -1,4 +1,7 @@ # -*- coding: future_fstrings -*- + +# Copyright 2018 Streamlit Inc. All rights reserved. + """A class that watches the file system""" # Python 2/3 compatibility diff --git a/lib/streamlit/proxy/LocalWebSocket.py b/lib/streamlit/proxy/LocalWebSocket.py index 06ca74d5e11d..68df012820b4 100644 --- a/lib/streamlit/proxy/LocalWebSocket.py +++ b/lib/streamlit/proxy/LocalWebSocket.py @@ -1,3 +1,5 @@ +# Copyright 2018 Streamlit Inc. All rights reserved. + """Websocket handler class which the local python library connects to.""" from tornado.websocket import WebSocketHandler import urllib diff --git a/lib/streamlit/proxy/Proxy.py b/lib/streamlit/proxy/Proxy.py index 3c095b4c708f..449ace3d9755 100644 --- a/lib/streamlit/proxy/Proxy.py +++ b/lib/streamlit/proxy/Proxy.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + """A proxy server between the Streamlit libs and web client. Internally, the Proxy basically does bookkeeping for a set of ProxyConnection diff --git a/lib/streamlit/proxy/ProxyConnection.py b/lib/streamlit/proxy/ProxyConnection.py index 1dafb7072c70..538294386442 100644 --- a/lib/streamlit/proxy/ProxyConnection.py +++ b/lib/streamlit/proxy/ProxyConnection.py @@ -1,4 +1,7 @@ # -*- coding: future_fstrings -*- + +# Copyright 2018 Streamlit Inc. All rights reserved. + """Stores information about local and client connections for a report.""" # Python 2/3 compatibility diff --git a/lib/streamlit/proxy/__init__.py b/lib/streamlit/proxy/__init__.py index cc0e12923107..6a673ae70b97 100644 --- a/lib/streamlit/proxy/__init__.py +++ b/lib/streamlit/proxy/__init__.py @@ -1,3 +1,5 @@ +# Copyright 2018 Streamlit Inc. All rights reserved. + """The package which includes all files related to the Streamlit proxy server.""" diff --git a/lib/streamlit/proxy/__main__.py b/lib/streamlit/proxy/__main__.py index 8acf7dc5e2e8..d16b642024ef 100644 --- a/lib/streamlit/proxy/__main__.py +++ b/lib/streamlit/proxy/__main__.py @@ -1,3 +1,5 @@ +# Copyright 2018 Streamlit Inc. All rights reserved. + """Main handler for proxy.""" # Python 2/3 compatibility diff --git a/lib/streamlit/reference.py b/lib/streamlit/reference.py index f0723c0a997e..a04d8cb6ac78 100644 --- a/lib/streamlit/reference.py +++ b/lib/streamlit/reference.py @@ -1,5 +1,9 @@ # -*- coding: future_fstrings -*- #!./streamlit_run +# -*- coding: future_fstrings -*- + +# Copyright 2018 Streamlit Inc. All rights reserved. + """Example of everything that's possible in streamlit.""" # Python 2/3 compatibility diff --git a/lib/streamlit/streamlit_msg_proto.py b/lib/streamlit/streamlit_msg_proto.py index 8e307ce0ea69..80f7ae8bdb65 100644 --- a/lib/streamlit/streamlit_msg_proto.py +++ b/lib/streamlit/streamlit_msg_proto.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + # Python 2/3 compatibility from __future__ import print_function, division, unicode_literals, absolute_import from streamlit.compatibility import setup_2_3_shims diff --git a/lib/streamlit/util.py b/lib/streamlit/util.py index c4b0387114fd..d324773410bd 100644 --- a/lib/streamlit/util.py +++ b/lib/streamlit/util.py @@ -1,5 +1,7 @@ # -*- coding: future_fstrings -*- +# Copyright 2018 Streamlit Inc. All rights reserved. + """A bunch of useful utilites.""" # Python 2/3 compatibility