React UI: Added client versioning (#1448)

* Adjusted antd import

* Wrapped core and canvas

* Added versioning

* Updated changelog, adjusted installation guide a bit
main
Boris Sekachev 6 years ago committed by GitHub
parent 76037e5128
commit c6c9e7db96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,8 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.0.0-beta.2] - Unreleased ## [1.0.0-beta.2] - Unreleased
### Added ### Added
- Re-Identification algorithm to merging bounding boxes automatically to the new UI (https://github.com/opencv/cvat/pull/1406) - Re-Identification algorithm to merging bounding boxes automatically to the new UI (<https://github.com/opencv/cvat/pull/1406>)
- Methods ``import`` and ``export`` to import/export raw annotations for Job and Task in ``cvat-core`` (https://github.com/opencv/cvat/pull/1406) - Methods ``import`` and ``export`` to import/export raw annotations for Job and Task in ``cvat-core`` (<https://github.com/opencv/cvat/pull/1406>)
- Versioning of client packages (``cvat-core``, ``cvat-canvas``, ``cvat-ui``). Initial versions are set to 1.0.0 (<https://github.com/opencv/cvat/pull/1448>)
### Changed ### Changed
- -

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

@ -1,6 +1,6 @@
{ {
"name": "cvat-canvas", "name": "cvat-canvas",
"version": "0.5.2", "version": "1.0.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

@ -1,6 +1,6 @@
{ {
"name": "cvat-canvas", "name": "cvat-canvas",
"version": "0.5.2", "version": "1.0.0",
"description": "Part of Computer Vision Annotation Tool which presents its canvas library", "description": "Part of Computer Vision Annotation Tool which presents its canvas library",
"main": "src/canvas.ts", "main": "src/canvas.ts",
"scripts": { "scripts": {

@ -1,6 +1,6 @@
{ {
"name": "cvat-core.js", "name": "cvat-core.js",
"version": "0.5.2", "version": "1.0.0",
"description": "Part of Computer Vision Tool which presents an interface for client-side integration", "description": "Part of Computer Vision Tool which presents an interface for client-side integration",
"main": "babel.config.js", "main": "babel.config.js",
"scripts": { "scripts": {

@ -1,6 +1,6 @@
{ {
"name": "cvat-data", "name": "cvat-data",
"version": "0.1.0", "version": "1.0.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

@ -1,6 +1,6 @@
{ {
"name": "cvat-data", "name": "cvat-data",
"version": "0.1.0", "version": "1.0.0",
"description": "", "description": "",
"main": "src/js/cvat-data.js", "main": "src/js/cvat-data.js",
"devDependencies": { "devDependencies": {

@ -3,3 +3,4 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
declare module '*.svg'; declare module '*.svg';
declare module 'cvat-core/src/api';

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
{ {
"name": "cvat-ui", "name": "cvat-ui",
"version": "0.5.2", "version": "1.0.0",
"description": "CVAT single-page application", "description": "CVAT single-page application",
"main": "src/index.tsx", "main": "src/index.tsx",
"scripts": { "scripts": {
@ -47,6 +47,8 @@
"worker-loader": "^2.0.0" "worker-loader": "^2.0.0"
}, },
"dependencies": { "dependencies": {
"cvat-core": "file:../cvat-core",
"cvat-canvas": "file:../cvat-canvas",
"@types/react": "^16.9.2", "@types/react": "^16.9.2",
"@types/react-dom": "^16.9.0", "@types/react-dom": "^16.9.0",
"@types/react-redux": "^7.1.2", "@types/react-redux": "^7.1.2",

@ -3,7 +3,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import { ActionUnion, createAction, ThunkAction } from 'utils/redux'; import { ActionUnion, createAction, ThunkAction } from 'utils/redux';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
const core = getCore(); const core = getCore();

@ -22,9 +22,9 @@ import {
Workspace, Workspace,
} from 'reducers/interfaces'; } from 'reducers/interfaces';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
import logger, { LogType } from 'cvat-logger'; import logger, { LogType } from 'cvat-logger';
import { RectDrawingMethod } from 'cvat-canvas'; import { RectDrawingMethod } from 'cvat-canvas-wrapper';
import { getCVATStore } from 'cvat-store'; import { getCVATStore } from 'cvat-store';
interface AnnotationsParameters { interface AnnotationsParameters {

@ -3,7 +3,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import { ActionUnion, createAction, ThunkAction } from 'utils/redux'; import { ActionUnion, createAction, ThunkAction } from 'utils/redux';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
const cvat = getCore(); const cvat = getCore();

@ -8,7 +8,7 @@ import {
ThunkAction, ThunkAction,
ThunkDispatch, ThunkDispatch,
} from 'utils/redux'; } from 'utils/redux';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
import { LogType } from 'cvat-logger'; import { LogType } from 'cvat-logger';
import { computeZRange } from './annotation-actions'; import { computeZRange } from './annotation-actions';

@ -3,7 +3,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import { ActionUnion, createAction, ThunkAction } from 'utils/redux'; import { ActionUnion, createAction, ThunkAction } from 'utils/redux';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
const cvat = getCore(); const cvat = getCore();

@ -10,7 +10,7 @@ import {
ActiveInference, ActiveInference,
CombinedState, CombinedState,
} from 'reducers/interfaces'; } from 'reducers/interfaces';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
export enum PreinstalledModels { export enum PreinstalledModels {
RCNN = 'RCNN Object Detector', RCNN = 'RCNN Object Detector',

@ -3,7 +3,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import { ActionUnion, createAction, ThunkAction } from 'utils/redux'; import { ActionUnion, createAction, ThunkAction } from 'utils/redux';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
import { ShareFileInfo } from 'reducers/interfaces'; import { ShareFileInfo } from 'reducers/interfaces';

@ -9,7 +9,7 @@ import {
CombinedState, CombinedState,
} from 'reducers/interfaces'; } from 'reducers/interfaces';
import { getCVATStore } from 'cvat-store'; import { getCVATStore } from 'cvat-store';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
import { getInferenceStatusAsync } from './models-actions'; import { getInferenceStatusAsync } from './models-actions';
const cvat = getCore(); const cvat = getCore();

@ -3,7 +3,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import { ActionUnion, createAction, ThunkAction } from 'utils/redux'; import { ActionUnion, createAction, ThunkAction } from 'utils/redux';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
const core = getCore(); const core = getCore();

@ -4,13 +4,8 @@
import './styles.scss'; import './styles.scss';
import React from 'react'; import React from 'react';
import Menu, { ClickParam } from 'antd/lib/menu';
import { import Modal from 'antd/lib/modal';
Menu,
Modal,
} from 'antd';
import { ClickParam } from 'antd/lib/menu/index';
import DumpSubmenu from './dump-submenu'; import DumpSubmenu from './dump-submenu';
import LoadSubmenu from './load-submenu'; import LoadSubmenu from './load-submenu';

@ -3,12 +3,8 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import Menu from 'antd/lib/menu';
import { import Icon from 'antd/lib/icon';
Menu,
Icon,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
function isDefaultFormat(dumperName: string, taskMode: string): boolean { function isDefaultFormat(dumperName: string, taskMode: string): boolean {

@ -3,12 +3,8 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import Menu from 'antd/lib/menu';
import { import Icon from 'antd/lib/icon';
Menu,
Icon,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
interface Props { interface Props {

@ -3,14 +3,10 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import Menu from 'antd/lib/menu';
import { import Icon from 'antd/lib/icon';
Menu, import Upload from 'antd/lib/upload';
Icon, import Button from 'antd/lib/button';
Upload,
Button,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
interface Props { interface Props {

@ -4,12 +4,9 @@
import './styles.scss'; import './styles.scss';
import React, { useEffect } from 'react'; import React, { useEffect } from 'react';
import Layout from 'antd/lib/layout';
import { import Spin from 'antd/lib/spin';
Layout, import Result from 'antd/lib/result';
Spin,
Result,
} from 'antd';
import { Workspace } from 'reducers/interfaces'; import { Workspace } from 'reducers/interfaces';
import AnnotationTopBarContainer from 'containers/annotation-page/top-bar/top-bar'; import AnnotationTopBarContainer from 'containers/annotation-page/top-bar/top-bar';

@ -4,10 +4,7 @@
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import Button from 'antd/lib/button';
import {
Button,
} from 'antd';
interface Props { interface Props {
activatedStateID: number | null; activatedStateID: number | null;

@ -19,8 +19,8 @@ import {
ShapeType, ShapeType,
} from 'reducers/interfaces'; } from 'reducers/interfaces';
import { LogType } from 'cvat-logger'; import { LogType } from 'cvat-logger';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
import consts from 'consts'; import consts from 'consts';
const cvat = getCore(); const cvat = getCore();

@ -7,7 +7,7 @@ import { GlobalHotKeys, ExtendedKeyMapOptions } from 'react-hotkeys';
import Layout from 'antd/lib/layout'; import Layout from 'antd/lib/layout';
import { ActiveControl, Rotation } from 'reducers/interfaces'; import { ActiveControl, Rotation } from 'reducers/interfaces';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
import RotateControl from './rotate-control'; import RotateControl from './rotate-control';
import CursorControl from './cursor-control'; import CursorControl from './cursor-control';

@ -8,7 +8,7 @@ import Tooltip from 'antd/lib/tooltip';
import { CursorIcon } from 'icons'; import { CursorIcon } from 'icons';
import { ActiveControl } from 'reducers/interfaces'; import { ActiveControl } from 'reducers/interfaces';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
interface Props { interface Props {
canvasInstance: Canvas; canvasInstance: Canvas;

@ -7,7 +7,7 @@ import { connect } from 'react-redux';
import Checkbox, { CheckboxChangeEvent } from 'antd/lib/checkbox'; import Checkbox, { CheckboxChangeEvent } from 'antd/lib/checkbox';
import Tooltip from 'antd/lib/tooltip'; import Tooltip from 'antd/lib/tooltip';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
import { CombinedState } from 'reducers/interfaces'; import { CombinedState } from 'reducers/interfaces';
import { activate as activatePlugin, deactivate as deactivatePlugin } from 'utils/dextr-utils'; import { activate as activatePlugin, deactivate as deactivatePlugin } from 'utils/dextr-utils';

@ -6,7 +6,7 @@ import React from 'react';
import Popover from 'antd/lib/popover'; import Popover from 'antd/lib/popover';
import Icon from 'antd/lib/icon'; import Icon from 'antd/lib/icon';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
import { PointIcon } from 'icons'; import { PointIcon } from 'icons';
import { ShapeType } from 'reducers/interfaces'; import { ShapeType } from 'reducers/interfaces';

@ -6,7 +6,7 @@ import React from 'react';
import Popover from 'antd/lib/popover'; import Popover from 'antd/lib/popover';
import Icon from 'antd/lib/icon'; import Icon from 'antd/lib/icon';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
import { PolygonIcon } from 'icons'; import { PolygonIcon } from 'icons';
import { ShapeType } from 'reducers/interfaces'; import { ShapeType } from 'reducers/interfaces';

@ -6,7 +6,7 @@ import React from 'react';
import Popover from 'antd/lib/popover'; import Popover from 'antd/lib/popover';
import Icon from 'antd/lib/icon'; import Icon from 'antd/lib/icon';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
import { PolylineIcon } from 'icons'; import { PolylineIcon } from 'icons';
import { ShapeType } from 'reducers/interfaces'; import { ShapeType } from 'reducers/interfaces';

@ -6,7 +6,7 @@ import React from 'react';
import Popover from 'antd/lib/popover'; import Popover from 'antd/lib/popover';
import Icon from 'antd/lib/icon'; import Icon from 'antd/lib/icon';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
import { RectangleIcon } from 'icons'; import { RectangleIcon } from 'icons';
import { ShapeType } from 'reducers/interfaces'; import { ShapeType } from 'reducers/interfaces';

@ -11,7 +11,7 @@ import Radio, { RadioChangeEvent } from 'antd/lib/radio';
import Tooltip from 'antd/lib/tooltip'; import Tooltip from 'antd/lib/tooltip';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import { RectDrawingMethod } from 'cvat-canvas'; import { RectDrawingMethod } from 'cvat-canvas-wrapper';
import { ShapeType } from 'reducers/interfaces'; import { ShapeType } from 'reducers/interfaces';
import { clamp } from 'utils/math'; import { clamp } from 'utils/math';
import DEXTRPlugin from './dextr-plugin'; import DEXTRPlugin from './dextr-plugin';

@ -7,7 +7,7 @@ import Icon from 'antd/lib/icon';
import Tooltip from 'antd/lib/tooltip'; import Tooltip from 'antd/lib/tooltip';
import { FitIcon } from 'icons'; import { FitIcon } from 'icons';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
interface Props { interface Props {
canvasInstance: Canvas; canvasInstance: Canvas;

@ -7,7 +7,7 @@ import Tooltip from 'antd/lib/tooltip';
import Icon from 'antd/lib/icon'; import Icon from 'antd/lib/icon';
import { GroupIcon } from 'icons'; import { GroupIcon } from 'icons';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
import { ActiveControl } from 'reducers/interfaces'; import { ActiveControl } from 'reducers/interfaces';
interface Props { interface Props {

@ -3,17 +3,11 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import Tooltip from 'antd/lib/tooltip';
import Icon from 'antd/lib/icon';
import { import { MergeIcon } from 'icons';
Tooltip, import { Canvas } from 'cvat-canvas-wrapper';
Icon,
} from 'antd';
import {
MergeIcon,
} from 'icons';
import { Canvas } from 'cvat-canvas';
import { ActiveControl } from 'reducers/interfaces'; import { ActiveControl } from 'reducers/interfaces';
interface Props { interface Props {

@ -8,7 +8,7 @@ import Tooltip from 'antd/lib/tooltip';
import { MoveIcon } from 'icons'; import { MoveIcon } from 'icons';
import { ActiveControl } from 'reducers/interfaces'; import { ActiveControl } from 'reducers/interfaces';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
interface Props { interface Props {
canvasInstance: Canvas; canvasInstance: Canvas;

@ -8,7 +8,7 @@ import Tooltip from 'antd/lib/tooltip';
import { ZoomIcon } from 'icons'; import { ZoomIcon } from 'icons';
import { ActiveControl } from 'reducers/interfaces'; import { ActiveControl } from 'reducers/interfaces';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
interface Props { interface Props {
canvasInstance: Canvas; canvasInstance: Canvas;

@ -6,7 +6,7 @@ import React from 'react';
import Popover from 'antd/lib/popover'; import Popover from 'antd/lib/popover';
import Icon from 'antd/lib/icon'; import Icon from 'antd/lib/icon';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
import { TagIcon } from 'icons'; import { TagIcon } from 'icons';
import SetupTagPopoverContainer from 'containers/annotation-page/standard-workspace/controls-side-bar/setup-tag-popover'; import SetupTagPopoverContainer from 'containers/annotation-page/standard-workspace/controls-side-bar/setup-tag-popover';

@ -7,7 +7,7 @@ import Tooltip from 'antd/lib/tooltip';
import Icon from 'antd/lib/icon'; import Icon from 'antd/lib/icon';
import { SplitIcon } from 'icons'; import { SplitIcon } from 'icons';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
import { ActiveControl } from 'reducers/interfaces'; import { ActiveControl } from 'reducers/interfaces';
interface Props { interface Props {

@ -3,18 +3,11 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import {
Checkbox,
Collapse,
Slider,
Radio,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import { RadioChangeEvent } from 'antd/lib/radio'; import Radio, { RadioChangeEvent } from 'antd/lib/radio';
import { SliderValue } from 'antd/lib/slider'; import Slider, { SliderValue } from 'antd/lib/slider';
import { CheckboxChangeEvent } from 'antd/lib/checkbox'; import Checkbox, { CheckboxChangeEvent } from 'antd/lib/checkbox';
import Collapse from 'antd/lib/collapse';
import { ColorBy } from 'reducers/interfaces'; import { ColorBy } from 'reducers/interfaces';

@ -3,12 +3,8 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import { import Button from 'antd/lib/button';
Row,
Col,
Button,
} from 'antd';
interface Props { interface Props {
colors: string[]; colors: string[];

@ -3,16 +3,12 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import { import Icon from 'antd/lib/icon';
Row, import Popover from 'antd/lib/popover';
Col, import Button from 'antd/lib/button';
Icon,
Popover,
Button,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import ColorChanger from 'components/annotation-page/standard-workspace/objects-side-bar/color-changer'; import ColorChanger from 'components/annotation-page/standard-workspace/objects-side-bar/color-changer';
interface Props { interface Props {

@ -7,10 +7,11 @@ import { Row, Col } from 'antd/lib/grid';
import Icon from 'antd/lib/icon'; import Icon from 'antd/lib/icon';
import Select from 'antd/lib/select'; import Select from 'antd/lib/select';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import Tooltip from 'antd/lib/tooltip';
import AnnotationsFiltersInput from 'components/annotation-page/annotations-filters-input'; import AnnotationsFiltersInput from 'components/annotation-page/annotations-filters-input';
import { StatesOrdering } from 'reducers/interfaces'; import { StatesOrdering } from 'reducers/interfaces';
import { Tooltip } from 'antd';
interface StatesOrderingSelectorComponentProps { interface StatesOrderingSelectorComponentProps {
statesOrdering: StatesOrdering; statesOrdering: StatesOrdering;

@ -4,20 +4,15 @@
import './styles.scss'; import './styles.scss';
import React from 'react'; import React from 'react';
import {
Icon,
Tabs,
Layout,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import Icon from 'antd/lib/icon';
import Tabs from 'antd/lib/tabs';
import Layout from 'antd/lib/layout';
import { RadioChangeEvent } from 'antd/lib/radio'; import { RadioChangeEvent } from 'antd/lib/radio';
import { SliderValue } from 'antd/lib/slider'; import { SliderValue } from 'antd/lib/slider';
import { CheckboxChangeEvent } from 'antd/lib/checkbox'; import { CheckboxChangeEvent } from 'antd/lib/checkbox';
import { ColorBy } from 'reducers/interfaces'; import { ColorBy } from 'reducers/interfaces';
import ObjectsListContainer from 'containers/annotation-page/standard-workspace/objects-side-bar/objects-list'; import ObjectsListContainer from 'containers/annotation-page/standard-workspace/objects-side-bar/objects-list';
import LabelsListContainer from 'containers/annotation-page/standard-workspace/objects-side-bar/labels-list'; import LabelsListContainer from 'containers/annotation-page/standard-workspace/objects-side-bar/labels-list';
import AppearanceBlock from './appearance-block'; import AppearanceBlock from './appearance-block';

@ -4,10 +4,7 @@
import './styles.scss'; import './styles.scss';
import React from 'react'; import React from 'react';
import Layout from 'antd/lib/layout';
import {
Layout,
} from 'antd';
import CanvasWrapperContainer from 'containers/annotation-page/standard-workspace/canvas-wrapper'; import CanvasWrapperContainer from 'containers/annotation-page/standard-workspace/canvas-wrapper';
import ControlsSideBarContainer from 'containers/annotation-page/standard-workspace/controls-side-bar/controls-side-bar'; import ControlsSideBarContainer from 'containers/annotation-page/standard-workspace/controls-side-bar/controls-side-bar';

@ -3,17 +3,11 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import { import Form, { FormComponentProps } from 'antd/lib/form/Form';
Row, import Input from 'antd/lib/input';
Col, import Tooltip from 'antd/lib/tooltip';
Form, import Checkbox from 'antd/lib/checkbox';
Input,
Tooltip,
Checkbox,
} from 'antd';
import { FormComponentProps } from 'antd/lib/form/Form';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
type Props = FormComponentProps; type Props = FormComponentProps;

@ -4,13 +4,9 @@
import './styles.scss'; import './styles.scss';
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import {
Row,
Col,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import { ModelFiles } from 'reducers/interfaces'; import { ModelFiles } from 'reducers/interfaces';
import CreateModelContent from './create-model-content'; import CreateModelContent from './create-model-content';

@ -3,16 +3,11 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import { import Icon from 'antd/lib/icon';
Row, import Input from 'antd/lib/input';
Col, import Checkbox from 'antd/lib/checkbox';
Icon, import Tooltip from 'antd/lib/tooltip';
Input,
Checkbox,
Tooltip,
} from 'antd';
import Form, { FormComponentProps } from 'antd/lib/form/Form'; import Form, { FormComponentProps } from 'antd/lib/form/Form';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';

@ -3,11 +3,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import Input from 'antd/lib/input';
import {
Input,
} from 'antd';
import Form, { FormComponentProps } from 'antd/lib/form/Form'; import Form, { FormComponentProps } from 'antd/lib/form/Form';
export interface BaseConfiguration { export interface BaseConfiguration {

@ -3,16 +3,11 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import { import Alert from 'antd/lib/alert';
Row, import Button from 'antd/lib/button';
Col, import Collapse from 'antd/lib/collapse';
Alert, import notification from 'antd/lib/notification';
Button,
Collapse,
notification,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import FileManagerContainer from 'containers/file-manager/file-manager'; import FileManagerContainer from 'containers/file-manager/file-manager';

@ -25,7 +25,7 @@ import LoginPageContainer from 'containers/login-page/login-page';
import RegisterPageContainer from 'containers/register-page/register-page'; import RegisterPageContainer from 'containers/register-page/register-page';
import HeaderContainer from 'containers/header/header'; import HeaderContainer from 'containers/header/header';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
import { NotificationsState } from 'reducers/interfaces'; import { NotificationsState } from 'reducers/interfaces';
interface CVATAppProps { interface CVATAppProps {

@ -3,12 +3,8 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import Icon from 'antd/lib/icon';
import { import Tooltip from 'antd/lib/tooltip';
Icon,
Tooltip,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import { Label } from './common'; import { Label } from './common';

@ -3,11 +3,8 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import Icon from 'antd/lib/icon';
import { import Button from 'antd/lib/button';
Icon,
Button,
} from 'antd';
import ConstructorViewerItem from './constructor-viewer-item'; import ConstructorViewerItem from './constructor-viewer-item';
import { Label } from './common'; import { Label } from './common';

@ -3,22 +3,17 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import { import Icon from 'antd/lib/icon';
Row, import Input from 'antd/lib/input';
Col, import Button from 'antd/lib/button';
Icon, import Checkbox from 'antd/lib/checkbox';
Input, import Tooltip from 'antd/lib/tooltip';
Button, import Select from 'antd/lib/select';
Select,
Tooltip,
Checkbox,
} from 'antd';
import Form, { FormComponentProps } from 'antd/lib/form/Form'; import Form, { FormComponentProps } from 'antd/lib/form/Form';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import patterns from 'utils/validation-patterns';
import patterns from 'utils/validation-patterns';
import { import {
equalArrayHead, equalArrayHead,
idGenerator, idGenerator,

@ -4,17 +4,12 @@
import './styles.scss'; import './styles.scss';
import React from 'react'; import React from 'react';
import Tabs from 'antd/lib/tabs';
import { import Icon from 'antd/lib/icon';
Tabs, import Button from 'antd/lib/button';
Icon, import Tooltip from 'antd/lib/tooltip';
Button, import notification from 'antd/lib/notification';
Tooltip,
notification,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import copy from 'copy-to-clipboard'; import copy from 'copy-to-clipboard';
import RawViewer from './raw-viewer'; import RawViewer from './raw-viewer';

@ -3,17 +3,11 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import { import Input from 'antd/lib/input';
Row, import Button from 'antd/lib/button';
Col, import Tooltip from 'antd/lib/tooltip';
Form, import Form, { FormComponentProps } from 'antd/lib/form/Form';
Input,
Button,
Tooltip,
} from 'antd';
import { FormComponentProps } from 'antd/lib/form/Form';
import { import {
Label, Label,

@ -3,13 +3,10 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { FormComponentProps } from 'antd/lib/form/Form'; import Form, { FormComponentProps } from 'antd/lib/form/Form';
import { import Button from 'antd/lib/button';
Button, import Icon from 'antd/lib/icon';
Icon, import Input from 'antd/lib/input';
Input,
Form,
} from 'antd';
export interface LoginData { export interface LoginData {
username: string; username: string;

@ -3,16 +3,11 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { RouteComponentProps } from 'react-router'; import { RouteComponentProps } from 'react-router';
import { Link, withRouter } from 'react-router-dom'; import { Link, withRouter } from 'react-router-dom';
import Title from 'antd/lib/typography/Title'; import Title from 'antd/lib/typography/Title';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import { import { Row, Col } from 'antd/lib/grid';
Col,
Row,
} from 'antd';
import LoginForm, { LoginData } from './login-form'; import LoginForm, { LoginData } from './login-form';

@ -4,19 +4,15 @@
import './styles.scss'; import './styles.scss';
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import { import Icon from 'antd/lib/icon';
Row, import Select from 'antd/lib/select';
Col, import Checkbox from 'antd/lib/checkbox';
Tag, import Tooltip from 'antd/lib/tooltip';
Spin, import Modal from 'antd/lib/modal';
Icon, import Tag from 'antd/lib/tag';
Modal, import Spin from 'antd/lib/spin';
Select, import notification from 'antd/lib/notification';
Tooltip,
Checkbox,
notification,
} from 'antd';
import { import {
Model, Model,

@ -3,14 +3,9 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import { import Tag from 'antd/lib/tag';
Row, import Select from 'antd/lib/select';
Col,
Tag,
Select,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import { Model } from 'reducers/interfaces'; import { Model } from 'reducers/interfaces';

@ -3,12 +3,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import {
Row,
Col,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import { Model } from 'reducers/interfaces'; import { Model } from 'reducers/interfaces';

@ -3,14 +3,10 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import { import { Row, Col } from 'antd/lib/grid';
Col, import Icon from 'antd/lib/icon';
Row,
Icon,
} from 'antd';
import { import {
EmptyTasksIcon as EmptyModelsIcon, EmptyTasksIcon as EmptyModelsIcon,

@ -4,10 +4,7 @@
import './styles.scss'; import './styles.scss';
import React from 'react'; import React from 'react';
import Spin from 'antd/lib/spin';
import {
Spin,
} from 'antd';
import TopBarComponent from './top-bar'; import TopBarComponent from './top-bar';
import UploadedModelsList from './uploaded-models-list'; import UploadedModelsList from './uploaded-models-list';

@ -5,13 +5,8 @@
import React from 'react'; import React from 'react';
import { RouteComponentProps } from 'react-router'; import { RouteComponentProps } from 'react-router';
import { withRouter } from 'react-router-dom'; import { withRouter } from 'react-router-dom';
import { Row, Col } from 'antd/lib/grid';
import { import Button from 'antd/lib/button';
Col,
Row,
Button,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
type Props = { type Props = {

@ -3,17 +3,12 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import { import Tag from 'antd/lib/tag';
Row, import Select from 'antd/lib/select';
Col, import Icon from 'antd/lib/icon';
Tag, import Menu from 'antd/lib/menu';
Select, import Dropdown from 'antd/lib/dropdown';
Menu,
Dropdown,
Icon,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import moment from 'moment'; import moment from 'moment';

@ -3,12 +3,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import {
Row,
Col,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import { Model } from 'reducers/interfaces'; import { Model } from 'reducers/interfaces';

@ -3,13 +3,10 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { FormComponentProps } from 'antd/lib/form/Form'; import Form, { FormComponentProps } from 'antd/lib/form/Form';
import { import Button from 'antd/lib/button';
Button, import Icon from 'antd/lib/icon';
Icon, import Input from 'antd/lib/input';
Input,
Form,
} from 'antd';
import patterns from 'utils/validation-patterns'; import patterns from 'utils/validation-patterns';

@ -3,16 +3,11 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { RouteComponentProps } from 'react-router'; import { RouteComponentProps } from 'react-router';
import { Link, withRouter } from 'react-router-dom'; import { Link, withRouter } from 'react-router-dom';
import Title from 'antd/lib/typography/Title'; import Title from 'antd/lib/typography/Title';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import { import { Row, Col } from 'antd/lib/grid';
Col,
Row,
} from 'antd';
import RegisterForm, { RegisterData } from './register-form'; import RegisterForm, { RegisterData } from './register-form';

@ -4,14 +4,10 @@
import './styles.scss'; import './styles.scss';
import React from 'react'; import React from 'react';
import { import { Row, Col } from 'antd/lib/grid';
Row, import Tabs from 'antd/lib/tabs';
Col, import Icon from 'antd/lib/icon';
Tabs, import Button from 'antd/lib/button';
Icon,
Button,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import { RouteComponentProps } from 'react-router'; import { RouteComponentProps } from 'react-router';

@ -1,6 +1,7 @@
import React from 'react'; import React from 'react';
import { getApplicationKeyMap } from 'react-hotkeys'; import { getApplicationKeyMap } from 'react-hotkeys';
import { Modal, Table } from 'antd'; import Modal from 'antd/lib/modal';
import Table from 'antd/lib/table';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { shortcutsActions } from 'actions/shortcuts-actions'; import { shortcutsActions } from 'actions/shortcuts-actions';

@ -3,23 +3,17 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import { import Tag from 'antd/lib/tag';
Row, import Icon from 'antd/lib/icon';
Col, import Modal from 'antd/lib/modal';
Tag, import Button from 'antd/lib/button';
Icon, import notification from 'antd/lib/notification';
Modal,
Button,
notification,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import Title from 'antd/lib/typography/Title'; import Title from 'antd/lib/typography/Title';
import moment from 'moment'; import moment from 'moment';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
import patterns from 'utils/validation-patterns'; import patterns from 'utils/validation-patterns';
import { getReposData, syncRepos } from 'utils/git-utils'; import { getReposData, syncRepos } from 'utils/git-utils';
import UserSelector from './user-selector'; import UserSelector from './user-selector';

@ -3,25 +3,18 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { RouteComponentProps } from 'react-router'; import { RouteComponentProps } from 'react-router';
import { withRouter } from 'react-router-dom'; import { withRouter } from 'react-router-dom';
import { Row, Col } from 'antd/lib/grid';
import { import Icon from 'antd/lib/icon';
Row, import Table from 'antd/lib/table';
Col, import Button from 'antd/lib/button';
Icon, import Tooltip from 'antd/lib/tooltip';
Table,
Button,
Tooltip,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import moment from 'moment'; import moment from 'moment';
import copy from 'copy-to-clipboard'; import copy from 'copy-to-clipboard';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
import UserSelector from './user-selector'; import UserSelector from './user-selector';
const core = getCore(); const core = getCore();

@ -6,13 +6,9 @@ import './styles.scss';
import React from 'react'; import React from 'react';
import { RouteComponentProps } from 'react-router'; import { RouteComponentProps } from 'react-router';
import { withRouter } from 'react-router-dom'; import { withRouter } from 'react-router-dom';
import { Row, Col } from 'antd/lib/grid';
import { import Spin from 'antd/lib/spin';
Col, import Result from 'antd/lib/result';
Row,
Spin,
Result,
} from 'antd';
import DetailsContainer from 'containers/task-page/details'; import DetailsContainer from 'containers/task-page/details';
import JobListContainer from 'containers/task-page/job-list'; import JobListContainer from 'containers/task-page/job-list';

@ -3,15 +3,10 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import { import Button from 'antd/lib/button';
Row, import Dropdown from 'antd/lib/dropdown';
Col, import Icon from 'antd/lib/icon';
Button,
Dropdown,
Icon,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import ActionsMenuContainer from 'containers/actions-menu/actions-menu'; import ActionsMenuContainer from 'containers/actions-menu/actions-menu';

@ -3,10 +3,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import Select from 'antd/lib/select';
import {
Select,
} from 'antd';
interface Props { interface Props {
value: string | null; value: string | null;

@ -3,14 +3,10 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import { import { Row, Col } from 'antd/lib/grid';
Col, import Icon from 'antd/lib/icon';
Row,
Icon,
} from 'antd';
import { EmptyTasksIcon } from 'icons'; import { EmptyTasksIcon } from 'icons';

@ -5,19 +5,14 @@
import React from 'react'; import React from 'react';
import { RouteComponentProps } from 'react-router'; import { RouteComponentProps } from 'react-router';
import { withRouter } from 'react-router-dom'; import { withRouter } from 'react-router-dom';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import { import { Row, Col } from 'antd/lib/grid';
Col, import Button from 'antd/lib/button';
Row, import Icon from 'antd/lib/icon';
Button, import Dropdown from 'antd/lib/dropdown';
Icon, import Tooltip from 'antd/lib/tooltip';
Progress, import Modal from 'antd/lib/modal';
Dropdown, import Progress from 'antd/lib/progress';
Tooltip,
Modal,
} from 'antd';
import moment from 'moment'; import moment from 'moment';
import ActionsMenuContainer from 'containers/actions-menu/actions-menu'; import ActionsMenuContainer from 'containers/actions-menu/actions-menu';

@ -3,12 +3,8 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React from 'react'; import React from 'react';
import { Row, Col } from 'antd/lib/grid';
import { import Pagination from 'antd/lib/pagination';
Col,
Row,
Pagination,
} from 'antd';
import ModelRunnerModalContainer from 'containers/model-runner-dialog/model-runner-dialog'; import ModelRunnerModalContainer from 'containers/model-runner-dialog/model-runner-dialog';
import TaskItem from 'containers/tasks-page/task-item'; import TaskItem from 'containers/tasks-page/task-item';

@ -6,19 +6,12 @@ import './styles.scss';
import React from 'react'; import React from 'react';
import { RouteComponentProps } from 'react-router'; import { RouteComponentProps } from 'react-router';
import { withRouter } from 'react-router-dom'; import { withRouter } from 'react-router-dom';
import Spin from 'antd/lib/spin';
import { import Button from 'antd/lib/button';
Spin, import message from 'antd/lib/message';
Button,
message,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
import { import { TasksQuery } from 'reducers/interfaces';
TasksQuery,
} from 'reducers/interfaces';
import FeedbackComponent from 'components/feedback/feedback'; import FeedbackComponent from 'components/feedback/feedback';
import TaskListContainer from 'containers/tasks-page/tasks-list'; import TaskListContainer from 'containers/tasks-page/tasks-list';
import TopBar from './top-bar'; import TopBar from './top-bar';

@ -5,14 +5,9 @@
import React from 'react'; import React from 'react';
import { RouteComponentProps } from 'react-router'; import { RouteComponentProps } from 'react-router';
import { withRouter } from 'react-router-dom'; import { withRouter } from 'react-router-dom';
import { Row, Col } from 'antd/lib/grid';
import { import Button from 'antd/lib/button';
Col, import Input from 'antd/lib/input';
Row,
Button,
Input,
} from 'antd';
import Text from 'antd/lib/typography/Text'; import Text from 'antd/lib/typography/Text';
interface VisibleTopBarProps { interface VisibleTopBarProps {

@ -46,7 +46,7 @@ import {
ActiveControl, ActiveControl,
} from 'reducers/interfaces'; } from 'reducers/interfaces';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
interface StateToProps { interface StateToProps {
sidebarCollapsed: boolean; sidebarCollapsed: boolean;

@ -5,7 +5,7 @@
import { ExtendedKeyMapOptions } from 'react-hotkeys'; import { ExtendedKeyMapOptions } from 'react-hotkeys';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
import { import {
mergeObjects, mergeObjects,
groupObjects, groupObjects,

@ -8,7 +8,7 @@ import { RadioChangeEvent } from 'antd/lib/radio';
import { CombinedState, ShapeType, ObjectType } from 'reducers/interfaces'; import { CombinedState, ShapeType, ObjectType } from 'reducers/interfaces';
import { rememberObject } from 'actions/annotation-actions'; import { rememberObject } from 'actions/annotation-actions';
import { Canvas, RectDrawingMethod } from 'cvat-canvas'; import { Canvas, RectDrawingMethod } from 'cvat-canvas-wrapper';
import DrawShapePopoverComponent from 'components/annotation-page/standard-workspace/controls-side-bar/draw-shape-popover'; import DrawShapePopoverComponent from 'components/annotation-page/standard-workspace/controls-side-bar/draw-shape-popover';
interface OwnProps { interface OwnProps {

@ -9,8 +9,8 @@ import { CombinedState, ObjectType } from 'reducers/interfaces';
import { createAnnotationsAsync, rememberObject } from 'actions/annotation-actions'; import { createAnnotationsAsync, rememberObject } from 'actions/annotation-actions';
import SetupTagPopoverComponent from 'components/annotation-page/standard-workspace/controls-side-bar/setup-tag-popover'; import SetupTagPopoverComponent from 'components/annotation-page/standard-workspace/controls-side-bar/setup-tag-popover';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
const cvat = getCore(); const cvat = getCore();
interface DispatchToProps { interface DispatchToProps {

@ -7,7 +7,7 @@ import copy from 'copy-to-clipboard';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { LogType } from 'cvat-logger'; import { LogType } from 'cvat-logger';
import { Canvas, isAbleToChangeFrame } from 'cvat-canvas'; import { Canvas, isAbleToChangeFrame } from 'cvat-canvas-wrapper';
import { ActiveControl, CombinedState, ColorBy } from 'reducers/interfaces'; import { ActiveControl, CombinedState, ColorBy } from 'reducers/interfaces';
import { import {
collapseObjectItems, collapseObjectItems,

@ -15,7 +15,7 @@ import {
copyShape as copyShapeAction, copyShape as copyShapeAction,
propagateObject as propagateObjectAction, propagateObject as propagateObjectAction,
} from 'actions/annotation-actions'; } from 'actions/annotation-actions';
import { Canvas, isAbleToChangeFrame } from 'cvat-canvas'; import { Canvas, isAbleToChangeFrame } from 'cvat-canvas-wrapper';
import { CombinedState, StatesOrdering, ObjectType } from 'reducers/interfaces'; import { CombinedState, StatesOrdering, ObjectType } from 'reducers/interfaces';
interface StateToProps { interface StateToProps {

@ -23,7 +23,7 @@ import {
changeWorkspace as changeWorkspaceAction, changeWorkspace as changeWorkspaceAction,
activateObject, activateObject,
} from 'actions/annotation-actions'; } from 'actions/annotation-actions';
import { Canvas, isAbleToChangeFrame } from 'cvat-canvas'; import { Canvas, isAbleToChangeFrame } from 'cvat-canvas-wrapper';
import AnnotationTopBarComponent from 'components/annotation-page/top-bar/top-bar'; import AnnotationTopBarComponent from 'components/annotation-page/top-bar/top-bar';
import { CombinedState, FrameSpeed, Workspace } from 'reducers/interfaces'; import { CombinedState, FrameSpeed, Workspace } from 'reducers/interfaces';

@ -4,7 +4,7 @@
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
import HeaderComponent from 'components/header/header'; import HeaderComponent from 'components/header/header';
import { SupportedPlugins, CombinedState } from 'reducers/interfaces'; import { SupportedPlugins, CombinedState } from 'reducers/interfaces';
import { logoutAsync } from 'actions/auth-actions'; import { logoutAsync } from 'actions/auth-actions';

@ -7,7 +7,7 @@ import {
CanvasMode, CanvasMode,
CanvasVersion, CanvasVersion,
RectDrawingMethod, RectDrawingMethod,
} from '../../cvat-canvas/src/typescript/canvas'; } from 'cvat-canvas/src/typescript/canvas';
function isAbleToChangeFrame(canvas: Canvas): boolean { function isAbleToChangeFrame(canvas: Canvas): boolean {
return ![CanvasMode.DRAG, CanvasMode.EDIT, CanvasMode.RESIZE] return ![CanvasMode.DRAG, CanvasMode.EDIT, CanvasMode.RESIZE]

@ -2,7 +2,7 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import _cvat from '../../cvat-core/src/api'; import _cvat from 'cvat-core/src/api';
const cvat: any = _cvat; const cvat: any = _cvat;

@ -2,7 +2,7 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
const core = getCore(); const core = getCore();
const { logger } = core; const { logger } = core;

@ -2,13 +2,12 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import getCore from 'cvat-core-wrapper';
import { CanvasVersion } from 'cvat-canvas-wrapper';
import { boundariesActions, BoundariesActionTypes } from 'actions/boundaries-actions'; import { boundariesActions, BoundariesActionTypes } from 'actions/boundaries-actions';
import { AboutActions, AboutActionTypes } from 'actions/about-actions'; import { AboutActions, AboutActionTypes } from 'actions/about-actions';
import { AuthActions, AuthActionTypes } from 'actions/auth-actions'; import { AuthActions, AuthActionTypes } from 'actions/auth-actions';
import { AboutState } from './interfaces'; import { AboutState } from './interfaces';
import { CanvasVersion } from '../cvat-canvas';
import getCore from '../cvat-core';
import pjson from '../../package.json'; import pjson from '../../package.json';
const defaultState: AboutState = { const defaultState: AboutState = {

@ -4,7 +4,7 @@
import { AnyAction } from 'redux'; import { AnyAction } from 'redux';
import { Canvas, CanvasMode } from 'cvat-canvas'; import { Canvas, CanvasMode } from 'cvat-canvas-wrapper';
import { AnnotationActionTypes } from 'actions/annotation-actions'; import { AnnotationActionTypes } from 'actions/annotation-actions';
import { AuthActionTypes } from 'actions/auth-actions'; import { AuthActionTypes } from 'actions/auth-actions';
import { BoundariesActionTypes } from 'actions/boundaries-actions'; import { BoundariesActionTypes } from 'actions/boundaries-actions';

@ -3,7 +3,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import { ExtendedKeyMapOptions } from 'react-hotkeys'; import { ExtendedKeyMapOptions } from 'react-hotkeys';
import { Canvas, RectDrawingMethod } from 'cvat-canvas'; import { Canvas, RectDrawingMethod } from 'cvat-canvas-wrapper';
export type StringObject = { export type StringObject = {
[index: string]: string; [index: string]: string;

@ -2,8 +2,8 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
import { Canvas } from 'cvat-canvas'; import { Canvas } from 'cvat-canvas-wrapper';
import { ShapeType, RQStatus } from 'reducers/interfaces'; import { ShapeType, RQStatus } from 'reducers/interfaces';
const core = getCore(); const core = getCore();

@ -2,7 +2,7 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
const core = getCore(); const core = getCore();
const baseURL = core.config.backendAPI.slice(0, -7); const baseURL = core.config.backendAPI.slice(0, -7);

@ -2,7 +2,7 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
import { SupportedPlugins } from 'reducers/interfaces'; import { SupportedPlugins } from 'reducers/interfaces';
const core = getCore(); const core = getCore();

@ -2,7 +2,7 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import getCore from 'cvat-core'; import getCore from 'cvat-core-wrapper';
import { ShapeType, RQStatus } from 'reducers/interfaces'; import { ShapeType, RQStatus } from 'reducers/interfaces';

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save