React UI: batch of fixes (#1404)

* React UI has become a primary UI
* Temporary disabled cuboid in cvat-core
main
Dmitry Kalinin 6 years ago committed by GitHub
parent 4bcd9596d1
commit 018925d535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Increase preview size of a task till 256, 256 on the server - Increase preview size of a task till 256, 256 on the server
- Minor style updates - Minor style updates
- Public ssh-keys are displayed in a dedicated window instead of console when create a task with a repository - Public ssh-keys are displayed in a dedicated window instead of console when create a task with a repository
- React UI has become is a primary UI
### Deprecated ### Deprecated
- -

@ -150,6 +150,7 @@
} }
for (const shape of data.shapes) { for (const shape of data.shapes) {
if (shape.type === 'cuboid') continue;
const clientID = ++this.count; const clientID = ++this.count;
const shapeModel = shapeFactory(shape, clientID, this.injection); const shapeModel = shapeFactory(shape, clientID, this.injection);
this.shapes[shapeModel.frame] = this.shapes[shapeModel.frame] || []; this.shapes[shapeModel.frame] = this.shapes[shapeModel.frame] || [];

@ -51,20 +51,20 @@ function JobListComponent(props: Props & RouteComponentProps): JSX.Element {
key: 'job', key: 'job',
render: (id: number): JSX.Element => ( render: (id: number): JSX.Element => (
<div> <div>
<Button type='link' href={`${baseURL}/?id=${id}`}>{`Job #${id}`}</Button> <Button
type='link'
onClick={(): void => {
push(`/tasks/${taskId}/jobs/${id}`);
}}
>
{`Job #${id}`}
</Button>
| |
<Tooltip title='Beta version of new UI written in React. It is to get <Tooltip title='Old version of UI is deprecated and will be removed from
acquainted only, we do not recommend use it to annotation new versions of UI. We still recomend it only if you use
process because it lacks of some features and can be unstable.' specific features from it like cuboids annotation.'
> >
<Button <Button type='link' href={`${baseURL}/?id=${id}`}>Old UI</Button>
type='link'
onClick={(): void => {
push(`/tasks/${taskId}/jobs/${id}`);
}}
>
Try new UI
</Button>
</Tooltip> </Tooltip>
</div> </div>
), ),

Loading…
Cancel
Save