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
### Added
- 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)
- 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>)
- 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
-

@ -56,9 +56,7 @@ for development
- 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-data && npm install && \
cd cvat-data && npm install && \
cd ../cvat-ui && npm install && npm start
```

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

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

@ -1,6 +1,6 @@
{
"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",
"main": "babel.config.js",
"scripts": {

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

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

@ -3,3 +3,4 @@
// SPDX-License-Identifier: MIT
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",
"version": "0.5.2",
"version": "1.0.0",
"description": "CVAT single-page application",
"main": "src/index.tsx",
"scripts": {
@ -47,6 +47,8 @@
"worker-loader": "^2.0.0"
},
"dependencies": {
"cvat-core": "file:../cvat-core",
"cvat-canvas": "file:../cvat-canvas",
"@types/react": "^16.9.2",
"@types/react-dom": "^16.9.0",
"@types/react-redux": "^7.1.2",

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -7,7 +7,7 @@ import { connect } from 'react-redux';
import Checkbox, { CheckboxChangeEvent } from 'antd/lib/checkbox';
import Tooltip from 'antd/lib/tooltip';
import { Canvas } from 'cvat-canvas';
import { Canvas } from 'cvat-canvas-wrapper';
import { CombinedState } from 'reducers/interfaces';
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 Icon from 'antd/lib/icon';
import { Canvas } from 'cvat-canvas';
import { Canvas } from 'cvat-canvas-wrapper';
import { PointIcon } from 'icons';
import { ShapeType } from 'reducers/interfaces';

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

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

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

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

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

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

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

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

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

@ -6,7 +6,7 @@ import React from 'react';
import Popover from 'antd/lib/popover';
import Icon from 'antd/lib/icon';
import { Canvas } from 'cvat-canvas';
import { Canvas } from 'cvat-canvas-wrapper';
import { TagIcon } from 'icons';
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 { SplitIcon } from 'icons';
import { Canvas } from 'cvat-canvas';
import { Canvas } from 'cvat-canvas-wrapper';
import { ActiveControl } from 'reducers/interfaces';
interface Props {

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

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

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

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

@ -4,20 +4,15 @@
import './styles.scss';
import React from 'react';
import {
Icon,
Tabs,
Layout,
} from 'antd';
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 { SliderValue } from 'antd/lib/slider';
import { CheckboxChangeEvent } from 'antd/lib/checkbox';
import { ColorBy } from 'reducers/interfaces';
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 AppearanceBlock from './appearance-block';

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

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

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

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

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

@ -3,16 +3,11 @@
// SPDX-License-Identifier: MIT
import React from 'react';
import {
Row,
Col,
Alert,
Button,
Collapse,
notification,
} from 'antd';
import { Row, Col } from 'antd/lib/grid';
import Alert from 'antd/lib/alert';
import Button from 'antd/lib/button';
import Collapse from 'antd/lib/collapse';
import notification from 'antd/lib/notification';
import Text from 'antd/lib/typography/Text';
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 HeaderContainer from 'containers/header/header';
import getCore from 'cvat-core';
import getCore from 'cvat-core-wrapper';
import { NotificationsState } from 'reducers/interfaces';
interface CVATAppProps {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -1,6 +1,7 @@
import React from 'react';
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 { shortcutsActions } from 'actions/shortcuts-actions';

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

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

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

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

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

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

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

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

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

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

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

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

@ -8,7 +8,7 @@ import { RadioChangeEvent } from 'antd/lib/radio';
import { CombinedState, ShapeType, ObjectType } from 'reducers/interfaces';
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';
interface OwnProps {

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

@ -7,7 +7,7 @@ import copy from 'copy-to-clipboard';
import { connect } from 'react-redux';
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 {
collapseObjectItems,

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

@ -23,7 +23,7 @@ import {
changeWorkspace as changeWorkspaceAction,
activateObject,
} 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 { CombinedState, FrameSpeed, Workspace } from 'reducers/interfaces';

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

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

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

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

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

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

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

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

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

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

@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT
import getCore from 'cvat-core';
import getCore from 'cvat-core-wrapper';
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