Browse Source

Merge pull request #1958 from doccano/fix/1241

Fix issue with the favicon not displaying
pull/1959/head
Hiroki Nakayama 3 years ago
committed by GitHub
parent
commit
973ffceaac
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 4 additions and 55 deletions
  1. 4
      backend/config/urls.py
  2. BIN
      frontend/static/favicon.ico
  3. 3
      frontend/static/formats/generic/upload/example.txt
  4. 4
      frontend/static/formats/seq2seq/download/example.csv
  5. 3
      frontend/static/formats/seq2seq/download/example.jsonl
  6. 4
      frontend/static/formats/seq2seq/upload/example.csv
  7. 3
      frontend/static/formats/seq2seq/upload/example.jsonl
  8. 3
      frontend/static/formats/sequence_labeling/download/example.jsonl
  9. 3
      frontend/static/formats/sequence_labeling/download/example_text.jsonl
  10. 11
      frontend/static/formats/sequence_labeling/upload/example.conll.txt
  11. 3
      frontend/static/formats/sequence_labeling/upload/example.jsonl
  12. 4
      frontend/static/formats/text_classification/download/example.csv
  13. 3
      frontend/static/formats/text_classification/download/example.jsonl
  14. 2
      frontend/static/formats/text_classification/download/fastText.txt
  15. 4
      frontend/static/formats/text_classification/upload/example.csv
  16. 3
      frontend/static/formats/text_classification/upload/example.jsonl
  17. 2
      frontend/static/formats/text_classification/upload/fastText.txt
  18. BIN
      frontend/static/images/feature1.png
  19. BIN
      frontend/static/images/feature2.png
  20. BIN
      frontend/static/images/feature3.png
  21. BIN
      frontend/static/images/hero.jpeg
  22. BIN
      frontend/static/images/ner_demo.png
  23. BIN
      frontend/static/images/vbanner.jpg
  24. BIN
      frontend/static/images/vuetify.png
  25. BIN
      frontend/static/v.png

4
backend/config/urls.py

@ -15,6 +15,7 @@ Including another URLconf
"""
import os
import re
from pathlib import Path
from django.conf import settings
from django.contrib import admin
@ -36,6 +37,7 @@ schema_view = get_schema_view(
urlpatterns = []
if settings.DEBUG or os.environ.get("STANDALONE", False):
static_dir = Path(__file__).resolve().parent.parent / "client" / "dist"
# For showing images and audios in the case of pip and Docker.
urlpatterns.append(
re_path(
@ -44,6 +46,8 @@ if settings.DEBUG or os.environ.get("STANDALONE", False):
{"document_root": settings.MEDIA_ROOT},
)
)
# For showing favicon on the case of pip and Docker.
urlpatterns.append(path("favicon.ico", serve, {"document_root": static_dir, "path": "favicon.ico"}))
urlpatterns += [
path("admin/", admin.site.urls),

BIN
frontend/static/favicon.ico

Before After

3
frontend/static/formats/generic/upload/example.txt

@ -1,3 +0,0 @@
EU rejects German call to boycott British lamb.
Peter Blackburn
President Obama

4
frontend/static/formats/seq2seq/download/example.csv

@ -1,4 +0,0 @@
id,text,label,user
1,"Hello!","こんにちは!",1
2,"Good morning.","おはようございます。",1
3,"See you.","さようなら。",1

3
frontend/static/formats/seq2seq/download/example.jsonl

@ -1,3 +0,0 @@
{"id": 1, "text": "Hello!", "annotations": [{"id": 1, "label": "こんにちは!", "user": 1}]}
{"id": 2, "text": "Good morning.", "annotations": [{"id": 2, "label": "おはようございます。", "user": 1}]}
{"id": 3, "text": "See you.", "annotations": [{"id": 3, "label": "さようなら。", "user": 1}]}

4
frontend/static/formats/seq2seq/upload/example.csv

@ -1,4 +0,0 @@
text,label
"Hello!","こんにちは!"
"Good morning.","おはようございます。"
"See you.","さようなら。"

3
frontend/static/formats/seq2seq/upload/example.jsonl

@ -1,3 +0,0 @@
{"text": "Hello!", "labels": ["こんにちは!"]}
{"text": "Good morning.", "labels": ["おはようございます。"]}
{"text": "See you.", "labels": ["さようなら。"]}

3
frontend/static/formats/sequence_labeling/download/example.jsonl

@ -1,3 +0,0 @@
{"id": 1, "text": "EU rejects ...", "annotations": [{"id": 1, "label": 2, "start_offset": 0, "end_offset": 2, "user": 1}]}
{"id": 2, "text": "Peter Blackburn", "annotations": [{"id": 2, "label": 1, "start_offset": 0, "end_offset": 15, "user": 1}]}
{"id": 3, "text": "President Obama", "annotations": [{"id": 3, "label": 1, "start_offset": 10, "end_offset": 15, "user": 1}]}

3
frontend/static/formats/sequence_labeling/download/example_text.jsonl

@ -1,3 +0,0 @@
{"id": 1, "text": "EU rejects ...", "labels": [[0,2,"ORG"], [11,17, "MISC"], [34,41,"ORG"]]}
{"id": 2, "text": "Peter Blackburn", "labels": [[0, 15, "PERSON"]]}
{"id": 3, "text": "President Obama", "labels": [[10, 15, "PERSON"]]}

11
frontend/static/formats/sequence_labeling/upload/example.conll.txt

@ -1,11 +0,0 @@
EU B-ORG
rejects O
German B-MISC
call O
to O
boycott O
British B-MISC
lamb O
. O
Peter B-PER
Blackburn I-PER

3
frontend/static/formats/sequence_labeling/upload/example.jsonl

@ -1,3 +0,0 @@
{"text": "EU rejects German call to boycott British lamb.", "labels": [ [0, 2, "ORG"], [11, 17, "MISC"], ... ]}
{"text": "Peter Blackburn", "labels": [ [0, 15, "PERSON"] ]}
{"text": "President Obama", "labels": [ [10, 15, "PERSON"] ]}

4
frontend/static/formats/text_classification/download/example.csv

@ -1,4 +0,0 @@
id,text,label,user
1,"Terrible customer service.",1,1
2,"Really great transaction.",2,1
3,"Great price.",2,1

3
frontend/static/formats/text_classification/download/example.jsonl

@ -1,3 +0,0 @@
{"id": 1, "text": "Terrible customer service.", "annotations": [{"id": 1, "label": 1, "user": 1}]}
{"id": 2, "text": "Really great transaction.", "annotations": [{"id": 2, "label": 2, "user": 1}]}
{"id": 3, "text": "Great price.", "annotations": [{"id": 3, "label": 2, "user": 1}]}

2
frontend/static/formats/text_classification/download/fastText.txt

@ -1,2 +0,0 @@
__label__pet dog cat
__label__car VW BMW

4
frontend/static/formats/text_classification/upload/example.csv

@ -1,4 +0,0 @@
text,label
"Terrible customer service.","negative"
"Really great transaction.","positive"
"Great price.","positive"

3
frontend/static/formats/text_classification/upload/example.jsonl

@ -1,3 +0,0 @@
{"text": "Terrible customer service.", "labels": ["negative"]}
{"text": "Really great transaction.", "labels": ["positive"]}
{"text": "Great price.", "labels": ["positive"]}

2
frontend/static/formats/text_classification/upload/fastText.txt

@ -1,2 +0,0 @@
__label__[label name] text
__label_president Obama Trump

BIN
frontend/static/images/feature1.png

Before After
Width: 952  |  Height: 366  |  Size: 12 KiB

BIN
frontend/static/images/feature2.png

Before After
Width: 723  |  Height: 467  |  Size: 2.1 KiB

BIN
frontend/static/images/feature3.png

Before After
Width: 687  |  Height: 413  |  Size: 46 KiB

BIN
frontend/static/images/hero.jpeg

Before After
Width: 2200  |  Height: 1457  |  Size: 650 KiB

BIN
frontend/static/images/ner_demo.png

Before After
Width: 1582  |  Height: 711  |  Size: 172 KiB

BIN
frontend/static/images/vbanner.jpg

Before After
Width: 1920  |  Height: 1080  |  Size: 316 KiB

BIN
frontend/static/images/vuetify.png

Before After
Width: 197  |  Height: 225  |  Size: 2.4 KiB

BIN
frontend/static/v.png

Before After
Width: 120  |  Height: 120  |  Size: 5.5 KiB
Loading…
Cancel
Save