Skip to content

Commit 220ce2e

Browse files
authoredAug 9, 2023
Merge pull request #182 from imsyy/dev
feat: 同步内容
2 parents a812b15 + d87d467 commit 220ce2e

22 files changed

+4925
-304
lines changed
 

‎.env

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ VITE_SITE_URL = "imsyy.top"
77
VITE_SITE_LOGO = "/images/icon/favicon.ico"
88
VITE_SITE_APPLE_LOGO = "/images/logo/apple-touch-icon.png"
99

10-
# 百度统计(若不需要可不填)
10+
# 百度统计
11+
## 若不需要,请设为空即可
1112
VITE_SITE_BAIDUTONGJI = "14e9f35ff8bc67fd4bcb5f07a6e6655a"
1213

1314
# 简介文本
@@ -27,9 +28,11 @@ VITE_DESC_TEXT_OTHER = "哎呀,这都被你发现了( 再点击一次可关
2728
## 请前往 高德开放平台注册 Web服务 Key
2829
## 请注意不是 Web端 (JS API),免费申请,每日上限 5000 次
2930
## 此处提供的服务可能会超量从而无法访问,请自行申请!请自行申请!请自行申请!
31+
## 若此处设为空则调用 教书先生 API https://api.oioweb.cn/doc/weather/GetWeather
3032
VITE_WEATHER_KEY = "6c13af6fc30868bee488faf2cc652ab4"
3133

3234
# 建站日期
35+
## 若不需要,请设为空即可
3336
## 请按照 YYYY-MM-DD 格式填写或者仅填写年份 YYYY
3437
VITE_SITE_START = "2020-10-24"
3538

‎.github/ISSUE_TEMPLATE/bug-en.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Encountering an Issue
2+
description: Please provide details about the issue you are encountering
3+
labels: [bug]
4+
body:
5+
- type: input
6+
id: site-url
7+
validations:
8+
required: true
9+
attributes:
10+
label: "Site URL"
11+
placeholder: "Please provide the URL of the site where the issue occurred"
12+
- type: input
13+
id: problem
14+
attributes:
15+
label: "Description of the Issue"
16+
description: "Include any error messages or screenshots if applicable"
17+
placeholder: "Please describe the issue you are encountering"
18+
- type: textarea
19+
id: other
20+
attributes:
21+
label: "Additional Information"
22+
description: "Is there anything else you would like to add?"

‎.github/ISSUE_TEMPLATE/bug.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 遇到问题
2+
description: 请填写遇到的问题的详细信息
3+
labels: [bug]
4+
body:
5+
- type: input
6+
id: site-url
7+
validations:
8+
required: true
9+
attributes:
10+
label: "站点链接"
11+
placeholder: "请填写你的站点链接"
12+
- type: input
13+
id: problem
14+
attributes:
15+
label: "问题描述"
16+
description: "有错误的话请提供报错截图"
17+
placeholder: "请详细描述一下遇到的问题"
18+
- type: textarea
19+
id: other
20+
attributes:
21+
label: "补充信息"
22+
description: "还需要说些什么吗"

‎.github/ISSUE_TEMPLATE/other-en.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Other Information
2+
description: Any other issues or questions related to usage
3+
labels: [other]
4+
body:
5+
- type: textarea
6+
id: title
7+
attributes:
8+
label: "Description of the Issue"
9+
description: "Please provide a clear description of the issue you are experiencing"
10+
- type: textarea
11+
id: other
12+
attributes:
13+
label: "Additional Information"
14+
description: "Is there any other information you would like to add?"

‎.github/ISSUE_TEMPLATE/other.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: 其他信息
2+
description: 关于使用上的问题
3+
labels: [other]
4+
body:
5+
- type: textarea
6+
id: title
7+
attributes:
8+
label: "问题描述"
9+
description: "请尽量清晰的描述您遇到的问题"
10+
- type: textarea
11+
id: other
12+
attributes:
13+
label: "补充信息"
14+
description: "有需要补充的信息吗"

‎CODE_OF_CONDUCT.md

+128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at
63+
one@imsyy.top.
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.0, available at
119+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
125+
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at
128+
https://www.contributor-covenant.org/translations.

‎README.md

+80-7
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77

88
![無名の主页](https://s2.loli.net/2022/07/14/K5JigfvDoNewtuS.webp)
99

10-
>主页的 Logo 字体已经过压缩,若用本站 Logo 以外的字母会变回默认字体,这里是 [完整字体](https://file.4everland.app/font/Other/Pacifico-Regular.ttf)
10+
>主页的 Logo 字体已经过压缩,若用本站 Logo 以外的字母会变回默认字体,这里是 [完整字体](https://file.imsyy.top/font/Other/Pacifico-Regular.ttf)
1111
1212
### Demo
1313

1414
>由于 CDN 缓存原因,查看最新效果可能需要 `Ctrl` + `F5` 强制刷新浏览器缓存
1515
1616
- [無名の主页](https://www.imsyy.top)
17+
- [無名の主页 - Dev](https://dev.home-5iw.pages.dev/)
1718
- [無名の主页 - 备用线路](https://home-imsyy.vercel.app/)
1819

1920
### 功能
@@ -38,20 +39,66 @@
3839
*`终端` 中输入:
3940

4041
```bash
41-
# 安装 yarn
42-
npm install -g yarn
42+
# 安装 pnpm
43+
npm install -g pnpm
4344

4445
# 安装依赖
45-
yarn install
46+
pnpm install
4647

4748
# 预览
48-
yarn dev
49+
pnpm dev
4950

5051
# 构建
51-
yarn build
52+
pnpm build
5253
```
5354
> 构建完成后,静态资源会在 **`dist` 目录** 中生成,可将 **`dist` 文件夹下的文件**上传至服务器,也可使用 `Vercel` 等托管平台一键导入并自动部署
5455
56+
### 网站链接
57+
58+
`src/assets/siteLinks.json` 中可以自定义网站链接(以指向自己的网站):
59+
60+
```json
61+
{
62+
"icon": "Blog",
63+
"name": "博客",
64+
"link": "https://blog.imsyy.top/"
65+
},
66+
```
67+
68+
其中 `icon` 网站链接的图标可以在 `src/components/Links/index.vue` 中添加:
69+
70+
```js
71+
// 可前往 https://www.xicons.org 自行挑选并在此处引入
72+
// 此处引入的是 fa 类型
73+
import {
74+
Link,
75+
Blog,
76+
CompactDisc,
77+
Cloud,
78+
Compass,
79+
Book,
80+
Fire,
81+
LaptopCode,
82+
} from "@vicons/fa";
83+
84+
...
85+
86+
// 网站链接图标
87+
const siteIcon = {
88+
Blog,
89+
Cloud,
90+
CompactDisc,
91+
Compass,
92+
Book,
93+
Fire,
94+
LaptopCode,
95+
};
96+
```
97+
98+
### 社交链接
99+
100+
`src/assets/socialLinks.json` 中可以自定义社交链接。
101+
55102
### 天气
56103

57104
天气及地区获取需要 `高德开放平台` 相关 API
@@ -122,6 +169,28 @@ make clean all
122169
123170
</details>
124171

172+
### 网站图标及网站背景
173+
174+
#### 网站背景
175+
176+
可以在 `public/images` 中修改网站背景
177+
178+
如果想要添加更多的本地图片作为网站背景,可以将图片重命名 `background+数字` 的形式,并在 `src/components/Background/index.vue` 中进行修改:
179+
180+
```js
181+
182+
if (type == 0) {
183+
// 修改此处 Math.random() 后面的第一个数字为图片的数量
184+
bgUrl.value = `/images/background${Math.floor(
185+
Math.random() * 10 + 1
186+
)}.webp`;
187+
}
188+
```
189+
190+
#### 网站图标
191+
192+
可以在 `public/images/icon` 中修改网站图标。
193+
125194
### 技术栈
126195

127196
* [Vue](https://cn.vuejs.org/)
@@ -134,8 +203,12 @@ make clean all
134203
### API
135204

136205
* [MetingAPI By 武恩赐](https://api.wuenci.com/meting/api/)
137-
* [小歪 API](https://api.ixiaowai.cn/)
206+
* [搏天 API](https://api.btstu.cn/doc/sjbz.php)
138207
* [高德开放平台](https://lbs.amap.com/)
139208
* [Hitokoto 一言](https://hitokoto.cn/)
209+
*
210+
## Star History
211+
212+
[![Star History Chart](https://api.star-history.com/svg?repos=imsyy/home&type=Date)](https://star-history.com/#imsyy/home&Date)
140213

141214
<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>

‎README_EN.md

+21-4
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,28 @@ Simple little homepage, had enough of the original one and made a new one
3131

3232
### Deployment
3333

34+
* **Installation** [node.js](https://nodejs.org/zh-cn/) **Environment**
35+
36+
> node > 16.16.0
37+
> npm > 8.15.0
38+
39+
* Then run the `cmd` terminal with **administrator privileges** and `cd` to the project root directory
40+
* In the `terminal` type:
41+
3442
```bash
35-
yarn install
36-
yarn dev
37-
yarn build
43+
# Install pnpm
44+
npm install -g pnpm
45+
46+
# Install the dependencies
47+
pnpm install
48+
49+
# Preview
50+
pnpm dev
51+
52+
# Build
53+
pnpm build
3854
```
55+
3956
> Once the build is complete, the files in the `dist` folder can be uploaded to the server or imported and automatically deployed with one click using a hosting platform such as `Vercel`.
4057
4158
### Weather
@@ -119,7 +136,7 @@ make clean all
119136
### API
120137

121138
* [MetingAPI By 武恩赐](https://api.wuenci.com/meting/api/)
122-
* [小歪 API](https://api.ixiaowai.cn/)
139+
* [搏天 API](https://api.btstu.cn/doc/sjbz.php)
123140
* [高德开放平台](https://lbs.amap.com/)
124141
* [Hitokoto 一言](https://hitokoto.cn/)
125142

0 commit comments

Comments
 (0)
Please sign in to comment.