-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5184901
commit 0d83b8e
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/' * |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.