diff --git a/README.md b/README.md index ce7d7421..a7d15132 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Custom API widgets are much easier to setup and usually only require a copy-past * [Hardcover Currently Reading](widgets/hardcover-currently-reading-by-akasiek/README.md) by @Akasiek - show the currently reading book from [Hardcover](https://hardcover.app/) * [Immich stats](widgets/immich-stats-by-svilenmarkov/README.md) by @svilenmarkov - show the number of photos, videos and usage of your Immich server * [Last.FM Recent Tracks](widgets/lastfm-recent-tracks-by-akasiek/README.md) by @Akasiek - show recent tracks scrobbled by a Last.FM user +* [LeetCode Daily Question](widgets/leetcode-daily-question-by-thuyhh/README.md) by @hohaithuy - show today leetcode questions with hashtag and difficult * [Mealie Today's Meal](widgets/mealie-todays-meal-by-wtoa/README.md) by @wtoa - show today's meal based off the meal planner from [Mealie](https://mealie.io/) * [Minecraft server](widgets/minecraft-server-by-not-first/README.md) by @not-first - show online status, icon, version and player count of a minecraft server * [Mullvad VPN status](widgets/mullvad-vpn-status-by-delmonteaj/README.md) by @DelMonteAJ - show VPN connection status, IP, and location diff --git a/widgets/leetcode-daily-question-by-thuyhh/README.md b/widgets/leetcode-daily-question-by-thuyhh/README.md new file mode 100644 index 00000000..9fb90db3 --- /dev/null +++ b/widgets/leetcode-daily-question-by-thuyhh/README.md @@ -0,0 +1,136 @@ +# Leetcode daily questions preview +Simple custom-api widget to display leetcode today question + +## Preview + + + +## Configuration +```yaml +- type: custom-api + title: LeetCode Daily Question + cache: 6h + url: https://leetcode.com/graphql + method: POST + headers: + Accept: application/json + body-type: json + body: + query: | + query questionOfToday { + activeDailyCodingChallengeQuestion { + link + question { + questionId + title + difficulty + topicTags { + name + slug + } + } + } + } + operationName: questionOfToday + template: | +
Difficulty: {{ .JSON.String "data.activeDailyCodingChallengeQuestion.question.difficulty" }}
+Topics:
+This is a Premium question
+ {{ end }} +