Commit dbb246bd authored by tom's avatar tom Committed by tom goriunov

add icons for stylus contract files

parent 212ddffc
<svg viewBox="0 0 152.99 160.01" xmlns="http://www.w3.org/2000/svg">
<g fill="#ffa270">
<path d="M11.032 117.804v-75.59L76.495 4.417l65.463 37.795v75.591L76.495 155.6z"/>
<path d="M76.495 4.414 11.032 42.21l65.463 37.795 65.463-37.795zm0 75.591v75.591l65.463-37.795v-75.59z"/>
<path d="m102.682 19.532 13.093 7.56-65.463 37.794-13.093-7.559z" fill="#fafafa"/>
</g>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path fill="#a72146" d="m14.9 7.831-.587-.363c0-.057-.01-.114-.017-.171l.5-.471a.2.2 0 0 0-.067-.337l-.645-.241-.05-.167.4-.559a.2.2 0 0 0 .023-.2.2.2 0 0 0-.149-.122l-.68-.111c-.026-.052-.054-.1-.082-.153l.286-.628a.2.2 0 0 0-.191-.286l-.69.024-.109-.133.158-.667A.2.2 0 0 0 12.758 3l-.672.159c-.044-.035-.086-.071-.133-.107l.024-.69a.2.2 0 0 0-.089-.175.2.2 0 0 0-.2-.016l-.628.286-.153-.082-.107-.68a.2.2 0 0 0-.123-.154.2.2 0 0 0-.2.023l-.559.4-.166-.05-.235-.644a.2.2 0 0 0-.337-.07l-.471.505-.171-.014-.364-.591a.2.2 0 0 0-.344 0l-.363.587-.167.021-.475-.508a.2.2 0 0 0-.337.067l-.242.645-.166.05-.559-.4a.2.2 0 0 0-.318.131l-.111.68-.152.084-.628-.286a.2.2 0 0 0-.2.016.2.2 0 0 0-.089.175l.024.69-.133.109L3.245 3A.2.2 0 0 0 3 3.246l.161.673a4.83 4.83 0 0 0-.109.133l-.69-.024a.2.2 0 0 0-.191.286l.286.626c-.028.05-.055.1-.082.153l-.68.107a.2.2 0 0 0-.131.318l.4.559a8.138 8.138 0 0 0-.05.167l-.644.245a.2.2 0 0 0-.067.337l.505.474c-.008.054-.008.111-.017.168l-.591.363a.2.2 0 0 0 0 .344l.591.363c.009.062.009.115.017.171L1.2 9.18a.2.2 0 0 0 .067.337l.648.242.05.167-.4.559a.2.2 0 0 0-.023.195.2.2 0 0 0 .154.122l.68.111c.026.052.054.1.082.153l-.286.627a.2.2 0 0 0 .191.286l.69-.024.109.133-.162.671a.2.2 0 0 0 .245.241l.673-.158.133.109-.024.691a.2.2 0 0 0 .286.19l.628-.286c.05.028.1.055.153.082l.106.683a.2.2 0 0 0 .122.154.205.205 0 0 0 .2-.022l.559-.4.167.05.242.645a.2.2 0 0 0 .337.067L7.3 14.3c.057.007.114.012.172.017l.36.583a.2.2 0 0 0 .343 0l.363-.587.171-.013.471.5a.2.2 0 0 0 .337-.067l.242-.645.167-.05.559.4a.2.2 0 0 0 .2.022.2.2 0 0 0 .122-.154l.111-.68.153-.082.628.286a.2.2 0 0 0 .285-.19l-.024-.691.133-.109.667.16a.2.2 0 0 0 .189-.054.2.2 0 0 0 .051-.187l-.158-.673a4.83 4.83 0 0 0 .109-.133l.69.024a.2.2 0 0 0 .175-.089.2.2 0 0 0 .015-.2l-.286-.627c.027-.05.055-.1.082-.153l.68-.111a.2.2 0 0 0 .131-.317l-.4-.559.05-.167.645-.241a.2.2 0 0 0 .127-.15.2.2 0 0 0-.06-.183l-.5-.471.017-.171.583-.363a.2.2 0 0 0 0-.344ZM10.968 12.7a.416.416 0 1 1 .493-.319.417.417 0 0 1-.493.319Zm-.2-1.349a.378.378 0 0 0-.449.291l-.209.973a5.129 5.129 0 0 1-4.264-.015l-.209-.973a.379.379 0 0 0-.449-.291l-.859.184a5.153 5.153 0 0 1-.444-.523h4.18c.047 0 .079-.009.079-.052V9.463c0-.043-.032-.052-.079-.052H6.842v-.937h1.322a.831.831 0 0 1 .813.7c.052.206.168.877.247 1.092a1.067 1.067 0 0 0 .739.722h2.083a.432.432 0 0 0 .075-.007 5.112 5.112 0 0 1-.473.556l-.879-.189Zm-5.78 1.329a.416.416 0 1 1 .319-.494.415.415 0 0 1-.319.496ZM3.4 6.253a.415.415 0 1 1-.548-.212.416.416 0 0 1 .548.212Zm-.484 1.155.895-.4A.379.379 0 0 0 4 6.51l-.181-.417h.724V9.36H3.081a5.107 5.107 0 0 1-.2-1.4 5.29 5.29 0 0 1 .029-.55Zm3.927-.317v-.962h1.726a.644.644 0 0 1 .63.507.642.642 0 0 1-.755.455h-1.6Zm6.272.866q0 .192-.014.379h-.526a.072.072 0 0 0-.074.086v.242a.619.619 0 0 1-.6.722.574.574 0 0 1-.6-.275 1.8 1.8 0 0 0-.834-1.4 1.886 1.886 0 0 0 1.049-1.453 1.643 1.643 0 0 0-.8-1.349 2.282 2.282 0 0 0-1.1-.361H4.19a5.107 5.107 0 0 1 2.861-1.616l.64.668a.379.379 0 0 0 .535.012l.716-.682a5.118 5.118 0 0 1 3.5 2.494l-.489 1.106a.38.38 0 0 0 .193.5l.943.42c.017.167.025.337.025.508Zm-5.423-5.6a.415.415 0 1 1-.014.588.415.415 0 0 1 .013-.584Zm4.862 3.912a.415.415 0 1 1 .211.549.416.416 0 0 1-.211-.545Z"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path fill="#8BC34A" d="M487.8 487.8H384.722v-50.928h47.402V78.174h-47.402V27H487.8zM365.297 123.968v53.41H283.25V425.67h-57.695V177.378h-82.428v-53.41zM27 27h102.567v50.928H82.166v358.698h47.4V487.8H27z"/>
</svg>
......@@ -94,10 +94,13 @@
| "merits_with_dot"
| "merits"
| "minus"
| "monaco/cargo"
| "monaco/file"
| "monaco/folder-open"
| "monaco/folder"
| "monaco/rust"
| "monaco/solidity"
| "monaco/toml"
| "monaco/vyper"
| "moon-with-star"
| "moon"
......
......@@ -19,6 +19,18 @@ const CodeEditorFileIcon = ({ className, fileName }: Props) => {
return 'monaco/solidity';
}
if (/.rs$/.test(fileName)) {
return 'monaco/rust';
}
if (/^Cargo\./.test(fileName)) {
return 'monaco/cargo';
}
if (/.toml$/.test(fileName)) {
return 'monaco/toml';
}
return 'monaco/file';
})();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment