Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use dashes instead of underscores in dashboard static images
Anna Siwik94dc398d8469
diff --git a/saleor/static/dashboard/images/account_circle.svg b/saleor/static/dashboard/images/account-circle.svgsimilarity index 100%rename from saleor/static/dashboard/images/account_circle.svgrename to saleor/static/dashboard/images/account-circle.svgdiff --git a/saleor/static/dashboard/images/arrow_drop_down.svg b/saleor/static/dashboard/images/arrow-drop-down.svgsimilarity index 100%rename from saleor/static/dashboard/images/arrow_drop_down.svgrename to saleor/static/dashboard/images/arrow-drop-down.svgdiff --git a/saleor/static/dashboard/images/arrow_left.svg b/saleor/static/dashboard/images/arrow-left.svgsimilarity index 100%rename from saleor/static/dashboard/images/arrow_left.svgrename to saleor/static/dashboard/images/arrow-left.svgdiff --git a/saleor/static/dashboard/images/chevron_left.svg b/saleor/static/dashboard/images/chevron-left.svgsimilarity index 100%rename from saleor/static/dashboard/images/chevron_left.svgrename to saleor/static/dashboard/images/chevron-left.svgdiff --git a/saleor/static/dashboard/images/chevron_right.svg b/saleor/static/dashboard/images/chevron-right.svgsimilarity index 100%rename from saleor/static/dashboard/images/chevron_right.svgrename to saleor/static/dashboard/images/chevron-right.svgdiff --git a/saleor/static/dashboard/images/mobile_menu.svg b/saleor/static/dashboard/images/mobile-menu.svgsimilarity index 100%rename from saleor/static/dashboard/images/mobile_menu.svgrename to saleor/static/dashboard/images/mobile-menu.svgdiff --git a/saleor/static/dashboard/images/more_vert.svg b/saleor/static/dashboard/images/more-vert.svgsimilarity index 100%rename from saleor/static/dashboard/images/more_vert.svgrename to saleor/static/dashboard/images/more-vert.svgdiff --git a/saleor/static/dashboard/images/visibility_off.svg b/saleor/static/dashboard/images/visibility_off.svgdeleted file mode 100644index 4c75f6fffe..0000000000--- a/saleor/static/dashboard/images/visibility_off.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#616161" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z" fill="none"/>- <path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/scss/components/_breadcrumbs.scss b/saleor/static/dashboard/scss/components/_breadcrumbs.scssindex 7da8e6cdc3..c67028d55a 100644--- a/saleor/static/dashboard/scss/components/_breadcrumbs.scss+++ b/saleor/static/dashboard/scss/components/_breadcrumbs.scss@@ -14,7 +14,7 @@&--history {li {&:before {- content: url('../images/chevron_right.svg');+ content: url('../images/chevron-right.svg');vertical-align: text-bottom;display: inline-block;}diff --git a/templates/dashboard/base.html b/templates/dashboard/base.htmlindex 33c096ab1c..3537003c78 100644--- a/templates/dashboard/base.html+++ b/templates/dashboard/base.html@@ -52,7 +52,7 @@</li></ul><a class="dropdown-button" data-constrainwidth="false" href="#" data-activates="user-action">- <svg data-src="{% static "/dashboard/images/account_circle.svg" %}" width="24" height="24" fill="#fff" />+ <svg data-src="{% static "/dashboard/images/account-circle.svg" %}" width="24" height="24" fill="#fff" /></a>{% if SEARCH_IS_ENABLED %}<a href="{% url "dashboard:search" %}" class="dropdown-button hide-on-med-and-up" id="btn-search">diff --git a/templates/dashboard/customer/detail.html b/templates/dashboard/customer/detail.htmlindex 5e91242d65..37f0fb6490 100644--- a/templates/dashboard/customer/detail.html+++ b/templates/dashboard/customer/detail.html@@ -38,7 +38,7 @@{% block header_extra %}{% if customer.pk and not customer.is_staff and perms.userprofile.edit_staff and perms.userprofile.edit_user or perms.userprofile.impersonate_user %}<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" /></a><ul id="context-menu" class="dropdown-content">{% if perms.userprofile.edit_user and perms.userprofile.edit_staff %}diff --git a/templates/dashboard/discount/sale/form.html b/templates/dashboard/discount/sale/form.htmlindex e4fb03e252..13b36429e6 100644--- a/templates/dashboard/discount/sale/form.html+++ b/templates/dashboard/discount/sale/form.html@@ -25,7 +25,7 @@{% if sale.pk %}<a class="dropdown-button right" href="#" data-activates="sale-delete"data-constrainwidth="false">- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" /></a><ul id="sale-delete" class="dropdown-content"><li>diff --git a/templates/dashboard/discount/voucher/form.html b/templates/dashboard/discount/voucher/form.htmlindex 09be3dcfc3..aca3f2cff3 100644--- a/templates/dashboard/discount/voucher/form.html+++ b/templates/dashboard/discount/voucher/form.html@@ -25,7 +25,7 @@{% if voucher.pk %}<a class="dropdown-button right" href="#" data-activates="voucher-delete"data-constrainwidth="false">- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" /></a><ul id="voucher-delete" class="dropdown-content"><li>diff --git a/templates/dashboard/group/detail.html b/templates/dashboard/group/detail.htmlindex ee1d25c0ff..14fd8d7f5e 100644--- a/templates/dashboard/group/detail.html+++ b/templates/dashboard/group/detail.html@@ -44,7 +44,7 @@{% block header_extra %}{% if group.pk %}<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" /></a><ul id="context-menu" class="dropdown-content">{% if perms.userprofile.edit_group %}diff --git a/templates/dashboard/includes/_pagination.html b/templates/dashboard/includes/_pagination.htmlindex d2089e5941..8bb4137acf 100644--- a/templates/dashboard/includes/_pagination.html+++ b/templates/dashboard/includes/_pagination.html@@ -6,14 +6,14 @@{% if page_obj.paginator.num_pages > 1 %}<ul class="pagination">{% if page_obj.has_previous %}- <li><a href="?page=1"><svg data-src="{% static "dashboard/images/chevron_left.svg" %}" fill="#000" /></a></li>+ <li><a href="?page=1"><svg data-src="{% static "dashboard/images/chevron-left.svg" %}" fill="#000" /></a></li>{% if page_obj.number|add:previous_section >= 1 %}<li><a href="{% construct_get_query page=page_obj.number|add:previous_section %}">…</a></li>{% elif page_obj.number|add:previous_section < 1 and page_obj.number|add:n_backward >= 1 %}<li><a href="?page=1">…</a></li>{% endif %}{% else %}- <li class="disabled"><a href="#!"><svg data-src="{% static "dashboard/images/chevron_left.svg" %}" fill="#9E9E9E" /></a></li>+ <li class="disabled"><a href="#!"><svg data-src="{% static "dashboard/images/chevron-left.svg" %}" fill="#9E9E9E" /></a></li>{% endif %}{% for page in page_obj.paginator.page_range %}@@ -30,9 +30,9 @@{% elif page_obj.number|add:next_section > page_obj.paginator.num_pages and page_obj.number|add:n_forward <= page_obj.paginator.num_pages %}<li><a href="{% construct_get_query page=page_obj.paginator.num_pages %}">…</a></li>{% endif %}- <li><a href="{% construct_get_query page=page_obj.paginator.num_pages %}"><svg data-src="{% static "dashboard/images/chevron_right.svg" %}" fill="#000" /></a></li>+ <li><a href="{% construct_get_query page=page_obj.paginator.num_pages %}"><svg data-src="{% static "dashboard/images/chevron-right.svg" %}" fill="#000" /></a></li>{% else %}- <li class="disabled"><a href="#!"><svg data-src="{% static "dashboard/images/chevron_right.svg" %}" fill="#9E9E9E" /></a></li>+ <li class="disabled"><a href="#!"><svg data-src="{% static "dashboard/images/chevron-right.svg" %}" fill="#9E9E9E" /></a></li>{% endif %}</li></ul>diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.htmlindex 3a35ddc88f..9ee2ab0390 100644--- a/templates/dashboard/order/detail.html+++ b/templates/dashboard/order/detail.html@@ -22,7 +22,7 @@{% block header_extra %}<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" /></a><ul id="context-menu" class="dropdown-content">{% if perms.order.edit_order %}@@ -300,7 +300,7 @@{% if group.can_edit_lines %}<a class="dropdown-button" href="#" data-activates="line-actions-{{ line.pk }}" data-constrainwidth="false">{{ line.quantity }} {% if line.stock_location %} ({{ line.stock_location|truncatechars:10 }}) {% endif %}- <svg data-src="{% static "dashboard/images/arrow_drop_down.svg" %}" width="24" height="24" />+ <svg data-src="{% static "dashboard/images/arrow-drop-down.svg" %}" width="24" height="24" /></a><ul id="line-actions-{{ line.pk }}" class="dropdown-content"><li>@@ -413,7 +413,7 @@{% blocktrans trimmed with voucher=order.discount_name context "Order totals header" %}Voucher {{ voucher }}{% endblocktrans %}- <svg data-src="{% static "dashboard/images/arrow_drop_down.svg" %}" />+ <svg data-src="{% static "dashboard/images/arrow-drop-down.svg" %}" /></a><ul id="voucher-actions" class="dropdown-content"><li>diff --git a/templates/dashboard/product/product_class/form.html b/templates/dashboard/product/product_class/form.htmlindex 05d7a7d28d..6aa125de30 100644--- a/templates/dashboard/product/product_class/form.html+++ b/templates/dashboard/product/product_class/form.html@@ -49,7 +49,7 @@{% block header_extra %}{% if product_class.pk %}<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" /></a><ul id="context-menu" class="dropdown-content">{% if perms.product.edit_properties %}diff --git a/templates/dashboard/product/product_variant/form.html b/templates/dashboard/product/product_variant/form.htmlindex 934445a546..3cd8c5d873 100644--- a/templates/dashboard/product/product_variant/form.html+++ b/templates/dashboard/product/product_variant/form.html@@ -28,7 +28,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:product-detail" pk=product.pk %}">- <svg data-src="{% static "dashboard/images/chevron_left.svg" %}" />+ <svg data-src="{% static "dashboard/images/chevron-left.svg" %}" /></a></li><li>diff --git a/templates/dashboard/product/stock/form.html b/templates/dashboard/product/stock/form.htmlindex 1c8eb3005c..5f34696c87 100644--- a/templates/dashboard/product/stock/form.html+++ b/templates/dashboard/product/stock/form.html@@ -32,7 +32,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:product-detail" pk=product.pk %}">- <svg data-src="{% static "dashboard/images/chevron_left.svg" %}" />+ <svg data-src="{% static "dashboard/images/chevron-left.svg" %}" /></a></li><li>diff --git a/templates/dashboard/product/stock_location/form.html b/templates/dashboard/product/stock_location/form.htmlindex 3a47fc44a5..2d70440eac 100644--- a/templates/dashboard/product/stock_location/form.html+++ b/templates/dashboard/product/stock_location/form.html@@ -18,7 +18,7 @@{% block header_extra %}{% if location.pk %}<a class="dropdown-button right" href="#" data-activates="attribute-delete" data-constrainwidth="false">- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" /></a><ul id="attribute-delete" class="dropdown-content"><li>diff --git a/templates/dashboard/staff/detail.html b/templates/dashboard/staff/detail.htmlindex 6f46decbf5..9baa367484 100644--- a/templates/dashboard/staff/detail.html+++ b/templates/dashboard/staff/detail.html@@ -40,7 +40,7 @@{% block header_extra %}{% if user != staff_member and staff_member.pk %}<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" /></a><ul id="context-menu" class="dropdown-content">{% if perms.userprofile.edit_staff %}diff --git a/templates/dashboard/styleguide/index.html b/templates/dashboard/styleguide/index.htmlindex 4c2eef1a47..52198ad0c3 100644--- a/templates/dashboard/styleguide/index.html+++ b/templates/dashboard/styleguide/index.html@@ -450,12 +450,12 @@Used icons</h4><svg data-src="{% static "dashboard/images/add.svg" %}" />- <svg data-src="{% static "dashboard/images/account_circle.svg" %}" />+ <svg data-src="{% static "dashboard/images/account-circle.svg" %}" /><svg data-src="{% static "dashboard/images/search.svg" %}" /><svg data-src="{% static "dashboard/images/mobile-menu.svg" %}" />- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" /><svg data-src="{% static "dashboard/images/arrow-left.svg" %}" />- <svg data-src="{% static "dashboard/images/chevron_right.svg" %}" fill="#000" />+ <svg data-src="{% static "dashboard/images/chevron-right.svg" %}" fill="#000" /><svg data-src="{% static "dashboard/images/edit.svg" %}" fill="#000" width="24px" height="24px" /><svg data-src="{% static "dashboard/images/style.svg" %}" fill="#000" width="24px" height="24px" /><svg data-src="{% static "dashboard/images/store.svg" %}" fill="#000" width="24px" height="24px" />@@ -463,7 +463,7 @@<svg data-src="{% static "dashboard/images/description.svg" %}" fill="#000" width="24px" height="24px" /><svg data-src="{% static "dashboard/images/description.svg" %}" fill="#000" width="24px" height="24px" /><svg data-src="{% static "dashboard/images/history.svg" %}" fill="#000" width="24px" height="24px" />- <svg data-src="{% static "dashboard/images/arrow_drop_down.svg" %}" fill="#000" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/arrow-drop-down.svg" %}" fill="#000" width="24px" height="24px" /></div><div class="section"><h4>@@ -1489,7 +1489,7 @@<div class="section"><h4>Icon</h4><a class="dropdown-button" href="#" data-activates="dropdown1">- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" /></a></div><ul id="dropdown1" class="dropdown-content">@@ -1529,7 +1529,7 @@<div class="section"><h4>Dropdown</h4><a class='dropdown-button' href='#' data-activates='dropdown2'>- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" /></a><ul id='dropdown2' class='dropdown-content'><li>@@ -1577,7 +1577,7 @@<ul class="pagination"><li class="disabled"><a href="#!">- <svg data-src="{% static "dashboard/images/chevron_left.svg" %}" />+ <svg data-src="{% static "dashboard/images/chevron-left.svg" %}" /></a></li><li class="active">@@ -1607,7 +1607,7 @@</li><li><a href="">- <svg data-src="{% static "dashboard/images/chevron_right.svg" %}" fill="#000" />+ <svg data-src="{% static "dashboard/images/chevron-right.svg" %}" fill="#000" /></a></li></ul>