From f3cd458f7c9602e6d0368c3a1807a32e82a3c78e Mon Sep 17 00:00:00 2001 From: cletqui Date: Mon, 8 Jul 2024 19:01:54 +0200 Subject: [PATCH 01/11] v0.7.1 --- README.md | 4 +- package.json | 2 +- src/components/login.tsx | 5 +- src/components/repository.tsx | 22 ++++----- src/global.d.ts | 2 - src/utils/octokit.tsx | 8 ++-- src/utils/renderer.tsx | 90 ++++++++++++++++++++--------------- src/utils/time.tsx | 10 ++++ src/utils/tokens.tsx | 14 ++++-- 9 files changed, 91 insertions(+), 66 deletions(-) diff --git a/README.md b/README.md index 950fec4..3e39c38 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # PetitHub 🌌 -Explore the hidden gems of GitHub with [PetitHub](https://github.com/cletqui/petithub/)! This project is an adaptation of the [Petit Tube](https://en.wikipedia.org/wiki/Petit_Tube) concept to GitHub: it allows users to discover random, obscure GitHub repositories that have no stars. Whether you're looking to find an undiscovered masterpiece or just satisfy your curiosity, PetitHub is here to take you on a journey through the lesser-known corners of GitHub. +Explore the hidden gems of GitHub with [PetitHub](https://github.com/cletqui/petithub/)! + +This project is an adaptation of the [Petit Tube](https://en.wikipedia.org/wiki/Petit_Tube) concept to GitHub: it allows users to discover random, obscure GitHub repositories that have no stars. Whether you're looking to find an undiscovered masterpiece or just satisfy your curiosity, PetitHub is here to take you on a journey through the lesser-known corners of GitHub. ![PetitHub Screenshot](.github/screenshot.png) diff --git a/package.json b/package.json index aceec10..db55084 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "petithub", - "version": "0.7.0", + "version": "0.7.1", "private": false, "description": "PetitHub - Explore obscure GitHub repositories", "author": { diff --git a/src/components/login.tsx b/src/components/login.tsx index 88990af..d4101ef 100644 --- a/src/components/login.tsx +++ b/src/components/login.tsx @@ -17,9 +17,8 @@ const User = async ({ user }: { user: Promise }) => { try { const c = useRequestContext(); const { path } = c.req; - const { - data: { login, avatar_url }, - } = await user; + const { data } = await user; + const { login, avatar_url } = data; return (