File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 Search ,
1414 } from ' @lucide/svelte' ;
1515 import {
16- DASHBOARD_GRID_COLUMNS ,
1716 dashboardWidgetCategories ,
1817 getDashboardWidgetsByCategory ,
1918 } from ' ../services/dashboardWidgetRegistry.js' ;
6261 ... widget,
6362 name: t (widget .nameKey ),
6463 description: t (widget .descriptionKey ),
65- categoryLabel: t (` dashboard.customization.${ widget .category } .name` ),
66- widthLabel: t (' widgets.defaultWidth' , {
67- width: widget .defaultWidth ,
68- columns: DASHBOARD_GRID_COLUMNS ,
69- }),
7064 })),
7165 );
7266 </script >
Original file line number Diff line number Diff line change 8989 <div class =" flex-1 min-w-0" >
9090 <h3 class ="text-sm font-medium" style ="color: var(--ds-text);" >{widget .name }</h3 >
9191 <DescriptionText >{widget .description }</DescriptionText >
92- <div class =" flex items-center gap-2 mt-2" >
93- <span
94- class =" text-xs px-2 py-0.5 rounded"
95- style =" background-color: var(--ds-background-neutral); color: var(--ds-text-subtle);"
96- >
97- {widget .categoryLabel }
98- </span >
99- <span class =" text-xs" style =" color: var(--ds-text-subtlest);" >
100- {widget .widthLabel }
101- </span >
102- </div >
10392 </div >
10493 <div class =" cursor-grab active:cursor-grabbing flex-shrink-0" style =" color: var(--ds-text-subtlest);" >
10594 <GripVertical class =" w-5 h-5" />
Original file line number Diff line number Diff line change 2727 ... widget,
2828 name: t (widget .nameKey ),
2929 description: t (widget .descriptionKey ),
30- categoryLabel: categories .find ((category ) => category .id === widget .category )? .name || widget .category ,
31- widthLabel: t (' workspaceDashboard.customization.defaultWidth' , { width: widget .defaultWidth }),
3230 })),
3331 );
3432 </script >
You can’t perform that action at this time.
0 commit comments