From d855c46ca331394034f23a51043522a0db7d7533 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 19 Dec 2021 15:13:07 +0000 Subject: [PATCH] :art: Sorts widget API endpoints alphabetically --- src/utils/defaults.js | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/utils/defaults.js b/src/utils/defaults.js index 2a59e021..17935cb7 100644 --- a/src/utils/defaults.js +++ b/src/utils/defaults.js @@ -206,24 +206,25 @@ module.exports = { }, /* API endpoints for widgets that need to fetch external data */ widgetApiEndpoints: { - weather: 'https://api.openweathermap.org/data/2.5/weather', - weatherForecast: 'https://api.openweathermap.org/data/2.5/forecast/daily', - tflStatus: 'https://api.tfl.gov.uk/line/mode/tube/status', + astronomyPictureOfTheDay: 'https://apodapi.herokuapp.com/api', + codeStats: 'https://codestats.net/', cryptoPrices: 'https://api.coingecko.com/api/v3/coins/', cryptoWatchList: 'https://api.coingecko.com/api/v3/coins/markets/', - xkcdComic: 'https://xkcd.vercel.app/', exchangeRates: 'https://v6.exchangerate-api.com/v6/', - stockPriceChart: 'https://www.alphavantage.co/query', - jokes: 'https://v2.jokeapi.dev/joke/', flights: 'https://aerodatabox.p.rapidapi.com/flights/airports/icao/', - rssToJson: 'https://api.rss2json.com/v1/api.json', - codeStats: 'https://codestats.net/', + githubTrending: 'https://gh-trending-repos.herokuapp.com/', + healthChecks: 'https://healthchecks.io/api/v1/', holidays: 'https://kayaposoft.com/enrico/json/v2.0/?action=getHolidaysForDateRange', + jokes: 'https://v2.jokeapi.dev/joke/', + news: 'https://api.currentsapi.services/v1/latest-news', publicIp: 'http://ip-api.com/json', readMeStats: 'https://github-readme-stats.vercel.app/api', - githubTrending: 'https://gh-trending-repos.herokuapp.com/', - astronomyPictureOfTheDay: 'https://apodapi.herokuapp.com/api', - news: 'https://api.currentsapi.services/v1/latest-news', + rssToJson: 'https://api.rss2json.com/v1/api.json', + stockPriceChart: 'https://www.alphavantage.co/query', + tflStatus: 'https://api.tfl.gov.uk/line/mode/tube/status', + weather: 'https://api.openweathermap.org/data/2.5/weather', + weatherForecast: 'https://api.openweathermap.org/data/2.5/forecast/daily', + xkcdComic: 'https://xkcd.vercel.app/', }, /* URLs for web search engines */ searchEngineUrls: {