Skip to content

Commit 328ac56

Browse files
authored
Revise README for project maintenance and declaration
Updated README to reflect project maintenance status and added a new section for project declaration.
1 parent 8c9d084 commit 328ac56

File tree

1 file changed

+2
-247
lines changed

1 file changed

+2
-247
lines changed

README.md

Lines changed: 2 additions & 247 deletions
Original file line numberDiff line numberDiff line change
@@ -1,248 +1,3 @@
1-
简体中文 | [English](./README_EN.md)
2-
31
> [!IMPORTANT]
4-
> ## 致大家
5-
> 此项目最初只是一个简单的主页。然而,随着越来越多的小伙伴发现了这个项目,它受到了大量本不应有的关注。而且,此项目作为初学前端的作品,其代码相当杂乱且质量低下。此外,该项目还遭到众多不明资源站或下载站的倒卖,致使许多不明真相的购买者从源代码中找到本人的联系方式进行问题咨询或提出功能需求。但由于目前个人生活方面的原因,且本人未曾从此项目获取任何收益,所以已无力维护此项目。该仓库不会存档,会积极接受各位大佬的 PR,不过不会针对任何新功能或 Bug 做出更新,敬请谅解!
6-
7-
<p>
8-
<strong><h2>無名の主页</h2></strong>
9-
简单的小主页,原来的看够了,重新弄了一个
10-
</p>
11-
12-
![無名の主页](/screenshots/main.jpg)
13-
14-
> 主页的 Logo 字体已经过压缩,若用本站 Logo 以外的字母会变回默认字体,这里是 [完整字体](https://file.imsyy.top/font/Other/Pacifico-Regular.ttf),若无法下载,可将字体目录下的 `Pacifico-Regular-all.ttf` 进行替换
15-
16-
### 👀 Demo
17-
18-
> 由于 CDN 缓存原因,查看最新效果可能需要 `Ctrl` + `F5` 强制刷新浏览器缓存
19-
20-
- [無名の主页](https://www.imsyy.top)
21-
- [無名の主页 - Dev](https://home-imsyy.vercel.app)
22-
- [無名の主页 - 备用线路](https://home-5iw.pages.dev)
23-
24-
### 🎉 功能
25-
26-
- [x] 载入动画
27-
- [x] 站点简介
28-
- [x] Hitokoto 一言
29-
- [x] 日期及时间
30-
- [x] 实时天气
31-
- [x] 时光进度条
32-
- [x] 音乐播放器
33-
- [x] 移动端适配
34-
35-
### ⚙️ 自动部署
36-
37-
如果遇到构建环境或者打包过程出现错误,则可以采用 `Github Actions` 来进行自动构建
38-
39-
- 在成功 `fork` 仓库后,前往 `Actions` 页面,若您是首次开启,则会出现下面的提示,点击开启
40-
41-
![步骤1](/screenshots/step1.jpg)
42-
43-
- 然后在仓库中进行任意修改后均会触发工作流的运行,在工作流完成后,会在下方生成一个可供下载的压缩包,这就是构建出的静态文件,可自行上传至服务器
44-
45-
![步骤2](/screenshots/step2.jpg)
46-
47-
### ⚙️ 手动部署
48-
49-
- **安装** [node.js](https://nodejs.org/zh-cn/) **环境**
50-
51-
> node > 16.16.0
52-
> npm > 8.15.0
53-
54-
- 然后以 **管理员权限** 运行 `cmd` 终端,并 `cd` 到 项目根目录
55-
-`终端` 中输入:
56-
57-
```bash
58-
# 安装 pnpm
59-
npm install -g pnpm
60-
61-
# 安装依赖
62-
pnpm install
63-
64-
# 预览
65-
pnpm dev
66-
67-
# 构建
68-
pnpm build
69-
```
70-
71-
> 构建完成后,静态资源会在 **`dist` 目录** 中生成,可将 **`dist` 文件夹下的文件**上传至服务器,也可使用 `Vercel` 等托管平台一键导入并自动部署
72-
73-
### ⚙️ Docker 部署
74-
75-
> 安装及配置 Docker 将不在此处说明,请自行解决
76-
77-
```bash
78-
# 构建
79-
docker build -t home .
80-
# 运行
81-
docker run -p 12445:12445 -d home
82-
```
83-
84-
### ⚙️ Vercel 部署
85-
86-
> 其他部署平台大致相同,在此不做说明
87-
88-
1. 点击本仓库右上角的 `Fork`,复制本仓库到你的 `GitHub` 账号
89-
2. 复制 `/.env.example` 文件并重命名为 `/.env`( 重要 )
90-
3. 按需修改 `/.env` 文件中的配置
91-
4. 点击 `Deploy`,即可成功部署
92-
93-
### 网站链接
94-
95-
`src/assets/siteLinks.json` 中可以自定义网站链接(以指向自己的网站):
96-
97-
```json
98-
{
99-
"icon": "Blog",
100-
"name": "博客",
101-
"link": "https://blog.imsyy.top/"
102-
},
103-
```
104-
105-
其中 `icon` 网站链接的图标可以在 `src/components/Links/index.vue` 中添加:
106-
107-
```js
108-
// 可前往 https://www.xicons.org 自行挑选并在此处引入
109-
// 此处引入的是 fa 类型
110-
import {
111-
Link,
112-
Blog,
113-
CompactDisc,
114-
Cloud,
115-
Compass,
116-
Book,
117-
Fire,
118-
LaptopCode,
119-
} from "@vicons/fa";
120-
121-
...
122-
123-
// 网站链接图标
124-
const siteIcon = {
125-
Blog,
126-
Cloud,
127-
CompactDisc,
128-
Compass,
129-
Book,
130-
Fire,
131-
LaptopCode,
132-
};
133-
```
134-
135-
### 社交链接
136-
137-
`src/assets/socialLinks.json` 中可以自定义社交链接。
138-
139-
### 天气
140-
141-
天气及地区获取需要 `高德开放平台` 相关 API
142-
143-
- 前往 [高德开放平台控制台](https://console.amap.com/dev/index) 创建一个 `Web 服务` 类型的 `Key`,并将 `Key` 填入 `.env` 中的 `VITE_WEATHER_KEY`
144-
145-
也可自行更换其他方式
146-
147-
### 音乐
148-
149-
> 本项目采用了基于 `MetingJS``Aplayer` 音乐播放器,可实现快速自定义歌单
150-
> \*仅支持 **中国大陆地区**
151-
152-
请在 `.env` 文件中更改歌曲相关参数即可实现自定义歌单列表
153-
154-
```bash
155-
# 歌曲 API 地址
156-
VITE_SONG_API = "https://api-meting.imsyy.top"
157-
# 歌曲服务器 ( netease-网易云, tencent-qq音乐 )
158-
VITE_SONG_SERVER = "netease"
159-
# 播放类型 ( song-歌曲, playlist-播放列表, album-专辑, search-搜索, artist-艺术家 )
160-
VITE_SONG_TYPE = "playlist"
161-
# 播放 ID
162-
VITE_SONG_ID = "7452421335"
163-
```
164-
165-
### 字体
166-
167-
现采用 `HarmonyOS Sans` 开源字体,采用字体拆分,提升加载速度
168-
169-
> 由于本站 `CDN` 已开启防盗链,**非本站域名不可访问**,请将字体引入链接更改为下方内容,否则 **自定义字体将失效**
170-
>
171-
> `https://s1.hdslb.com/bfs/static/jinkela/long/font/regular.css`
172-
173-
<details>
174-
<summary>旧版方式</summary>
175-
176-
> 由于本项目引入了中文字体,需要压缩中文字体以提高网页加载速度( 也可以取消使用中文字体 )
177-
178-
#### 中文字体去除繁体
179-
180-
- 安装 `Python 3.7``pip`
181-
- 运行 `pip install fonttools`
182-
- 下载 [sc_unicode.txt](https://gist.githubusercontent.com/imaegoo/d64e5088b723c2e02c40985f55ff12db/raw/5ebd2ce49418c73459a9dfe050483409306a6c1d/sc_unicode.txt)
183-
- 运行 `pyftsubset 字体名称.ttf --unicodes-file=sc_unicode.txt`
184-
185-
#### 字体进一步压缩
186-
187-
- 编译安装 `Google woff2`
188-
189-
```bash
190-
sudo apt-get install -y git g++ make
191-
git clone --recursive https://github.com/google/woff2.git
192-
cd woff2
193-
make clean all
194-
```
195-
196-
- 再压缩字体
197-
198-
```
199-
./woff2_compress ./字体名称.ttf
200-
```
201-
202-
- 最终可对原字体进行缓加载,**先行加载压缩后的字体**
203-
204-
> 详细信息可前往 [虹墨空间站](https://www.imaegoo.com/2020/chinese-font-compress/) 查看原文
205-
206-
</details>
207-
208-
### 网站图标及网站背景
209-
210-
#### 网站背景
211-
212-
可以在 `public/images` 中修改网站背景
213-
214-
如果想要添加更多的本地图片作为网站背景,可以将图片重命名 `background+数字` 的形式,并在 `src/components/Background/index.vue` 中进行修改:
215-
216-
```js
217-
if (type == 0) {
218-
// 修改此处 Math.random() 后面的第一个数字为图片的数量
219-
bgUrl.value = `/images/background${Math.floor(Math.random() * 10 + 1)}.webp`;
220-
}
221-
```
222-
223-
#### 网站图标
224-
225-
可以在 `public/images/icon` 中修改网站图标。
226-
227-
### 技术栈
228-
229-
- [Vue](https://cn.vuejs.org/)
230-
- [Vite](https://vitejs.cn/vite3-cn/)
231-
- [Pinia](https://pinia.vuejs.org/zh/)
232-
- [IconPark](https://iconpark.oceanengine.com/official)
233-
- [xicons](https://xicons.org/)
234-
- [Aplayer](https://aplayer.js.org/)
235-
236-
### API
237-
238-
- [韩小韩 WebAPI 接口](https://api.vvhan.com/)
239-
- [搏天 API](https://api.btstu.cn/doc/sjbz.php)
240-
- [教书先生 API](https://api.oioweb.cn/doc/weather/GetWeather)
241-
- [高德开放平台](https://lbs.amap.com/)
242-
- [Hitokoto 一言](https://hitokoto.cn/)
243-
244-
## Star History
245-
246-
[![Star History Chart](https://api.star-history.com/svg?repos=imsyy/home&type=Date)](https://star-history.com/#imsyy/home&Date)
247-
248-
<a title="SSL" target="_blank" href="https://myssl.com/seal/detail?domain=blog.imsyy.top"><img src="https://img.shields.io/badge/MySSL-安全认证-brightgreen"></a>&nbsp;<a title="CDN" target="_blank" href="https://cdnjs.com/"><img src="https://img.shields.io/badge/CDN-Cloudflare-blue"></a>&nbsp;<a title="Copyright" target="_blank" href="https://imsyy.top/"><img src="https://img.shields.io/badge/Copyright%20%C2%A9%202020--2023-%E7%84%A1%E5%90%8D-red"></a>
2+
> ## 声明 by 星鸿
3+
> Forked from imsyy. 原作者停止更新,现对该项目进行继续维护,并出于非商业目的使用。

0 commit comments

Comments
 (0)