Skip to content

Commit

Permalink
Apply MIT license
Browse files Browse the repository at this point in the history
  • Loading branch information
tadaskay committed Mar 17, 2020
1 parent 7227e97 commit 56f8b7a
Show file tree
Hide file tree
Showing 48 changed files with 304 additions and 4 deletions.
13 changes: 12 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,19 @@
"jsx": true
}
},
"plugins": [
"header"
],
"rules": {
"react/prop-types": "off"
"react/prop-types": "off",
"header/header": [2, "block", [
"*",
{"pattern": " * Copyright \\(c\\) \\d{4} BlockDev AG", "template": " * Copyright (c) 2020 BlockDev AG"},
" *",
" * This source code is licensed under the MIT license found in the",
" * LICENSE file in the root directory of this source tree.",
" "
]]
},
"settings": {
"react": {
Expand Down
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) 2020 BlockDev AG

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.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"email": "[email protected]",
"url": "https://mysterium.network/"
},
"license": "GPL-3.0",
"license": "MIT",
"scripts": {
"lint": "eslint --ext .ts,.tsx src",
"dev": "webpack --mode=development",
Expand Down Expand Up @@ -52,6 +52,7 @@
"copy-webpack-plugin": "^5.1.1",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-header": "^3.0.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.19.0",
"file-loader": "^5.0.2",
Expand Down
6 changes: 6 additions & 0 deletions src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* 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 { observer } from "mobx-react-lite"
import { useStores } from "./store"
Expand Down
6 changes: 6 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export const winSize = { width: 640, height: 582 }
6 changes: 6 additions & 0 deletions src/connect-view.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { ScrollArea, View } from "@nodegui/react-nodegui"
import { ProposalTable } from "./proposals/comp/proposal-table/proposal-table"
import React from "react"
Expand Down
6 changes: 6 additions & 0 deletions src/connection-active-view.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { Text, View } from "@nodegui/react-nodegui"
import React from "react"
import { winSize } from "./config"
Expand Down
6 changes: 6 additions & 0 deletions src/connection/comp/connect-disconnect-button.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { View } from "@nodegui/react-nodegui"
import { ConnectionStatus } from "mysterium-vpn-js"
import React from "react"
Expand Down
6 changes: 6 additions & 0 deletions src/connection/comp/connection-status-text.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* 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 { Text } from "@nodegui/react-nodegui"
import { useStores } from "../../store"
Expand Down
6 changes: 6 additions & 0 deletions src/connection/comp/connection-status.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* 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 { View } from "@nodegui/react-nodegui"
import { useStores } from "../../store"
Expand Down
6 changes: 6 additions & 0 deletions src/connection/store.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { action, observable, reaction, runInAction } from "mobx"
import { RootStore } from "../store"
import tequilapi from "../tequila"
Expand Down
6 changes: 6 additions & 0 deletions src/daemon/store.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import tequilapi from "../tequila"
import { action, observable, reaction, when } from "mobx"
import { supervisor } from "../supervisor/supervisor"
Expand Down
6 changes: 6 additions & 0 deletions src/identity/store.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import retry from "async-retry"
import tequilapi from "../tequila"
import { action, observable, reaction } from "mobx"
Expand Down
6 changes: 6 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* 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 { Renderer } from "@nodegui/react-nodegui"
import MainWindow from "./main-window"
Expand Down
6 changes: 6 additions & 0 deletions src/location/comp/effective-location.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* 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 { Text, View } from "@nodegui/react-nodegui"
import { observer } from "mobx-react-lite"
Expand Down
6 changes: 6 additions & 0 deletions src/location/comp/original-location.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* 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 { Text, View } from "@nodegui/react-nodegui"
import { observer } from "mobx-react-lite"
Expand Down
8 changes: 6 additions & 2 deletions src/location/countries.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// base64 encoded 24px flags, originally from https://github.com/gosquared/flags (MIT)
// https://github.com/AndrejsAbrickis/flag-icons/tree/master/src/flags (MIT)
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const countries: { [key: string]: CountryType } = Object.freeze({
af: {
name: "Afghanistan",
Expand Down
6 changes: 6 additions & 0 deletions src/main-window.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { hot, Window } from "@nodegui/react-nodegui"
import React, { MutableRefObject, useCallback, useEffect, useRef } from "react"
import { QIcon, QMainWindow, QStatusBar, WidgetEventTypes } from "@nodegui/nodegui"
Expand Down
6 changes: 6 additions & 0 deletions src/node-launcher.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as path from "path"
import { isDevelopment, isProduction } from "./utils/mode"

Expand Down
6 changes: 6 additions & 0 deletions src/payment/rate.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { mystDisplay, pricePerGiB, pricePerMinute, Proposal as ProposalType } from "mysterium-vpn-js"

export const timeRate = (p: ProposalType): number | undefined => {
Expand Down
6 changes: 6 additions & 0 deletions src/proposals/comp/country-filter.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* 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 { useStores } from "../../store"
import { Text, View } from "@nodegui/react-nodegui"
Expand Down
6 changes: 6 additions & 0 deletions src/proposals/comp/proposal-table/header.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* 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 { Text, View } from "@nodegui/react-nodegui"
import { proposalsCellStyle } from "./style"
Expand Down
6 changes: 6 additions & 0 deletions src/proposals/comp/proposal-table/proposal-table.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* 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 { useStores } from "../../../store"
import { View } from "@nodegui/react-nodegui"
Expand Down
6 changes: 6 additions & 0 deletions src/proposals/comp/proposal-table/proposal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { UIProposal } from "../../ui-proposal-type"
import React from "react"
import { Toggle } from "../../../ui-kit/toggle/toggle"
Expand Down
6 changes: 6 additions & 0 deletions src/proposals/comp/proposal-table/style.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export const proposalsCellStyle = `
width: 100;
`
6 changes: 6 additions & 0 deletions src/proposals/comp/selected-proposal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* 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 { Text, View } from "@nodegui/react-nodegui"
import { Proposal as ProposalType } from "mysterium-vpn-js/lib/proposal/proposal"
Expand Down
6 changes: 6 additions & 0 deletions src/proposals/store.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { action, computed, observable, reaction } from "mobx"
import { RootStore } from "../store"
import { DaemonStatusType } from "../daemon/store"
Expand Down
6 changes: 6 additions & 0 deletions src/proposals/ui-proposal-type.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { Proposal } from "mysterium-vpn-js"

export interface UIProposal extends Proposal {
Expand Down
6 changes: 6 additions & 0 deletions src/store.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { DaemonStore } from "./daemon/store"
import { ConnectionStore } from "./connection/store"
import React from "react"
Expand Down
6 changes: 6 additions & 0 deletions src/supervisor/supervisor.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as net from "net"
import { Socket } from "net"
import * as os from "os"
Expand Down
6 changes: 6 additions & 0 deletions src/tequila.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { TequilapiClient, TequilapiClientFactory } from "mysterium-vpn-js"

const factory = new TequilapiClientFactory("http://localhost:4050")
Expand Down
6 changes: 6 additions & 0 deletions src/tray/quit.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { QAction } from "@nodegui/nodegui"
import { rootStore } from "../store"
import { ConnectionStatus as ConnectionStatusType } from "mysterium-vpn-js/lib/connection/status"
Expand Down
6 changes: 6 additions & 0 deletions src/tray/repair.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { QAction } from "@nodegui/nodegui"
import { rootStore } from "../store"
import { ConnectionStatus as ConnectionStatusType } from "mysterium-vpn-js/lib/connection/status"
Expand Down
6 changes: 6 additions & 0 deletions src/tray/tray.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { QIcon, QMenu, QSystemTrayIcon } from "@nodegui/nodegui"
import path from "path"
import { quitAction } from "./quit"
Expand Down
6 changes: 6 additions & 0 deletions src/ui-kit/clickable-view/clickable-view.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { ReactNode } from "react"
import { Button, View } from "@nodegui/react-nodegui"

Expand Down
6 changes: 6 additions & 0 deletions src/ui-kit/collapse/collapse.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { useState } from "react"
import { Button, View } from "@nodegui/react-nodegui"
import { ClickableView } from "../clickable-view/clickable-view"
Expand Down
6 changes: 6 additions & 0 deletions src/ui-kit/colors.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/**
* Copyright (c) 2020 BlockDev AG
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export const brand = "#853773"
Loading

0 comments on commit 56f8b7a

Please sign in to comment.