Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-fong committed Aug 21, 2024
1 parent 34cc586 commit 3fd8a58
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 17 deletions.
1 change: 0 additions & 1 deletion .env-example
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
GITHUB_TOKEN=your_token
GITHUB_LOGIN=leon-fong
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
github: [leon-fong]
buy_me_a_coffee: leonfong
4 changes: 0 additions & 4 deletions .stackblitzrc

This file was deleted.

39 changes: 35 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
**[pr.leonfong.me](https://pr.leonfong.me)**
# PRs

My recent pull requests on GitHub
> Explore historic Open Source Contributions (pull requests) on GitHub
<br>
## Built with

<samp>inspiration <a href="https://x.com/antfu7">@antfu7</a></samp>
- [Nuxt](https://nuxt.com/)
- [Nitro server API routes](https://nuxt.com/docs/guide/concepts/server-engine#server-engine)
- [GitHub API](https://docs.github.com/en/rest)
- [Uno CSS](https://unocss.dev/)
- [Vercel](http://vercel.com)

## Setup

```bash
# install dependencies
pnpm install

# copy the .env.example file to .env and fill in your GitHub token:
cp .env.example .env

# create a GitHub token and set it in the .env file:
NUXT_GITHUB_TOKEN=your-github-token

# serve in dev mode, with hot reload at localhost:3000
pnpm dev

# build for production
pnpm build
```

## Credits

This project is inspiread by [Anthony Fu](https://github.com/antfu)'s [releases.antfu.me](https://github.com/antfu/releases.antfu.me).

## License

[MIT License](./LICENCE)
6 changes: 1 addition & 5 deletions app/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ useDark()
<footer class="mt-auto p-2 text-center text-sm opacity-75 hover:opacity-100">
<a
class="hover:underline"
href="https://github.com/leon-fong/pr.leonfong.me"
href="https://github.com/leon-fong/prs.leonfong.me"
>
source
</a>
Expand Down Expand Up @@ -37,8 +37,4 @@ html.dark {
background: #121212;
color: white;
}
a:hover {
text-decoration: underline;
}
</style>
5 changes: 2 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ export default defineNuxtConfig({
{ name: 'description', content: 'Leon Fong\'s recent pull requests' },
{ name: 'theme-color', media: '(prefers-color-scheme: light)', content: 'white' },
{ name: 'theme-color', media: '(prefers-color-scheme: dark)', content: '#222222' },
{ property: 'og:image', content: 'https://pr.leonfong.me/og.png' },
{ property: 'og:image', content: 'https://prs.leonfong.me/og.png' },
{ property: 'og:image:alt', content: 'Leon Fong is Contributing...' },
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:image', content: 'https://pr.leonfong.me/og.png' },
{ name: 'twitter:image', content: 'https://prs.leonfong.me/og.png' },
{ name: 'twitter:image:alt', content: 'Leon Fong is Contributing...' },
],
},
Expand All @@ -61,7 +61,6 @@ export default defineNuxtConfig({

runtimeConfig: {
githubToken: process.env.GITHUB_TOKEN,
githubLogin: process.env.GITHUB_LOGIN,
},

future: {
Expand Down

0 comments on commit 3fd8a58

Please sign in to comment.