26 Commits (dc9f679382661a4ad3ac9a02a42367603b91164f)

Author SHA1 Message Date
Roman Donchenko 25975467ea
Fix all remark warnings (#3261)
* Fix all issues reported by remark

* Move remark dependencies from the workflow definition into package.json

This enables the transitive dependencies to be pinned, just like for all
other packages.

* Add additional remark plugins

These are needed to correctly parse certain constructs in Markdown files
(such as tables and YAML frontmatter), and without them, remark produces
invalid warnings on some files.

* Update the remark-lint preset versions

The previous versions reference the old version of the
`remark-lint-table-cell-padding` plugin, which doesn't work correctly with
the current version of `remark-parse` (and thus produces spurious warnings).

* GitHub Actions: run remark on all Markdown files, not just changed ones

This way, if a PR updates the remark configuration and that causes new errors
to appear, those errors will show up in that PR, instead of the (unrelated) PR
that next updates the affected files.

There is no runtime cost to this, because remark takes approximately 1 second
to check all files.
5 years ago
Boris Sekachev 602e8149e2
Fixed prepare command in case when there aren't husky config (#3047) 5 years ago
Boris Sekachev d9b0499f27
Remove old hooks file before husky add (otherwise lint-staged runs several times after several 'npm ci') (#3045) 5 years ago
Boris Sekachev 2350aa7cf1
Updated husky to run git hooks on commit (#3034)
* Updated husky to the latest version

* Updated prepare command

* Updated package.json
5 years ago
manasars 5c67846c20
CVAT-3D Milestone2 (#2645)
* CVAT-3D Updated the Mime Types with Bin Support, added dependency of open3D

* CVAT-3D Added additional column as Dimension for engine_task table and created a relatedfiles table for PCD to Image mapping.

* Added Support for 3D file Upload in BIN and PCD.

* Added Dimension attribute defaulting to 2D for importer and exporter.

* Added props passing for dimension attribute, filtering of import, Migration Scripts and Dimension attribute for MpegChunk Writers

* Modified code as per review comments

* Updated Unit test cases for 3D task creation

* Refactored Dimension Enum in UI and backend code

* Resolving conflicts

* Updated Unit Test Case

* Refactored TaskDimension to DimensionType, Simplified usage of Dimension accross classes

* Removing manually created test files

* Removing old pcd mime-type mapping

* Added test files generated by synthetic data using open3d

* Merged with develop branch latest changes

* Added libraries required for open3d

* Added files

* Added synthethic pcd,bin and img test files

* Modified test file name

* Trigger travis ci

* Modified test case to ignore 3D preview images

* Trigger notification

* Deleting DS Store files

* Modified test cases as per review comments

* Checking pre-commit hook

* Fixed Lint issues - precommit hook verification

* Added changes for CVAT-3D Milestone2 changes - Frame Navigation, photo context hide and show

* Modified changes

* Added canvas3D for 3D Perspective

* Added missing files

* Added code to get image context for 3D view

* Codacy check for stylesheet

* Modified frame navigantion for 3D View

* Modified style for context-image

* Trigger notification

* Added Support for 3D file Upload in BIN and PCD.

* Added props passing for dimension attribute, filtering of import, Migration Scripts and Dimension attribute for MpegChunk Writers

* Modified code as per review comments

* Refactored Dimension Enum in UI and backend code

* Merged with develop branch latest changes

* Added files

* Added changes for CVAT-3D Milestone2 changes - Frame Navigation, photo context hide and show

* Modified changes

* Added canvas3D for 3D Perspective

* Added missing files

* Added code to get image context for 3D view

* Codacy check for stylesheet

* Modified frame navigantion for 3D View

* Modified style for context-image

* Changed cvat-data lint issues

* Modified to use opencv as per review comments

* Removed unwanted imports

* Fixed css and added usage of hooks

* Merged Develop branch code

* Removed unused data structures

* Removed unused data structures

* Refactored unused data structures

* Added three js dependency in cvat ui package-lock.json

* Merged develop branch code and refactored code

* Fixed snyk issue

* Modified Camera Icon in photo-context

* Update icons.tsx

* Remove unused svg file

* Modified changelog file

Co-authored-by: cdp <cdp123>
5 years ago
Boris Sekachev 0576cb7872
Fixes for eslint & precommit configuration (#2352)
* Fixed some codacy configs, fixed commiting with lint-stage

* Improved code

* Fixed header

* Fixed headers

* Removed extra dependencies

* Updated some packages (fixed critical vulnerabilities)
5 years ago
Vitaliy Nishukov 7512fd6883
Reformatted (#2349) 5 years ago
Dmitry Kruchinin 70e89d6f83
The change in the measurement of CVAT-UI code coverage. (#2295)
* The change in the measurement of CVAT-UI code coverage.

* Firefox to cron without coverage.

PR, push coverage via Chrome.

* Refactoring .travis.yml.

Added a wait of 10 seconds in the first test to prevent a login error in CVAT after rebuilding containers after code instrumentation.

Co-authored-by: Kruchinin <dmitryx.kruchinin@intel.com>
5 years ago
Dmitry Kruchinin e7cf157936
CVAT-UI: measure coverage. (#2196)
* Try measure coverage

* Return first logic to runing a tests and measure coverage.

* Prepare to measure coverage.

Temporary disable run Cypress test via Firefox.

* Disable creating nyc output before implementing the coverage measurement.

* Change plugin for nyc to babel.

Add to eclude folders:
3rdparty
tests

Disable run test via Firefox.

* Update travis.yaml

Co-authored-by: Dmitry Kruchinin <dmitryx.kruchinin@intel.com>
5 years ago
Dmitry Kalinin fefcb51331
Stylelint SCSS linter (#1766)
* Added stylelint fixed stylelint issues

* Added CHANGELOG.md
6 years ago
dependabot-preview[bot] a3d036d47d
Bump eslint from 6.8.0 to 7.3.0 (#1779)
Bumps [eslint](https://github.com/eslint/eslint) from 6.8.0 to 7.3.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v6.8.0...v7.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
6 years ago
dependabot-preview[bot] 2a349d0243
Bump eslint-plugin-react-hooks from 2.5.1 to 4.0.4 (#1758)
Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 2.5.1 to 4.0.4.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
6 years ago
dependabot-preview[bot] 972e2f2ab4
Bump remark-lint-strong-marker from 1.0.4 to 2.0.0 (#1702)
Bumps [remark-lint-strong-marker](https://github.com/remarkjs/remark-lint) from 1.0.4 to 2.0.0.
- [Release notes](https://github.com/remarkjs/remark-lint/releases)
- [Changelog](https://github.com/remarkjs/remark-lint/blob/2.0.0/history.md)
- [Commits](https://github.com/remarkjs/remark-lint/compare/ordered-list-marker-value@1.0.4...2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
6 years ago
dependabot-preview[bot] 47028f3d7c
Bump remark-lint-ordered-list-marker-style from 1.0.4 to 2.0.0 (#1701)
Bumps [remark-lint-ordered-list-marker-style](https://github.com/remarkjs/remark-lint) from 1.0.4 to 2.0.0.
- [Release notes](https://github.com/remarkjs/remark-lint/releases)
- [Changelog](https://github.com/remarkjs/remark-lint/blob/2.0.0/history.md)
- [Commits](https://github.com/remarkjs/remark-lint/compare/ordered-list-marker-value@1.0.4...2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
6 years ago
dependabot-preview[bot] 2aa9941981
Bump remark-lint-emphasis-marker from 1.0.4 to 2.0.0 (#1687)
Bumps [remark-lint-emphasis-marker](https://github.com/remarkjs/remark-lint) from 1.0.4 to 2.0.0.
- [Release notes](https://github.com/remarkjs/remark-lint/releases)
- [Changelog](https://github.com/remarkjs/remark-lint/blob/2.0.0/history.md)
- [Commits](https://github.com/remarkjs/remark-lint/compare/ordered-list-marker-value@1.0.4...2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
6 years ago
dependabot-preview[bot] 4fc219a833
Bump remark-preset-lint-recommended from 3.0.4 to 4.0.0 (#1688)
Bumps [remark-preset-lint-recommended](https://github.com/remarkjs/remark-lint) from 3.0.4 to 4.0.0.
- [Release notes](https://github.com/remarkjs/remark-lint/releases)
- [Changelog](https://github.com/remarkjs/remark-lint/blob/master/changelog.md)
- [Commits](https://github.com/remarkjs/remark-lint/commits/remark-preset-lint-recommended@4.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
6 years ago
dependabot-preview[bot] c037221a63
Bump remark-preset-lint-markdown-style-guide from 2.1.4 to 3.0.0 (#1684)
Bumps [remark-preset-lint-markdown-style-guide](https://github.com/remarkjs/remark-lint) from 2.1.4 to 3.0.0.
- [Release notes](https://github.com/remarkjs/remark-lint/releases)
- [Changelog](https://github.com/remarkjs/remark-lint/blob/master/changelog.md)
- [Commits](https://github.com/remarkjs/remark-lint/commits/remark-preset-lint-markdown-style-guide@3.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
6 years ago
dependabot-preview[bot] 78623685db
Bump remark-lint-maximum-line-length from 1.2.2 to 2.0.0 (#1686)
Bumps [remark-lint-maximum-line-length](https://github.com/remarkjs/remark-lint) from 1.2.2 to 2.0.0.
- [Release notes](https://github.com/remarkjs/remark-lint/releases)
- [Changelog](https://github.com/remarkjs/remark-lint/blob/2.0.0/history.md)
- [Commits](https://github.com/remarkjs/remark-lint/commits/2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
6 years ago
dependabot-preview[bot] 9240fadcfe
Bump remark-preset-lint-consistent from 2.0.4 to 3.0.0 (#1685)
Bumps [remark-preset-lint-consistent](https://github.com/remarkjs/remark-lint) from 2.0.4 to 3.0.0.
- [Release notes](https://github.com/remarkjs/remark-lint/releases)
- [Changelog](https://github.com/remarkjs/remark-lint/blob/master/changelog.md)
- [Commits](https://github.com/remarkjs/remark-lint/commits/remark-preset-lint-consistent@3.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
6 years ago
dependabot-preview[bot] 06dd90974a
Bump remark-lint-unordered-list-marker-style from 1.0.4 to 2.0.0 (#1673)
Bumps [remark-lint-unordered-list-marker-style](https://github.com/remarkjs/remark-lint) from 1.0.4 to 2.0.0.
- [Release notes](https://github.com/remarkjs/remark-lint/releases)
- [Changelog](https://github.com/remarkjs/remark-lint/blob/2.0.0/history.md)
- [Commits](https://github.com/remarkjs/remark-lint/compare/ordered-list-marker-value@1.0.4...2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
6 years ago
dependabot-preview[bot] 3ee49a021b
Bump remark-lint-no-dead-urls from 0.5.0 to 1.0.2 (#1680)
Bumps [remark-lint-no-dead-urls](https://github.com/davidtheclark/remark-lint-no-dead-urls) from 0.5.0 to 1.0.2.
- [Release notes](https://github.com/davidtheclark/remark-lint-no-dead-urls/releases)
- [Changelog](https://github.com/davidtheclark/remark-lint-no-dead-urls/blob/master/CHANGELOG.md)
- [Commits](https://github.com/davidtheclark/remark-lint-no-dead-urls/compare/0.5.0...v1.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
6 years ago
dependabot-preview[bot] c44ad4673e
Bump remark-lint-list-item-spacing from 1.1.4 to 2.0.0 (#1679)
Bumps [remark-lint-list-item-spacing](https://github.com/remarkjs/remark-lint) from 1.1.4 to 2.0.0.
- [Release notes](https://github.com/remarkjs/remark-lint/releases)
- [Changelog](https://github.com/remarkjs/remark-lint/blob/2.0.0/history.md)
- [Commits](https://github.com/remarkjs/remark-lint/commits/2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
6 years ago
dependabot-preview[bot] 7860da847c
Bump remark-lint-maximum-heading-length from 1.0.4 to 2.0.0 (#1681)
Bumps [remark-lint-maximum-heading-length](https://github.com/remarkjs/remark-lint) from 1.0.4 to 2.0.0.
- [Release notes](https://github.com/remarkjs/remark-lint/releases)
- [Changelog](https://github.com/remarkjs/remark-lint/blob/2.0.0/history.md)
- [Commits](https://github.com/remarkjs/remark-lint/compare/ordered-list-marker-value@1.0.4...2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
6 years ago
dependabot-preview[bot] d18e1db998
Bump eslint-plugin-react-hooks from 1.7.0 to 2.5.1 (#1676)
Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 1.7.0 to 2.5.1.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
6 years ago
Boris Sekachev 7e8fc2366a
React UI: Undo/redo (#1135) 6 years ago
Boris Sekachev 892866b91d Added root package json for eslint && remarklint (#649)
* Added root package.json for eslint, remarklint

* Removed extra description

* Removed extra deps
7 years ago