Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove dashboard static files
IKarbowiak5831033e93db
diff --git a/saleor/static/dashboard/images/account-circle.svg b/saleor/static/dashboard/images/account-circle.svgdeleted file mode 100644index 264b904d33..0000000000--- a/saleor/static/dashboard/images/account-circle.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/add.svg b/saleor/static/dashboard/images/add.svgdeleted file mode 100644index 04507da17d..0000000000--- a/saleor/static/dashboard/images/add.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/arrow-drop-down.svg b/saleor/static/dashboard/images/arrow-drop-down.svgdeleted file mode 100644index 0dba32d5e5..0000000000--- a/saleor/static/dashboard/images/arrow-drop-down.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#9E9E9E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M7 10l5 5 5-5z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/arrow-left.svg b/saleor/static/dashboard/images/arrow-left.svgdeleted file mode 100644index e3f3fe8fea..0000000000--- a/saleor/static/dashboard/images/arrow-left.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M0 0h24v24H0z" fill="none"/>- <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/chevron-left.svg b/saleor/static/dashboard/images/chevron-left.svgdeleted file mode 100644index ee6f80ebd1..0000000000--- a/saleor/static/dashboard/images/chevron-left.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/chevron-right.svg b/saleor/static/dashboard/images/chevron-right.svgdeleted file mode 100644index d88daa8c7e..0000000000--- a/saleor/static/dashboard/images/chevron-right.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/close.svg b/saleor/static/dashboard/images/close.svgdeleted file mode 100644index 6915a6b345..0000000000--- a/saleor/static/dashboard/images/close.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>diff --git a/saleor/static/dashboard/images/collections.svg b/saleor/static/dashboard/images/collections.svgdeleted file mode 100644index 227f30762d..0000000000--- a/saleor/static/dashboard/images/collections.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#E57373" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M0 0h24v24H0z" fill="none"/>- <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/description.svg b/saleor/static/dashboard/images/description.svgdeleted file mode 100644index 887dca8aab..0000000000--- a/saleor/static/dashboard/images/description.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#E57373" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M0 0h24v24H0z" fill="none"/>- <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/done.svg b/saleor/static/dashboard/images/done.svgdeleted file mode 100644index a7aebbc0a1..0000000000--- a/saleor/static/dashboard/images/done.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M0 0h24v24H0z" fill="none"/>- <path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/>-</svg>diff --git a/saleor/static/dashboard/images/edit.svg b/saleor/static/dashboard/images/edit.svgdeleted file mode 100644index c81d493286..0000000000--- a/saleor/static/dashboard/images/edit.svg+++ /dev/null@@ -1,4 +0,0 @@-<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/dashboard/images/editor/align_center.svg b/saleor/static/dashboard/images/editor/align_center.svgdeleted file mode 100644index feabf51851..0000000000--- a/saleor/static/dashboard/images/editor/align_center.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#FFFFFF" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg">- <path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/editor/align_justify.svg b/saleor/static/dashboard/images/editor/align_justify.svgdeleted file mode 100644index 5f2a9c022f..0000000000--- a/saleor/static/dashboard/images/editor/align_justify.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#FFFFFF" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg">- <path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/editor/align_left.svg b/saleor/static/dashboard/images/editor/align_left.svgdeleted file mode 100644index e3d2da1323..0000000000--- a/saleor/static/dashboard/images/editor/align_left.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#FFFFFF" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg">- <path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/editor/align_right.svg b/saleor/static/dashboard/images/editor/align_right.svgdeleted file mode 100644index b58b207af4..0000000000--- a/saleor/static/dashboard/images/editor/align_right.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#FFFFFF" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg">- <path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/editor/format_clear.svg b/saleor/static/dashboard/images/editor/format_clear.svgdeleted file mode 100644index 627f4740d5..0000000000--- a/saleor/static/dashboard/images/editor/format_clear.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#FFFFFF" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg">- <path d="M0 0h24v24H0z" fill="none"/>- <path d="M3.27 5L2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27 3.27 5zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5H6z"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/editor/insert_link.svg b/saleor/static/dashboard/images/editor/insert_link.svgdeleted file mode 100644index 91036398be..0000000000--- a/saleor/static/dashboard/images/editor/insert_link.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#FFFFFF" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg">- <path d="M0 0h24v24H0z" fill="none"/>- <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/editor/insert_photo.svg b/saleor/static/dashboard/images/editor/insert_photo.svgdeleted file mode 100644index 639d442323..0000000000--- a/saleor/static/dashboard/images/editor/insert_photo.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#FFFFFF" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg">- <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/editor/quote.svg b/saleor/static/dashboard/images/editor/quote.svgdeleted file mode 100644index 8388210754..0000000000--- a/saleor/static/dashboard/images/editor/quote.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#FFFFFF" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg">- <path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/email.svg b/saleor/static/dashboard/images/email.svgdeleted file mode 100644index 855c7ccc97..0000000000--- a/saleor/static/dashboard/images/email.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/help.svg b/saleor/static/dashboard/images/help.svgdeleted file mode 100644index 2e0abcb1e0..0000000000--- a/saleor/static/dashboard/images/help.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#9E9E9E" 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 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/history.svg b/saleor/static/dashboard/images/history.svgdeleted file mode 100644index 4e22bb9a2b..0000000000--- a/saleor/static/dashboard/images/history.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#E57373" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M0 0h24v24H0z" fill="none"/>- <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/logo.svg b/saleor/static/dashboard/images/logo.svgdeleted file mode 100644index d01d848448..0000000000--- a/saleor/static/dashboard/images/logo.svg+++ /dev/null@@ -1 +0,0 @@-<svg viewBox="0 0 538 182" xmlns="http://www.w3.org/2000/svg" xmlns:serif="http://www.serif.com/" fill-rule="evenodd" clip-rule="evenodd"><g serif:id="Saleor OS"><path fill="none" d="M0 0h537.903v181.963H0z"/><clipPath id="a"><path d="M0 0h537.903v181.963H0z"/></clipPath><g serif:id="Layer 1" clip-path="url(#a)"><path d="M28.649 0L-.001 28.949l145.042-.001 28.65-28.949L28.649 0z" fill="#fff"/><path d="M83.256 181.766c35.637 0 44.598-14.329 44.598-33.957 0-24.144-21.79-28.658-39.914-31.603-13.848-2.356-20.161-3.533-20.161-11.973 0-6.281 5.498-8.637 14.459-8.637 10.997 0 14.051 3.141 15.07 12.366l28.917-4.318c-2.445-19.825-13.645-29.836-43.173-29.836-32.378 0-43.782 12.955-43.782 33.565-.203 26.696 25.048 29.443 43.782 32.583 11.607 2.161 16.089 4.122 16.089 11.778 0 6.282-3.869 9.03-15.478 9.03-12.829 0-16.698-2.159-18.327-12.563l-28.102 4.122c2.647 21.003 15.069 29.443 46.022 29.443m93.212-21.59c-13.645 0-18.531-2.945-18.531-12.759 0-8.833 4.886-12.366 19.549-12.366h14.662v10.207c0 9.814-4.887 14.918-15.68 14.918m-12.626 21.591c15.884 0 23.012-5.104 28.103-12.563v11.189h28.712v-71.056c0-23.751-9.164-35.724-40.931-35.724-30.75 0-41.542 8.636-45.819 29.835l28.51 4.319c1.832-9.029 4.48-11.778 16.291-11.778 11.404 0 13.237 4.711 13.237 12.563v7.263h-13.441c-36.451 0-48.874 10.992-48.874 33.368 0 21.984 11.201 32.584 34.212 32.584M227.989 180.392h29.325V28.949l-29.325 28.948v122.495zm65.165-63.99v-5.299c0-9.225 4.277-15.507 17.106-15.507 12.422 0 16.496 5.3 16.496 15.507v5.299h-33.602zm17.106 65.561c33.805 0 42.765-15.703 44.801-31.406l-27.898-4.122c-1.222 9.421-3.055 14.329-16.903 14.329-14.05 0-17.106-6.871-17.106-15.899v-8.637h61.907v-18.844c0-26.302-10.386-43.772-44.801-43.772-34.007 0-45.615 17.666-45.615 40.043v28.265c0 21.789 11.811 40.043 45.615 40.043m99.173 0c33.6 0 47.447-17.077 47.447-40.043v-28.265c0-23.358-13.847-40.043-47.447-40.043-33.602 0-47.041 16.685-47.041 40.043v28.265c0 22.966 13.236 40.043 47.041 40.043m0-22.769c-11.812 0-17.717-6.085-17.717-15.899v-30.228c0-10.011 5.905-16.096 17.717-16.096 11.811 0 18.123 6.085 18.123 16.096v30.228c0 9.814-6.312 15.899-18.123 15.899M509.253 103.568h-15.718v76.21h-29.324v-76.21l28.65-28.949h45.042l-28.65 28.949z" fill="#fff"/></g></g></svg>diff --git a/saleor/static/dashboard/images/mobile-menu.svg b/saleor/static/dashboard/images/mobile-menu.svgdeleted file mode 100644index 5bc798808b..0000000000--- a/saleor/static/dashboard/images/mobile-menu.svg+++ /dev/null@@ -1,18 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"- width="28px" height="20px" viewBox="0 0 136.689 110" enable-background="new 0 0 136.689 110" xml:space="preserve">-<g>- <g>- <path fill="#333333" d="M9.282,86.005c0,0,0-3.11,3.107-3.11h111.909c0,0,3.11,0,3.11,3.11v12.435c0,0,0,3.106-3.11,3.106H12.39- c0,0-3.107,0-3.107-3.106V86.005z"/>- </g>- <g>- <path fill="#333333" d="M9.282,48.703c0,0,0-3.11,3.107-3.11h111.909c0,0,3.11,0,3.11,3.11v12.433c0,0,0,3.108-3.11,3.108H12.39- c0,0-3.107,0-3.107-3.108V48.703z"/>- </g>- <g>- <path fill="#333333" d="M9.282,11.398c0,0,0-3.108,3.107-3.108h111.909c0,0,3.11,0,3.11,3.108v12.435c0,0,0,3.108-3.11,3.108- H12.39c0,0-3.107,0-3.107-3.108V11.398z"/>- </g>-</g>-</svg>diff --git a/saleor/static/dashboard/images/more-vert.svg b/saleor/static/dashboard/images/more-vert.svgdeleted file mode 100644index 747efcf534..0000000000--- a/saleor/static/dashboard/images/more-vert.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#FFFFFF" 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 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/payment.svg b/saleor/static/dashboard/images/payment.svgdeleted file mode 100644index 29f099dbe7..0000000000--- a/saleor/static/dashboard/images/payment.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#E57373" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M0 0h24v24H0z" fill="none"/>- <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/phone.svg b/saleor/static/dashboard/images/phone.svgdeleted file mode 100644index eca33f1b41..0000000000--- a/saleor/static/dashboard/images/phone.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M0 0h24v24H0z" fill="none"/>- <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/reorder.svg b/saleor/static/dashboard/images/reorder.svgdeleted file mode 100644index 93eef73e53..0000000000--- a/saleor/static/dashboard/images/reorder.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M0 0h24v24H0z" fill="none"/>- <path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/search.svg b/saleor/static/dashboard/images/search.svgdeleted file mode 100644index 18d2065946..0000000000--- a/saleor/static/dashboard/images/search.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/store.svg b/saleor/static/dashboard/images/store.svgdeleted file mode 100644index f9ecce9e3b..0000000000--- a/saleor/static/dashboard/images/store.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#E57373" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M0 0h24v24H0z" fill="none"/>- <path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/style.svg b/saleor/static/dashboard/images/style.svgdeleted file mode 100644index 4f49cfa80c..0000000000--- a/saleor/static/dashboard/images/style.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg fill="#E57373" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">- <path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.21 1.03-1.23 1.8-.01.27.04.54.15.8l4.96 11.97c.31.76 1.05 1.22 1.83 1.23.26 0 .52-.05.77-.15l7.36-3.05c1.02-.42 1.51-1.59 1.09-2.6zM7.88 8.75c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-2 11c0 1.1.9 2 2 2h1.45l-3.45-8.34v6.34z"/>- <path d="M0 0h24v24H0z" fill="none"/>-</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/js/components/async-form.js b/saleor/static/dashboard/js/components/async-form.jsdeleted file mode 100644index d9a523ca3d..0000000000--- a/saleor/static/dashboard/js/components/async-form.js+++ /dev/null@@ -1,49 +0,0 @@-import { initSelects } from "./selects";--const onAsyncFormSubmit = e => {- const $target = $(e.currentTarget);- let $action = $target.attr("action");- const $submitButton = $target.find("button[type=submit][clicked=true]");- const $formAction = $submitButton.attr("formaction");- if (typeof $formAction !== typeof undefined && $formAction !== false) {- $action = $formAction;- }- $.ajax({- url: $action,- method: "POST",- data: $target.serialize(),- complete: response => {- // Write HTML if got 400 response, otherwise pretend nothing happened- if (response.status === 400) {- $target.parent().html(response.responseText);- initSelects();- } else {- $(".modal-close").click();- }- },- success: response => {- if (response.redirectUrl) {- window.location.href = response.redirectUrl;- } else {- location.reload();- }- }- });- e.preventDefault();-};--const onAsyncFormButtonClick = e => {- const $button = $(e.currentTarget);- const $formAsync = $button.parents(".form-async");- $("button[type=submit]", $formAsync).removeAttr("clicked");- $button.attr("clicked", "true");-};--const onModalClose = () => $(".modal").modal("close");--// -------$(document)- .on("click", ".form-async button[type=submit]", onAsyncFormButtonClick)- .on("submit", ".form-async", onAsyncFormSubmit)- .on("click", ".modal-close", onModalClose);diff --git a/saleor/static/dashboard/js/components/bulk-actions.js b/saleor/static/dashboard/js/components/bulk-actions.jsdeleted file mode 100644index cafb80566c..0000000000--- a/saleor/static/dashboard/js/components/bulk-actions.js+++ /dev/null@@ -1,97 +0,0 @@-/**- * This function adds .highlight class on checked table rows on page load and select all action.- * Fixes bug when user checks some items, goes to another page, then goes back in browsing history- * and some rows are checked but have no .highlight class.- */-function initCheckedRows() {- $(".select-item:checked:not(#select-all-items)").each((itemIndex, item) => {- $(item)- .parent()- .parent()- .addClass("highlight");- });- $(".select-item:not(:checked):not(#select-all-items)").each(- (itemIndex, item) => {- $(item)- .parent()- .parent()- .removeClass("highlight");- }- );-}--function moveSelectAllCheckbox(bulk, selectAllState) {- const $selectAll = $("#select-all-items").parent()[0].innerHTML;- const $headerContainer = $("thead .bulk-checkbox");- const $actionBarContainer = $(".data-table-bulk-actions__select-all");- if (bulk) {- $headerContainer.html("");- $actionBarContainer[0].innerHTML = $selectAll;- } else {- $actionBarContainer.html("");- $headerContainer[0].innerHTML = $selectAll;- }- $actionBarContainer.find("#select-all-items").prop("checked", selectAllState);- $(".select-all").on("change", onSelectAll);-}--function onItemSelect(e) {- const count =- $(".select-item:checked").length - $("#select-all-items:checked").length;- const maxCount = $(".select-item").length - 1;- const $target = $(e.currentTarget);- $target- .parent()- .parent()- .toggleClass("highlight", $target.checked);- updateSelectedItemsText(count === maxCount);-}--function onPageInit() {- if (document.querySelector("#bulk-action")) {- initCheckedRows();- updateSelectedItemsText();- $(".select-all").on("change", onSelectAll);- $(".select-item").on("change", onItemSelect);- $(".data-table-bulk-actions__action-choice a").on("click", onSubmit);- $(".data-table-bulk-actions__dropdown-container .dropdown-content a").on(- "click",- onSubmit- );- }-}--function onSelectAll(e) {- const $target = $(e.currentTarget);- const $targetForm = $target.parents("form");- const $items = $targetForm.find(".select-item:not(.select-all)");- $items.prop("checked", $target[0].checked);- initCheckedRows();- $target.off("change");- updateSelectedItemsText($target[0].checked);-}--function onSubmit(e) {- const a = $(e.currentTarget);- e.preventDefault();- $("#bulk-action").val(a.attr("data-action"));- $("#bulk-actions-form").submit();-}--function updateSelectedItemsText(selectAllState) {- const count =- $(".select-item:checked").length - $("#select-all-items:checked").length;- const $counterTextNode = $(".data-table-bulk-actions__selected-items");- const $header = $(".data-table-bulk-actions");- const counterText = ngettext("item selected", "items selected", count);-- if (count) {- $counterTextNode.html(`${count} ${counterText}`);- }- $header.toggleClass("show", count > 0);- moveSelectAllCheckbox(count > 0, selectAllState);-}--// -------onPageInit();diff --git a/saleor/static/dashboard/js/components/datepicker.js b/saleor/static/dashboard/js/components/datepicker.jsdeleted file mode 100644index c5092f4308..0000000000--- a/saleor/static/dashboard/js/components/datepicker.js+++ /dev/null@@ -1,78 +0,0 @@-// -------$(".datepicker").pickadate({- labelMonthNext: pgettext("Datepicker option", "Next month"),- labelMonthPrev: pgettext("Datepicker option", "Previous month"),-- // The title label to use for the dropdown selectors- labelMonthSelect: pgettext("Datepicker option", "Select a month"),- labelYearSelect: pgettext("Datepicker option", "Select a year"),-- // Months and weekdays- monthsFull: [- pgettext("Datepicker month", "January"),- pgettext("Datepicker month", "February"),- pgettext("Datepicker month", "March"),- pgettext("Datepicker month", "April"),- pgettext("Datepicker month", "May"),- pgettext("Datepicker month", "June"),- pgettext("Datepicker month", "July"),- pgettext("Datepicker month", "August"),- pgettext("Datepicker month", "September"),- pgettext("Datepicker month", "October"),- pgettext("Datepicker month", "November"),- pgettext("Datepicker month", "December")- ],- monthsShort: [- pgettext("Datepicker month shortcut", "Jan"),- pgettext("Datepicker month shortcut", "Feb"),- pgettext("Datepicker month shortcut", "Mar"),- pgettext("Datepicker month shortcut", "Apr"),- pgettext("Datepicker month shortcut", "May"),- pgettext("Datepicker month shortcut", "Jun"),- pgettext("Datepicker month shortcut", "Jul"),- pgettext("Datepicker month shortcut", "Aug"),- pgettext("Datepicker month shortcut", "Sep"),- pgettext("Datepicker month shortcut", "Oct"),- pgettext("Datepicker month shortcut", "Nov"),- pgettext("Datepicker month shortcut", "Dec")- ],- weekdaysFull: [- pgettext("Datepicker weekday", "Sunday"),- pgettext("Datepicker weekday", "Monday"),- pgettext("Datepicker weekday", "Tuesday"),- pgettext("Datepicker weekday", "Wednesday"),- pgettext("Datepicker weekday", "Thursday"),- pgettext("Datepicker weekday", "Friday"),- pgettext("Datepicker weekday", "Saturday")- ],- weekdaysShort: [- pgettext("Datepicker weekday shortcut", "Sun"),- pgettext("Datepicker weekday shortcut", "Mon"),- pgettext("Datepicker weekday shortcut", "Tue"),- pgettext("Datepicker weekday shortcut", "Wed"),- pgettext("Datepicker weekday shortcut", "Thu"),- pgettext("Datepicker weekday shortcut", "Fri"),- pgettext("Datepicker weekday shortcut", "Sat")- ],-- // Materialize modified- weekdaysLetter: [- pgettext("Sunday shortcut", "S"),- pgettext("Monday shortcut", "M"),- pgettext("Tuesday shortcut", "T"),- pgettext("Wednesday shortcut", "W"),- pgettext("Thursday shortcut", "T"),- pgettext("Friday shortcut", "F"),- pgettext("Saturday shortcut", "S")- ],- today: pgettext("Datepicker option", "Today"),- clear: pgettext("Datepicker option", "Clear"),- close: pgettext("Datepicker option", "Close"),-- format: "d mmmm yyyy",- formatSubmit: "yyyy-mm-dd",- selectMonths: true,- hiddenName: true,- onClose: () => $(document.activeElement).blur()-});diff --git a/saleor/static/dashboard/js/components/editor.js b/saleor/static/dashboard/js/components/editor.jsdeleted file mode 100644index 5cbb6671a0..0000000000--- a/saleor/static/dashboard/js/components/editor.js+++ /dev/null@@ -1,112 +0,0 @@-import MediumEditor from "medium-editor";--import alignCenterIcon from "../../images/editor/align_center.svg";-import alignJustifyIcon from "../../images/editor/align_justify.svg";-import alignLeftIcon from "../../images/editor/align_left.svg";-import alignRightIcon from "../../images/editor/align_right.svg";-import insertLinkIcon from "../../images/editor/insert_link.svg";-import insertPhotoIcon from "../../images/editor/insert_photo.svg";-import quoteIcon from "../../images/editor/quote.svg";-import formatClear from "../../images/editor/format_clear.svg";--import doneIcon from "../../images/done.svg";-import closeIcon from "../../images/close.svg";--// Solve an auto-resize conflict between Materialize and medium-editor.-$(".rich-text-editor").removeClass("materialize-textarea");--// eslint-disable-next-line-const editor = new MediumEditor(".rich-text-editor", {- paste: {- forcePlainText: true- },- toolbar: {- buttons: [- {- name: "bold",- aria: pgettext("Rich text editor option", "Bold text")- },- {- name: "italic",- aria: pgettext("Rich text editor option", "Italic text")- },- {- name: "h2",- aria: pgettext("Rich text editor option", "Header"),- tagNames: ["h2"],- contentDefault: "<b>T</b>",- classList: ["custom-class-h1"]- },- {- name: "h3",- aria: pgettext("Rich text editor option", "Subheader"),- tagNames: ["h3"],- contentDefault: '<b style="font-size: .75rem">T</b>',- classList: ["custom-class-h2"]- },- {- name: "quote",- aria: pgettext("Rich text editor option", "Quote"),- contentDefault: `<img src="${quoteIcon}">`- },- {- name: "anchor",- aria: pgettext("Rich text editor option", "Link"),- contentDefault: `<img src="${insertLinkIcon}">`,- formSaveLabel: `<img src="${doneIcon}"`,- formCloseLabel: `<img src="${closeIcon}">`- },- {- name: "image",- aria: pgettext(- "Rich text editor option",- "Image (converts selected text to an image tag)"- ),- contentDefault: `<img src="${insertPhotoIcon}">`- },- {- name: "justifyLeft",- aria: pgettext("Rich text editor option", "Left align"),- contentDefault: `<img src="${alignLeftIcon}">`- },- {- name: "justifyCenter",- aria: pgettext("Rich text editor option", "Center align"),- contentDefault: `<img src="${alignCenterIcon}">`- },- {- name: "justifyRight",- aria: pgettext("Rich text editor option", "Right align"),- contentDefault: `<img src="${alignRightIcon}">`- },- {- name: "justifyFull",- aria: pgettext("Rich text editor option", "Justify"),- contentDefault: `<img src="${alignJustifyIcon}">`- },- {- name: "removeFormat",- aria: pgettext("Rich text editor option", "Remove formatting"),- contentDefault: `<img src="${formatClear}">`- }- ]- },- keyboardCommands: {- commands: [- {- command: "bold",- key: "B",- meta: true,- shift: false,- alt: false- },- {- command: "italic",- key: "I",- meta: true,- shift: false,- alt: false- }- ]- }-});diff --git a/saleor/static/dashboard/js/components/filters.js b/saleor/static/dashboard/js/components/filters.jsdeleted file mode 100644index f07aac3820..0000000000--- a/saleor/static/dashboard/js/components/filters.js+++ /dev/null@@ -1,40 +0,0 @@-import { screenSizes } from "./misc";--let prevWindowWidth = null;-let initialized = false;-let $list = null;-const $filters = $("#filters");--const moveFilters = () => {- if (prevWindowWidth !== window.innerWidth) {- const $collapsibleCard = $(".collapse");- prevWindowWidth = window.innerWidth;- if (window.innerWidth < screenSizes.md) {- $list.before($filters);- if (!initialized) {- $collapsibleCard.addClass("collapsed");- initialized = true;- }- } else {- $list.after($filters);- $collapsibleCard.removeClass("collapsed");- }- }-};--// -------$list = $filters.prev();-if ($filters.length) {- moveFilters();- $(window).on("resize", moveFilters);-}--$(".collapse-activate").on("click", e => {- const $collapsibleCard = $(".collapse");- if ($collapsibleCard.hasClass("collapsed")) {- $collapsibleCard.removeClass("collapsed");- } else {- $collapsibleCard.addClass("collapsed");- }-});diff --git a/saleor/static/dashboard/js/components/google-preview.js b/saleor/static/dashboard/js/components/google-preview.jsdeleted file mode 100644index 45ac777aaf..0000000000--- a/saleor/static/dashboard/js/components/google-preview.js+++ /dev/null@@ -1,136 +0,0 @@-const $seoTitle = $("#id_seo_title");--const $nameId = $seoTitle.data("bind");-const $name = $(`#${$nameId}`);--const $seoDescription = $("#id_seo_description");-const $descriptionMaterialize = $seoDescription.data("materialize");--let $description = "";-const $descriptionId = $seoDescription.data("bind");-if ($descriptionMaterialize) {- const $descriptions = $(- `.materialize-textarea[name='${$descriptionMaterialize}']`- );- // They're two textareas from Medium editor, first one contains HTML-free text- $description = $descriptions.not($descriptionId).first();-} else {- if ($descriptionId) {- $description = $(`#${$descriptionId}`);- }-}--const $googleTitlePreview = $("#google-preview-title");-const $googleDescriptionPreview = $("#google-preview-description");-const $preview = $("#google-preview");--const watchedEvents = "input propertychange cut paste copy change";--function setPlaceholderAndPreview(field, seoField, previewField) {- const $text = field.text() || field.val();- const $placeholderText = truncate($text, seoField);- seoField.attr("placeholder", $placeholderText);- previewField.text(seoField.val() || $placeholderText);-}--function updateCharsCount(seoField) {- const $fieldId = seoField.attr("id");- const $charCount = $(`span[data-bind=${$fieldId}]`);- let $fieldLength = seoField.val().length || seoField.text().length;- if (!$fieldLength && seoField.attr("placeholder")) {- $fieldLength = seoField.attr("placeholder").length;- }- const $minRecommendedLength = seoField.data("min-recommended-length");- const $charCountWrapper = $charCount.parent();- if ($fieldLength < $minRecommendedLength) {- $charCountWrapper.addClass("orange-text");- $charCountWrapper.removeClass("green-text");- $charCountWrapper.attr(- "title",- gettext(- "Your input might be a little too short, think of something more descriptive"- )- );- } else {- $charCountWrapper.removeClass("orange-text");- $charCountWrapper.addClass("green-text");- $charCountWrapper.attr(- "title",- gettext("Your input fits between the recommended lengths")- );- }- $charCount.text($fieldLength);-}--function checkForErrors() {- const $descriptionText = $googleDescriptionPreview.text();- const $titleText = $googleTitlePreview.text();- if ($descriptionText && $titleText) {- $preview.show();- } else {- $preview.hide();- }-}--function truncate(text, seoField) {- const $fieldMaxLength = seoField.prop("maxLength");- if (text && text.length > $fieldMaxLength) {- return text.substring(text, $fieldMaxLength);- }- return text;-}--function updatePlaceholderOnInput(field, seoField, previewField) {- field.on(watchedEvents, e => {- const $target = $(e.currentTarget);- const $placeholderText = $target.val() || $target.text();- seoField.attr("placeholder", truncate($placeholderText, seoField));- const $seoText = seoField.val();- if (!$seoText) {- previewField.text(truncate($placeholderText, seoField));- }- checkForErrors();- updateCharsCount(seoField);- });-}--function updatePreviewOnInput(seoField, previewField) {- seoField.on(watchedEvents, e => {- const $target = $(e.currentTarget);- const $currentText = $target.val();- if ($currentText) {- previewField.text(truncate($currentText, seoField));- } else {- const $placeholderValue = seoField.attr("placeholder");- previewField.text(truncate($placeholderValue, seoField));- }- checkForErrors();- updateCharsCount(seoField);- });-}--if ($seoTitle.length) {- if ($name) {- setPlaceholderAndPreview($name, $seoTitle, $googleTitlePreview);- updatePlaceholderOnInput($name, $seoTitle, $googleTitlePreview);- }- updatePreviewOnInput($seoTitle, $googleTitlePreview);- updateCharsCount($seoTitle);-}-if ($seoDescription.length) {- if ($description) {- setPlaceholderAndPreview(- $description,- $seoDescription,- $googleDescriptionPreview- );- updatePlaceholderOnInput(- $description,- $seoDescription,- $googleDescriptionPreview- );- }- updatePreviewOnInput($seoDescription, $googleDescriptionPreview);- updateCharsCount($seoDescription);-}-checkForErrors();diff --git a/saleor/static/dashboard/js/components/image-gallery.js b/saleor/static/dashboard/js/components/image-gallery.jsdeleted file mode 100644index 46c575bcdc..0000000000--- a/saleor/static/dashboard/js/components/image-gallery.js+++ /dev/null@@ -1,38 +0,0 @@-// eslint-disable-next-line no-unused-vars-import Dropzone from "dropzone";--function createLink(link, index, replacement) {- const outputLink = link.attr("data-href-template").split("/");- outputLink[outputLink.length + index] = replacement;- return outputLink.join("/");-}--// -------$("#product-image-form").dropzone({- paramName: "image_0",- maxFilesize: 20,- previewsContainer: ".product-gallery",- thumbnailWidth: 400,- thumbnailHeight: 400,- previewTemplate: $("#template").html(),- method: "POST",- clickable: ".dropzone-message",- init: function() {- this.on("success", (e, response) => {- const $previewElement = $(e.previewElement);- $previewElement.find(".product-gallery-item-desc").html(response.image);- $previewElement.attr("data-id", response.id);-- const $editLinkElement = $previewElement.find(".card-action-edit");- const editLinkHref = createLink($editLinkElement, -2, response.id);- $editLinkElement.attr("href", editLinkHref);-- const $deleteLinkElement = $previewElement.find(".card-action-delete");- const deleteLinkHref = createLink($deleteLinkElement, -3, response.id);- $deleteLinkElement.attr("data-href", deleteLinkHref);-- $(".no-images").addClass("hide");- });- }-});diff --git a/saleor/static/dashboard/js/components/index.js b/saleor/static/dashboard/js/components/index.jsdeleted file mode 100644index 05189af018..0000000000--- a/saleor/static/dashboard/js/components/index.js+++ /dev/null@@ -1,17 +0,0 @@-import "./async-form";-import "./bulk-actions";-import "./datepicker";-import "./editor";-import "./filters";-import "./google-preview";-import "./image-gallery";-import "./load-action";-import "./messages";-import "./misc";-import "./modal";-import "./search";-import "./selects";-import "./side-menu";-import "./sortable.js";-import "./tab";-import "./vouchers";diff --git a/saleor/static/dashboard/js/components/load-action.js b/saleor/static/dashboard/js/components/load-action.jsdeleted file mode 100644index cd2f37d0d3..0000000000--- a/saleor/static/dashboard/js/components/load-action.js+++ /dev/null@@ -1,12 +0,0 @@-function disableSubsequentClicks(e) {- e.preventDefault();-}--function initLoadAction(e) {- $("body").css("cursor", "progress");- $(e.target).on("click", disableSubsequentClicks);-}--// -------$(".load-action").on("click", initLoadAction);diff --git a/saleor/static/dashboard/js/components/messages.js b/saleor/static/dashboard/js/components/messages.jsdeleted file mode 100644index f202cb8990..0000000000--- a/saleor/static/dashboard/js/components/messages.js+++ /dev/null@@ -1,26 +0,0 @@-const dataElement = $("#messages-container");-const data = dataElement.data("messages");-const $messages = $(".message");-const offset = 100;-const firstMessageOffset = 250;--// -------if (data) {- Object.keys(data).forEach(key => {- Materialize.toast(data[key], 5000);- });-}--setTimeout(() => {- let timeout = 0;- $messages.each((index, msg) => {- setTimeout(() => {- msg.removeClass("toast--hidden");- }, timeout + offset);- timeout += 3000;- setTimeout(() => {- msg.addClass("toast--hidden");- }, timeout - offset);- });-}, firstMessageOffset);diff --git a/saleor/static/dashboard/js/components/misc.js b/saleor/static/dashboard/js/components/misc.jsdeleted file mode 100644index 36c83bca1c..0000000000--- a/saleor/static/dashboard/js/components/misc.js+++ /dev/null@@ -1,72 +0,0 @@-import SVGInjector from "svg-injector-2";--import { initSelects } from "./selects";-import { onScroll } from "./utils";--const screenSizes = {- sm: 600,- md: 992,- lg: 1200-};--const svgInjector = new SVGInjector();--// -------// Inject all SVGs-svgInjector.inject(document.querySelectorAll("svg[data-src]"));--// Custom select inputs-initSelects();--// Materialize modals-$(".modal").modal();--// Print button-$(".btn-print").click(e => {- window.print();-});--// Clickable rows in dashboard tables-$(document).on("mouseup", "tr[data-action-go] > td:not(.ignore-link)", e => {- const $target = $(e.currentTarget);- // Ignore selecting text- const selectedText = getSelection().toString();- if (selectedText === "" || selectedText === $target.data("ignore-text")) {- window.location.href = $target.parent().data("action-go");- } else {- $target.data("ignore-text", selectedText);- }-});--// Publish / unpublish lever in detail views-const selectors = ["#product-is-published", "#collection-is-published"];-selectors.forEach(selector => {- $(selector).on("click", e => {- const form = $(e.currentTarget).closest("#toggle-publish-form");- const input = form.find("#toggle-publish-switch")[0];- if (e.target === input) {- const url = form.attr("action");- fetch(url, {- method: "POST",- credentials: "same-origin",- headers: {- "X-CSRFToken": $("[name=csrfmiddlewaretoken]").val()- }- })- .then(() => {- window.location.reload();- })- .catch(() => {- window.location.reload();- });- }- });-});--// Styleguide sticky right menu-onScroll(() =>- $(".styleguide__menu").toggleClass("fixed", $(window).scrollTop() > 100)-);--export { screenSizes, svgInjector };diff --git a/saleor/static/dashboard/js/components/modal.js b/saleor/static/dashboard/js/components/modal.jsdeleted file mode 100644index 9bb94e06f4..0000000000--- a/saleor/static/dashboard/js/components/modal.js+++ /dev/null@@ -1,47 +0,0 @@-import { svgInjector } from "./misc";-import { initSelects } from "./selects";--// List of input types that can be autofocused after opening modal-const focusInputs = [- "textarea",- 'input[type="text"]:not(.select-dropdown)',- 'input[type="number"]'-];--// -------$("body").on("click", ".modal-trigger-custom", e => {- const target = e.currentTarget;- e.preventDefault();- $.ajax({- url: target.dataset.href,- method: "GET",- success: response => {- const $modal = $(target.getAttribute("href"));- $modal.html(response).modal("open");- initSelects();- const inputs = $modal.find(focusInputs.join(","));-- // Automatically focus first autofocusable input in modal after opening- if (inputs.length) {- $modal.find(focusInputs.join(","))[0].focus();- }-- // Image checkbox selector- $(".image_select-item-overlay").on("click", e => {- const imageId = e.currentTarget.getAttribute("id");- const checkbox = document.querySelector("input#" + imageId);- const checkboxState = checkbox.getAttribute("checked");- checkbox.setAttribute("checked", !checkboxState);- $(e.target).toggleClass("checked", !checkbox);- });-- // Inject all SVGs from modal- svgInjector.inject(- document.querySelectorAll(- ".modal-content svg[data-src]:not(.injected-svg)"- )- );- }- });-});diff --git a/saleor/static/dashboard/js/components/search.js b/saleor/static/dashboard/js/components/search.jsdeleted file mode 100644index 800076fc03..0000000000--- a/saleor/static/dashboard/js/components/search.js+++ /dev/null@@ -1,25 +0,0 @@-function submit(e) {- e.preventDefault();- $(e.currentTarget)- .parent()- .submit();-}--function openSearchBar(e) {- e.preventDefault();- const $target = $(e.currentTarget);- $(".search").toggleClass("expanded", !$target.hasClass("expanded"));-}--function closeSearchBar(e) {- const $target = $(e.currentTarget);- const isExpanded = $target.hasClass("expanded");- $(".search").toggleClass("expanded", isExpanded);- $target.toggleClass("active", !isExpanded);-}--// -------$("#btn-search").on("click", openSearchBar);-$("#btn-search-close").on("click", closeSearchBar);-$("#btn-search-submit").on("click", submit);diff --git a/saleor/static/dashboard/js/components/selects.js b/saleor/static/dashboard/js/components/selects.jsdeleted file mode 100644index 9641a49de8..0000000000--- a/saleor/static/dashboard/js/components/selects.js+++ /dev/null@@ -1,52 +0,0 @@-import "select2";--function appendOption($select, option) {- $select.append(- $("<option></option>")- .attr("value", option.id)- .text(option.text)- );-}--function initSelects() {- // Custom variant attribute select that allows creating new attribute values.- let $variantAttrsSelect = $(".attribute-select-or-create select");- $variantAttrsSelect.select2({- tags: true,- width: "100%"- });- $variantAttrsSelect.addClass("select2-enabled");-- $(- "select:not(.browser-default):not(.enable-ajax-select2):not([multiple])"- ).material_select();- $("select[multiple]:not(.browser-default):not(.enable-ajax-select2)").select2(- { width: "100%" }- );-- $("select.enable-ajax-select2:not(.select2-enabled)").each((i, select) => {- const $select = $(select);- const initial = $select.data("initial");-- if (initial) {- const initialData = initial instanceof Array ? initial : [initial];- const selected = initialData.map(item => {- appendOption($select, item);- return item.id;- });- $select.val(selected);- }-- $select.select2({- ajax: {- url: $select.data("url"),- delay: 250- },- width: "100%",- minimumInputLength: $select.data("min-input")- });- $select.addClass("select2-enabled");- });-}--export { initSelects };diff --git a/saleor/static/dashboard/js/components/side-menu.js b/saleor/static/dashboard/js/components/side-menu.jsdeleted file mode 100644index 8e2e7512c4..0000000000--- a/saleor/static/dashboard/js/components/side-menu.js+++ /dev/null@@ -1,23 +0,0 @@-import { onScroll } from "./utils";--function toggleMenu(e) {- e.preventDefault();- $("body").toggleClass("nav-toggled");-}--const $mainNavTop = $(".side-nav");-const $toggleMenu = $("#toggle-menu");--// -------if ($mainNavTop.length) {- const mainNavTop = $mainNavTop.offset().top;- $toggleMenu.on("click", toggleMenu);- if ($mainNavTop.length > 0) {- onScroll(() => {- const stickSideMenu =- Math.floor($(window).scrollTop()) > Math.ceil(mainNavTop);- $("body").toggleClass("sticky-nav", stickSideMenu);- });- }-}diff --git a/saleor/static/dashboard/js/components/sortable.js b/saleor/static/dashboard/js/components/sortable.jsdeleted file mode 100644index a26ce6da19..0000000000--- a/saleor/static/dashboard/js/components/sortable.js+++ /dev/null@@ -1,28 +0,0 @@-import Sortable from "sortablejs";--$(".sortable-items").each((sortableIndex, sortableItems) => {- const sortable = $(sortableItems);- Sortable.create(sortableItems, {- handle: ".sortable__drag-area",- animation: 150,- onUpdate: () => {- const sortedItems = sortable- .find(".sortable-item[data-id]")- .map((index, item) => item.dataset.id)- .toArray();- const data = {};- data[sortable.data("post-name")] = sortedItems;-- // TODO: Get rid of ajax() in favour of fetch()- $.ajax({- method: "POST",- url: sortable.data("post-url"),- data: data,- traditional: true,- headers: {- "X-CSRFToken": $.cookie("csrftoken")- }- });- }- });-});diff --git a/saleor/static/dashboard/js/components/tab.js b/saleor/static/dashboard/js/components/tab.jsdeleted file mode 100644index 464762975e..0000000000--- a/saleor/static/dashboard/js/components/tab.js+++ /dev/null@@ -1,15 +0,0 @@-const $tabs = $("ul.tabs");-if ($tabs.length) {- $tabs.find(".tab").on("click", e => {- const tabSelector = $(e.currentTarget)- .find("a")- .attr("href");- $(".btn-fab").addClass("btn-fab-hidden");- $(tabSelector + "-btn").removeClass("btn-fab-hidden");- });-- $tabs- .find("a.active")- .parent()- .click();-}diff --git a/saleor/static/dashboard/js/components/utils.js b/saleor/static/dashboard/js/components/utils.jsdeleted file mode 100644index d6ba6e4ee6..0000000000--- a/saleor/static/dashboard/js/components/utils.js+++ /dev/null@@ -1,22 +0,0 @@-import detectPassiveEvents from "detect-passive-events";-import { parse, stringify } from "qs";--function onScroll(func) {- window.addEventListener(- "scroll",- func,- detectPassiveEvents.hasSupport- ? {- passive: true- }- : false- );-}--function createQueryString(currentQs, newData) {- const currentData = parse(currentQs.substr(1));- const data = stringify(Object.assign({}, currentData, newData));- return `?${data}`;-}--export { onScroll, createQueryString };diff --git a/saleor/static/dashboard/js/components/vouchers.js b/saleor/static/dashboard/js/components/vouchers.jsdeleted file mode 100644index e80f6cf018..0000000000--- a/saleor/static/dashboard/js/components/vouchers.js+++ /dev/null@@ -1,32 +0,0 @@-/*- * Handler for voucher type change event. Manages showing options- * that are connected to selected voucher type and hiding others.- */-function onVoucherTypeChange(e) {- const $target = $(e.currentTarget);- $(".voucher-form").each((index, form) => {- const $form = $(form);- $form.toggleClass("hide", $form.data("type") !== $target.val());- });-}--/*- * Handler for discount type change event. Shows additional options- * if 'percentage' option is selected.- */-function onDiscountTypeChange(e) {- const $target = $(e.currentTarget);- const showOnPercentage =- '[name="product-apply_to"], [name="category-apply_to"]';- const $showOnPercentage = $(showOnPercentage).parents(".input");- $showOnPercentage.toggleClass("hide", $target.val() === "percentage");-}--// -------$('[name="discount_value_type"]')- .on("change", onDiscountTypeChange)- .trigger("change");-$('[name="type"]')- .on("change", onVoucherTypeChange)- .trigger("change");diff --git a/saleor/static/dashboard/js/dashboard.js b/saleor/static/dashboard/js/dashboard.jsdeleted file mode 100644index c4e9bbcf7a..0000000000--- a/saleor/static/dashboard/js/dashboard.js+++ /dev/null@@ -1,5 +0,0 @@-import "materialize-css/dist/js/materialize";-import "jquery.cookie";--import "../scss/dashboard.scss";-import "./components";diff --git a/saleor/static/dashboard/js/document.js b/saleor/static/dashboard/js/document.jsdeleted file mode 100644index 0493bc1b5f..0000000000--- a/saleor/static/dashboard/js/document.js+++ /dev/null@@ -1 +0,0 @@-import "../scss/document.scss";diff --git a/saleor/static/dashboard/scss/components/_breadcrumbs.scss b/saleor/static/dashboard/scss/components/_breadcrumbs.scssdeleted file mode 100644index c67028d55a..0000000000--- a/saleor/static/dashboard/scss/components/_breadcrumbs.scss+++ /dev/null@@ -1,96 +0,0 @@-@mixin breadcrumbs {- display: block;- float: left;- font-size: $h3-fontsize;- line-height: $subheader-height;- white-space: nowrap;- margin-bottom: 0;- margin-top: 0;- max-width: calc(100vw - 40px);- @media (max-width: $medium-screen) {- overflow: hidden;- text-overflow: ellipsis;- }- &--history {- li {- &:before {- content: url('../images/chevron-right.svg');- vertical-align: text-bottom;- display: inline-block;- }- &:first-child:before {- display: none;- }- }- }- li {- float: none;- line-height: $subheader-height;- color: white;- display: inline-block;- @media (max-width: $medium-screen-up) {- &:first-of-type:not(.visible-s) {- display: none;- &:before {- display: none;- }- }- &:nth-of-type(2) {- &:before {- display: none;- }- }- &:before {- display: none;- }- &.back-mobile {- display: inline-block;- svg {- vertical-align: middle;- margin-right: 10px;- }- }- }- @media (min-width: $medium-screen-up) {- &:first-of-type {- display: inline-block;- }- &.back-mobile {- display: none;- }- }- &:hover {- background: none;- }- a {- color: white;- display: inline-block;- font-size: $h3-fontsize;- padding: 0;- transition: color $transition-duration;-- &:hover {- color: white;- }- }- * {- display: inline-block;- overflow: hidden;- }- }-- &--ellipsed {- &-item {- text-overflow: ellipsis;- white-space: nowrap;- max-width: calc(100vw - 80px);- @media (min-width: $medium-screen-up) {- max-width: 14em;- }- }- }-}--.breadcrumbs {- @include breadcrumbs;-}diff --git a/saleor/static/dashboard/scss/components/_buttons.scss b/saleor/static/dashboard/scss/components/_buttons.scssdeleted file mode 100644index 72b734394e..0000000000--- a/saleor/static/dashboard/scss/components/_buttons.scss+++ /dev/null@@ -1,69 +0,0 @@-.card .card-action {- padding: 10px 8px;- &.wide {- padding: 16px;- }- a:not(.btn):not(.btn-large):not(.btn-large):not(.btn-floating) {- @extend .btn-flat;- margin-right: 0;- &:hover {- color: $secondary-color;- }- }-}--.btn {- &:not(.btn-floating) {- box-shadow: none;- }- &-flat {- @extend .waves-lightgray;- color: $secondary-color;- &:hover {- background: unset;- }- &:focus {- background: rgba(0,0,0,0.05);- }- }- &-fab, &-floating {- svg {- vertical-align: middle;- }- &.btn-fab-hidden {- transform: scaleX(0) scaleY(0);- }- }- &-fab {- &-fixed {- @extend .fixed-action-btn;- @media (min-width: $medium-screen) {- position: absolute;- top: 4px;- right: 25%;- }- @media (min-width: $large-screen) {- right: calc(25% - 60px);- }- }- &-default {- @extend .btn-fab;- @extend .btn-floating;- @extend .btn-large;- }- &-presentation {- @extend .btn-fab-default;- @extend .fixed-action-btn;- position: relative;- top: -.1rem;- right: 0;- width: 2rem;- height: 2rem;- line-height: 1.8rem;- padding-top: 0;- margin: 0 .2rem;- pointer-events: none;- cursor: unset;- }- }-}diff --git a/saleor/static/dashboard/scss/components/_card-collapse.scss b/saleor/static/dashboard/scss/components/_card-collapse.scssdeleted file mode 100644index 3edf0369d8..0000000000--- a/saleor/static/dashboard/scss/components/_card-collapse.scss+++ /dev/null@@ -1,19 +0,0 @@-.collapse {- max-height: 1000px;- transition: $transition-duration;- &.collapsed {- max-height: 0;- overflow: hidden;- }-}--.collapse-activate {- position: absolute;- top: 21px;- right: 20px;- svg {- width: 24px;- height: 24px;- fill: $grey-color;- }-}diff --git a/saleor/static/dashboard/scss/components/_chars-left.scss b/saleor/static/dashboard/scss/components/_chars-left.scssdeleted file mode 100644index 63c9fc2e00..0000000000--- a/saleor/static/dashboard/scss/components/_chars-left.scss+++ /dev/null@@ -1,10 +0,0 @@-.chars-left {- align-items: baseline;- display: flex;- flex-wrap: wrap;- justify-content: space-between;- &__label {- position: relative!important;- margin-left: -10px;- }-}diff --git a/saleor/static/dashboard/scss/components/_data-table.scss b/saleor/static/dashboard/scss/components/_data-table.scssdeleted file mode 100644index 69992a8934..0000000000--- a/saleor/static/dashboard/scss/components/_data-table.scss+++ /dev/null@@ -1,264 +0,0 @@-@mixin data-table {- &-container {- overflow: auto;- .avatar {- padding: 0;- img {- vertical-align: middle;- }- }- }-- &-action {- border-top: 1px solid $table-border-color;- padding: 10px 8px;- }-- &-header-action {- border-bottom: 1px solid $table-border-color;- padding: 14px 8px;- }-- &-bulk-actions {- box-shadow: none;- transition: $transition-duration;- overflow: hidden;- display: none;- position: absolute;- right: 0;- z-index: 1;- padding: 0 24px 0 0;- @media (max-width: $small-screen) {- height: 56px;- overflow: visible;- }- a {- color: $secondary-color;- }- &.show {- background: #fff;- color: $off-black;- display: block;- }- &__action-choice {- width: calc(100% - 60px);- position: absolute;- right: 8px;- ul {- li {- a {- margin: 0;- }- }- }- @media (max-width: $small-screen) {- display: none;- }- }- &__dropdown-container {- right: -5px;- position: relative;- display: none;- svg {- fill: $grey-color;- }- a {- line-height: 70px;- }- @media (max-width: $small-screen) {- display: block;- }- }- &__select-all {- float: left;- margin: 11px 8px 0 24px;- @media (max-width: $small-screen) {- margin: 6px 8px 0 24px;- }- }- &__selected-items {- margin-left: -10px;- line-height: 56px;- }- }-- &-header {- align-items: center;- display: flex;- height: 64px;- a {- color: $secondary-color;- }- .label {- line-height: 1;- margin-right: 16px;- }- h5 {- text-transform: initial;- font-size: 24px;- font-weight: 300;- }- }-- &-content {- align-items: center;- display: flex;- flex-direction: column;- padding: 16px;-- .input {- padding: 0;- }- }-- &-title {- flex-grow: 1;- font-size: 24px;- font-weight: 300;- line-height: 1;- margin: 0;- padding: 0 16px;- &--no-data {- padding: 0 15px;- }- }-- &.last-right-align {- td, th {- &:last-child {- text-align: right;- }- }- }-- input[type=checkbox].filled-in + label {- margin-top: 5px;- padding: 0;-- &:after {- display: inline-block;- position: static;- }- }-- tr {- &.highlight {- background-color: #f8f8f8;- }- &.last-no-border {- &:last-of-type {- border-bottom: none;- }- }- &[data-action-go] > td:not(.ignore-link):hover {- cursor: pointer;- }- }-- .danger {- color: $error-color;- }-- th, td {- height: 48px;- overflow: hidden;- padding: 0 16px;- text-overflow: ellipsis;- vertical-align: middle;- white-space: nowrap;-- a {- color: $secondary-color;- }-- &:first-child {- padding-left: 16px;- }-- &:last-child {- padding-right: 16px;- }-- &.no-padded {- padding: 0;- }-- &.nowrap {- white-space: normal;- padding: 10px 24px;- }-- .dropdown-button {- color: inherit;- display: inline-block;- svg {- vertical-align: bottom;- }- }-- &.fulfillment-quantity {- .fulfillment-quantity-input {- display: flex;- align-items: center;-- input {- width: 64px;- margin-bottom: 0;- text-align: right;- }- }- label p {- margin: 8px 0;- }- }- }-- th {- font-weight: normal;- font-size: 12px;- height: 56px;- color: $grey-color;- svg {- display: none;- }- &.active {- a {- font-weight: 600;- color: lighten(#000, 13%);- padding-right: 16px;- }- svg {- display: inline-block;- fill: lighten(#000, 13%);- position: absolute;- top: -2px;- right: -4px;- width: 16px;- height: 16px;- }- }- a {- position: relative;- color: $grey-color;- &:hover {- color: darken($grey-color, 15%);- }- }- }-- tfoot:not(.no-bold) {- font-weight: bold;- }-- .wide {- width: 99%;- }-- &-icon {- padding: 0 8px !important;- }-}--.data-table {- @include data-table;-}diff --git a/saleor/static/dashboard/scss/components/_dropzone.scss b/saleor/static/dashboard/scss/components/_dropzone.scssdeleted file mode 100644index 2f969141fa..0000000000--- a/saleor/static/dashboard/scss/components/_dropzone.scss+++ /dev/null@@ -1,79 +0,0 @@-@mixin dropzone {- background-color: inherit;- border: none;- height: 79vh;- padding: 0;- position: relative;-- &.dz-clickable * {- cursor: initial;- }-- & div.dropzone-ghost {- display: none;- opacity: .75;- }-- &.dz-drag-hover {- border: none;- &:after {- bottom: 0;- content: "";- left: 0;- position: absolute;- right: 0;- top: 0;- }-- div.dropzone-ghost {- display: block;- }- }-- .dz-preview {- &.dz-image-preview {- background: none;- }- .dz-progress {- border: 0;- border-radius: 0;- bottom: 163px;- height: 4px;- top: auto;- left: 0;- width: 100%;- margin: 0;- opacity: 1 !important;- transition: height $transition-duration !important;-- .dz-upload {- background: map-get($blue, base);- }- }-- &.dz-complete {- .dz-progress {- height: 0;- }- }- }-- &-message {- span {- font-size: 1.7rem;- text-transform: uppercase;- }- }-- .dz-message {- position: absolute;- left: 0;- margin: 0;- right: 0;- top: 0;- }-}--.dropzone {- @include dropzone;-}diff --git a/saleor/static/dashboard/scss/components/_form.scss b/saleor/static/dashboard/scss/components/_form.scssdeleted file mode 100644index 1fc1947137..0000000000--- a/saleor/static/dashboard/scss/components/_form.scss+++ /dev/null@@ -1,252 +0,0 @@-@mixin form {- .select-wrapper {- &.invalid {- input {- @extend .invalid;- }- }- }-- label {- @extend .active;- transition: none;- }-- input[type=radio] {- @extend .with-gap;- }-- select[multiple] {- display: initial;- width: 100%;- }-- textarea {- width: 100%;- }-- p {- &.help-block {- margin: -7px 0 15px;- font-size: $label-font-size;- clear: both;- }- &.margin {- margin-bottom: 25px;- }- }-- .input-field {- margin-top: 0;- padding-top: 20px;- label, label.active {- font-size: 12px;- top: 0;- transform: none;- }- }-- %input-lg {- font-size: 2.2rem;- transition: none;- }-- &#form-product {- #id_name {- @extend %input-lg;- }-- #id_price {- @extend %input-lg;- }- }-- &#form-variant {- #id_sku {- @extend %input-lg;- }- }-- &#form-attributes {- #id_display {- @extend %input-lg;- }- }-- &#form-category {- #id_name {- @extend %input-lg;- }- }-- &#form-sales {- #id_name {- @extend %input-lg;- }- }-- &#form-vouchers {- #id_code {- @extend %input-lg;- }- }-- .sizedimage-mod {- margin-bottom: $gutter-width/2;-- & ~ label {- display: none;- }- }-- .file-field {- label {- display: none;- }- }-- .btn--inline {- display: inline-block;- margin-top: 1.4rem;- }-- .datepicker {- cursor: pointer;- }-- .checkbox-helptext {- padding-left: 66px;- }-}--.switch {- padding-bottom: 20px;- position: relative;- .label {- position: absolute;- top: 3px;- }-}--.image_select {- padding: 0 10px;- .row .col {- padding: 5px;- }- &-item {- width: 23%;- margin-left: 1%;- margin-top: 1%;- float: left;- position: relative;- label {- position: absolute;- top: 10px;- right: -5px;- z-index: 999;- }- img {- width: 100%;- }- &-overlay {- position: absolute;- cursor: pointer;- width: 100%;- height: 100%;- background: $off-black;- opacity: 0;- top: 0;- transition: opacity .3s;- &:hover {- opacity: 0.3;- }- &.checked {- opacity: 0.3;- }- }- }- .filled-in + label:after {- border-radius: 50%;- }- .filled-in:not(:checked) + label:after {- border: none;- }-}--.input-with-suffix {- display: table-row;- input {- display: table-cell;- }- .input-text-suffix {- display: table-cell;- @extend .grey-text;- line-height: 45px;- padding-left: 10px;- text-align: right;- }- @media (max-width: $small-screen) {- input {- width: 80%;- }- .input-text-suffix {- width: 20%;- }- }-}--.input-range {- .separator {- display: inline-block;- margin-top: 10px;- width: 1rem;- }- &--field {- display: inline-table;- width: calc(50% - .8rem);- @media (max-width: $medium-screen) {- .input-text-suffix {- text-align: center;- }- }- }-}--.phone-prefix-input {- display: grid;- grid-template-columns: 8rem calc(100% - 8rem);- align-items: stretch;- &__field {- &:last-of-type {- input[type="text"] {- margin-left: .5rem !important;- }- }- }-}--.medium-editor-element {- padding-bottom: 1rem;- border-bottom: 1px $grey-color solid;- outline: none;- transition: all $transition-duration;- &:focus, &:active {- border-bottom-color: $secondary-color;- box-shadow: 0 1px 0 0 $secondary-color;- }-}--label.svg-submit-btn input[type="submit"] {- display: none;-}--.main form, .modal form {- @include form;-}--.is_featured_checkbox {- .input.input-field {- padding-top: 0!important;- padding-bottom: 10px;- }-}diff --git a/saleor/static/dashboard/scss/components/_formset.scss b/saleor/static/dashboard/scss/components/_formset.scssdeleted file mode 100644index bda96b0bef..0000000000--- a/saleor/static/dashboard/scss/components/_formset.scss+++ /dev/null@@ -1,80 +0,0 @@-@mixin formset-table {- input[type=checkbox].filled-in + label {- margin-top: 5px;- padding: 0;-- &:after {- display: inline-block;- position: static;- }- }-- th, td {- height: 48px;- padding: 0 28px;- vertical-align: baseline;-- &:first-child {- padding-left: 24px;- }-- &:last-child {- padding-right: 24px;- }-- &.no-padded {- padding: 0;- }-- .input-field {- label, label.active {- font-size: 0;- vertical-align: bottom;- }- }-- p {- margin-bottom: 15px;- }- }-- th {- color: map_get($grey, darken-1);- font-weight: normal;- font-size: 85%;- height: 56px;- vertical-align: middle;- }-- tfoot {- font-weight: bold;- }-- .bulk-checkbox {- padding: 0 24px;- width: 1px;-- + th, + td {- padding-left: 0;- }- }-- .wide {- width: 99%;- }-- .dropdown-button {- padding: 15px 28px;- }-- .dropdown-content {- left: auto !important;- right: 0;- top: 0;- white-space: nowrap;- }-}--.formset-table {- @include formset-table;-}diff --git a/saleor/static/dashboard/scss/components/_global.scss b/saleor/static/dashboard/scss/components/_global.scssdeleted file mode 100644index 4dbdad68d1..0000000000--- a/saleor/static/dashboard/scss/components/_global.scss+++ /dev/null@@ -1,183 +0,0 @@-html {- background: $body-bg;- @media only screen and (min-width: 0) {- font-size: 14px;- }- @media only screen and (min-width: $large-screen) {- font-size: 13px;- }-}--strong {- font-weight: bold;-}--h5 {- font-weight: 400;- font-size: 1.2rem;- text-transform: uppercase;- padding-top: 10px;-}--h6 {- @extend .grey-text;- font-size: 13px;-}--.no-margin {- margin: 0;-}--.switch-two-columns {- @media (min-width: $large-screen) {- float: left !important;-- &:first-child {- float: right !important;- }- }-}--.text-lg {- font-size: 120%;-}--.text-padding {- padding: 5px 0;-}--.label {- @extend .grey-text;- font-size: 12px;- text-transform: uppercase;-- &.label-danger {- @extend .red-text;- }-- &.label-success {- @extend .green-text;- }-}--.material-icons {- direction: ltr;- display: inline-block;- font-family: 'Material Icons';- font-weight: normal;- font-style: normal;- letter-spacing: normal;- text-transform: none;- vertical-align: middle;- word-wrap: normal;- white-space: nowrap;-- /* Support for all WebKit browsers. */- -webkit-font-smoothing: antialiased;- /* Support for Safari and Chrome. */- text-rendering: optimizeLegibility;-- /* Support for Firefox. */- -moz-osx-font-smoothing: grayscale;-- /* Support for IE. */- font-feature-settings: 'liga';-}--.formatted-address {- font-style: normal;-}--.readonly-msg {- border: 1px solid #ee6e73;- box-shadow: none;- color: $primary-color;-}--.currency {- @extend .grey-text;- font-size: 12px;- font-weight: normal;-}--.help-box {- svg {- vertical-align: middle;- }-}--.not-found {- text-align: center;- p {- font-size: 1.7rem;- text-transform: uppercase;- }-}--li#version-indicator {- p {- @extend .grey-text, .text-lighten-1;- }-}--.main {- form {- .input-field {- label {- height: auto;- pointer-events: auto;-- &:not(.label-icon) {- transform: none;- }- }- }- }-}--.address {- margin-bottom: 1rem;- .phone-number {- margin-left: .5rem;- color: unset;- }-}--svg {- &.fill {- &-primary {- fill: $primary-color;- }- &-secondary {- fill: $secondary-color;- }- }-}--.chips-container {- margin-top: 18px;- a {- color: #999;- }-}--.waves-effect.waves-lightgray .waves-ripple {- background-color: rgba(0, 0, 0, 0.05);-}--.card {- .card-title {- overflow-wrap: break-word;- }-- .card-border {- border-bottom: 1px solid $table-border-color;- }-}--.row {- .col {- // Prevent from horizontal scroll on mobile devices- max-width: 100%;- }-}diff --git a/saleor/static/dashboard/scss/components/_google-preview.scss b/saleor/static/dashboard/scss/components/_google-preview.scssdeleted file mode 100644index 58e987ae0d..0000000000--- a/saleor/static/dashboard/scss/components/_google-preview.scss+++ /dev/null@@ -1,40 +0,0 @@-.google-preview {- text-align: left;- letter-spacing: initial;- &__container {- background-color: #fff;- max-width: 600px;- }- &__title {- display: block;- text-overflow: ellipsis;- margin-bottom: 2px;- a {- color: #1A0DAB;- cursor: pointer;- font-size: 18px;- line-height: 21px;- text-decoration: none solid #1A0DAB;- &:hover {- text-decoration: underline;- }- word-wrap: break-word;- overflow-wrap: break-word;- }- }- &__description {- color: #545454;- font-size: 13px;- line-height: 18px;- overflow-wrap: break-word;- }- &__url {- color: #006621;- font-size: 13px;- line-height: 16px;- white-space: nowrap;- margin-bottom: 2px;- overflow: hidden;- text-overflow: ellipsis;- }-}diff --git a/saleor/static/dashboard/scss/components/_list.scss b/saleor/static/dashboard/scss/components/_list.scssdeleted file mode 100644index 60774451fc..0000000000--- a/saleor/static/dashboard/scss/components/_list.scss+++ /dev/null@@ -1,70 +0,0 @@-@mixin list {- width: 100%;-- .collection {- &-item {- padding: 0;- a {- display: block;- padding: 10px 20px 0px 20px;- }- &:hover {- background: #f2f2f2;- }- }- }-- & &-item.avatar {- min-height: auto;- }-- & &-item {- padding-bottom: 0;- position: relative;-- &-name {- display: block;- overflow: hidden;- padding-right: 20px;- text-overflow: ellipsis;- white-space: nowrap;- color: $off-black;-- &--single {- margin-bottom: 10px;- color: $off-black;- }- }-- &-price, &-desc, &-name--single {- margin: 0;- padding-bottom: 10px;- }-- &-price {- color: $off-black;- }-- &-desc {- @extend .grey-text;- margin: 0;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;- padding-right: 30px;- }-- &-icon {- font-size: 16px;- opacity: .6;- position: absolute;- right: 20px;- top: 50%;- transform: translateY(-50%);- }- }-}--.list {- @include list;-}diff --git a/saleor/static/dashboard/scss/components/_menu.scss b/saleor/static/dashboard/scss/components/_menu.scssdeleted file mode 100644index 58b6c35fac..0000000000--- a/saleor/static/dashboard/scss/components/_menu.scss+++ /dev/null@@ -1,9 +0,0 @@-@mixin menu-items {- .sortable__drag-area {- cursor: move;- }-}--.menu-items {- @include menu-items;-}diff --git a/saleor/static/dashboard/scss/components/_modals.scss b/saleor/static/dashboard/scss/components/_modals.scssdeleted file mode 100644index 784367ad17..0000000000--- a/saleor/static/dashboard/scss/components/_modals.scss+++ /dev/null@@ -1,28 +0,0 @@-.modal-content {- & > .row {- margin: {- left: -.75rem;- right: -.75rem;- }- &:last-of-type {- margin-bottom: 0;- }- }- .address {- margin: 1rem 0;- }-- blockquote {- margin: 8px 0;- }-}--#base-modal {- @media only screen and (min-width: 1367px) {- width: 40%;- }-}--#modal-product-class {- max-width: 300px;-}diff --git a/saleor/static/dashboard/scss/components/_nav.scss b/saleor/static/dashboard/scss/components/_nav.scssdeleted file mode 100644index 35ad211039..0000000000--- a/saleor/static/dashboard/scss/components/_nav.scss+++ /dev/null@@ -1,212 +0,0 @@-header {- .top-nav {- box-shadow: none;- line-height: 0;- .left {- float: none !important;- margin-right: 56px;- @media (max-width: $small-screen) {- margin-right: 0;- }- }- .user-name {- padding: (($dropdown-item-height - 22) / 2) 16px;- white-space: normal;- max-width: 90vw;- }- #toggle-menu {- svg {- margin: 16px 0;- @media (max-width: $small-screen) {- margin: 20px 0;- }- path {- fill: #fff;- }- }- }- .menu-toggle {- background-color: $primary-color;- position: absolute;- width: 237px;- z-index: 2;- a:hover {- background-color: transparent;- }- }- .header-button, .button-collapse {- float: left;- margin: 0 $gutter-width;- display: block;- }-- .dropdown-button {- float: right;- line-height: $header-height/2;- position: relative;- top: $header-height/4;- margin-left: 1rem;- z-index: 999;- @media (max-width: $small-screen) {- top: $header-height/3;- }- }-- .dropdown-content {- left: auto !important;- right: 0;- white-space: nowrap;- }-- .logo {- padding: 0;- svg {- max-height: $navbar-height;- max-width: 80px;- width: auto;- margin: 9px 0;- padding: 4px;- @media (max-width: $small-screen) {- height: 30px;- margin: 17px 0;- }- }- }- .right {- padding-right: 15px;- }- }-- .side-nav {- width: 232px;- padding: 12px 8px 52px;- position: absolute;- top: $navbar-height-mobile + $subheader-height;- height: 100vh;- transition: transform .1s;- @media (min-width: $small-screen) {- top: $header-height + $subheader-height;- }- @media (min-width: $medium-screen) {- background: transparent;- box-shadow: none;- }- @media (min-width: $large-screen) {- transform: translateX(0);- }- a {- padding: 0 $sidenav-padding;- }- &-section {- p {- @extend .grey-text;- margin: 0;- height: 40px;- line-height: 40px;- padding: 0 $sidenav-padding;- font-size: 13px;- }- &:not(:last-of-type) {- border-bottom: 1px solid map-get($grey, lighten-2);- }- padding-top: $gutter-width / 2;- &#first{- border-top: 1px solid map-get($grey, lighten-2);- }- }- li {- border-radius: 2px;- a {- font-weight: normal;- @media (min-width: $medium-screen) {- height: 40px;- line-height: 40px;- }- }- &.active {- a {- @extend .grey-text;- @extend .text-darken-4;- font-weight: bold;- }- }- .body-home &.nav-home {- @extend .active;- }- }- }-}--.subheader {- background-color: $primary-color-light;- height: $subheader-height;- margin-top: 0;- position: relative;- .container {- width: 100%;- max-width: none;- height: $subheader-height;- .breadcrumbs {- transition: margin .1s;- padding-left: 15px;- }- .dropdown-button {- padding: 11px 15px 0 0;- line-height: 0;- max-height: $subheader-height;- }- }-}--.main {- .container {- margin: 40px 40px 0;- width: auto;- max-width: none;- transition: margin .1s;- @media (max-width: $small-screen) {- margin: 15px 15px 0;- }- @media (min-width: $large-screen) {- margin-left: 270px;- }- }-}--body.nav-toggled {- header {- .side-nav {- transform: translateX(0);- @media (min-width: $large-screen) {- transform: translateX(-105%);- }- }- }- .subheader {- .container {- margin-left: 0;- }- }- .main {- .container {- @media (min-width: $medium-screen) {- margin-left: 270px;- }- @media (min-width: $large-screen) {- margin: 40px 40px 0;- }- }- }- .btn-fab-fixed {- right: 25%;- }-}--body.sticky-nav {- header {- .side-nav {- position: fixed;- top: 0;- }- }-}diff --git a/saleor/static/dashboard/scss/components/_pagination.scss b/saleor/static/dashboard/scss/components/_pagination.scssdeleted file mode 100644index 88268d39a5..0000000000--- a/saleor/static/dashboard/scss/components/_pagination.scss+++ /dev/null@@ -1,5 +0,0 @@-.pagination {- svg {- margin-top: 3px;- }-}diff --git a/saleor/static/dashboard/scss/components/_ppoi.scss b/saleor/static/dashboard/scss/components/_ppoi.scssdeleted file mode 100644index 0f8e94ee24..0000000000--- a/saleor/static/dashboard/scss/components/_ppoi.scss+++ /dev/null@@ -1,14 +0,0 @@-@mixin ppoi {- div.ppoi-point {- background-color: map_get($materialize-red, lighten-3);- background-color: rgba(map_get($materialize-red, lighten-3), .5);- border-radius: 50%;- box-shadow: 0 0 5px 0 rgba(0, 0, 0, .5);- height: 50px;- width: 50px;- }-}--.point-stage {- @include ppoi;-}diff --git a/saleor/static/dashboard/scss/components/_product-gallery.scss b/saleor/static/dashboard/scss/components/_product-gallery.scssdeleted file mode 100644index b5b2c7b042..0000000000--- a/saleor/static/dashboard/scss/components/_product-gallery.scss+++ /dev/null@@ -1,69 +0,0 @@-@mixin product-gallery {- margin: 0;- &-item {- position: relative;-- @media (min-width: 1600px) {- width: 25% !important;- }-- &-reorder {- position: absolute;- }-- &-image {-- &--ghost {- background: map_get($grey, lighten-5);- padding: 64px 0 63px;- text-align: center;- }- }-- &-title, &-desc {- display: block;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-- &--noclip {- padding: 104px 3rem 103px;- text-align: center;- white-space: normal;- }- }-- &-text {- background: rgba(black, .5);- bottom: 0;- color: white;- height: 48px;- line-height: 48px;- left: 0;- overflow: hidden;- padding: 0 calc(#{$gutter-width/2} + 48px) 0 $gutter-width/2;- position: absolute;- right: 0;- text-align: left;- text-overflow: ellipsis;- white-space: nowrap;- }- }- .sortable__drag-area {- bottom: 0;- left: 0;- position: absolute;- top: 0;- right: 0;- padding: .5rem 1rem;- cursor: move;- }-- .sortable-ghost {- opacity: .4;- }-}--.product-gallery {- @include product-gallery;-}diff --git a/saleor/static/dashboard/scss/components/_rich-text-editor.scss b/saleor/static/dashboard/scss/components/_rich-text-editor.scssdeleted file mode 100644index 3e9a9f06d8..0000000000--- a/saleor/static/dashboard/scss/components/_rich-text-editor.scss+++ /dev/null@@ -1,130 +0,0 @@-.medium {- &-toolbar {- &-arrow {- &-under:after {- border-color: $medium-editor-bgcolor transparent transparent transparent;- top: $medium-editor-button-size;- z-index: -1;- }- &-over:before {- border-color: transparent transparent $medium-editor-bgcolor transparent;- }- }- }-- &-editor {- &-anchor-preview {- a {- color: $medium-editor-link-color;- text-decoration: none;- }- }-- &-element {- outline: none;- border-bottom: 1px $grey-color solid;- transition: all $transition-duration;- padding-bottom: 1rem;- &:focus, &:active {- border-bottom-color: $secondary-color;- box-shadow: 0 1px 0 0 $secondary-color;- }- }-- &-toolbar {- background-color: $medium-editor-bgcolor;- border: none;- border-radius: $medium-editor-border-radius;-- li {- button {- background-color: transparent;- border: none;- box-sizing: border-box;- color: $medium-editor-link-color;- height: $medium-editor-button-size;- min-width: $medium-editor-button-size;- padding: 5px 12px;- transition: background-color .2s ease-in, color .2s ease-in;- &:hover {- background-color: $medium-editor-hover-color;- color: $medium-editor-button-active-text-color;- }- }- }-- &-close {- margin-right: 16px;- }-- &-form {- background: $medium-editor-bgcolor;- border-radius: $medium-editor-border-radius;- color: $medium-editor-link-color;- overflow: hidden;- a {- color: $medium-editor-link-color;- transform: translateY(2px);- float: right;- }- }-- &-input {- background: $medium-editor-bgcolor;- box-sizing: border-box;- color: $medium-editor-link-color;- height: $medium-editor-button-size;- width: 220px;- border-bottom: 1px $grey-color solid !important;- margin-bottom: .5rem !important;- padding: 0 1rem !important;- &:active, &:focus {- border-bottom-color: $secondary-color !important;- box-shadow: 0 0 0 1px $secondary-color;- }-- &::placeholder {- color: rgba($medium-editor-placeholder-color, .8);- }- }-- &-actions {- li, button {- border-radius: $medium-editor-border-radius;- }- }-- &-anchor-preview {- background: $medium-editor-bgcolor;- border-radius: $medium-editor-border-radius;- padding: 5px 12px;- }- }-- &-button {- &-first {- border-bottom-left-radius: $medium-editor-border-radius;- border-top-left-radius: $medium-editor-border-radius;- padding-left: 24px;- }-- &-last {- border-bottom-right-radius: $medium-editor-border-radius;- border-right: none;- border-top-right-radius: $medium-editor-border-radius;- padding-right: 24px- }-- &-active {- background-color: $medium-editor-hover-color;- color: $medium-editor-button-active-text-color;- }- }- }-}--.rich-text-editor {- // add bottom margin to make the field's help-text not clashing with the- // bottom border- margin-bottom: 1rem;-}diff --git a/saleor/static/dashboard/scss/components/_search.scss b/saleor/static/dashboard/scss/components/_search.scssdeleted file mode 100644index e231c12caa..0000000000--- a/saleor/static/dashboard/scss/components/_search.scss+++ /dev/null@@ -1,92 +0,0 @@-.search {- float: none;- margin-left: 270px;- padding: 10px 0;- transition: $transition-duration;- @media (max-width: $small-screen) {- position: absolute;- top: 0;- overflow: hidden;- width: 100%;- background: $primary-color;- transform: translateX(-100%);- margin: 0;- height: 64px;- z-index: 1000;- &.expanded {- transform: translateX(0px);- }- .input-field {- width: calc(100% - 128px);- display: inline-block;- vertical-align: top;- padding: 5px 0;- input[type="search"] {- position: relative;- padding-left: 1rem;- }- }- a {- display: inline-block;- width: 60px;- height: 64px;- padding: 0;- text-align: center;- line-height: 80px;- position: relative;- top: -10px;- vertical-align: top;- &#btn-search-close {- position: relative;- &:before, &:after {- content: '';- position: absolute;- background: #fff;- width: 2px;- height: 22px;- top: 22px;- left: 30px;- }- &:before {- transform: rotate(45deg);- }- &:after{- transform: rotate(-45deg);- }- }- }- }- .input-field {- height: 36px;- input {- background-color: rgba(255, 255, 255, .15);- border-radius: 3px;- box-sizing: border-box;- display: inline-block;- margin-bottom: 0;- transition: background-color .2s ease-out;- width: 100% !important;- line-height: 1;- &::placeholder {- color: white;- }- &:hover {- background-color: rgba(255, 255, 255, .25);- }- &:focus {- background-color: white;- border: none;- box-shadow: none;- ~ label {- svg {- fill: $off-black;- }- }- }- }- label {- transition: color .2s ease-out;- margin-top: 22px;- }- }-}diff --git a/saleor/static/dashboard/scss/components/_select2.scss b/saleor/static/dashboard/scss/components/_select2.scssdeleted file mode 100644index eb40645333..0000000000--- a/saleor/static/dashboard/scss/components/_select2.scss+++ /dev/null@@ -1,106 +0,0 @@-@mixin select2 {- margin-bottom: 20px;- &.select2-container--default, &.select2-container--default.select2-container--focus {- border-bottom: $input-border;- box-sizing: border-box;- .select2-results__options {- background-color: $dropdown-bg-color;- .select2-results__option {- clear: both;- color: $dropdown-color;- cursor: pointer;- font-size: $input-font-size;- line-height: 22px;- min-height: $dropdown-item-height;- padding: (($dropdown-item-height - 22) / 2) 16px;- text-align: left;- text-transform: none;- width: 100%;- }- .select2-results__message {- color: $input-disabled-color;- }- .select2-results__option[aria-selected=true] {- background-color: darken($dropdown-hover-bg-color, 7%);- }- .select2-results__option--highlighted[aria-selected] {- background-color: $dropdown-hover-bg-color;- }- }- .select2-selection--multiple {- background: transparent;- border: none;- border-radius: 0;- box-sizing: border-box;- .select2-selection__rendered {- padding: 0;- vertical-align: middle;- }- li.select2-selection__choice {- @extend .chip;- border: 0;- margin-top: 3px;- margin-bottom: 4px;- .select2-selection__choice__remove {- color: inherit;- float: right;- font-size: 0;- height: 32px;- margin: 0;- &:before {- content: "\00d7";- font-size: 15px;- display: inline-block;- margin-left: 8px;- }- }- }- }- .select2-search--inline {- .select2-search__field {- background: transparent;- height: auto;- line-height: 32px;- margin: 3px 0 4px;- padding-left: 0;- &:focus {- border-bottom: none;- box-shadow: none;- }- }- }- .select2-selection--single {- background: transparent;- border: none;- height: 3rem;-- .select2-selection__rendered {- line-height: 3rem;- padding-left: 0 !important;- }- .select2-search--dropdown {- padding: 0;- }- }- }- &.select2-container--default.select2-container--open {- border-bottom: 1px solid $input-focus-color;- box-shadow: 0 1px 0 0 $input-focus-color;- .select2-selection__rendered {- background-color: $select-background;- }- }- .select2-search--dropdown {- @extend .z-depth-1;- border: none;- padding: 0;- .select2-search__field {- border: none;- border-bottom: 1px solid $grey-color;- }- }-}--.select2-container {- @include select2;-}diff --git a/saleor/static/dashboard/scss/components/_tabs.scss b/saleor/static/dashboard/scss/components/_tabs.scssdeleted file mode 100644index 8ced1f8574..0000000000--- a/saleor/static/dashboard/scss/components/_tabs.scss+++ /dev/null@@ -1,22 +0,0 @@-@mixin tabs {- background: none;- li {- a {- span {- display: none;- @media (min-width: $small-screen-up) {- display: inline;- }- }- svg {- @media (min-width: $small-screen-up) {- display: none;- }- }- }- }-}--.tabs {- @include tabs;-}diff --git a/saleor/static/dashboard/scss/components/_timeline.scss b/saleor/static/dashboard/scss/components/_timeline.scssdeleted file mode 100644index 21ba4a5f7a..0000000000--- a/saleor/static/dashboard/scss/components/_timeline.scss+++ /dev/null@@ -1,91 +0,0 @@-.timeline-outer {- padding-left: $timeline-date-width;- .timeline {- border-left: $timeline-width $primary-color-light solid;- position: relative;- list-style: none;- .event {- padding-bottom: 1rem;- margin-bottom: $timeline-event-margin;- position: relative;- &:before, &:after {- position: absolute;- display: block;- }- &:before {- left: -$timeline-date-width;- content: attr(data-date);- text-align: right;- top: calc(#{$timeline-circle-radius} + #{$timeline-width} + .5px - #{$label-font-size} + .1rem);- width: $timeline-date-width;- padding-right: 3rem;- }- &:after {- box-shadow: 0 0 0 $timeline-width $primary-color-light;- left: - $timeline-circle-radius - ($timeline-width / 2) - 1;- background: $body-bg;- border-radius: 50%;- height: 2 * $timeline-circle-radius + 1;- width: 2 * $timeline-circle-radius + 1;- content: "";- top: $timeline-width;- }- &:last-of-type {- padding-bottom: 0;- margin-bottom: 0;- border: none;- }- .content {- margin-left: 3rem;- min-height: 1.5rem;- position: relative;- top: calc(#{$timeline-circle-radius} + #{$timeline-width} + .5px - #{$label-font-size} + .1rem);- }- .status {- position: absolute;- left: 0;- top: 0;- }- &:last-of-type {- height: 0;- }- }- }-}--@media (max-width: 768px) {- .timeline-outer {- padding-left: 0;- margin: 0 1rem;- .timeline {- .event {- &:before {- left: 3rem;- top: calc(#{$timeline-circle-radius} + #{$timeline-width} + .5px - #{$label-font-size} + .7rem);- min-width: 0;- text-align: left;- }- .content {- position: relative;- top: calc(#{$timeline-circle-radius} + #{$timeline-width} + .5px - #{$label-font-size} - .5rem);- padding-left: $timeline-date-width;- }- }- }- }-}--@media (max-width: $small-screen) {- .timeline-outer {- .timeline {- .event {- margin-bottom: $timeline-event-margin / 2;- .content {- padding-left: 0;- top: calc(#{$timeline-circle-radius} + #{$timeline-width} + .5px - #{$label-font-size} - .5rem);- padding-top: 3rem;- }- }- }- }-}diff --git a/saleor/static/dashboard/scss/components/_zero-page.scss b/saleor/static/dashboard/scss/components/_zero-page.scssdeleted file mode 100644index cee7da72fc..0000000000--- a/saleor/static/dashboard/scss/components/_zero-page.scss+++ /dev/null@@ -1,12 +0,0 @@-.zero-page {- padding: 3rem;- &__title {- font-weight: 400;- font-size: 2rem;- margin-bottom: 1rem;- }- &__content {- font-size: 1.2rem;- color: $grey-color;- }-}diff --git a/saleor/static/dashboard/scss/dashboard.scss b/saleor/static/dashboard/scss/dashboard.scssdeleted file mode 100644index afadf67dd6..0000000000--- a/saleor/static/dashboard/scss/dashboard.scss+++ /dev/null@@ -1,36 +0,0 @@-@import "variables";--@import "~materialize-css/sass/materialize";-@import "~dropzone/dist/dropzone";-@import "~select2/src/scss/core";-@import "~medium-editor/src/sass/medium-editor";--@import "components/global";-@import "components/breadcrumbs";-@import "components/buttons";-@import "components/card-collapse";-@import "components/chars-left";-@import "components/data-table";-@import "components/dropzone";-@import "components/form";-@import "components/formset";-@import "components/google-preview";-@import "components/list";-@import "components/nav";-@import "components/pagination";-@import "components/menu";-@import "components/modals";-@import "components/product-gallery";-@import "components/ppoi";-@import "components/rich-text-editor";-@import "components/select2";-@import "components/search";-@import "components/tabs";-@import "components/timeline";-@import "components/zero-page";--@import "layouts/orders";-@import "layouts/product-details";-@import "layouts/search-results";-@import "layouts/style-guide";-@import "print";diff --git a/saleor/static/dashboard/scss/document.scss b/saleor/static/dashboard/scss/document.scssdeleted file mode 100644index 05b4396075..0000000000--- a/saleor/static/dashboard/scss/document.scss+++ /dev/null@@ -1,182 +0,0 @@-@font-face {- font-family: Roboto;- src: local(Roboto Thin), url(/static/assets/Roboto-Thin.woff2) format("woff2"), url(/static/assets/Roboto-Thin.woff) format("woff");- font-weight: 100;-}--@font-face {- font-family: Roboto;- src: local(Roboto Light), url(/static/assets/Roboto-Light.woff2) format("woff2"), url(/static/assets/Roboto-Light.woff) format("woff");- font-weight: 300;-}--@font-face {- font-family: Roboto;- src: local(Roboto Regular), url(/static/assets/Roboto-Regular.woff2) format("woff2"), url(/static/assets/Roboto-Regular.woff) format("woff");- font-weight: 400;-}--@font-face {- font-family: Roboto;- src: local(Roboto Medium), url(/static/assets/Roboto-Medium.woff2) format("woff2"), url(/static/assets/Roboto-Medium.woff) format("woff");- font-weight: 500;-}--@font-face {- font-family: Roboto;- src: local(Roboto Bold), url(/static/assets/Roboto-Bold.woff2) format("woff2"), url(/static/assets/Roboto-Bold.woff) format("woff");- font-weight: 700;-}--*, :after, :before {- -webkit-box-sizing: inherit;- box-sizing: inherit;-}--html, body {- font-size: 12px;-}--html {- -ms-text-size-adjust: 100%;- -webkit-text-size-adjust: 100%;- -webkit-box-sizing: border-box;- box-sizing: border-box;- line-height: 1.5;- font-family: Roboto, sans-serif;- font-weight: 400;- color: rgba(0, 0, 0, 0.87);-}--body {- margin: 0;-}--details, header {- display: block;-}--header {- margin-bottom: 60px;-}--h2 {- font-size: 26px;- margin: 24px 0 20px;- font-weight: 400;- line-height: 1.1;-}--img {- border: 0;- &.responsive-img {- max-width: 100%;- height: auto;- }-}--table {- border-collapse: collapse;- border-spacing: 0;- border: none;- width: 100%;- display: table;- td, th {- border: none;- padding: 5px;- display: table-cell;- text-align: left;- vertical-align: middle;- border-radius: 2px;- }- thead {- border-bottom: 1px solid #d0d0d0;- }- &.bordered > {- tbody > tr, thead > tr {- border-bottom: 1px solid #d0d0d0;- }- }- &.data-table {- max-width: 100%;- tr {- border-bottom: 1px #d0d0d0 solid;- &:last-child {- border-bottom: none;- }- td {- height: 30px;- padding: 5px;- &:first-child {- padding-left: 24px;- }- &:last-child {- padding-right: 24px;- }- }- }- td, th {- overflow: hidden;- text-overflow: ellipsis;- vertical-align: middle;- white-space: nowrap;- }- th {- height: 48px;- padding: 0 5px;- color: #757575;- font-weight: 400;- font-size: 12px;- &:last-child {- padding-right: 24px;- }- }- tfoot {- font-weight: 700;- }- .wide {- width: 180px;- }- }- &.order-table {- margin-bottom: 30px;- }-}--.left-align {- text-align: left;-}--.right-align {- text-align: right;-}--.left {- float: left !important;-}--.right {- float: right !important;-}--.currency {- color: #9e9e9e !important;-}--.formatted-address {- font-style: normal;-}--.currency {- font-size: 12px;- font-weight: 400;-}--@media print {- html {- background-color: #fff;- }- .data-table th {- color: rgba(0, 0, 0, 0.87);- }-}diff --git a/saleor/static/dashboard/scss/layouts/_orders.scss b/saleor/static/dashboard/scss/layouts/_orders.scssdeleted file mode 100644index a8eab40ac4..0000000000--- a/saleor/static/dashboard/scss/layouts/_orders.scss+++ /dev/null@@ -1,10 +0,0 @@-.body-orders {- .order-notes {- .list-item {- margin-bottom: 1rem;- p {- white-space: pre-wrap;- }- }- }-}diff --git a/saleor/static/dashboard/scss/layouts/_product-details.scss b/saleor/static/dashboard/scss/layouts/_product-details.scssdeleted file mode 100644index 062b807f37..0000000000--- a/saleor/static/dashboard/scss/layouts/_product-details.scss+++ /dev/null@@ -1,13 +0,0 @@-.product-header {- display: grid;- grid-template-columns: 1fr 200px;- grid-column-gap: 2rem;- &__title {}- &__switch {}-}--.product-description {- img {- max-width: 100%;- }-}diff --git a/saleor/static/dashboard/scss/layouts/_search-results.scss b/saleor/static/dashboard/scss/layouts/_search-results.scssdeleted file mode 100644index 970d6ca061..0000000000--- a/saleor/static/dashboard/scss/layouts/_search-results.scss+++ /dev/null@@ -1,6 +0,0 @@-.search-results {- h6 {- margin-bottom: 24px;- }- margin-bottom: 48px;-}diff --git a/saleor/static/dashboard/scss/layouts/_style-guide.scss b/saleor/static/dashboard/scss/layouts/_style-guide.scssdeleted file mode 100644index 7e77db4224..0000000000--- a/saleor/static/dashboard/scss/layouts/_style-guide.scss+++ /dev/null@@ -1,139 +0,0 @@-.styleguide {- .container {- margin-left: 40px;- @media only screen and (max-width: $small-screen-up) {- margin-left: 15px;- }- }- .nav-wrapper {- margin-left: 40px;- @media only screen and (max-width: $small-screen-up) {- margin-left: 15px;- }- li {- span {- display: block;- text-transform: uppercase;- font-size: 2rem;- padding: 30px 20px;- }- }- }- &__menu {- position: relative;- &.fixed {- position: fixed !important;- top: 0;- @media only screen and (max-width: $small-screen-up) {- position: relative !important;- }- }- li {- padding: 5px 20px;- a {- color: $sidenav-font-color;- display: block;- &:hover {- color: darken($sidenav-font-color, 20%);- font-weight: 700;- }- }- @media only screen and (max-width: $small-screen-up) {- text-align: center;- a {- font-size: 1.5rem;- }- }- }- }- &__content {- h3, h4, p {- svg {- max-height: 14px;- max-width: 14px;- vertical-align: middle;- fill: currentColor;- }- }- &__block {- .container {- margin-left: 0;- }- &--title {- color: $grey-color;- text-transform: uppercase;- font-size: 1.5rem;- padding-top: 30px;- }- .card {- &-color {- height: 5rem;- &.primary-color {- background: $primary-color;- }- &.primary-color-light {- background: $primary-color-light;- }- &.secondary-color {- background: $secondary-color;- }- &.off-black {- background: $off-black;- }- &.success-color {- background: $success-color;- }- &.error-color {- background: $error-color;- }- &.link-color {- background: $link-color;- }- &.sidenav-font-color {- background: $sidenav-font-color;- }- &.grey-color {- background: $grey-color;- }- }- }- .section {- h4 {- color: $off-black;- text-transform: uppercase;- font-size: 1.2rem;- font-weight: 700;- margin: 0;- padding-bottom: 5px;- }- code {- display: block;- line-height: 1;- padding: 10px;- margin: 10px 0;- background: #f2f2f2;- border: solid 1px $grey-color;- }- }- &#icons {- svg {- max-height: 24px;- max-width: 24px;- fill: $off-black;- margin-top: 10px;- }- }- }- }-- @media only screen and (max-width: $small-screen-up) {- #buttons {- div {- text-align: center;- a {- margin-bottom: 20px;- }- }- }- }-}diff --git a/saleor/static/dashboard/scss/print.scss b/saleor/static/dashboard/scss/print.scssdeleted file mode 100644index ca0a40c59c..0000000000--- a/saleor/static/dashboard/scss/print.scss+++ /dev/null@@ -1,71 +0,0 @@-.print-show {- display: none;-}--@media print {- .print-show {- display: block!important;- }- .print-hide {- display: none!important;- }- .p6 {- width: 50%!important;- }- html {- background-color: white;- }- .main {- .container {- margin-top: 0;- }- }- .side-nav {- display: none;- }- nav {- a:not(.logo), form {- display: none;- }- .logo path {- fill: $off-black;- }- }- .subheader {- color: #000;- li:first-of-type {- display: inline-block!important;- }- svg {- display: none;- }- }- .card {- box-shadow: none;- padding: 0;- }- .data-table-action {- display: none;- }- .data-table th {- color: $off-black;- }- .btn, .dropdown-button svg {- display: none;- }- .tabs {- display: none;- }- .print-tabs {- text-transform: uppercase;- margin: 14px 24px;- font-size: 14px;- text-decoration: underline;- }- .tab-content {- display: block!important;- }- .shipment-table, #payment-history, #order-history {- page-break-inside: avoid;- }-}diff --git a/saleor/static/dashboard/scss/variables.scss b/saleor/static/dashboard/scss/variables.scssdeleted file mode 100644index 36414a43b2..0000000000--- a/saleor/static/dashboard/scss/variables.scss+++ /dev/null@@ -1,62 +0,0 @@-/*** GLOBAL ***/--$roboto-font-path: "~materialize-css/dist/fonts/roboto/";--$header-height: 56px;-$navbar-height: 56px;-$navbar-height-mobile: 64px;-$subheader-height: 48px;-$font-size-action-icon: 18px;-$transition-duration: .2s;--/*** COLORS ***/--$off-black: rgba(0, 0, 0, 0.87);-$primary-color: #2bb673;-$secondary-color: #26A5D4;-$success-color: #4CAF50;-$error-color: #F44336;-$link-color: #039BE5;-$grey-color: #9E9E9E;-$sidenav-font-color: #616161;-$placeholder-text-color: lighten($off-black, 75%);-$body-bg: #f5f5f5;--/*** PADDINGS ***/--$button-padding: 0 16px;-$card-padding: 16px;--/*** Media Query Ranges ***/--$small-screen-up: 601px !default;-$medium-screen-up: 993px !default;-$large-screen-up: 1201px !default;-$small-screen: 600px !default;-$medium-screen: 992px !default;-$large-screen: 1200px !default;--/*** Header Styles ***/--$h1-fontsize: 3rem !default;-$h2-fontsize: 2rem !default;-$h3-fontsize: 1.5rem !default;-$h4-fontsize: 1.3rem !default;-$h5-fontsize: 1.2rem !default;-$h6-fontsize: 1rem !default;--/*** Timeline Configuration ***/--$timeline-width: 3px !default;-$timeline-circle-radius: 6px !default;-$timeline-event-margin: 1rem !default;-$timeline-date-width: 20rem;--/*** Medium Editor ***/-$medium-editor-bgcolor: $off-black;-$medium-editor-button-size: 40px;-$medium-editor-button-active-text-color: #fff;-$medium-editor-hover-color: $link-color;-$medium-editor-link-color: #fff;-$medium-editor-border-radius: 2px;-$medium-editor-placeholder-color: $placeholder-text-color;diff --git a/webpack.config.js b/webpack.config.jsindex b5d0b3e127..6c1b1c2139 100644--- a/webpack.config.js+++ b/webpack.config.js@@ -56,8 +56,6 @@ module.exports = (_, argv) => {return {entry: {- dashboard: './saleor/static/dashboard/js/dashboard.js',- document: './saleor/static/dashboard/js/document.js',storefront: './saleor/static/js/storefront.js'},output: output,@@ -102,7 +100,6 @@ module.exports = (_, argv) => {resolve('node_modules'),resolve('saleor/static/fonts'),resolve('saleor/static/images'),- resolve('saleor/static/dashboard/images')]}]