Skip to content

Commit

Permalink
chore: velog v3 대응 (#36)
Browse files Browse the repository at this point in the history
fix

fix

fix

fix

fix:
  • Loading branch information
eungyeole committed Jul 5, 2024
1 parent 71c099c commit 3f02e11
Show file tree
Hide file tree
Showing 42 changed files with 3,779 additions and 1,141 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @eungyeole
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.vercel
node_modules
.vercel
42 changes: 22 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,62 +1,64 @@
# velog-readme-stats란?

> markdown에서 나의 velog의 정보를 가져올수 있는 도구입니다.
# Velog 뱃지

> ?name= 의 값을 변경하세요
```
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api/badge?name=eungyeole)](https://velog.io/@eungyeole)
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api/badge?name=eungyeole)](https://velog.io/@eungyeole)
```
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api/badge?name=eungyeole)](https://velog.io/@eungyeole)

[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api/badge?name=eungyeole)](https://velog.io/@eungyeole)

# 최신 글 가져오기

> ?name= 의 값을 변경하세요
```
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api?name=eungyeole)](https://github.com/eungyeole/velog-readme-stats)
```

[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api?name=eungyeole)](https://github.com/eungyeole/velog-readme-stats)

## 특정태그를 가진 최신글 가져오기
> Option : ```&tag```

> Option : `&tag`
```
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api?name=eungyeole&tag=github)](https://github.com/eungyeole/velog-readme-stats)
```
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api?name=eungyeole&tag=github)](https://github.com/eungyeole/velog-readme-stats)

## 카드색 바꾸기
> Option : ```&color```
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api?name=eungyeole&tag=github)](https://github.com/eungyeole/velog-readme-stats)

Color Option
* dark
```
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api?name=eungyeole&color=dark)](https://github.com/eungyeole/velog-readme-stats)
```
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api?name=eungyeole&color=dark)](https://github.com/eungyeole/velog-readme-stats)
## 특정 제목을 가진 글

## 특정 제목을 가진 글
> Option : ```&slug```
> Option : `&slug`
```
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api?name=eungyeole&slug=Velog-포스트로-Github를-꾸며보자)](https://github.com/eungyeole/velog-readme-stats)
```
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api?name=eungyeole&slug=Velog-포스트로-Github를-꾸며보자)](https://github.com/eungyeole/velog-readme-stats)

[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api?name=eungyeole&slug=Velog-포스트로-Github를-꾸며보자)](https://github.com/eungyeole/velog-readme-stats)

## 상태카드와 최신글 연결하기
> Option : name, tag
카드클릭시 최신글로 리다이렉트 합니다.

> Option : name, tag
> 카드클릭시 최신글로 리다이렉트 합니다.
```
https://velog-readme-stats.vercel.app/api/redirect?name=eungyeole&tag=github
```

[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api?name=eungyeole&tag=github)](https://velog-readme-stats.vercel.app/api/redirect?name=eungyeole&tag=github)


# 최신 글 목록 가져오기 (Beta)

> ?name= 의 값을 변경하세요
```
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api/list?name=eungyeole)](https://velog.io/@eungyeole)
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api/list?name=eungyeole)](https://velog.io/@eungyeole)
```
[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api/list?name=eungyeole)](https://velog.io/@eungyeole)

[![Velog's GitHub stats](https://velog-readme-stats.vercel.app/api/list?name=eungyeole)](https://velog.io/@eungyeole)
12 changes: 0 additions & 12 deletions api/badge.js

This file was deleted.

15 changes: 0 additions & 15 deletions api/index.js

This file was deleted.

15 changes: 0 additions & 15 deletions api/list.js

This file was deleted.

15 changes: 0 additions & 15 deletions api/redirect.js

This file was deleted.

11 changes: 11 additions & 0 deletions api/serverless.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import app from "../src/app";

import { VercelRequest, VercelResponse } from "@vercel/node";

const serverless = async (req: VercelRequest, res: VercelResponse) => {
await app.ready();

return app.server.emit("request", req, res);
};

export default serverless;
8 changes: 0 additions & 8 deletions index.js

This file was deleted.

15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,25 @@
"description": "당신의 Velog 상태를 깃허브에서 확인하세요.",
"main": "./api/index.js",
"scripts": {
"start": "node ./api/index.js",
"dev:local": "node ./index.js",
"dev": "ts-node-dev --respawn --transpile-only ./src/index.ts",
"dev:vercel": "vercel dev --debug",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "MIT",
"dependencies": {
"@fastify/view": "^9.1.0",
"@napi-rs/canvas": "^0.1.44",
"axios": "^1.5.1",
"ejs": "^3.1.10",
"fastify": "^4.28.1",
"graphql-request": "^6.1.0"
},
"type": "module",
"devDependencies": {
"express": "^4.19.2"
"@types/ejs": "^3.1.5",
"@types/node": "^20.14.9",
"@vercel/node": "^3.2.1",
"ts-node-dev": "^2.0.0",
"typescript": "^5.5.3",
"vercel": "^34.3.0"
}
}
Loading

0 comments on commit 3f02e11

Please sign in to comment.