Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Rearrange static files, make icons name more consistent
weronka4eb26d5c7c97
diff --git a/saleor/static/images/account_circle.svg b/saleor/static/dashboard/images/account_circle.svgsimilarity index 100%rename from saleor/static/images/account_circle.svgrename to saleor/static/dashboard/images/account_circle.svgdiff --git a/saleor/static/images/add.svg b/saleor/static/dashboard/images/add.svgsimilarity index 100%rename from saleor/static/images/add.svgrename to saleor/static/dashboard/images/add.svgdiff --git a/saleor/static/images/arrow_drop_down.svg b/saleor/static/dashboard/images/arrow_drop_down.svgsimilarity index 100%rename from saleor/static/images/arrow_drop_down.svgrename to saleor/static/dashboard/images/arrow_drop_down.svgdiff --git a/saleor/static/images/chevron_left.svg b/saleor/static/dashboard/images/chevron_left.svgsimilarity index 100%rename from saleor/static/images/chevron_left.svgrename to saleor/static/dashboard/images/chevron_left.svgdiff --git a/saleor/static/images/chevron_right.svg b/saleor/static/dashboard/images/chevron_right.svgsimilarity index 100%rename from saleor/static/images/chevron_right.svgrename to saleor/static/dashboard/images/chevron_right.svgdiff --git a/saleor/static/images/collections.svg b/saleor/static/dashboard/images/collections.svgsimilarity index 100%rename from saleor/static/images/collections.svgrename to saleor/static/dashboard/images/collections.svgdiff --git a/saleor/static/images/description.svg b/saleor/static/dashboard/images/description.svgsimilarity index 100%rename from saleor/static/images/description.svgrename to saleor/static/dashboard/images/description.svgdiff --git a/saleor/static/dashboard/images/edit.svg b/saleor/static/dashboard/images/edit.svgnew file mode 100644index 0000000000..c81d493286--- /dev/null+++ b/saleor/static/dashboard/images/edit.svg@@ -0,0 +1,4 @@+<svg fill="#E57373" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">+ <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/>+ <path d="M0 0h24v24H0z" fill="none"/>+</svg>\ No newline at end of filediff --git a/saleor/static/images/email.svg b/saleor/static/dashboard/images/email.svgsimilarity index 100%rename from saleor/static/images/email.svgrename to saleor/static/dashboard/images/email.svgdiff --git a/saleor/static/images/help.svg b/saleor/static/dashboard/images/help.svgsimilarity index 100%rename from saleor/static/images/help.svgrename to saleor/static/dashboard/images/help.svgdiff --git a/saleor/static/images/history.svg b/saleor/static/dashboard/images/history.svgsimilarity index 100%rename from saleor/static/images/history.svgrename to saleor/static/dashboard/images/history.svgdiff --git a/saleor/static/images/more_vert.svg b/saleor/static/dashboard/images/more_vert.svgsimilarity index 100%rename from saleor/static/images/more_vert.svgrename to saleor/static/dashboard/images/more_vert.svgdiff --git a/saleor/static/images/payment.svg b/saleor/static/dashboard/images/payment.svgsimilarity index 100%rename from saleor/static/images/payment.svgrename to saleor/static/dashboard/images/payment.svgdiff --git a/saleor/static/images/phone.svg b/saleor/static/dashboard/images/phone.svgsimilarity index 100%rename from saleor/static/images/phone.svgrename to saleor/static/dashboard/images/phone.svgdiff --git a/saleor/static/images/saleor-logo.svg b/saleor/static/dashboard/images/saleor_logo.svgsimilarity index 100%rename from saleor/static/images/saleor-logo.svgrename to saleor/static/dashboard/images/saleor_logo.svgdiff --git a/saleor/static/images/store.svg b/saleor/static/dashboard/images/store.svgsimilarity index 100%rename from saleor/static/images/store.svgrename to saleor/static/dashboard/images/store.svgdiff --git a/saleor/static/images/style.svg b/saleor/static/dashboard/images/style.svgsimilarity index 100%rename from saleor/static/images/style.svgrename to saleor/static/dashboard/images/style.svgdiff --git a/saleor/static/images/visibility_off.svg b/saleor/static/dashboard/images/visibility_off.svgsimilarity index 100%rename from saleor/static/images/visibility_off.svgrename to saleor/static/dashboard/images/visibility_off.svgdiff --git a/saleor/static/js/dashboard.js b/saleor/static/dashboard/js/dashboard.jssimilarity index 99%rename from saleor/static/js/dashboard.jsrename to saleor/static/dashboard/js/dashboard.jsindex 4e9d73ee65..9dc37db1f4 100644--- a/saleor/static/js/dashboard.js+++ b/saleor/static/dashboard/js/dashboard.js@@ -5,7 +5,7 @@ import 'select2';import Sortable from 'sortablejs';import SVGInjector from 'svg-injector-2';-import '../scss/dashboard/dashboard.scss';+import '../scss/dashboard.scss';var supportsPassive = false;try {diff --git a/saleor/static/scss/dashboard/components/_breadcrumbs.scss b/saleor/static/dashboard/scss/components/_breadcrumbs.scsssimilarity index 100%rename from saleor/static/scss/dashboard/components/_breadcrumbs.scssrename to saleor/static/dashboard/scss/components/_breadcrumbs.scssdiff --git a/saleor/static/scss/dashboard/components/_buttons.scss b/saleor/static/dashboard/scss/components/_buttons.scsssimilarity index 100%rename from saleor/static/scss/dashboard/components/_buttons.scssrename to saleor/static/dashboard/scss/components/_buttons.scssdiff --git a/saleor/static/scss/dashboard/components/_data-table.scss b/saleor/static/dashboard/scss/components/_data-table.scsssimilarity index 100%rename from saleor/static/scss/dashboard/components/_data-table.scssrename to saleor/static/dashboard/scss/components/_data-table.scssdiff --git a/saleor/static/scss/dashboard/components/_dropzone.scss b/saleor/static/dashboard/scss/components/_dropzone.scsssimilarity index 100%rename from saleor/static/scss/dashboard/components/_dropzone.scssrename to saleor/static/dashboard/scss/components/_dropzone.scssdiff --git a/saleor/static/scss/dashboard/components/_form.scss b/saleor/static/dashboard/scss/components/_form.scsssimilarity index 100%rename from saleor/static/scss/dashboard/components/_form.scssrename to saleor/static/dashboard/scss/components/_form.scssdiff --git a/saleor/static/scss/dashboard/components/_formset.scss b/saleor/static/dashboard/scss/components/_formset.scsssimilarity index 100%rename from saleor/static/scss/dashboard/components/_formset.scssrename to saleor/static/dashboard/scss/components/_formset.scssdiff --git a/saleor/static/scss/dashboard/components/_global.scss b/saleor/static/dashboard/scss/components/_global.scsssimilarity index 100%rename from saleor/static/scss/dashboard/components/_global.scssrename to saleor/static/dashboard/scss/components/_global.scssdiff --git a/saleor/static/scss/dashboard/components/_list.scss b/saleor/static/dashboard/scss/components/_list.scsssimilarity index 100%rename from saleor/static/scss/dashboard/components/_list.scssrename to saleor/static/dashboard/scss/components/_list.scssdiff --git a/saleor/static/scss/dashboard/components/_modals.scss b/saleor/static/dashboard/scss/components/_modals.scsssimilarity index 100%rename from saleor/static/scss/dashboard/components/_modals.scssrename to saleor/static/dashboard/scss/components/_modals.scssdiff --git a/saleor/static/scss/dashboard/components/_nav.scss b/saleor/static/dashboard/scss/components/_nav.scsssimilarity index 96%rename from saleor/static/scss/dashboard/components/_nav.scssrename to saleor/static/dashboard/scss/components/_nav.scssindex 73a57f9461..8ad987fa5a 100644--- a/saleor/static/scss/dashboard/components/_nav.scss+++ b/saleor/static/dashboard/scss/components/_nav.scss@@ -63,9 +63,6 @@ header {position: absolute;width: 237px;z-index: 2;- i {- color: white;- }a:hover {background-color: transparent;}@@ -74,11 +71,6 @@ header {float: left;margin: 0 $gutter-width;display: block;- i {- font-size: 2.7rem;- height: $header-height;- line-height: $header-height;- }}.dropdown-button {diff --git a/saleor/static/scss/dashboard/components/_pagination.scss b/saleor/static/dashboard/scss/components/_pagination.scsssimilarity index 100%rename from saleor/static/scss/dashboard/components/_pagination.scssrename to saleor/static/dashboard/scss/components/_pagination.scssdiff --git a/saleor/static/scss/dashboard/components/_ppoi.scss b/saleor/static/dashboard/scss/components/_ppoi.scsssimilarity index 100%rename from saleor/static/scss/dashboard/components/_ppoi.scssrename to saleor/static/dashboard/scss/components/_ppoi.scssdiff --git a/saleor/static/scss/dashboard/components/_product-gallery.scss b/saleor/static/dashboard/scss/components/_product-gallery.scsssimilarity index 97%rename from saleor/static/scss/dashboard/components/_product-gallery.scssrename to saleor/static/dashboard/scss/components/_product-gallery.scssindex d069dd1265..469a6c450b 100644--- a/saleor/static/scss/dashboard/components/_product-gallery.scss+++ b/saleor/static/dashboard/scss/components/_product-gallery.scss@@ -65,9 +65,6 @@right: 0;padding: .5rem 1rem;cursor: move;- i {- font-size: 1.5rem;- }}.sortable-ghost {diff --git a/saleor/static/scss/dashboard/components/_search.scss b/saleor/static/dashboard/scss/components/_search.scsssimilarity index 100%rename from saleor/static/scss/dashboard/components/_search.scssrename to saleor/static/dashboard/scss/components/_search.scssdiff --git a/saleor/static/scss/dashboard/components/_select2.scss b/saleor/static/dashboard/scss/components/_select2.scsssimilarity index 100%rename from saleor/static/scss/dashboard/components/_select2.scssrename to saleor/static/dashboard/scss/components/_select2.scssdiff --git a/saleor/static/scss/dashboard/components/_tabs.scss b/saleor/static/dashboard/scss/components/_tabs.scsssimilarity index 100%rename from saleor/static/scss/dashboard/components/_tabs.scssrename to saleor/static/dashboard/scss/components/_tabs.scssdiff --git a/saleor/static/scss/dashboard/dashboard.scss b/saleor/static/dashboard/scss/dashboard.scsssimilarity index 100%rename from saleor/static/scss/dashboard/dashboard.scssrename to saleor/static/dashboard/scss/dashboard.scssdiff --git a/saleor/static/scss/dashboard/layouts/_style-guide.scss b/saleor/static/dashboard/scss/layouts/_style-guide.scsssimilarity index 92%rename from saleor/static/scss/dashboard/layouts/_style-guide.scssrename to saleor/static/dashboard/scss/layouts/_style-guide.scssindex 3aed41d0bc..786603d0ff 100644--- a/saleor/static/scss/dashboard/layouts/_style-guide.scss+++ b/saleor/static/dashboard/scss/layouts/_style-guide.scss@@ -106,19 +106,6 @@}}}- #icons, #dropdowns, #modals {- h3 {- i {- color: $grey-color;- font-size: 1.5rem;- }- }- i {- color: $off-black;- font-size: 2rem;- padding-right: 20px;- }- }@media only screen and (max-width: $small-screen-up) {#buttons {diff --git a/saleor/static/scss/dashboard/variables.scss b/saleor/static/dashboard/scss/variables.scsssimilarity index 100%rename from saleor/static/scss/dashboard/variables.scssrename to saleor/static/dashboard/scss/variables.scssdiff --git a/saleor/static/images/arrow-down-icon.svg b/saleor/static/images/arrow_down.svgsimilarity index 100%rename from saleor/static/images/arrow-down-icon.svgrename to saleor/static/images/arrow_down.svgdiff --git a/saleor/static/images/arrow-left-icon.svg b/saleor/static/images/arrow_left.svgsimilarity index 100%rename from saleor/static/images/arrow-left-icon.svgrename to saleor/static/images/arrow_left.svgdiff --git a/saleor/static/images/arrow-up-icon.svg b/saleor/static/images/arrow_up.svgsimilarity index 100%rename from saleor/static/images/arrow-up-icon.svgrename to saleor/static/images/arrow_up.svgdiff --git a/saleor/static/images/chevron-down-icon.svg b/saleor/static/images/chevron_down.svgsimilarity index 100%rename from saleor/static/images/chevron-down-icon.svgrename to saleor/static/images/chevron_down.svgdiff --git a/saleor/static/images/chevron-up-icon.svg b/saleor/static/images/chevron_up.svgsimilarity index 100%rename from saleor/static/images/chevron-up-icon.svgrename to saleor/static/images/chevron_up.svgdiff --git a/saleor/static/images/close-icon.svg b/saleor/static/images/close.svgsimilarity index 100%rename from saleor/static/images/close-icon.svgrename to saleor/static/images/close.svgdiff --git a/saleor/static/images/icon_delete.svg b/saleor/static/images/delete.svgsimilarity index 100%rename from saleor/static/images/icon_delete.svgrename to saleor/static/images/delete.svgdiff --git a/saleor/static/images/facebook_icon.svg b/saleor/static/images/facebook.svgsimilarity index 100%rename from saleor/static/images/facebook_icon.svgrename to saleor/static/images/facebook.svgdiff --git a/saleor/static/images/gallery-arrow.svg b/saleor/static/images/gallery_arrow.svgsimilarity index 100%rename from saleor/static/images/gallery-arrow.svgrename to saleor/static/images/gallery_arrow.svgdiff --git a/saleor/static/images/google_icon.svg b/saleor/static/images/google.svgsimilarity index 100%rename from saleor/static/images/google_icon.svgrename to saleor/static/images/google.svgdiff --git a/saleor/static/images/icon_edit.svg b/saleor/static/images/icon_edit.svgdeleted file mode 100644index 3f4f4ef811..0000000000--- a/saleor/static/images/icon_edit.svg+++ /dev/null@@ -1,35 +0,0 @@-<svg width="21" height="20" viewBox="0 0 21 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:figma="http://www.figma.com/figma/ns">-<title>icon_pen_03 2</title>-<desc>Created using Figma</desc>-<g id="Canvas" transform="translate(-3658 -3610)" figma:type="canvas">-<rect x="3658" y="3610" width="21" height="20" fill="#E5E5E5"/>-<mask id="mask0_alpha" mask-type="alpha">-<path d="M 2790 3078L 3930 3078L 3930 4099L 2790 4099L 2790 3078Z" fill="#FFFFFF"/>-</mask>-<g id="My Account" style="mix-blend-mode:normal;" mask="url(#mask0_alpha)" figma:type="frame">-<path d="M 2790 3078L 3930 3078L 3930 4099L 2790 4099L 2790 3078Z" fill="#FFFFFF"/>-<g id="icon_pen_03 2" style="mix-blend-mode:normal;" figma:type="frame">-<g id="Group" style="mix-blend-mode:normal;" figma:type="frame">-<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">-<use xlink:href="#path0_fill" transform="translate(3658.01 3627.71)" fill="#828282" style="mix-blend-mode:normal;"/>-</g>-<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">-<use xlink:href="#path1_fill" transform="translate(3659.03 3624.49)" fill="#828282" style="mix-blend-mode:normal;"/>-</g>-<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">-<use xlink:href="#path2_fill" transform="matrix(-0.707329 -0.70697 0.707229 -0.707071 3664 3627.6)" fill="#828282" style="mix-blend-mode:normal;"/>-</g>-<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">-<use xlink:href="#path3_fill" transform="translate(3672.61 3610)" fill="#828282" style="mix-blend-mode:normal;"/>-</g>-</g>-</g>-</g>-</g>-<defs>-<path id="path0_fill" d="M -3.14582e-08 2.28841L 2.28925 1.52341L 0.765282 -9.55979e-07L -3.14582e-08 2.28841Z"/>-<path id="path1_fill" d="M 1.79555 4.48889L 4.49164 3.5887L 0.900526 -4.02517e-07L -3.25068e-08 2.69399L 1.79555 4.48889Z"/>-<path id="path2_fill" d="M 5.07676 0L 0 0L 0 16.5748L 5.07676 16.5748L 5.07676 0Z"/>-<path id="path3_fill" d="M 3.59111 5.40451L 5.24372 3.7536C 5.24372 3.7536 5.72312 3.27438 5.00402 2.55664L 2.85002 0.403419C 2.85002 0.403419 2.13201 -0.31432 1.65261 0.164906L -4.27831e-07 1.81582L 3.59111 5.40451Z"/>-</defs>-</svg>diff --git a/saleor/static/images/mobile-bar.svg b/saleor/static/images/mobile_menu.svgsimilarity index 100%rename from saleor/static/images/mobile-bar.svgrename to saleor/static/images/mobile_menu.svgdiff --git a/saleor/static/images/pass-invisible.svg b/saleor/static/images/pass_invisible.svgsimilarity index 100%rename from saleor/static/images/pass-invisible.svgrename to saleor/static/images/pass_invisible.svgdiff --git a/saleor/static/images/pass-visible.svg b/saleor/static/images/pass_visible.svgsimilarity index 100%rename from saleor/static/images/pass-visible.svgrename to saleor/static/images/pass_visible.svgdiff --git a/saleor/static/images/dashboard-logo.svg b/saleor/static/images/saleor_logo.svgsimilarity index 79%rename from saleor/static/images/dashboard-logo.svgrename to saleor/static/images/saleor_logo.svgindex 8b1917254c..dc7815c660 100644--- a/saleor/static/images/dashboard-logo.svg+++ b/saleor/static/images/saleor_logo.svg@@ -1,8 +1,7 @@<?xml version="1.0" encoding="utf-8"?>-<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --><svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"- viewBox="0 0 282.3 60.9" enable-background="new 0 0 282.3 60.9" height="30" xml:space="preserve">-<path id="XMLID_124_" fill="white" stroke="white" d="M267.7,37.7c6.1-2.8,10-9.2,10-16.7c0-5.7-2-10.1-6.2-14.1c-4.1-4-9.1-5.7-14.9-5.7h-27.2v15.9+ viewBox="0 0 282.3 60.9" height="38px" width="176px" enable-background="new 0 0 282.3 60.9" xml:space="preserve">+<path fill="white" id="XMLID_124_" d="M267.7,37.7c6.1-2.8,10-9.2,10-16.7c0-5.7-2-10.1-6.2-14.1c-4.1-4-9.1-5.7-14.9-5.7h-27.2v15.9c-1-2.9-3.5-5.7-6.1-8.2C217,3,209.5,0,200.4,0s-16.5,3-22.9,8.9c-1.2,1.1-2.1,2.3-3.1,3.5V1.2h-43v44h-19v-44h-16v47.2L77.3,1.2H62.6L48.4,35.8c-1.8-4.7-6-8.2-13.2-10.8c-3.7-1.4-8.4-2.8-10.4-3.2c-1-0.3-2-0.6-3-1c-1.8-0.8-2.4-1.7-2.4-3.4c0-2.1,2.3-3.6,6.4-3.6c4.5,0,8,1.5,10.6,4.6l10.6-9C42.3,3.1,35,0,25.3,0c-5.8,0-10.8,1.5-14.9,4.6c-4.1,3.1-6.2,7.4-6.2,13diff --git a/saleor/static/images/search-icon.svg b/saleor/static/images/search.svgsimilarity index 100%rename from saleor/static/images/search-icon.svgrename to saleor/static/images/search.svgdiff --git a/saleor/static/images/text-cursor.svg b/saleor/static/images/text-cursor.svgdeleted file mode 100644index 1507007afd..0000000000--- a/saleor/static/images/text-cursor.svg+++ /dev/null@@ -1 +0,0 @@-<svg width="14" height="14" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M888 1184l116-116-152-152-116 116v56h96v96h56zm440-720q-16-16-33 1l-350 350q-17 17-1 33t33-1l350-350q17-17 1-33zm80 594v190q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-14 14-32 8-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-126q0-13 9-22l64-64q15-15 35-7t20 29zm-96-738l288 288-672 672h-288v-288zm444 132l-92 92-288-288 92-92q28-28 68-28t68 28l152 152q28 28 28 68t-28 68z"/></svg>diff --git a/saleor/static/images/visibility.svg b/saleor/static/images/visibility.svgdeleted file mode 100644index 46f20fedb8..0000000000--- a/saleor/static/images/visibility.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 0h24v24H0z" fill="none"/>- <path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/>-</svg>\ No newline at end of filediff --git a/saleor/static/js/components/categoryPage/CategoryFilter.js b/saleor/static/js/components/categoryPage/CategoryFilter.jsindex f23934bef9..f22f0b6e50 100644--- a/saleor/static/js/components/categoryPage/CategoryFilter.js+++ b/saleor/static/js/components/categoryPage/CategoryFilter.js@@ -1,7 +1,7 @@import React, { Component, PropTypes } from 'react';import InlineSVG from 'react-inlinesvg';-import arrowLeftIcon from '../../../images/arrow-left-icon.svg';+import arrowLeftIcon from '../../../images/arrow_left.svg';export default class CategoryFilter extends Component {diff --git a/saleor/static/js/components/categoryPage/FilterHeader.js b/saleor/static/js/components/categoryPage/FilterHeader.jsindex a38302b4b1..76f68267db 100644--- a/saleor/static/js/components/categoryPage/FilterHeader.js+++ b/saleor/static/js/components/categoryPage/FilterHeader.js@@ -2,8 +2,8 @@ import React, { PropTypes } from 'react';import InlineSVG from 'react-inlinesvg';-import chevronUpIcon from '../../../images/chevron-up-icon.svg';-import chevronDownIcon from '../../../images/chevron-down-icon.svg';+import chevronUpIcon from '../../../images/chevron_up.svg';+import chevronDownIcon from '../../../images/chevron_down.svg';const FilterHeader = ({ onClick, title, visibility }) => {const imageSrc = visibility ? (chevronUpIcon) : (chevronDownIcon);diff --git a/saleor/static/js/components/categoryPage/SortBy.js b/saleor/static/js/components/categoryPage/SortBy.jsindex 3083278466..8176d9858d 100644--- a/saleor/static/js/components/categoryPage/SortBy.js+++ b/saleor/static/js/components/categoryPage/SortBy.js@@ -1,8 +1,8 @@import React, { Component, PropTypes } from 'react';import InlineSVG from 'react-inlinesvg';-import arrowUpIcon from '../../../images/arrow-up-icon.svg';-import arrowDownIcon from '../../../images/arrow-down-icon.svg';+import arrowUpIcon from '../../../images/arrow_up.svg';+import arrowDownIcon from '../../../images/arrow_down.svg';export default class sortBy extends Component {diff --git a/saleor/static/js/storefront.js b/saleor/static/js/storefront.jsindex f13e18eecb..6e9c652e95 100644--- a/saleor/static/js/storefront.js+++ b/saleor/static/js/storefront.js@@ -1,4 +1,4 @@-import '../scss/storefront/storefront.scss';+import '../scss/storefront.scss';import 'jquery.cookie';import React from 'react';import ReactDOM from 'react-dom';@@ -7,8 +7,8 @@ import SVGInjector from 'svg-injector-2';import variantPickerStore from './stores/variantPicker';-import passwordIvisible from '../images/pass-invisible.svg';-import passwordVisible from '../images/pass-visible.svg';+import passwordIvisible from '../images/pass_invisible.svg';+import passwordVisible from '../images/pass_visible.svg';import VariantPicker from './components/variantPicker/VariantPicker';import VariantPrice from './components/variantPicker/VariantPrice';diff --git a/saleor/static/scss/storefront/components/_breadcrumbs.scss b/saleor/static/scss/components/_breadcrumbs.scsssimilarity index 100%rename from saleor/static/scss/storefront/components/_breadcrumbs.scssrename to saleor/static/scss/components/_breadcrumbs.scssdiff --git a/saleor/static/scss/storefront/components/_buttons.scss b/saleor/static/scss/components/_buttons.scsssimilarity index 100%rename from saleor/static/scss/storefront/components/_buttons.scssrename to saleor/static/scss/components/_buttons.scssdiff --git a/saleor/static/scss/storefront/components/_cards.scss b/saleor/static/scss/components/_cards.scsssimilarity index 100%rename from saleor/static/scss/storefront/components/_cards.scssrename to saleor/static/scss/components/_cards.scssdiff --git a/saleor/static/scss/storefront/components/_cart-dropdown.scss b/saleor/static/scss/components/_cart-dropdown.scsssimilarity index 100%rename from saleor/static/scss/storefront/components/_cart-dropdown.scssrename to saleor/static/scss/components/_cart-dropdown.scssdiff --git a/saleor/static/scss/storefront/components/_filters.scss b/saleor/static/scss/components/_filters.scsssimilarity index 98%rename from saleor/static/scss/storefront/components/_filters.scssrename to saleor/static/scss/components/_filters.scssindex e6bf181a40..905643fad0 100644--- a/saleor/static/scss/storefront/components/_filters.scss+++ b/saleor/static/scss/components/_filters.scss@@ -79,9 +79,6 @@}&__parents {padding-left: $global-padding;- i {- padding-right: $global-padding/2;- }a {color: $body-color;}diff --git a/saleor/static/scss/storefront/components/_footer.scss b/saleor/static/scss/components/_footer.scsssimilarity index 100%rename from saleor/static/scss/storefront/components/_footer.scssrename to saleor/static/scss/components/_footer.scssdiff --git a/saleor/static/scss/storefront/components/_forms.scss b/saleor/static/scss/components/_forms.scsssimilarity index 100%rename from saleor/static/scss/storefront/components/_forms.scssrename to saleor/static/scss/components/_forms.scssdiff --git a/saleor/static/scss/storefront/components/_header.scss b/saleor/static/scss/components/_header.scsssimilarity index 100%rename from saleor/static/scss/storefront/components/_header.scssrename to saleor/static/scss/components/_header.scssdiff --git a/saleor/static/scss/storefront/components/_labels.scss b/saleor/static/scss/components/_labels.scsssimilarity index 100%rename from saleor/static/scss/storefront/components/_labels.scssrename to saleor/static/scss/components/_labels.scssdiff --git a/saleor/static/scss/storefront/components/_loader.scss b/saleor/static/scss/components/_loader.scsssimilarity index 100%rename from saleor/static/scss/storefront/components/_loader.scssrename to saleor/static/scss/components/_loader.scssdiff --git a/saleor/static/scss/storefront/components/_pagination.scss b/saleor/static/scss/components/_pagination.scsssimilarity index 100%rename from saleor/static/scss/storefront/components/_pagination.scssrename to saleor/static/scss/components/_pagination.scssdiff --git a/saleor/static/scss/storefront/components/_table.scss b/saleor/static/scss/components/_table.scsssimilarity index 100%rename from saleor/static/scss/storefront/components/_table.scssrename to saleor/static/scss/components/_table.scssdiff --git a/saleor/static/scss/storefront/components/_tabs.scss b/saleor/static/scss/components/_tabs.scsssimilarity index 100%rename from saleor/static/scss/storefront/components/_tabs.scssrename to saleor/static/scss/components/_tabs.scssdiff --git a/saleor/static/scss/components/_typography.scss b/saleor/static/scss/components/_typography.scssnew file mode 100644index 0000000000..c219bb23ef--- /dev/null+++ b/saleor/static/scss/components/_typography.scss@@ -0,0 +1,45 @@+@font-face {+ font-family: 'Lato';+ src: url('../fonts/Lato-Light.woff2') format('woff2'),+ url('../fonts/Lato-Light.woff') format('woff'),+ url('../fonts/Lato-Light.ttf') format('truetype');+ font-weight: 300;+}+@font-face {+ font-family: 'Lato';+ src: url('../fonts/Lato-Regular.woff2') format('woff2'),+ url('../fonts/Lato-Regular.woff') format('woff'),+ url('../fonts/Lato-Regular.ttf') format('truetype');+ font-weight: 400;+}+@font-face {+ font-family: 'Lato';+ src: url('../fonts/Lato-Bold.woff2') format('woff2'),+ url('../fonts/Lato-Bold.woff') format('woff'),+ url('../fonts/Lato-Bold.ttf') format('truetype');+ font-weight: 700;+}++h3 {+ text-transform: uppercase;+}++a {+ color: $blue;+ text-decoration: none;+ &:hover {+ text-decoration: underline;+ }+ &.link--styled {+ font-size: 0.8rem;+ color: $body-color;+ text-decoration: underline;+ display: block;+ }+ &.link--clean {+ color: $body-color;+ &:hover {+ text-decoration: none;+ }+ }+}diff --git a/saleor/static/scss/storefront/components/_variant-picker.scss b/saleor/static/scss/components/_variant-picker.scsssimilarity index 100%rename from saleor/static/scss/storefront/components/_variant-picker.scssrename to saleor/static/scss/components/_variant-picker.scssdiff --git a/saleor/static/scss/storefront/layouts/_cart.scss b/saleor/static/scss/layouts/_cart.scsssimilarity index 100%rename from saleor/static/scss/storefront/layouts/_cart.scssrename to saleor/static/scss/layouts/_cart.scssdiff --git a/saleor/static/scss/storefront/layouts/_category-page.scss b/saleor/static/scss/layouts/_category-page.scsssimilarity index 100%rename from saleor/static/scss/storefront/layouts/_category-page.scssrename to saleor/static/scss/layouts/_category-page.scssdiff --git a/saleor/static/scss/storefront/layouts/_checkout.scss b/saleor/static/scss/layouts/_checkout.scsssimilarity index 100%rename from saleor/static/scss/storefront/layouts/_checkout.scssrename to saleor/static/scss/layouts/_checkout.scssdiff --git a/saleor/static/scss/storefront/layouts/_home.scss b/saleor/static/scss/layouts/_home.scsssimilarity index 87%rename from saleor/static/scss/storefront/layouts/_home.scssrename to saleor/static/scss/layouts/_home.scssindex 31e6b131fe..65e44cbab1 100644--- a/saleor/static/scss/storefront/layouts/_home.scss+++ b/saleor/static/scss/layouts/_home.scss@@ -39,7 +39,7 @@}&__block1 {.home--square {- background-image: url('../../images/block1.jpg');+ background-image: url('../images/block1.jpg');@include media-breakpoint-up(md) {&:before {padding-top: 50%;@@ -50,13 +50,13 @@&__block2 {margin-top: $global-margin * 2;.home--square {- background-image: url('../../images/block2.jpg');+ background-image: url('../images/block2.jpg');}}&__block3 {margin-top: $global-margin * 2;.home--square {- background-image: url('../../images/block3.jpg');+ background-image: url('../images/block3.jpg');}}&__featured {diff --git a/saleor/static/scss/storefront/layouts/_login.scss b/saleor/static/scss/layouts/_login.scsssimilarity index 100%rename from saleor/static/scss/storefront/layouts/_login.scssrename to saleor/static/scss/layouts/_login.scssdiff --git a/saleor/static/scss/storefront/layouts/_no-results.scss b/saleor/static/scss/layouts/_no-results.scsssimilarity index 100%rename from saleor/static/scss/storefront/layouts/_no-results.scssrename to saleor/static/scss/layouts/_no-results.scssdiff --git a/saleor/static/scss/storefront/layouts/_order-details.scss b/saleor/static/scss/layouts/_order-details.scsssimilarity index 100%rename from saleor/static/scss/storefront/layouts/_order-details.scssrename to saleor/static/scss/layouts/_order-details.scssdiff --git a/saleor/static/scss/storefront/layouts/_product-list.scss b/saleor/static/scss/layouts/_product-list.scsssimilarity index 100%rename from saleor/static/scss/storefront/layouts/_product-list.scssrename to saleor/static/scss/layouts/_product-list.scssdiff --git a/saleor/static/scss/storefront/layouts/_product-page.scss b/saleor/static/scss/layouts/_product-page.scsssimilarity index 100%rename from saleor/static/scss/storefront/layouts/_product-page.scssrename to saleor/static/scss/layouts/_product-page.scssdiff --git a/saleor/static/scss/storefront/layouts/_styleguide.scss b/saleor/static/scss/layouts/_styleguide.scsssimilarity index 95%rename from saleor/static/scss/storefront/layouts/_styleguide.scssrename to saleor/static/scss/layouts/_styleguide.scssindex 0fdb2499e6..b68c927c3a 100644--- a/saleor/static/scss/storefront/layouts/_styleguide.scss+++ b/saleor/static/scss/layouts/_styleguide.scss@@ -10,6 +10,13 @@}}&__content {+ h3, p {+ svg {+ fill: $body-color;+ max-height: 14px;+ vertical-align: middle;+ }+ }&__note {border: 1px solid $gray;padding: $global-padding;diff --git a/saleor/static/scss/storefront/layouts/_userprofile.scss b/saleor/static/scss/layouts/_userprofile.scsssimilarity index 100%rename from saleor/static/scss/storefront/layouts/_userprofile.scssrename to saleor/static/scss/layouts/_userprofile.scssdiff --git a/saleor/static/scss/storefront/storefront.scss b/saleor/static/scss/storefront.scsssimilarity index 100%rename from saleor/static/scss/storefront/storefront.scssrename to saleor/static/scss/storefront.scssdiff --git a/saleor/static/scss/storefront/components/_typography.scss b/saleor/static/scss/storefront/components/_typography.scssdeleted file mode 100644index 9ff8d8fe40..0000000000--- a/saleor/static/scss/storefront/components/_typography.scss+++ /dev/null@@ -1,45 +0,0 @@-@font-face {- font-family: 'Lato';- src: url('../../fonts/Lato-Light.woff2') format('woff2'),- url('../../fonts/Lato-Light.woff') format('woff'),- url('../../fonts/Lato-Light.ttf') format('truetype');- font-weight: 300;-}-@font-face {- font-family: 'Lato';- src: url('../../fonts/Lato-Regular.woff2') format('woff2'),- url('../../fonts/Lato-Regular.woff') format('woff'),- url('../../fonts/Lato-Regular.ttf') format('truetype');- font-weight: 400;-}-@font-face {- font-family: 'Lato';- src: url('../../fonts/Lato-Bold.woff2') format('woff2'),- url('../../fonts/Lato-Bold.woff') format('woff'),- url('../../fonts/Lato-Bold.ttf') format('truetype');- font-weight: 700;-}--h3 {- text-transform: uppercase;-}--a {- color: $blue;- text-decoration: none;- &:hover {- text-decoration: underline;- }- &.link--styled {- font-size: 0.8rem;- color: $body-color;- text-decoration: underline;- display: block;- }- &.link--clean {- color: $body-color;- &:hover {- text-decoration: none;- }- }-}diff --git a/saleor/static/scss/storefront/variables.scss b/saleor/static/scss/variables.scsssimilarity index 92%rename from saleor/static/scss/storefront/variables.scssrename to saleor/static/scss/variables.scssindex 0fd434651d..93b594a7f9 100644--- a/saleor/static/scss/storefront/variables.scss+++ b/saleor/static/scss/variables.scss@@ -1,6 +1,4 @@// GLOBAL-$fa-font-path: "~font-awesome/fonts";-$global-padding: 1rem;$global-margin: 1rem;$button-border-radius: 4px;diff --git a/templates/account/partials/login_form.html b/templates/account/partials/login_form.htmlindex 9202867248..5d9f32f40b 100644--- a/templates/account/partials/login_form.html+++ b/templates/account/partials/login_form.html@@ -24,12 +24,18 @@<div class="row"><div class="col-sm-6">{% if 'facebook' in backends.backends and 'facebook' in available_backends %}- <a class="social-btn facebook" href="{% url 'social:begin' 'facebook' %}"><img src="{% static 'images/facebook_icon.svg' %}" />{% trans 'Facebook' %}</a>+ <a class="social-btn facebook" href="{% url 'social:begin' 'facebook' %}">+ <svg data-src="{% static "images/facebook.svg" %}" />+ {% trans 'Facebook' %}+ </a>{% endif %}</div><div class="col-sm-6">{% if 'google-oauth2' in backends.backends and 'google-oauth2' in available_backends %}- <a class="social-btn google" href="{% url 'social:begin' 'google-oauth2' %}"><img src="{% static 'images/google_icon.svg' %}" />{% trans 'Google' %}</a>+ <a class="social-btn google" href="{% url 'social:begin' 'google-oauth2' %}">+ <svg data-src="{% static "images/google.svg" %}" />+ {% trans 'Google' %}+ </a>{% endif %}</div></div>diff --git a/templates/base.html b/templates/base.htmlindex f004fcb102..aa45a747c8 100644--- a/templates/base.html+++ b/templates/base.html@@ -72,25 +72,25 @@<div class="row no-gutters"><div class="col-8 col-md-4 navbar__logo"><div class="menu-icon-mobile hidden-md-up navbar__brand__menu-toggle closed open">- <svg data-src="{% static "images/mobile-bar.svg" %}" width="28px" height="20px" />+ <svg data-src="{% static "images/mobile_menu.svg" %}" width="28px" height="20px" /><span>{% trans "menu" context "Hamburger button text" %}</span></div><a href="/">- <svg data-src="{% static "images/saleor-logo.svg" %}" height="38px" width="176px" />+ <svg data-src="{% static "images/saleor_logo.svg" %}" height="38px" width="176px" /></a></div><div class="col-2 col-md-4 navbar__search static">{% if SEARCH_IS_ENABLED %}<div class="hidden-md-up mobile-search-icon">- <svg data-src="{% static "images/search-icon.svg" %}" width="30" height="30" />+ <svg data-src="{% static "images/search.svg" %}" width="30" height="30" /></div><form class="form-inline search-form" action="{% url "search:search" %}"><div class="mobile-close-search hidden-md-up">- <svg data-src="{% static "images/close-icon.svg" %}" width="30" height="30" />+ <svg data-src="{% static "images/close.svg" %}" width="30" height="30" /></div><input class="form-control" type="text" name="q" value="{% if query %}{{ query }}{% endif %}" placeholder="{% trans "Search for product" %}"><button class="btn btn-link" type="submit">- <svg data-src="{% static "images/search-icon.svg" %}" width="30" height="30" />+ <svg data-src="{% static "images/search.svg" %}" width="30" height="30" /></button></form>{% endif %}@@ -158,7 +158,7 @@<div class="row"><div class="col-md-3"><a href="/" class="footer__logo">- <svg data-src="{% static "images/saleor-logo.svg" %}" height="38px" width="176px" />+ <svg data-src="{% static "images/saleor_logo.svg" %}" height="38px" width="176px" /></a></div><div class="col-md-3 col-sm-6">diff --git a/templates/cart/index.html b/templates/cart/index.htmlindex f02ffbc99f..ecbbf3ca0a 100644--- a/templates/cart/index.html+++ b/templates/cart/index.html@@ -56,7 +56,7 @@{% csrf_token %}</form><span class="cart-item-delete">- <svg data-src="{% static "images/icon_delete.svg" %}" height="20px" width="20px" />+ <svg data-src="{% static "images/delete.svg" %}" height="20px" width="20px" /></span><small class="cart__line__quantity-error text-danger"></small></div>diff --git a/templates/checkout/details.html b/templates/checkout/details.htmlindex 8fbed15823..37756239bf 100644--- a/templates/checkout/details.html+++ b/templates/checkout/details.html@@ -13,7 +13,7 @@<header class="checkout__header"><div class="container"><a href="/">- <svg data-src="{% static "images/saleor-logo.svg" %}" height="38px" width="176px" />+ <svg data-src="{% static "images/saleor_logo.svg" %}" height="38px" width="176px" /></a><h1>{% trans "Checkout" context "Checkout title" %}</h1></div>diff --git a/templates/dashboard/base.html b/templates/dashboard/base.htmlindex b99f1b2bc6..02d73fcbe4 100644--- a/templates/dashboard/base.html+++ b/templates/dashboard/base.html@@ -52,19 +52,19 @@</a>{% if SEARCH_IS_ENABLED %}<a href="{% url "dashboard:search" %}" class="hide-on-med-and-up dropdown-button">- <svg data-src="{% static "images/search-icon.svg" %}" width="20" height="20" fill="#fff" />+ <svg data-src="{% static "images/search.svg" %}" width="20" height="20" fill="#fff" /></a>{% endif %}</div><ul class="left"><li><a href="#" id="toggle-menu">- <svg data-src="{% static "images/mobile-bar.svg" %}" width="24" height="24" />+ <svg data-src="{% static "images/mobile_menu.svg" %}" width="24" height="24" /></a></li><li><a href="{% url 'dashboard:index' %}" class="logo">- <svg data-src="{% static "images/saleor-logo.svg" %}" height="38px" width="176px" />+ <svg data-src="{% static "images/saleor_logo.svg" %}" height="38px" width="176px" /></a></li><li class="search">@@ -73,7 +73,7 @@<div class="input-field"><input id="search" type="search" placeholder="{% trans "Search" context "Dashboard search" %}" name="q" value="{% if query %}{{ query }}{% endif %}"><label>- <svg data-src="{% static "images/search-icon.svg" %}" width="20" height="20" fill="#fff" />+ <svg data-src="{% static "images/search.svg" %}" width="20" height="20" fill="#fff" /></label></div></form>diff --git a/templates/dashboard/category/detail.html b/templates/dashboard/category/detail.htmlindex ceae13c2b3..eba50eb9ef 100644--- a/templates/dashboard/category/detail.html+++ b/templates/dashboard/category/detail.html@@ -34,7 +34,7 @@</li><li class="back-mobile"><a href="{% url 'dashboard:category-list' %}" class="breadcrumbs--ellipsed-item">- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow-left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/category/list.html b/templates/dashboard/category/list.htmlindex 44388832e0..cf27b9560c 100644--- a/templates/dashboard/category/list.html+++ b/templates/dashboard/category/list.html@@ -28,7 +28,7 @@<a class="btn-fab btn-floating btn-large waves-effect waves-light teal"title="{% trans "Add category" context "Category list add button text" %}"href="{% if root %}{% url 'dashboard:category-add' root_pk=root.pk %}{% else %}{% url 'dashboard:category-add' %}{% endif %}">- <svg data-src="{% static "images/add.svg" %}" />+ <svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div>{% if root %}@@ -68,7 +68,7 @@{% if path %}<li class="back-mobile"><a href="{% url 'dashboard:category-list' %}">- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li>{% for node in path %}diff --git a/templates/dashboard/customer/detail.html b/templates/dashboard/customer/detail.htmlindex d6176784f0..6d1408bc80 100644--- a/templates/dashboard/customer/detail.html+++ b/templates/dashboard/customer/detail.html@@ -26,7 +26,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:customers" %}">- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li><span class="breadcrumbs--elipsed-item">{{ customer }}</span></li>diff --git a/templates/dashboard/discount/sale_form.html b/templates/dashboard/discount/sale_form.htmlindex 60c1fb491f..1c4199c17f 100644--- a/templates/dashboard/discount/sale_form.html+++ b/templates/dashboard/discount/sale_form.html@@ -47,7 +47,7 @@</li><li class="back-mobile"><a href="{% url 'dashboard:sale-list' %}">- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/discount/voucher_form.html b/templates/dashboard/discount/voucher_form.htmlindex 9fb24ff685..6bf005d276 100644--- a/templates/dashboard/discount/voucher_form.html+++ b/templates/dashboard/discount/voucher_form.html@@ -46,7 +46,7 @@</li><li class="back-mobile"><a href="{% url 'dashboard:voucher-list' %}">- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/includes/_back-link.html b/templates/dashboard/includes/_back-link.htmlindex 2a801a3779..9413fe3f25 100644--- a/templates/dashboard/includes/_back-link.html+++ b/templates/dashboard/includes/_back-link.html@@ -1,3 +1,3 @@<a href="{{ url }}{% if hash %}{{ hash }}{% endif %}" class="header-button">- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a>diff --git a/templates/dashboard/order/address_form.html b/templates/dashboard/order/address_form.htmlindex 6526aa716f..fe08b12b70 100644--- a/templates/dashboard/order/address_form.html+++ b/templates/dashboard/order/address_form.html@@ -30,7 +30,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:order-details" order_pk=order.pk %}">- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.htmlindex f7fcfe1593..07f90a36aa 100644--- a/templates/dashboard/order/detail.html+++ b/templates/dashboard/order/detail.html@@ -45,7 +45,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:orders" %}">- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/product/attributes/form.html b/templates/dashboard/product/attributes/form.htmlindex 598756dbb6..6ed23dc155 100644--- a/templates/dashboard/product/attributes/form.html+++ b/templates/dashboard/product/attributes/form.html@@ -46,7 +46,7 @@</li><li class="back-mobile"><a href="{% url 'dashboard:product-attributes' %}">- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/product/product_class_form.html b/templates/dashboard/product/product_class_form.htmlindex 8b1e714175..dad3b42e85 100644--- a/templates/dashboard/product/product_class_form.html+++ b/templates/dashboard/product/product_class_form.html@@ -32,7 +32,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:product-class-list" %}">- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/product/product_form.html b/templates/dashboard/product/product_form.htmlindex 73003148d4..330c944182 100644--- a/templates/dashboard/product/product_form.html+++ b/templates/dashboard/product/product_form.html@@ -32,7 +32,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:product-list" %}">- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/product/product_image_form.html b/templates/dashboard/product/product_image_form.htmlindex 6a9c17faf4..aece2ef049 100644--- a/templates/dashboard/product/product_image_form.html+++ b/templates/dashboard/product/product_image_form.html@@ -29,7 +29,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:product-update" pk=product.pk %}#images" class="breadcrumb">- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li>{% if product_image.pk %}diff --git a/templates/dashboard/product/stock_locations/form.html b/templates/dashboard/product/stock_locations/form.htmlindex 9e02db9420..4b60c86fb9 100644--- a/templates/dashboard/product/stock_locations/form.html+++ b/templates/dashboard/product/stock_locations/form.html@@ -40,7 +40,7 @@</li><li class="back-mobile"><a href="{% url 'dashboard:sale-list' %}">- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/search/results.html b/templates/dashboard/search/results.htmlindex e74e2fdf14..1e1171e3f2 100644--- a/templates/dashboard/search/results.html+++ b/templates/dashboard/search/results.html@@ -24,7 +24,7 @@<form class="hide-on-med-and-up" method="get" action="{% url "dashboard:search" %}"><input id="icon_prefix" type="text" class="validate left" placeholder="{% trans "Search" context "Dashboard search" %}" name="q" value="{% if query %}{{ query }}{% endif %}"><button class="btn-flat" type="submit">- <svg data-src="{% static "images/search-icon.svg" %}" width="20" height="20" fill="#E57373" />+ <svg data-src="{% static "images/search.svg" %}" width="20" height="20" fill="#E57373" /></button></form><form class="hide-on-med-and-up row" method="get" action="{% url "dashboard:search" %}">diff --git a/templates/dashboard/shipping/method_form.html b/templates/dashboard/shipping/method_form.htmlindex 20c69800a8..c57aa8146f 100644--- a/templates/dashboard/shipping/method_form.html+++ b/templates/dashboard/shipping/method_form.html@@ -35,7 +35,7 @@</li><li class="back-mobile"><a href="{% url 'dashboard:shipping-methods' %}">- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/styleguide/index.html b/templates/dashboard/styleguide/index.htmlindex e0b36cfc31..a5181f018e 100644--- a/templates/dashboard/styleguide/index.html+++ b/templates/dashboard/styleguide/index.html@@ -29,7 +29,7 @@<div class="nav-wrapper"><ul class="left"><li class="logo">- <svg data-src="{% static "images/saleor-logo.svg" %}" height="38px" width="176px" />+ <svg data-src="{% static "images/saleor_logo.svg" %}" height="38px" width="176px" /></li><li><span>Style Guide</span>@@ -459,7 +459,7 @@<svg data-src="{% static "images/search.svg" %}" /><svg data-src="{% static "images/menu.svg" %}" /><svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />- <svg data-src="{% static "images/arrow-left-icon.svg" %}" />+ <svg data-src="{% static "images/arrow_left.svg" %}" /><svg data-src="{% static "images/chevron_right.svg" %}" fill="#000" /><svg data-src="{% static "images/edit.svg" %}" fill="#000" width="24px" height="24px" /><svg data-src="{% static "images/style.svg" %}" fill="#000" width="24px" height="24px" />@@ -833,7 +833,7 @@</li><li class="back-mobile"><a>- <svg data-src="{% static "images/arrow-left-icon.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/product/details.html b/templates/product/details.htmlindex 26d1f6bb4b..05c59b6dfc 100644--- a/templates/product/details.html+++ b/templates/product/details.html@@ -52,10 +52,10 @@</div>{% if images|length > 1 %}<a class="carousel-control-prev" href="#carousel-example-generic" role="button" data-slide="prev">- <svg data-src="{% static "images/gallery-arrow.svg" %}" />+ <svg data-src="{% static "images/gallery_arrow.svg" %}" /></a><a class="carousel-control-next" href="#carousel-example-generic" role="button" data-slide="next">- <svg data-src="{% static "images/gallery-arrow.svg" %}" />+ <svg data-src="{% static "images/gallery_arrow.svg" %}" /></a>{% endif %}<ol class="carousel-indicators hidden-sm-down">diff --git a/templates/styleguide.html b/templates/styleguide.htmlindex c37071c845..80d721e040 100644--- a/templates/styleguide.html+++ b/templates/styleguide.html@@ -11,7 +11,7 @@<header class="checkout__header"><div class="container"><a href="/">- <svg data-src="{% static "images/saleor-logo.svg" %}" height="38px" width="176px" />+ <svg data-src="{% static "images/saleor_logo.svg" %}" height="38px" width="176px" /></a><h1>Style guide</h1></div>@@ -45,11 +45,11 @@<div class="col-md-9 pull-md-3 styleguide__content"><div class="styleguide__content__note"><h3>Note</h3>- <p>If you’re using a recent version of IE, Firefox, Safari or Chrome (though not Opera), you can edit the text in sections marked with edit icon . Check how our components will look like in your language and with your content.</p>+ <p>If you’re using a recent version of IE, Firefox, Safari or Chrome (though not Opera), you can edit the text in sections marked with edit icon <svg data-src="{% static "images/edit.svg" %}" />. Check how our components will look like in your language and with your content.</p></div><hr><div id="typography" class="styleguide__content__block">- <h3 class="styleguide__content__block__title">Typography <img src="{% static "images/text-cursor.svg" %}"></h3>+ <h3 class="styleguide__content__block__title">Typography <svg data-src="{% static "images/edit.svg" %}" /></h3><p>We use Lato fontface in Regular(400), <span class="styleguide__content__block__light">Light(300)</span> and <span class="styleguide__content__block__bold">Bold(700)</span> weights.<br>Lato includes only latin and latin extended characters. For other alphabets the default sans serif font will be used.</p><p><strong>Headers</strong></p>@@ -294,17 +294,17 @@<div id="icons" class="styleguide__content__block"><h3 class="styleguide__content__block__title">Icons</h3><svg data-src="{% static "images/cart.svg" %}" />- <svg data-src="{% static "images/chevron-down-icon.svg" %}" />- <svg data-src="{% static "images/chevron-up-icon.svg" %}" />- <svg data-src="{% static "images/arrow-down-icon.svg" %}" />- <svg data-src="{% static "images/arrow-up-icon.svg" %}" />- <svg data-src="{% static "images/search-icon.svg" %}" />- <svg data-src="{% static "images/gallery-arrow.svg" %}" />- <svg data-src="{% static "images/icon_delete.svg" %}" />+ <svg data-src="{% static "images/chevron_down.svg" %}" />+ <svg data-src="{% static "images/chevron_up.svg" %}" />+ <svg data-src="{% static "images/arrow_down.svg" %}" />+ <svg data-src="{% static "images/arrow_up.svg" %}" />+ <svg data-src="{% static "images/search.svg" %}" />+ <svg data-src="{% static "images/gallery_arrow.svg" %}" />+ <svg data-src="{% static "images/delete.svg" %}" /><svg data-src="{% static "images/loader.svg" %}" /></div><div id="buttons" class="styleguide__content__block">- <h3 class="styleguide__content__block__title">Buttons <img src="{% static "images/text-cursor.svg" %}"></h3>+ <h3 class="styleguide__content__block__title">Buttons <svg data-src="{% static "images/edit.svg" %}" /></h3><button class="btn primary"><span contenteditable="true">Primary Button (buttons can be really very wide)</span></button>@@ -345,7 +345,7 @@</div><div id="forms" class="styleguide__content__block"><h3 class="styleguide__content__block__title">Forms</h3>- <p><strong>Text form</strong> <img src="{% static "images/text-cursor.svg" %}"></p>+ <p><strong>Text form</strong> <svg data-src="{% static "images/edit.svg" %}" /></p><div class="row"><div class="col-12 col-md-6"><div class="form-group">@@ -363,11 +363,11 @@<hr><div class="row"><div class="col-lg-4 col-md-6">- <p><strong>Filters</strong> <img src="{% static "images/text-cursor.svg" %}"></p>+ <p><strong>Filters</strong> <svg data-src="{% static "images/edit.svg" %}" /></p><div class="product-filters"><h3 contenteditable="true">Box Size<div class="collapse-filters-icon">- <svg data-src="{% static "images/chevron-up-icon.svg" %}" />+ <svg data-src="{% static "images/chevron_up.svg" %}" /></div></h3><ul id="box-size">@@ -405,7 +405,7 @@</div></div><hr>- <p><strong>Radio buttons</strong> <img src="{% static "images/text-cursor.svg" %}"></p>+ <p><strong>Radio buttons</strong> <svg data-src="{% static "images/edit.svg" %}" /></p><div class="row"><div class="col-md-4"><div class="radio">@@ -429,7 +429,7 @@<form class="form-inline search-form" action="{% url "search:search" %}"><input class="form-control" type="text" name="q" value="{% if query %}{{ query }}{% endif %}" placeholder="Search for product"><button class="btn btn-link" type="submit">- <svg data-src="{% static "images/search-icon.svg" %}" width="19" height="19" />+ <svg data-src="{% static "images/search.svg" %}" width="19" height="19" /></button></form></div>@@ -443,7 +443,7 @@</div></div><hr>- <p><strong>Variant picker</strong> <img src="{% static "images/text-cursor.svg" %}"></p>+ <p><strong>Variant picker</strong> <svg data-src="{% static "images/edit.svg" %}" /></p><div class="variant-picker"><div class="btn-group" data-toggle="buttons"><label class="btn btn-secondary variant-picker__option"><input type="radio" name="4"><span contenteditable="true">100g</span></label>@@ -452,7 +452,7 @@</div></div><hr>- <p><strong>Errors</strong> <img src="{% static "images/text-cursor.svg" %}"></p>+ <p><strong>Errors</strong> <svg data-src="{% static "images/edit.svg" %}" /></p><p>Errors are always displayed as a small red text below the form explaining what cause the error.</p><div class="row"><div class="col-12">@@ -498,7 +498,7 @@</div></div><div id="pagination" class="styleguide__content__block">- <h3 class="styleguide__content__block__title">Pagination <img src="{% static "images/text-cursor.svg" %}"></h3>+ <h3 class="styleguide__content__block__title">Pagination <svg data-src="{% static "images/edit.svg" %}" /></h3><ul class="pagination"><li class="prev disabled"><a>«</a></li><li><a contenteditable="true">1</a></li>@@ -508,7 +508,7 @@</ul></div><div id="breadcrumbs" class="styleguide__content__block">- <h3 class="styleguide__content__block__title">Breadcrumbs <img src="{% static "images/text-cursor.svg" %}"></h3>+ <h3 class="styleguide__content__block__title">Breadcrumbs <svg data-src="{% static "images/edit.svg" %}" /></h3><ul class="breadcrumbs list-unstyled"><li><a href="/" contenteditable="true">Home@@ -522,7 +522,7 @@</ul></div><div id="notifications" class="styleguide__content__block">- <h3 class="styleguide__content__block__title">Notifications <img src="{% static "images/text-cursor.svg" %}"></h3>+ <h3 class="styleguide__content__block__title">Notifications <svg data-src="{% static "images/edit.svg" %}" /></h3><div class="alert alert-success"><button type="button" class="close" aria-hidden="true">×</button><span contenteditable="true">This is Success alert.</span>@@ -537,7 +537,7 @@</div></div><div id="mainnav" class="styleguide__content__block">- <h3 class="styleguide__content__block__title">Main navigation <img src="{% static "images/text-cursor.svg" %}"></h3>+ <h3 class="styleguide__content__block__title">Main navigation <svg data-src="{% static "images/edit.svg" %}" /></h3><nav class="navigation"><ul class="nav navbar-nav{% if request.get_full_path == home_url %} no-border{% endif %}" >{% for category in categories %}@@ -589,7 +589,7 @@</div></div><div id="tables" class="styleguide__content__block">- <h3 class="styleguide__content__block__title">Tables <img src="{% static "images/text-cursor.svg" %}"></h3>+ <h3 class="styleguide__content__block__title">Tables <svg data-src="{% static "images/edit.svg" %}" /></h3><div class="table__header"><div class="row"><div class="col-md-2 col-3">@@ -651,7 +651,7 @@</div></div><div id="cards" class="styleguide__content__block">- <h3 class="styleguide__content__block__title">Cards <img src="{% static "images/text-cursor.svg" %}"></h3>+ <h3 class="styleguide__content__block__title">Cards <svg data-src="{% static "images/edit.svg" %}" /></h3><div class="row"><div class="card-deck col-md-6"><div class="card card-block">@@ -665,7 +665,7 @@</div><ul class="icons"><li><a href="#" contenteditable="true">Edit</a></li>- <li><a class="delete-icon"><svg data-src="{% static "images/icon_delete.svg" %}" height="20px" width="20px" /></a></li>+ <li><a class="delete-icon"><svg data-src="{% static "images/delete.svg" %}" height="20px" width="20px" /></a></li></ul><div class="address-delete none"><form>@@ -682,7 +682,7 @@</div></div><div id="product" class="styleguide__content__block">- <h3 class="styleguide__content__block__title">Products <img src="{% static "images/text-cursor.svg" %}"></h3>+ <h3 class="styleguide__content__block__title">Products <svg data-src="{% static "images/edit.svg" %}" /></h3><div class="row"><div class="col-6 col-lg-3 product-list"><div class="text-center">@@ -725,10 +725,10 @@</div></div><a class="carousel-control-prev" href="#carousel-example-generic" role="button" data-slide="prev">- <svg data-src="{% static "images/gallery-arrow.svg" %}" />+ <svg data-src="{% static "images/gallery_arrow.svg" %}" /></a><a class="carousel-control-next" href="#carousel-example-generic" role="button" data-slide="next">- <svg data-src="{% static "images/gallery-arrow.svg" %}" />+ <svg data-src="{% static "images/gallery_arrow.svg" %}" /></a><ol class="carousel-indicators hidden-sm-down"><li data-target="#carousel-example-generic" data-slide-to="0" class="active">diff --git a/templates/userprofile/details.html b/templates/userprofile/details.htmlindex c5cf70f32d..b33642f384 100644--- a/templates/userprofile/details.html+++ b/templates/userprofile/details.html@@ -115,7 +115,7 @@<li><a href="{% url "profile:address-edit" pk=address.pk %}">{% trans "Edit" context "User address action" %}</a></li>- <li><a class="delete-icon"><svg data-src="{% static "images/icon_delete.svg" %}" height="20px" width="20px" /></a></li>+ <li><a class="delete-icon"><svg data-src="{% static "images/delete.svg" %}" height="20px" width="20px" /></a></li></ul>{% include "userprofile/address-delete.html" with pk=address.pk %}</div>diff --git a/webpack.config.js b/webpack.config.jsindex a7dfd91d80..7f2a016946 100644--- a/webpack.config.js+++ b/webpack.config.js@@ -36,7 +36,7 @@ var providePlugin = new webpack.ProvidePlugin({var config = {entry: {category: './saleor/static/js/category.js',- dashboard: './saleor/static/js/dashboard.js',+ dashboard: './saleor/static/dashboard/js/dashboard.js',storefront: './saleor/static/js/storefront.js',vendor: ['babel-es6-polyfill',