diff --git a/Readme.md b/Readme.md index dd0dfcd..08908e5 100644 --- a/Readme.md +++ b/Readme.md @@ -8,7 +8,7 @@ ![top-langs](https://stats.wkit.fun/api/toplangs?username=${用户名}&count=${要显示的语言数量}) ``` -![demo](./preview/demo.png) + ### 接口 diff --git a/app.dev.yaml b/app.dev.yaml index a651576..9047548 100644 --- a/app.dev.yaml +++ b/app.dev.yaml @@ -2,7 +2,7 @@ script: bun ./app.js cwd: ./ watch: true -name: stats:23333 +name: stats:30303 ignore_watch: [data, public, package.json, package-lock.json, node_modules, .git, .gitignore, app.dev.yaml, app.yaml] exec_mode: fork diff --git a/app.yaml b/app.yaml index 03b4591..22694f5 100644 --- a/app.yaml +++ b/app.yaml @@ -2,7 +2,7 @@ script: node ./app.js cwd: ./ watch: true -name: stats:23333 +name: stats:30303 ignore_watch: [data, public, package.json, package-lock.json, node_modules, .git, .gitignore, app.dev.yaml, app.yaml] exec_mode: fork diff --git a/apps/api.js b/apps/api.js index 8bec5d6..21002cd 100644 --- a/apps/api.js +++ b/apps/api.js @@ -74,6 +74,6 @@ query { langs.sort((a, b) => b.size - a.size) this.response.set('Content-Type', 'image/svg+xml') - this.response.end(render({ 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)) } } diff --git a/preview/demo.png b/preview/demo.png deleted file mode 100644 index 5da5b79..0000000 Binary files a/preview/demo.png and /dev/null differ