Compare commits

..

11 commits
v0.7.4 ... main

8 changed files with 2555 additions and 9 deletions

3
.husky/post-commit Normal file
View file

@ -0,0 +1,3 @@
echo "post-commit..."
git push gh --mirror
git push sh --mirror

View file

@ -1 +0,0 @@
npm run lint

View file

@ -1,3 +1,6 @@
> [!Note]
> Project moved to [SourceHut](https://git.sr.ht/~ayoayco/astro-github-stats)
# Astro GitHub Stats ✨ # Astro GitHub Stats ✨
[![npm](https://img.shields.io/npm/v/astro-github-stats)](https://www.npmjs.com/package/astro-github-stats) [![npm](https://img.shields.io/npm/v/astro-github-stats)](https://www.npmjs.com/package/astro-github-stats)

View file

@ -1,4 +1,8 @@
import { defineConfig } from 'astro/config' import { defineConfig } from 'astro/config'
// https://astro.build/config // https://astro.build/config
export default defineConfig({}) export default defineConfig({
image: {
// domains: ['github-readme-stats.vercel.app'],
},
})

View file

@ -3,7 +3,7 @@
"description": "Embed GitHub stats in your Astro page ✨", "description": "Embed GitHub stats in your Astro page ✨",
"repository": "https://github.com/ayoayco/astro-github-stats", "repository": "https://github.com/ayoayco/astro-github-stats",
"homepage": "https://ayco.io/showcase/astro-github-stats", "homepage": "https://ayco.io/showcase/astro-github-stats",
"version": "0.7.4", "version": "0.8.0",
"author": { "author": {
"name": "Ayo Ayco", "name": "Ayo Ayco",
"email": "ayo@ayco.io", "email": "ayo@ayco.io",
@ -53,8 +53,5 @@
"peerDependencies": { "peerDependencies": {
"astro": ">=5.0.0" "astro": ">=5.0.0"
}, },
"license": "ISC", "license": "ISC"
"workspaces": [
"demo"
]
} }

File diff suppressed because it is too large Load diff

2
pnpm-workspace.yaml Normal file
View file

@ -0,0 +1,2 @@
packages:
- "demo/**"

View file

@ -1,4 +1,5 @@
--- ---
import {Image} from 'astro:assets'
export interface Props { export interface Props {
username: string username: string
topLanguages?: boolean topLanguages?: boolean
@ -25,4 +26,4 @@ if (topLanguages) {
alt = altText || alt alt = altText || alt
--- ---
<img src={url} alt={alt} /> <Image inferSize={true} src={url} alt={alt} />