Skip to content

Commit

Permalink
样式修改
Browse files Browse the repository at this point in the history
  • Loading branch information
底层用户 committed Jul 21, 2022
1 parent 4602238 commit bf45f4e
Show file tree
Hide file tree
Showing 24 changed files with 28,666 additions and 85 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
build
48 changes: 48 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# uptime-status

一个基于 UptimeRobot API 的在线状态面板,修改自 [uptime-status](https://github.com/yb/uptime-status)

![IMSYY-站点监测.png](https://s2.loli.net/2022/07/21/Bq9sNMiT7DmvoLd.png)

## 修改内容

- 修改部分样式
- 新增站点状态总览
- 新增数据获取失败提示
- 移动端适配

## 事先准备

- 您需要先到 [UptimeRobot](https://uptimerobot.com/ "UptimeRobot") 添加站点监控,并在 My Settings 页面获取 API Key
- 您需要拥有一个网站空间,常见的 Nginx / PHP 等空间即可,甚至是阿里云的 OSS 等纯静态空间也行

## 如何使用

- 下载本项目
- 修改 `config.js` 文件:
1. `SiteName`: 要显示的网站名称
2. `ApiKeys`: 从 UptimeRobot 获取的 API Key,支持 Monitor-Specific API Keys 和 Read-Only API Key
3. `CountDays`: 要显示的日志天数,建议 60 或 90,显示效果比较好
4. `ShowLink`: 是否显示站点链接
5. `Navi`: 导航栏的菜单列表
- 将所有文件上传到网站空间

## 如何部署

### 安装依赖

```
npm i --unsafe-perm=true
```

### 运行

```
npm run start
```

### 打包

```
npm run build
```
40 changes: 0 additions & 40 deletions config.js

This file was deleted.

Binary file removed favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion index.html

This file was deleted.

Loading

0 comments on commit bf45f4e

Please sign in to comment.