Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Re-refactor widget keys to remove quotes

dkadioglu9fc0254cf830
diff --git a/src/components/Widgets/WidgetBase.vue b/src/components/Widgets/WidgetBase.vue
index e7e5d3f8..a148b476 100644
--- a/src/components/Widgets/WidgetBase.vue
+++ b/src/components/Widgets/WidgetBase.vue
@@ -46,11 +46,11 @@ const COMPAT = {
'adguard-filter-status': 'AdGuardFilterStatus',
'adguard-stats': 'AdGuardStats',
'adguard-top-domains': 'AdGuardTopDomains',
- 'anonaddy': 'addy.io',
- 'apod': 'Apod',
+ anonaddy: 'addy.io',
+ apod: 'Apod',
'blacklist-check': 'BlacklistCheck',
- 'chucknorris': 'ChuckNorris',
- 'clock': 'Clock',
+ chucknorris: 'ChuckNorris',
+ clock: 'Clock',
'code-stats': 'CodeStats',
'covid-stats': 'CovidStats',
'crypto-price-chart': 'CryptoPriceChart',
@@ -60,7 +60,7 @@ const COMPAT = {
'cve-vulnerabilities': 'CveVulnerabilities',
'domain-monitor': 'DomainMonitor',
'drone-ci': 'DroneCi',
- 'embed': 'EmbedWidget',
+ embed: 'EmbedWidget',
'eth-gas-prices': 'EthGasPrices',
'exchange-rates': 'ExchangeRates',
'flight-data': 'Flights',
@@ -85,13 +85,13 @@ const COMPAT = {
'gluetun-status': 'GluetunStatus',
'health-checks': 'HealthChecks',
'hackernews-trending': 'HackernewsTrending',
- 'iframe': 'IframeWidget',
- 'image': 'ImageWidget',
- 'joke': 'Jokes',
- 'linkding': 'Linkding',
+ iframe: 'IframeWidget',
+ image: 'ImageWidget',
+ joke: 'Jokes',
+ linkding: 'Linkding',
'minecraft-status': 'MinecraftStatus',
'mullvad-status': 'MullvadStatus',
- 'mvg': 'Mvg',
+ mvg: 'Mvg',
'mvg-connection': 'MvgConnection',
'nd-cpu-history': 'NdCpuHistory',
'nd-load-history': 'NdLoadHistory',
@@ -114,17 +114,17 @@ const COMPAT = {
'public-ip': 'PublicIp',
'rescue-time': 'RescueTime',
'rss-feed': 'RssFeed',
- 'sabnzbd': 'Sabnzbd',
+ sabnzbd: 'Sabnzbd',
'sports-scores': 'SportsScores',
'stat-ping': 'StatPing',
'stock-price-chart': 'StockPriceChart',
'synology-download': 'SynologyDownload',
'system-info': 'SystemInfo',
'tfl-status': 'TflStatus',
- 'trmm': 'TacticalRMM',
+ trmm: 'TacticalRMM',
'uptime-kuma': 'UptimeKuma',
'wallet-balance': 'WalletBalance',
- 'weather': 'Weather',
+ weather: 'Weather',
'weather-forecast': 'WeatherForecast',
'xkcd-comic': 'XkcdComic',
};