From 96eacb5439e4d5563a4dd72bdfb6667c74fcb902 Mon Sep 17 00:00:00 2001 From: Josseline Perdomo Date: Aug 19 2021 21:09:40 +0000 Subject: [PATCH 1/3] Updated gitignore to add dist directory Signed-off-by: Josseline Perdomo --- diff --git a/.gitignore b/.gitignore index e1f6c9c..e2607ff 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ __pycache__/ # Distribution / packaging build/ develop-eggs/ -dist/ eggs/ .eggs/ lib/ From 067c4a511a391d96580bb587d19e8c74ac737a6d Mon Sep 17 00:00:00 2001 From: Josseline Perdomo Date: Aug 19 2021 21:10:22 +0000 Subject: [PATCH 2/3] Deleted unused config var Signed-off-by: Josseline Perdomo --- diff --git a/contributor_trends/dashboard/__init__.py b/contributor_trends/dashboard/__init__.py index 66b99c5..f86ea19 100644 --- a/contributor_trends/dashboard/__init__.py +++ b/contributor_trends/dashboard/__init__.py @@ -12,7 +12,6 @@ def create_dashboard(server: Flask, url_base_pathname: Optional[str] = "/") -> D meta_tags=[ {"name": "viewport", "content": "width=device-width, initial-scale=1"} ], - external_stylesheets=[server.config["ASSETS_STYLES_URL"]], suppress_callback_exceptions=True, ) From 92b048965d9043325837223d22c52bcdd66a7567 Mon Sep 17 00:00:00 2001 From: Josseline Perdomo Date: Aug 19 2021 21:11:31 +0000 Subject: [PATCH 3/3] Added Fedora Logo into header component Signed-off-by: Josseline Perdomo --- diff --git a/contributor_trends/dashboard/components.py b/contributor_trends/dashboard/components.py index a6ccc36..ea1fc49 100644 --- a/contributor_trends/dashboard/components.py +++ b/contributor_trends/dashboard/components.py @@ -70,10 +70,7 @@ class Header: return html.Header( [ html.Img( - src=urljoin( - current_app.config["ASSETS_IMAGES_URL"], - "fedora-logo-sprite.svg", - ), + src="/static/dist/images/fedora-logo-sprite.svg", alt="Fedora Logo", className="header-logo", ), diff --git a/contributor_trends/static/dist/images/fedora-logo-sprite.svg b/contributor_trends/static/dist/images/fedora-logo-sprite.svg new file mode 100644 index 0000000..cf59456 --- /dev/null +++ b/contributor_trends/static/dist/images/fedora-logo-sprite.svg @@ -0,0 +1,59 @@ + +Fedora Logomarkimage/svg+xmlFedora Logomark17 March 2021Trademark of Red Hat, Inc., All Rights ReservedMáirín Duffy <duffy@redhat.com>