Skip to content

Commit

Permalink
chore: adding license file and header in each file
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroferreira1 committed Sep 30, 2019
1 parent d93d9e3 commit 7924fab
Show file tree
Hide file tree
Showing 38 changed files with 280 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Hathor Labs

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.
7 changes: 7 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import { Switch, BrowserRouter as Router, Route } from 'react-router-dom';
import PeerAdmin from './screens/PeerAdmin';
Expand Down
7 changes: 7 additions & 0 deletions src/WebSocketHandler.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import EventEmitter from 'events';
import { WS_URL } from './constants';

Expand Down
7 changes: 7 additions & 0 deletions src/actions/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

export const dashboardUpdate = data => ({ type: "dashboard_update", payload: data });

export const isVersionAllowedUpdate = data => ({ type: "is_version_allowed_update", payload: data });
7 changes: 7 additions & 0 deletions src/api/axiosInstance.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { BASE_URL } from '../constants.js';
const axios = require('axios');

Expand Down
7 changes: 7 additions & 0 deletions src/api/networkApi.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import requestClient from './axiosInstance';

const networkApi = {
Expand Down
7 changes: 7 additions & 0 deletions src/api/txApi.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import requestClient from './axiosInstance';

const txApi = {
Expand Down
7 changes: 7 additions & 0 deletions src/api/version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import requestClient from './axiosInstance';

const versionApi = {
Expand Down
7 changes: 7 additions & 0 deletions src/components/AreaChartRealTime.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import { area } from 'd3-shape';
import D3ChartRealTime from './D3ChartRealTime';
Expand Down
7 changes: 7 additions & 0 deletions src/components/D3ChartRealTime.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import { select } from 'd3-selection';
import { scaleLinear, scaleTime } from 'd3-scale';
Expand Down
7 changes: 7 additions & 0 deletions src/components/DagComponent.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import { select, event } from 'd3-selection';
import { zoom, zoomIdentity } from 'd3-zoom';
Expand Down
7 changes: 7 additions & 0 deletions src/components/HathorAlert.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';


Expand Down
7 changes: 7 additions & 0 deletions src/components/HathorPaginate.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import ReactPaginate from 'react-paginate';

Expand Down
7 changes: 7 additions & 0 deletions src/components/LineChartRealTime.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import { line } from 'd3-shape';
import D3ChartRealTime from './D3ChartRealTime';
Expand Down
7 changes: 7 additions & 0 deletions src/components/Navigation.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import { NavLink, Link } from 'react-router-dom';
import logo from '../assets/images/hathor-white-logo.png';
Expand Down
7 changes: 7 additions & 0 deletions src/components/Network.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import networkApi from '../api/networkApi';
import ReactLoading from 'react-loading';
Expand Down
7 changes: 7 additions & 0 deletions src/components/Transactions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import txApi from '../api/txApi';
import ReactLoading from 'react-loading';
Expand Down
7 changes: 7 additions & 0 deletions src/components/TxData.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import $ from 'jquery';
import { CopyToClipboard } from 'react-copy-to-clipboard';
Expand Down
7 changes: 7 additions & 0 deletions src/components/TxRow.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import dateFormatter from '../utils/date';
import { withRouter } from "react-router-dom";
Expand Down
7 changes: 7 additions & 0 deletions src/components/TxTextInput.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import { Link } from 'react-router-dom';

Expand Down
7 changes: 7 additions & 0 deletions src/components/Version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import { VERSION } from '../constants';

Expand Down
7 changes: 7 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

export const BASE_URL = process.env.REACT_APP_BASE_URL || "http://localhost:8080/v1a/";

let tmp_ws_url = process.env.REACT_APP_WS_URL || "ws://127.0.0.1:8080/v1a/ws/";
Expand Down
7 changes: 7 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
Expand Down
7 changes: 7 additions & 0 deletions src/reducers/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { DASHBOARD_CHART_TIME } from '../constants';

/*
Expand Down
7 changes: 7 additions & 0 deletions src/screens/BlockList.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import Transactions from '../components/Transactions';

Expand Down
7 changes: 7 additions & 0 deletions src/screens/Dag.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import txApi from '../api/txApi';
import DagComponent from '../components/DagComponent';
Expand Down
7 changes: 7 additions & 0 deletions src/screens/Dashboard.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import { connect } from "react-redux";
import LineChartRealTime from '../components/LineChartRealTime';
Expand Down
7 changes: 7 additions & 0 deletions src/screens/DashboardTx.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import txApi from '../api/txApi';
import {DASHBOARD_BLOCKS_COUNT, DASHBOARD_TX_COUNT} from '../constants';
Expand Down
7 changes: 7 additions & 0 deletions src/screens/DecodeTx.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import TxTextInput from '../components/TxTextInput';
import TxData from '../components/TxData';
Expand Down
7 changes: 7 additions & 0 deletions src/screens/PeerAdmin.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import Network from '../components/Network';

Expand Down
7 changes: 7 additions & 0 deletions src/screens/PushTx.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import TxTextInput from '../components/TxTextInput';
import txApi from '../api/txApi';
Expand Down
7 changes: 7 additions & 0 deletions src/screens/TransactionDetail.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import ReactLoading from 'react-loading';
import TxData from '../components/TxData';
Expand Down
7 changes: 7 additions & 0 deletions src/screens/TransactionList.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import Transactions from '../components/Transactions';

Expand Down
7 changes: 7 additions & 0 deletions src/screens/VersionError.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import { connect } from 'react-redux';
import { MIN_API_VERSION } from '../constants';
Expand Down
7 changes: 7 additions & 0 deletions src/store/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { createStore } from "redux";
import rootReducer from "../reducers/index";

Expand Down
Loading

0 comments on commit 7924fab

Please sign in to comment.