Skip to content

Commit

Permalink
Merge pull request #7 from omsimos/dev
Browse files Browse the repository at this point in the history
revamp: github-stats-v2 ui design
  • Loading branch information
joshxfi authored May 10, 2024
2 parents a71d089 + 402bc51 commit 9137677
Show file tree
Hide file tree
Showing 68 changed files with 2,449 additions and 1,769 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
40 changes: 35 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
node_modules
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
dist
dist-ssr
*.local
*.log
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,27 @@

</div>

This website makes it easier for you to generate beautiful stats for your GitHub profile README with over 40 themes to choose from! If you like the project, consider giving this repository a star! 💚 [Visit website &rarr;](https://gh-stats-gen.vercel.app)
This website makes it easier for you to generate beautiful stats for your GitHub profile README with over 40 themes to choose from! If you like the project, consider giving this repository a star! 💚 [Visit website &rarr;](https://github-stats.omsimos.com)

## APIs Used

- [anuraghazra/github-readme-stats](https://github.com/anuraghazra/github-readme-stats)
- [DenverCoder1/github-readme-streak-stats](https://github.com/DenverCoder1/github-readme-streak-stats)

## How to Use

1. Copy stat(s) from the generator. It looks someting like `![alt](image url)`.
2. Create a repository with your username as the name and initialize it with a `README.md` file.
- If you already created it, go to your profile and click the pencil icon on your `README.md`.
4. Paste the stat(s) you copied and click `Preview` to see the changes.
5. Commit the changes after you're done editing.
- If you already created it, go to your profile and click the pencil icon on your `README.md`.
3. Paste the stat(s) you copied and click `Preview` to see the changes.
4. Commit the changes after you're done editing.

## Stats Available

<img width=400 src='https://github-readme-stats.vercel.app/api?username=joshxfi&theme=vue-dark&show_icons=true&hide_border=true&count_private=true' />
<img width=400 src='https://github-readme-streak-stats.herokuapp.com/?user=joshxfi&theme=vue-dark&hide_border=true' />
<img width=400 src='https://github-readme-stats.vercel.app/api/top-langs/?username=joshxfi&theme=vue-dark&show_icons=true&hide_border=true&layout=compact' />

## License

This repository is licensed under the [MIT](https://github.com/joshxfi/github-stats-generator/blob/main/LICENSE) license.
Binary file added bun.lockb
Binary file not shown.
17 changes: 17 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/app/globals.css",
"baseColor": "gray",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
46 changes: 0 additions & 46 deletions index.html

This file was deleted.

18 changes: 18 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
dangerouslyAllowSVG: true,
remotePatterns: [
{
protocol: "https",
hostname: "github-readme-stats.vercel.app",
},
{
protocol: "https",
hostname: "github-readme-streak-stats.herokuapp.com",
},
],
},
};

export default nextConfig;
62 changes: 44 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,52 @@
{
"name": "readme-stats",
"version": "0.0.0",
"name": "stats",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"serve": "vite preview"
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"ui:add": "bunx --bun shadcn-ui@latest add"
},
"dependencies": {
"@headlessui/react": "^1.6.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.3.0",
"react-icons": "^4.4.0"
"@hookform/resolvers": "^3.3.4",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-hover-card": "^1.0.7",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-switch": "^1.0.3",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.7",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"cmdk": "^1.0.0",
"geist": "^1.3.0",
"lucide-react": "^0.378.0",
"next": "14.2.3",
"next-themes": "^0.3.0",
"nextjs-toploader": "^1.6.12",
"react": "^18",
"react-dom": "^18",
"react-hook-form": "^7.51.4",
"sharp": "^0.33.3",
"sonner": "^1.4.41",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7",
"vaul": "^0.9.0",
"zod": "^3.23.6"
},
"devDependencies": {
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@vitejs/plugin-react-refresh": "^1.3.1",
"autoprefixer": "^10.4.8",
"postcss": "^8.4.16",
"tailwindcss": "^3.1.8",
"typescript": "^4.7.4",
"vite": "^3.0.7"
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"eslint": "^8",
"eslint-config-next": "14.2.0"
}
}
6 changes: 0 additions & 6 deletions postcss.config.js

This file was deleted.

8 changes: 8 additions & 0 deletions postcss.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: {
tailwindcss: {},
},
};

export default config;
1 change: 1 addition & 0 deletions public/next.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/vercel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
123 changes: 0 additions & 123 deletions src/App.tsx

This file was deleted.

Binary file added src/app/favicon.ico
Binary file not shown.
Loading

0 comments on commit 9137677

Please sign in to comment.