node -> bun

master
yutent 2023-09-11 17:10:40 +08:00
parent ad9dfdc157
commit 9baf043b30
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
script: node ./app.js script: bun ./app.js
cwd: ./ cwd: ./
watch: true watch: true
name: stats:30303 name: stats:30303

View File

@ -74,6 +74,11 @@ query {
langs.sort((a, b) => b.size - a.size) langs.sort((a, b) => b.size - a.size)
this.response.set('Content-Type', 'image/svg+xml') this.response.set('Content-Type', 'image/svg+xml')
this.response.end(render({ title: `${username}'s Top Languages`, langs: langs.slice(0, count) }, this.IS_MOBILE)) this.response.end(
render(
{ title: `${username}'s Top Languages`, langs: langs.slice(0, count) },
this.IS_MOBILE
)
)
} }
} }