Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit 45d03e9

Browse files
committed
2.2
1 parent cfeec60 commit 45d03e9

File tree

2 files changed

+30
-25
lines changed

2 files changed

+30
-25
lines changed

README.md

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,66 @@
22

33
![Code Statistic](/public/favicon.png)
44
# Code Statistic
5-
</div>
6-
75

8-
## 🍏 Quickstart
6+
##### Dynamically analysis the code for each language in the repository/user and generate the results for your GitHub account and repo README.
7+
##### 动态生成用户/仓库中的语言统计,可以作为图片装饰在个人首页和仓库README中
98

10-
<div align="center">
119

12-
### Rapid generation 👉 **[stats.deeptrain.net](https://stats.deeptrain.net/)** 👈
10+
### Rapid generation | 快速生成 👉 **[stats.deeptrain.net](https://stats.deeptrain.net/)** 👈
1311

1412
</div>
1513

16-
### 🍊 Repo
14+
## 🍏 Quickstart | 快速开始
15+
16+
### 🍊 Repo | 仓库
1717
*/repo/**username**/**repo**/*
1818
```markdown
19-
[![code statistic](https://stats.deeptrain.net/repo/zmh-program/Zh-Website/)](https://github.com/zmh-program/code-statistic)
19+
[![zmh-program's Github Stats](https://stats.deeptrain.net/repo/zmh-program/Zh-Website/)](https://github.com/zmh-program/code-statistic)
2020
```
21-
[![code statistic](https://stats.deeptrain.net/repo/zmh-program/Zh-Website/)](https://github.com/zmh-program/code-statistic)
21+
[![zmh-program's Github Stats](https://stats.deeptrain.net/repo/zmh-program/Zh-Website/)](https://github.com/zmh-program/code-statistic)
2222

23-
### 🍉 User
23+
### 🍉 User | 用户
2424
*/user/**username**/*
2525
```markdown
26-
[![code statistic](https://stats.deeptrain.net/user/zmh-program/)](https://github.com/zmh-program/code-statistic)
26+
[![zmh-program's Github Stats](https://stats.deeptrain.net/user/zmh-program/)](https://github.com/zmh-program/code-statistic)
2727
```
28-
[![code statistic](https://stats.deeptrain.net/user/zmh-program/)](https://github.com/zmh-program/code-statistic)
28+
[![zmh-program's Github Stats](https://stats.deeptrain.net/user/zmh-program/)](https://github.com/zmh-program/code-statistic)
2929

30-
### 🥝 Dark Mode
30+
### 🥝 Dark Theme | 暗系主题
3131
*.../**?theme=dark***
3232
```markdown
33-
[![code statistic](https://stats.deeptrain.net/repo/zmh-program/Zh-Website/?theme=dark)](https://github.com/zmh-program/code-statistic)
33+
[![zmh-program's Github Stats](https://stats.deeptrain.net/repo/zmh-program/Zh-Website/?theme=dark)](https://github.com/zmh-program/code-statistic)
3434
```
35-
[![code statistic](https://stats.deeptrain.net/repo/zmh-program/Zh-Website/?theme=dark)](https://github.com/zmh-program/code-statistic)
35+
[![zmh-program's Github Stats](https://stats.deeptrain.net/repo/zmh-program/Zh-Website/?theme=dark)](https://github.com/zmh-program/code-statistic)
3636

37-
### Ref as HTML
37+
### Ref as HTML | 作为HTML引用
3838
```html
3939
<a href="https://github.com/zmh-program/code-statistic">
40-
<img src="https://stats.deeptrain.net/repo/zmh-program/Zh-Website/?theme=dark">
40+
<img src="https://stats.deeptrain.net/repo/zmh-program/Zh-Website/?theme=dark" alt="zmh-program's Github Stats">
4141
</a>
4242
```
4343

44-
<a href="https://github.com/zmh-program/code-statistic"><img src="https://stats.deeptrain.net/repo/zmh-program/Zh-Website/?theme=dark"></a>
44+
### Ref as AsciiDoc | 作为AsciiDoc使用
45+
```
46+
image:https://stats.deeptrain.net/user/zmh-program/[zmh-program's Github Stats]
47+
```
4548

46-
## 🍎 Build Your Own Server
47-
##### 👉 *Build a [Free Server](https://replit.com/@zmh-program/code-stats) using the template ([Replit](https://replit.com))*
48-
### 🍒 Initialization
49+
### 🍎 Build Your Own Server | 搭建自己的服务器
50+
#### 🍒 Initialization | 初始化
4951
```shell
5052
npm install
5153
```
5254

53-
### 🍬 Configuration
55+
#### 🍬 Configuration | 配置
5456
https://github.com/zmh-program/code-statistic/blob/a3841c2eefcda8484f94f56724d8d6c2c015cd7c/config.ts#L1-L4
5557

56-
### 🎄 Environment Variable
57-
`CODE_STATISTIC`: your GitHub Access Token
58+
#### 🎄 Environment Variable | 环境变量
59+
60+
| `CODE_STATISTIC` | GitHub Access Token |
61+
|------------------|---------------------|
62+
5863

59-
### 🍇 Run
64+
#### 🍇 Deployment | 部署
6065
```shell
6166
ts-node index
6267
```

cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Cache {
1313
this.uptime();
1414
}
1515

16-
get(key: string): undefined | any { //@ts-ignore
16+
get(key: string): undefined | any { /** @ts-ignore **/
1717
const value = this.caches[key];
1818
if (this.exist(key)) { //@ts-ignore
1919
return JSON.parse(value.value);

0 commit comments

Comments
 (0)