[chore] add new icons to icon font

- added download and upload arrow
- replaced import icon
- submarine fix for deletion of project storage mappings
pull/10883/head
Eric Schubert 2 years ago
parent f709332118
commit d5d6a0e02c
No known key found for this signature in database
GPG Key ID: 1D346C019BD4BAA2
  1. 3
      frontend/src/app/spot/icon-font/src/download-arrow.svg
  2. 55
      frontend/src/app/spot/icon-font/src/import.svg
  3. 4
      frontend/src/app/spot/icon-font/src/upload-arrow.svg
  4. 830
      frontend/src/app/spot/styles/sass/common/icon.sass
  5. 416
      frontend/src/assets/fonts/openproject_icon/openproject-icon-font.svg
  6. BIN
      frontend/src/assets/fonts/openproject_icon/openproject-icon-font.ttf
  7. BIN
      frontend/src/assets/fonts/openproject_icon/openproject-icon-font.woff
  8. BIN
      frontend/src/assets/fonts/openproject_icon/openproject-icon-font.woff2
  9. 830
      frontend/src/global_styles/fonts/_openproject_icon_definitions.sass
  10. 2
      frontend/src/global_styles/fonts/_openproject_icon_font.lsg
  11. 4
      modules/storages/app/models/storages/project_storage.rb

@ -0,0 +1,3 @@
<svg width="14" height="16" viewBox="0 0 14 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.874939 14.3158H13.1249C13.357 14.3158 13.5796 14.4045 13.7437 14.5624C13.9078 14.7204 13.9999 14.9346 13.9999 15.1579C13.9999 15.3812 13.9078 15.5954 13.7437 15.7534C13.5796 15.9113 13.357 16 13.1249 16H0.874939C0.642875 16 0.420315 15.9113 0.256221 15.7534C0.0921264 15.5954 -6.10352e-05 15.3812 -6.10352e-05 15.1579C-6.10352e-05 14.9346 0.0921264 14.7204 0.256221 14.5624C0.420315 14.4045 0.642875 14.3158 0.874939 14.3158ZM7.87494 9.41053L10.7126 6.68042L11.9498 7.87116L6.99994 12.6349L2.05006 7.87116L3.28731 6.68042L6.12494 9.41053V0H7.87494V9.41053Z" fill="black"/>
</svg>

After

Width:  |  Height:  |  Size: 728 B

@ -1,53 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
viewBox="0 0 512 512"
version="1.1"
id="svg4"
sodipodi:docname="import.svg"
inkscape:version="0.92.3 (2405546, 2018-03-11)">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="640"
inkscape:window-height="480"
id="namedview6"
showgrid="false"
inkscape:zoom="0.921875"
inkscape:cx="146.58296"
inkscape:cy="243.92363"
inkscape:current-layer="svg4" />
<path
d="M 321,224 190,92 l 0,100 -190,0 0,64 190,0 0,100 z"
id="path828"
inkscape:connector-curvature="0" />
<path
d="m 94,-32 318,0 0,512 -318,0 V 320 l 64,0 0,96 190,0 0,-384 -190,0 0,96 H 94 Z"
id="path2"
inkscape:connector-curvature="0" />
<svg width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 0H2.73786V5H4.60194V2H10.1359V14H4.60194V11H2.73786V16H12V0Z" fill="black"/>
<path d="M5.53398 3.875L9.34951 8L5.53398 12.125V9H0V7H5.53398V3.875Z" fill="black"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 279 B

@ -0,0 +1,4 @@
<svg width="14" height="16" viewBox="0 0 14 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.875 14.3158H13.125C13.3571 14.3158 13.5796 14.4045 13.7437 14.5624C13.9078 14.7204 14 14.9346 14 15.1579C14 15.3812 13.9078 15.5954 13.7437 15.7534C13.5796 15.9113 13.3571 16 13.125 16H0.875C0.642936 16 0.420376 15.9113 0.256282 15.7534C0.0921874 15.5954 0 15.3812 0 15.1579C0 14.9346 0.0921874 14.7204 0.256282 14.5624C0.420376 14.4045 0.642936 14.3158 0.875 14.3158Z" fill="black"/>
<path d="M3.28733 5.95453L6.12495 3.22442L6.12495 12.6349L7.87495 12.6349L7.87495 3.22442L10.7126 5.95453L11.9498 4.76379L6.99995 4.16464e-07L2.05008 4.76379L3.28733 5.95453Z" fill="black"/>
</svg>

After

Width:  |  Height:  |  Size: 731 B

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 179 KiB

After

Width:  |  Height:  |  Size: 181 KiB

@ -77,6 +77,7 @@
<li><span class="icon icon-design"></span>design</li>
<li><span class="icon icon-double-arrow-left"></span>double-arrow-left</li>
<li><span class="icon icon-double-arrow-right"></span>double-arrow-right</li>
<li><span class="icon icon-download-arrow"></span>download-arrow</li>
<li><span class="icon icon-download"></span>download</li>
<li><span class="icon icon-drag-handle"></span>drag-handle</li>
<li><span class="icon icon-duplicate"></span>duplicate</li>
@ -256,6 +257,7 @@
<li><span class="icon icon-unlocked"></span>unlocked</li>
<li><span class="icon icon-unordered-list"></span>unordered-list</li>
<li><span class="icon icon-unwatched"></span>unwatched</li>
<li><span class="icon icon-upload-arrow"></span>upload-arrow</li>
<li><span class="icon icon-upload"></span>upload</li>
<li><span class="icon icon-user-minus"></span>user-minus</li>
<li><span class="icon icon-user-plus"></span>user-plus</li>

@ -36,8 +36,8 @@ class Storages::ProjectStorage < ApplicationRecord
self.table_name = 'projects_storages'
# ProjectStorage sits between Project and Storage.
belongs_to :project
belongs_to :storage, class_name: 'Storages::Storage'
belongs_to :project, touch: true
belongs_to :storage, touch: true, class_name: 'Storages::Storage'
belongs_to :creator, class_name: 'User'
# There should be only one ProjectStorage per project and storage.

Loading…
Cancel
Save