refactor assset and paths

This commit is contained in:
vabene1111 2021-02-15 21:01:54 +01:00
parent d116d08adf
commit 150d4c7309
9 changed files with 16 additions and 14 deletions

View File

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

View File

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -11,17 +11,17 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" type="image/x-icon" href="{% static 'favicon.svg' %}">
<link rel="shortcut icon" href="{% static 'favicon.svg' %}">
<link rel="icon" type="image/png" href="{% static 'favicon.svg' %}" sizes="32x32">
<link rel="icon" type="image/png" href="{% static 'favicon.svg' %}" sizes="96x96">
<link rel="apple-touch-icon" href="{% static 'favicon.svg' %}">
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'favicon.svg' %}">
<link rel="apple-touch-icon" sizes="152x152" href="{% static 'favicon.svg' %}">
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'favicon.svg' %}">
<link rel="apple-touch-icon" sizes="167x167" href="{% static 'favicon.svg' %}">
<link rel="shortcut icon" type="image/x-icon" href="{% static 'assets/favicon.svg' %}">
<link rel="shortcut icon" href="{% static 'assets/favicon.svg' %}">
<link rel="icon" type="image/png" href="{% static 'assets/favicon.svg' %}" sizes="32x32">
<link rel="icon" type="image/png" href="{% static 'assets/favicon.svg' %}" sizes="96x96">
<link rel="apple-touch-icon" href="{% static 'assets/favicon.svg' %}">
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'assets/favicon.svg' %}">
<link rel="apple-touch-icon" sizes="152x152" href="{% static 'assets/favicon.svg' %}">
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'assets/favicon.svg' %}">
<link rel="apple-touch-icon" sizes="167x167" href="{% static 'assets/favicon.svg' %}">
<link rel="manifest" href="{% static 'manifest/webmanifest.json' %}">
<link rel="manifest" href="{% url 'web_manifest' %}">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/mstile-144x144.png">

View File

@ -4,12 +4,12 @@
"description": "Application to manage, tag and search recipes.",
"icons": [
{
"src": "/static/manifest/logo_color144.png",
"src": "/static/assets/logo_color144.png",
"type": "image/png",
"sizes": "144x144"
},
{
"src": "/static/manifest/logo_color512.png",
"src": "/static/assets/logo_color512.png",
"type": "image/png",
"sizes": "512x512"
}

View File

@ -19,7 +19,7 @@
<img src=" {{ row.cells.image }}" alt="{% trans 'Recipe Image' %}"
class="card-img" style="object-fit: cover;height: 130px">
{% else %}
<img src="{% static 'recipe_no_image.svg' %}"
<img src="{% static 'assets/recipe_no_image.svg' %}"
alt="{% trans 'Recipe Image' %}"
class="card-img d-none d-md-block"
style="object-fit: cover; height: 130px">

View File

@ -105,8 +105,10 @@ urlpatterns = [
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
path('offline/', views.offline, name='view_offline'),
path('service-worker.js', (TemplateView.as_view(template_name="sw.js", content_type='application/javascript', )), name='service_worker'),
path('service-worker.js', (TemplateView.as_view(template_name="sw.js", content_type='application/javascript', )), name='service_worker'),
path('manifest.json', (TemplateView.as_view(template_name="manifest.json", content_type='application/json', )), name='web_manifest'),
]
generic_models = (