Skip to content

Commit

Permalink
Added license headers (#1208)
Browse files Browse the repository at this point in the history
* Added licenser

* Added license headers for cvat-canvas and cvat-ui
  • Loading branch information
bsekachev authored Feb 27, 2020
1 parent d6e7216 commit c2d58e5
Show file tree
Hide file tree
Showing 190 changed files with 760 additions and 60 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@
"-s",
"./datumaro",
],
"licenser.license": "Custom",
"licenser.customHeader": "Copyright (C) @YEAR@ Intel Corporation\n\nSPDX-License-Identifier: MIT"
}
25 changes: 15 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Next steps should work on clear Ubuntu 18.04.
- Install necessary dependencies:

```sh
$ sudo apt-get install -y curl redis-server python3-dev python3-pip python3-venv libldap2-dev libsasl2-dev
$ sudo apt update && apt install -y nodejs npm curl redis-server python3-dev python3-pip python3-venv libldap2-dev libsasl2-dev
```

- Install [Visual Studio Code](https://code.visualstudio.com/docs/setup/linux#_debian-and-ubuntu-based-distributions)
Expand Down Expand Up @@ -45,23 +45,28 @@ Password: ***
Password (again): ***
```

- Install UI packages and start UI debug server:
- Install npm packages for UI and start UI debug server (run the following command from CVAT root directory):
```sh
cd cvat-core && npm install
cd ../cvat-canvas && npm install
cd ../cvat-ui && npm install
npm start
npm install && \
cd cvat-core && npm install && \
cd ../cvat-canvas && npm install && \
cd ../cvat-ui && npm install && npm start
```

- Run Visual Studio Code from the virtual environment
- Open new terminal (Ctrl + Shift + T), run Visual Studio Code from the virtual environment

```sh
code .
cd .. && source .env/bin/activate && code
```

- Inside Visual Studio Code install [Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome) and [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python) extensions
- Install followig vscode extensions:
- [Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome)
- [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
- [vscode-remark-lint](https://marketplace.visualstudio.com/items?itemName=drewbourne.vscode-remark-lint)
- [licenser](https://marketplace.visualstudio.com/items?itemName=ymotongpoo.licenser)

- Reload Visual Studio Code
- Reload Visual Studio Code from virtual environment

- Select `server: debug` configuration and start it (F5) to run REST server and its workers

Expand Down
1 change: 0 additions & 1 deletion cvat-canvas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ Standard JS events are used.
});
```


## API Reaction

| | IDLE | GROUPING | SPLITTING | DRAWING | MERGING | EDITING | DRAG | ZOOM |
Expand Down
4 changes: 4 additions & 0 deletions cvat-canvas/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

/* eslint-disable */
module.exports = {
parser: false,
Expand Down
6 changes: 5 additions & 1 deletion cvat-canvas/src/scss/canvas.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

.cvat_canvas_hidden {
display: none;
}
Expand Down Expand Up @@ -175,4 +179,4 @@ polyline.cvat_canvas_shape_splitting {
0% {stroke-dashoffset: 1; stroke: #09c;}
50% {stroke-dashoffset: 100; stroke: #f44;}
100% {stroke-dashoffset: 300; stroke: #09c;}
}
}
7 changes: 3 additions & 4 deletions cvat-canvas/src/typescript/canvas.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import {
Rotation,
Expand Down
7 changes: 3 additions & 4 deletions cvat-canvas/src/typescript/canvasController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import {
CanvasModel,
Expand Down
7 changes: 3 additions & 4 deletions cvat-canvas/src/typescript/canvasModel.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import { MasterImpl } from './master';

Expand Down
7 changes: 3 additions & 4 deletions cvat-canvas/src/typescript/canvasView.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import * as SVG from 'svg.js';

Expand Down
7 changes: 3 additions & 4 deletions cvat-canvas/src/typescript/consts.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

const BASE_STROKE_WIDTH = 1.75;
const BASE_GRID_WIDTH = 1;
Expand Down
7 changes: 3 additions & 4 deletions cvat-canvas/src/typescript/drawHandler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import * as SVG from 'svg.js';
import consts from './consts';
Expand Down
7 changes: 3 additions & 4 deletions cvat-canvas/src/typescript/editHandler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import * as SVG from 'svg.js';
import 'svg.select.js';
Expand Down
4 changes: 4 additions & 0 deletions cvat-canvas/src/typescript/groupHandler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import * as SVG from 'svg.js';
import { GroupData } from './canvasModel';

Expand Down
7 changes: 3 additions & 4 deletions cvat-canvas/src/typescript/master.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

export interface Master {
subscribe(listener: Listener): void;
Expand Down
4 changes: 4 additions & 0 deletions cvat-canvas/src/typescript/mergeHandler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import * as SVG from 'svg.js';
import { MergeData } from './canvasModel';

Expand Down
7 changes: 3 additions & 4 deletions cvat-canvas/src/typescript/shared.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import * as SVG from 'svg.js';
import consts from './consts';
Expand Down
4 changes: 4 additions & 0 deletions cvat-canvas/src/typescript/splitHandler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import * as SVG from 'svg.js';
import { SplitData } from './canvasModel';

Expand Down
6 changes: 4 additions & 2 deletions cvat-canvas/src/typescript/svg.patch.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import * as SVG from 'svg.js';
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

/* eslint-disable */

import * as SVG from 'svg.js';
import 'svg.draggable.js';
import 'svg.resize.js';
import 'svg.select.js';
Expand Down
4 changes: 4 additions & 0 deletions cvat-canvas/src/typescript/zoomHandler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import * as SVG from 'svg.js';
import consts from './consts';

Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

7 changes: 3 additions & 4 deletions cvat-ui/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

module.exports = {
'env': {
Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

declare module '*.svg';
4 changes: 4 additions & 0 deletions cvat-ui/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

/* eslint-disable */
module.exports = {
parser: false,
Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/actions/about-actions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import { ActionUnion, createAction, ThunkAction } from 'utils/redux';
import getCore from 'cvat-core';

Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/actions/annotation-actions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import {
AnyAction,
Dispatch,
Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/actions/auth-actions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import { ActionUnion, createAction, ThunkAction } from 'utils/redux';
import getCore from 'cvat-core';

Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/actions/formats-actions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import { ActionUnion, createAction, ThunkAction } from 'utils/redux';
import getCore from 'cvat-core';

Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/actions/models-actions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import { AnyAction, Dispatch, ActionCreator } from 'redux';
import { ThunkAction } from 'redux-thunk';

Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/actions/notification-actions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import { AnyAction } from 'redux';

export enum NotificationsActionType {
Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/actions/plugins-actions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import { ActionUnion, createAction, ThunkAction } from 'utils/redux';
import { SupportedPlugins } from 'reducers/interfaces';
import PluginChecker from 'utils/plugin-checker';
Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/actions/settings-actions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import { AnyAction } from 'redux';
import {
GridColor,
Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/actions/share-actions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import { ActionUnion, createAction, ThunkAction } from 'utils/redux';
import getCore from 'cvat-core';

Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/actions/tasks-actions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import { AnyAction, Dispatch, ActionCreator } from 'redux';
import { ThunkAction } from 'redux-thunk';
import {
Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/actions/users-actions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import { ActionUnion, createAction, ThunkAction } from 'utils/redux';
import getCore from 'cvat-core';

Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/base.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

$header-color: #D8D8D8;
$text-color: #303030;
$hover-menu-color: rgba(24,144,255,0.05);
Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/components/actions-menu/actions-menu.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import './styles.scss';
import React from 'react';

Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/components/actions-menu/dump-submenu.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import React from 'react';

import {
Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/components/actions-menu/export-submenu.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import React from 'react';

import {
Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/components/actions-menu/load-submenu.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

import React from 'react';

import {
Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/components/actions-menu/styles.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT

@import '../../base.scss';

.ant-menu.cvat-actions-menu {
Expand Down
Loading

0 comments on commit c2d58e5

Please sign in to comment.