Skip to content

Commit

Permalink
updated again
Browse files Browse the repository at this point in the history
  • Loading branch information
digitigradeit committed Feb 5, 2022
1 parent 5184901 commit 0d83b8e
Show file tree
Hide file tree
Showing 3,739 changed files with 47,728 additions and 50,745 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
src.bak
tmp
test
src/icons.old
src/processed
38 changes: 0 additions & 38 deletions _templates/template.css

This file was deleted.

186 changes: 0 additions & 186 deletions _templates/template.html

This file was deleted.

54 changes: 54 additions & 0 deletions batch-minimize-svg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/sh

svgDir="src/icons"
stagingDir="src/staged"

for f in $svgDir/*.svg; do
filename=`basename $f .svg`
echo "Processing $filename"

tmpFile="tmp/$filename.tmp.svg"
dstFile="src/staged/$filename.svg"

# Remove the border from the category icons
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -d "//ns:rect[contains(@stroke,'#879196')]" $f > $tmpFile

# Change path from fill white (#FFFFFF) to black (#000000)
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -u "//ns:path[contains(@fill,'#FFFFFF')]/@fill" -v "#000000" $tmpFile

# Change path from fill white (#FFF) to black (#000)
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -u "//ns:path[contains(@fill,'#FFF')]/@fill" -v "#000" $tmpFile

# Change path from fill (#B0084D) (light icons) to black (#000000)
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -u "//ns:path[contains(@fill,'#B0084D')]/@fill" -v "#000000" $tmpFile

# Change path from fill (#FF4F8B) (dark icons) to black (#000000)
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -u "//ns:path[contains(@fill,'#FF4F8B')]/@fill" -v "#000000" $tmpFile

# Change path from fill #4D27AA to black (#00000)
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -u "//ns:path[contains(@fill,'#4D27AA')]/@fill" -v "#000000" $tmpFile

# Change path fromfill #232F3D to black (#00000)
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -u "//ns:path[contains(@fill,'#232F3D')]/@fill" -v "#000000" $tmpFile

# Change from fill to black (#000000)
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -u "//ns:path[contains(@fill,'#D45B07')]/@fill" -v "#000000" $tmpFile

# Change from fill #3F8624 to black
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -u "//ns:path[contains(@fill,'#3F8624')]/@fill" -v "#000000" $tmpFile

# Change g from white (#FFFFFF) (dark icons) to black (#000000)
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -u "//ns:g[contains(@fill,'#FFFFFF')]/@fill" -v "#000000" $tmpFile

# Change g from white (#FFF) to black (#000000)
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -u "//ns:g[contains(@fill,'#FFF')]/@fill" -v "#000" $tmpFile

# Remove the gradient background
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -d "//ns:g[contains(@fill,'url(#linearGradient-1)')]" $tmpFile
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -d "//ns:path[contains(@fill,'url(#linearGradient-1)')]" $tmpFile
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -d "//ns:linearGradient[contains(@id,'linearGradient-1')]" $tmpFile
xmlstarlet ed --inplace -N ns=http://www.w3.org/2000/svg -d "//ns:rect[contains(@fill,'url(#linearGradient-1)')]" $tmpFile


mv $tmpFile $dstFile
done;
65 changes: 65 additions & 0 deletions batch-rename.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
############################ architecture directory ###

# remove spaces
rename 's/ //g' *

# convet - to _
rename 's/-/_/g' *

# remove the word Arch_
rename 's/Arch_//g' *

# remove Amazon
rename 's/Amazon_//g' *

# remove AWS
rename 's/AWS_//g' *

# remove _48
rename 's/_48//g' *

# convert to lowercase letters
rename -f 'y/A-Z/a-z/' *

############################# category directory ###

# remove spaces
rename 's/ //g' *

# convet - to _
rename 's/-/_/g' *

# remove the word Arch_
rename 's/Arch_//g' *

# remove the word category
rename 's/Category_//g' *

# remove _64
rename 's/_64//g' *

# convert to lowercase letters
rename -f 'y/A-Z/a-z/' *

########################## resource directory

# remove spaces
rename 's/ //g' *

# convet - to _
rename 's/-/_/g' *

# remove the word Res_
rename 's/Res_//g' *

# remove the word Amazon_
rename 's/Amazon_//g' *

# remove AWS
rename 's/^AWS_//g' *

# remove _48_Light
rename 's/_48_Light//g' *

# convert to lower case letters
rename -f 'y/A-Z/a-z/' *
5 changes: 0 additions & 5 deletions batch-svg-remove-bg.sh

This file was deleted.

Binary file added dist/.DS_Store
Binary file not shown.
Loading

0 comments on commit 0d83b8e

Please sign in to comment.