-
Notifications
You must be signed in to change notification settings - Fork 0
/
widgets.ts
33 lines (30 loc) · 846 Bytes
/
widgets.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import './configurations/progressBarsConfiguration'
import './configurations/threeHourForecastConfiguration'
import './configurations/menuConfiguration'
export interface Widget {
name: string
componentName: string
configurationName: string
}
export const WIDGET_URLS = [
'progressbars',
'threehourforecast',
'menu',
] as const
export const widgets: { [url in typeof WIDGET_URLS[number]]: Widget } = {
progressbars: {
name: 'Progress bars',
componentName: 'WidgetsProgressBars',
configurationName: 'progressBarsConfiguration',
},
threehourforecast: {
name: 'Three hour forecast',
componentName: 'WidgetsThreeHourForecast',
configurationName: 'threeHourForecastConfiguration',
},
menu: {
name: 'Buttery menu',
componentName: 'WidgetsMenu',
configurationName: 'menuConfiguration',
},
}