Hiroki Nakayama
ba9a8cba09
Merge pull request #151 from chakki-works/feature-me
Feature: Implement me API
5 years ago
Hiroki Nakayama
6341015446
Merge pull request #146 from CatalystCode/enhancement/reduce-swiper-include-scope
Enhancement/Reduce scope of Swiper include
5 years ago
Hiroki Nakayama
c4b6294319
Merge pull request #145 from CatalystCode/enhancement/move-to-javascript-imports
Enhancement/Move from script tags to Javascript imports
5 years ago
Clemens Wolff
e56699fe1f
Correctly display dataset upload errors
When importing an invalid CSV file that fails data validation, the API
returns the errors wrapped in an array. The current frontend code does
not handle this case and does not display the errors which can be
confusing for users as for example seen in https://github.com/chakki-works/doccano/issues/150 .
This change modifies the frontend code to handle error responses wrapped
in an array. The code was tested by uploading the following CSV file:
```
text,label
"","label1"
```
After applying the change, we now correctly render the upload error as
shown in the screenshot below:
[![Screenshot showing dataset upload error response](https://user-images.githubusercontent.com/1086421/56042132-504f3300-5d08-11e9-8ddf-04c8deb2f60b.png )](https://user-images.githubusercontent.com/1086421/56042132-504f3300-5d08-11e9-8ddf-04c8deb2f60b.png )
5 years ago
Hironsan
92f7c5a75c
Implement me API
5 years ago
Clemens Wolff
e7d34efeae
Reduce scope of Swiper include
Currently the Swiper library is referenced in the base template which
means that its CSS and JS get included and loaded on every page.
However, the Swiper functionality is only used on the landing page. This
leads to redundant requests to load the CSS and JS and may even lead to
hard to debug potential issues with clashing JS or CSS.
This change moves the Swiper JS and CSS to only be included on the
landing page.
5 years ago
Clemens Wolff
06b4a32c01
Move from script tags to Javascript imports
Previously some of the Vue code relied on script tags being present in
the host application, to include dependencies such as lodash or marked.
This is not ideal for encapsulation since it means the Vue components
are not self-contained, makes testing harder, etc.
As such, this change replaces the script tag includes with ES6 imports.
Additionally, the lodash dependency (which was used only for debouncing)
is replaced in this change with the vue-debounce library which offers a
debouncing directive. This simplifies the code and avoids potential
gotchas with the this context in the debounced function.
5 years ago
Hiroki Nakayama
a29e798014
Merge pull request #119 from CatalystCode/enhancement/eslint-ci
Enhancement/Run ESlint during CI
5 years ago
Clemens Wolff
a77df89cdb
Merge branch 'master' into enhancement/eslint-ci
5 years ago
Hiroki Nakayama
441e3efa93
Merge pull request #143 from chakki-works/#140
Possible to edit labels, fix #140
5 years ago
Hironsan
1d2dfdaa3d
Fix #140
5 years ago
Hiroki Nakayama
59e94e4f64
Merge pull request #136 from sudodoki/master
Fix issue with text import yielding internal server error
5 years ago
sudodoki
4bfa60185d
Fix issue with text import yielding internal server error on StopIteration
5 years ago
Hiroki Nakayama
badcd19b24
Update README.md
5 years ago
Clemens Wolff
e40a3e12d7
Ensure eslint gets run during CI
5 years ago
Clemens Wolff
45f6fc10f1
Fix all eslint warnings
5 years ago
Hiroki Nakayama
aa7bb4f3bd
Merge pull request #118 from CatalystCode/enhancement/reduce-docker-image-size
Enhancement/Turn dockerfile into a multi-stage build
5 years ago
Hiroki Nakayama
a3635cf0d3
Merge pull request #117 from CatalystCode/enhancement/webpack-in-django
Enhancement/Integrate Webpack and Django
5 years ago
Clemens Wolff
07d5172b6c
Integrate webpack and django
5 years ago
Clemens Wolff
c248e34ffd
Turn dockerfile into a multi-stage build
Using a multi-stage build reduces the image size from 1.23GB to 331MB
which means that any node running doccano can now start-up faster.
Additionally, the multi-stage build means that we no longer include
development tools like node or gcc in the production image which reduces
the attack surface of the image.
5 years ago
Hiroki Nakayama
61c5069934
Merge pull request #112 from BrambleXu/feature/aws-launch-button
#87 : implement AWS launch button
5 years ago
Bramble Xu
e7c4e426af
#87 : implement AWS launch button
5 years ago
Hironsan
99a9b967a4
Remove unused files
5 years ago
Hiroki Nakayama
61d01c0c11
Merge pull request #111 from JoshuaPostel/readme_update
add nodejs requirement to readme
5 years ago
root
3886b9bde6
add nodejs requirement
5 years ago
Hiroki Nakayama
2f59060d6d
Merge pull request #103 from CatalystCode/enhancement/dotenv-support
Enhancement/Add dotenv support
5 years ago
Hiroki Nakayama
4ea572a8f3
Merge branch 'master' into enhancement/dotenv-support
5 years ago
Hiroki Nakayama
f06635c82f
Merge pull request #108 from BrambleXu/enhancement/emoji-support
Correct emoji length calculation
5 years ago
Hiroki Nakayama
66c9221f2b
Merge pull request #110 from chakki-works/refactor-model
Redesign code and support labeled dataset import
5 years ago
Hiroki Nakayama
c9a403448b
Merge branch 'master' into refactor-model
5 years ago
Hironsan
415b0b3f2e
Set timeout option to gunicorn
If there is no timeout option, we cannot upload a large file. So I set the option.
5 years ago
Hironsan
49d41416e4
Support batch import
5 years ago
Hironsan
bf54c6c5f2
Divide download/upload template
5 years ago
Hironsan
92848809a9
Fix frontend for working with backend
5 years ago
Bramble Xu
adc0542126
#99 : update README.md
5 years ago
Hironsan
d77ab70bff
Move file handlers from api to utils
5 years ago
Hironsan
2a02881edd
Change method name
5 years ago
Hironsan
c3b0c30355
Delete EntityList and EntityDetail api
Because AnnotationList and AnnotationDetail api can do the same thing.
5 years ago
Hironsan
eb09eb97d2
Support meta data import/export
5 years ago
Hironsan
541af14d13
Add test case(jsonl without label) to file handler
5 years ago
Hironsan
141d1717d6
Delete unnecessary models
5 years ago
Hironsan
b93578d2b7
Implement statistics api
5 years ago
Hironsan
7a95aa9705
Implement document filter for filtering with/without annotation
filter_fields=('seq_annotations__isnull',) is desirable but it can't.
See more detail:
https://github.com/carltongibson/django-filter/issues/743
5 years ago
Bramble Xu
f37fbe4f87
#99 : correct emoji length calculation
5 years ago
Hironsan
14bcb0a703
Add downloader to support csv and json format
5 years ago
Hironsan
739b1b68c7
Add annotation api
5 years ago
Hironsan
fa388ac6ec
Update project serializer mapping
5 years ago
Hironsan
880c179966
Allow document serializer to return annotations
5 years ago
Hironsan
61a4becc0a
Make project model polymorphic
5 years ago
Clemens Wolff
ac5bbb612e
Remove direct import of os module
This makes it more explicit that the environs module should be used to
access environment variables instead of `os.environ` or `os.getenv`
5 years ago