File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const predefinedColorMap: Readonly<Record<string, string>> = {
2626 "workbox" : "#ee810f"
2727} ;
2828
29- export function composeHashColorFromString ( name : string ) : string {
29+ export function composeHashColor ( name : string ) : string {
3030 const mapKey = Object . keys ( predefinedColorMap ) . find ( ( key ) => name . includes ( key ) ) ;
3131 if ( mapKey ) return predefinedColorMap [ mapKey ] ;
3232
Original file line number Diff line number Diff line change 66 <button
77 v-for =" dep in [...excludedDependencies].sort()"
88 :key =" dep"
9- :style =" { color: composeHashColorFromString (dep) }"
9+ :style =" { color: composeHashColor (dep), textDecoration: dependencies.includes(dep) ? '' : 'line-through' }"
1010 class =" icon chip"
1111 @click =" showDependency(dep)"
1212 >
3333 </thead >
3434 <tbody >
3535 <tr v-for =" dep in dependencies.filter((dep) => !excludedDependencies.has(dep))" :key =" dep" >
36- <td :title =" dep" :style =" { color: composeHashColorFromString (dep) }" class =" chip" >
36+ <td :title =" dep" :style =" { color: composeHashColor (dep) }" class =" chip" >
3737 <button class =" icon" type =" button" title =" exclude dependency" @click =" hideDependency(dep)" >
3838 <icon-x />
3939 </button >
6161import { IconX } from " @tabler/icons-vue" ;
6262import { coerce , compare , diff , type ReleaseType } from " semver" ;
6363import { useDependencyTable } from " @/composable/useDependencyTable" ;
64- import { composeHashColorFromString } from " @/helpers/color" ;
64+ import { composeHashColor } from " @/helpers/color" ;
6565import { useExcludedDependenciesStore } from " @/store/excluded-dependencies" ;
6666import { useLatestVersionsStore } from " @/store/latest-versions" ;
6767import { useSettingsStore } from " @/store/settings" ;
You can’t perform that action at this time.
0 commit comments