Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with the favicon not displaying #1958

Merged
merged 3 commits into from
Aug 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions backend/config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"""
import os
import re
from pathlib import Path

from django.conf import settings
from django.contrib import admin
Expand All @@ -36,6 +37,7 @@

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(
Expand All @@ -44,6 +46,8 @@
{"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),
Expand Down
Binary file modified frontend/static/favicon.ico
Binary file not shown.
3 changes: 0 additions & 3 deletions frontend/static/formats/generic/upload/example.txt

This file was deleted.

4 changes: 0 additions & 4 deletions frontend/static/formats/seq2seq/download/example.csv

This file was deleted.

3 changes: 0 additions & 3 deletions frontend/static/formats/seq2seq/download/example.jsonl

This file was deleted.

4 changes: 0 additions & 4 deletions frontend/static/formats/seq2seq/upload/example.csv

This file was deleted.

3 changes: 0 additions & 3 deletions frontend/static/formats/seq2seq/upload/example.jsonl

This file was deleted.

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions frontend/static/formats/sequence_labeling/upload/example.conll.txt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file removed frontend/static/images/feature1.png
Binary file not shown.
Binary file removed frontend/static/images/feature2.png
Binary file not shown.
Binary file removed frontend/static/images/feature3.png
Binary file not shown.
Binary file removed frontend/static/images/hero.jpeg
Binary file not shown.
Binary file removed frontend/static/images/ner_demo.png
Binary file not shown.
Binary file removed frontend/static/images/vbanner.jpg
Binary file not shown.
Binary file removed frontend/static/images/vuetify.png
Binary file not shown.
Binary file removed frontend/static/v.png
Binary file not shown.