File tree Expand file tree Collapse file tree 2 files changed +1055
-24
lines changed Expand file tree Collapse file tree 2 files changed +1055
-24
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ import maxBy from "lodash/maxBy";
15
15
import entries from "lodash/entries" ;
16
16
import uniqBy from "lodash/uniqBy" ;
17
17
import flatten from "lodash/flatten" ;
18
+ // file colors are from the github/linguist repo
19
+ import fileColors from "./language-colors.json" ;
18
20
import { CircleText } from "./CircleText" ;
19
21
import {
20
22
keepBetween ,
@@ -44,30 +46,6 @@ type ProcessedDataItem = {
44
46
parent : ProcessedDataItem | null ;
45
47
children : Array < ProcessedDataItem > ;
46
48
} ;
47
- const fileColors = {
48
- ts : "#29CBBA" ,
49
- tsx : "#12B9B1" ,
50
- js : "#CE83F1" ,
51
- jsx : "#C56BF0" ,
52
- md : "#6473F2" ,
53
- json : "#FDA7DF" ,
54
- csv : "#D980FA" ,
55
- svg : "#FFC312" ,
56
- css : "#C3E438" ,
57
- svelte : "#B53471" ,
58
- scss : "#9980FA" ,
59
- html : "#C7ECEE" ,
60
- png : "#45aaf2" ,
61
- jpg : "#3dc1d3" ,
62
- go : "#E67E23" ,
63
- rb : "#eb4d4b" ,
64
- php : "#e28f56" ,
65
- sh : "#badc58" ,
66
- m : "#FFD428" ,
67
- py : "#5758BB" ,
68
- mp4 : "#788BA3" ,
69
- webm : "#4B6584" ,
70
- } ;
71
49
const colorThemes = [ "file" , "changes" , "last-change" ] ;
72
50
const colorTheme = "file" ;
73
51
const looseFilesId = "__structure_loose_file__" ;
You can’t perform that action at this time.
0 commit comments