π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
:art: Sort widget components alphabetically
Alicia Sykes599a5cc8d216
diff --git a/src/components/Widgets/WidgetBase.vue b/src/components/Widgets/WidgetBase.vueindex 5057979e..1b7ac5d2 100644--- a/src/components/Widgets/WidgetBase.vue+++ b/src/components/Widgets/WidgetBase.vue@@ -25,120 +25,120 @@@error="handleError":ref="widgetRef"/>- <Weather- v-else-if="widgetType === 'weather'"+ <CryptoPriceChart+ v-else-if="widgetType === 'crypto-price-chart'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <WeatherForecast- v-else-if="widgetType === 'weather-forecast'"+ <CryptoWatchList+ v-else-if="widgetType === 'crypto-watch-list'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <RssFeed- v-else-if="widgetType === 'rss-feed'"+ <EmbedWidget+ v-else-if="widgetType === 'embed'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <TflStatus- v-else-if="widgetType === 'tfl-status'"+ <ExchangeRates+ v-else-if="widgetType === 'exchange-rates'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <CryptoPriceChart- v-else-if="widgetType === 'crypto-price-chart'"+ <Flights+ v-else-if="widgetType === 'flight-data'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <CryptoWatchList- v-else-if="widgetType === 'crypto-watch-list'"+ <IframeWidget+ v-else-if="widgetType === 'iframe'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <XkcdComic- v-else-if="widgetType === 'xkcd-comic'"+ <Jokes+ v-else-if="widgetType === 'joke'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <ExchangeRates- v-else-if="widgetType === 'exchange-rates'"+ <NdCpuHistory+ v-else-if="widgetType === 'nd-cpu-history'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <StockPriceChart- v-else-if="widgetType === 'stock-price-chart'"+ <NdLoadHistory+ v-else-if="widgetType === 'nd-load-history'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <Jokes- v-else-if="widgetType === 'joke'"+ <NdRamHistory+ v-else-if="widgetType === 'nd-ram-history'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <Flights- v-else-if="widgetType === 'flight-data'"+ <RssFeed+ v-else-if="widgetType === 'rss-feed'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <SystemInfo- v-else-if="widgetType === 'system-info'"+ <StockPriceChart+ v-else-if="widgetType === 'stock-price-chart'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <NdCpuHistory- v-else-if="widgetType === 'nd-cpu-history'"+ <SystemInfo+ v-else-if="widgetType === 'system-info'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <NdLoadHistory- v-else-if="widgetType === 'nd-load-history'"+ <TflStatus+ v-else-if="widgetType === 'tfl-status'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <NdRamHistory- v-else-if="widgetType === 'nd-ram-history'"+ <XkcdComic+ v-else-if="widgetType === 'xkcd-comic'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <IframeWidget- v-else-if="widgetType === 'iframe'"+ <Weather+ v-else-if="widgetType === 'weather'":options="widgetOptions"@loading="setLoaderState"@error="handleError":ref="widgetRef"/>- <EmbedWidget- v-else-if="widgetType === 'embed'"+ <WeatherForecast+ v-else-if="widgetType === 'weather-forecast'":options="widgetOptions"@loading="setLoaderState"@error="handleError"@@ -158,51 +158,53 @@ import UpdateIcon from '@/assets/interface-icons/widget-update.svg';import OpenIcon from '@/assets/interface-icons/open-new-tab.svg';import LoadingAnimation from '@/assets/interface-icons/loader.svg';-// Import available widgets+// Import available widgets (add new widgets alphabetically)import Clock from '@/components/Widgets/Clock.vue';-import Weather from '@/components/Widgets/Weather.vue';-import WeatherForecast from '@/components/Widgets/WeatherForecast.vue';-import RssFeed from '@/components/Widgets/RssFeed.vue';-import TflStatus from '@/components/Widgets/TflStatus.vue';import CryptoPriceChart from '@/components/Widgets/CryptoPriceChart.vue';import CryptoWatchList from '@/components/Widgets/CryptoWatchList.vue';-import XkcdComic from '@/components/Widgets/XkcdComic.vue';+import EmbedWidget from '@/components/Widgets/EmbedWidget.vue';import ExchangeRates from '@/components/Widgets/ExchangeRates.vue';-import StockPriceChart from '@/components/Widgets/StockPriceChart.vue';-import Jokes from '@/components/Widgets/Jokes.vue';import Flights from '@/components/Widgets/Flights.vue';-import SystemInfo from '@/components/Widgets/SystemInfo.vue';+import IframeWidget from '@/components/Widgets/IframeWidget.vue';+import Jokes from '@/components/Widgets/Jokes.vue';import NdCpuHistory from '@/components/Widgets/NdCpuHistory.vue';import NdLoadHistory from '@/components/Widgets/NdLoadHistory.vue';import NdRamHistory from '@/components/Widgets/NdRamHistory.vue';-import IframeWidget from '@/components/Widgets/IframeWidget.vue';-import EmbedWidget from '@/components/Widgets/EmbedWidget.vue';+import RssFeed from '@/components/Widgets/RssFeed.vue';+import StockPriceChart from '@/components/Widgets/StockPriceChart.vue';+import SystemInfo from '@/components/Widgets/SystemInfo.vue';+import TflStatus from '@/components/Widgets/TflStatus.vue';+import Weather from '@/components/Widgets/Weather.vue';+import WeatherForecast from '@/components/Widgets/WeatherForecast.vue';+import XkcdComic from '@/components/Widgets/XkcdComic.vue';export default {name: 'Widget',components: {+ // Register form elementsButton,UpdateIcon,OpenIcon,LoadingAnimation,+ // Register widget componentsClock,- Weather,- WeatherForecast,- RssFeed,- TflStatus,CryptoPriceChart,CryptoWatchList,- XkcdComic,+ EmbedWidget,ExchangeRates,- StockPriceChart,- Jokes,Flights,- SystemInfo,+ IframeWidget,+ Jokes,NdCpuHistory,NdLoadHistory,NdRamHistory,- IframeWidget,- EmbedWidget,+ RssFeed,+ StockPriceChart,+ SystemInfo,+ TflStatus,+ Weather,+ WeatherForecast,+ XkcdComic,},props: {widget: Object,