File tree Expand file tree Collapse file tree 4 files changed +5
-19
lines changed
pages/Sandbox/Editor/Workspace/Files/DirectoryEntry/Entry/EntryIcons
common/src/components/icons Expand file tree Collapse file tree 4 files changed +5
-19
lines changed Original file line number Diff line number Diff line change 11import folderSvg from '@codesandbox/common/lib/components/icons/folder.svg' ;
22import folderOpenSvg from '@codesandbox/common/lib/components/icons/folder-open.svg' ;
3- import faviconSvg from '@codesandbox/common/lib/components/icons/favicon.svg' ;
43import fileSvg from '@codesandbox/common/lib/components/icons/file.svg' ;
54import imageSvg from '@codesandbox/common/lib/components/icons/image.svg' ;
65import codesandboxSvg from '@codesandbox/common/lib/components/icons/codesandbox.svg' ;
76import nowSvg from '@codesandbox/common/lib/components/icons/now.svg' ;
8- import svelteSvg from '@codesandbox/common/lib/components/icons/svelte.svg' ;
97
108function imageExists ( url ) {
119 return new Promise ( ( resolve , reject ) => {
@@ -18,7 +16,7 @@ function imageExists(url) {
1816
1917async function getIconURL ( type ) {
2018 const base =
21- 'https://cdn.jsdelivr.net/gh/PKief/vscode-material-icon-theme@e04ab459209a1d0c9fdb7b3682e5b4aa6d586090 /icons' ;
19+ 'https://cdn.jsdelivr.net/gh/PKief/vscode-material-icon-theme@master /icons' ;
2220
2321 let url ;
2422
@@ -27,10 +25,6 @@ async function getIconURL(type) {
2725 url = codesandboxSvg ;
2826 break ;
2927
30- case 'favicon' :
31- url = faviconSvg ;
32- break ;
33-
3428 case 'image' :
3529 url = imageSvg ;
3630 break ;
@@ -39,10 +33,6 @@ async function getIconURL(type) {
3933 url = nowSvg ;
4034 break ;
4135
42- case 'svelte' :
43- url = svelteSvg ;
44- break ;
45-
4636 case 'directory' :
4737 url = folderSvg ;
4838 break ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ type regexCasesMap = {
1212 javascript : RegExp ;
1313 typescript : RegExp ;
1414 console : RegExp ;
15+ prisma : RegExp ;
1516 git : RegExp ;
1617 flow : RegExp ;
1718} ;
@@ -22,7 +23,8 @@ const specialCasesMap = {
2223 'package.json' : 'npm' ,
2324 'sandbox.config.json' : 'codesandbox' ,
2425 'now.json' : 'now' ,
25- 'netlify.toml' : 'settings' ,
26+ prisma : 'prisma' ,
27+ 'netlify.toml' : 'netlify' ,
2628 'readme.md' : 'readme' ,
2729 'contributing.md' : 'contributing' ,
2830 'tsconfig.json' : 'typescript' ,
@@ -40,6 +42,7 @@ const regexCasesMap = {
4042 javascript : / \. m ? j s $ / ,
4143 typescript : / \. t s x ? $ / ,
4244 console : / \. s h $ / ,
45+ prisma : / \. p r i s m a $ / ,
4346 // STARTS WITH
4447 git : / ^ .g i t / i,
4548 flow : / ^ .f l o w / i,
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments