From 21914f8937626ff113bb74ed6d9cbd8b79396441 Mon Sep 17 00:00:00 2001 From: imsyy Date: Sat, 17 Jun 2023 16:31:20 +0800 Subject: [PATCH 1/8] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20issue=20?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/bug-en.yml | 22 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/bug.yml | 22 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/other-en.yml | 14 ++++++++++++++ .github/ISSUE_TEMPLATE/other.yml | 14 ++++++++++++++ package.json | 2 +- 5 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 .github/ISSUE_TEMPLATE/bug-en.yml create mode 100644 .github/ISSUE_TEMPLATE/bug.yml create mode 100644 .github/ISSUE_TEMPLATE/other-en.yml create mode 100644 .github/ISSUE_TEMPLATE/other.yml diff --git a/.github/ISSUE_TEMPLATE/bug-en.yml b/.github/ISSUE_TEMPLATE/bug-en.yml new file mode 100644 index 0000000..5b94831 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-en.yml @@ -0,0 +1,22 @@ +name: Encountering an Issue +description: Please provide details about the issue you are encountering +labels: [bug] +body: + - type: input + id: site-url + validations: + required: true + attributes: + label: "Site URL" + placeholder: "Please provide the URL of the site where the issue occurred" + - type: input + id: problem + attributes: + label: "Description of the Issue" + description: "Include any error messages or screenshots if applicable" + placeholder: "Please describe the issue you are encountering" + - type: textarea + id: other + attributes: + label: "Additional Information" + description: "Is there anything else you would like to add?" diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 0000000..da084dd --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,22 @@ +name: 遇到问题 +description: 请填写遇到的问题的详细信息 +labels: [bug] +body: + - type: input + id: site-url + validations: + required: true + attributes: + label: "站点链接" + placeholder: "请填写你的站点链接" + - type: input + id: problem + attributes: + label: "问题描述" + description: "有错误的话请提供报错截图" + placeholder: "请详细描述一下遇到的问题" + - type: textarea + id: other + attributes: + label: "补充信息" + description: "还需要说些什么吗" diff --git a/.github/ISSUE_TEMPLATE/other-en.yml b/.github/ISSUE_TEMPLATE/other-en.yml new file mode 100644 index 0000000..ca6724a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/other-en.yml @@ -0,0 +1,14 @@ +name: Other Information +description: Any other issues or questions related to usage +labels: [other] +body: + - type: textarea + id: title + attributes: + label: "Description of the Issue" + description: "Please provide a clear description of the issue you are experiencing" + - type: textarea + id: other + attributes: + label: "Additional Information" + description: "Is there any other information you would like to add?" \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/other.yml b/.github/ISSUE_TEMPLATE/other.yml new file mode 100644 index 0000000..ba0adcd --- /dev/null +++ b/.github/ISSUE_TEMPLATE/other.yml @@ -0,0 +1,14 @@ +name: 其他信息 +description: 关于使用上的问题 +labels: [other] +body: + - type: textarea + id: title + attributes: + label: "问题描述" + description: "请尽量清晰的描述您遇到的问题" + - type: textarea + id: other + attributes: + label: "补充信息" + description: "有需要补充的信息吗" diff --git a/package.json b/package.json index 9d54308..196fbfc 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "github": "https://github.com/imsyy/home", "home": "https://imsyy.top", "private": true, - "version": "4.0.3", + "version": "4.0.4", "type": "module", "scripts": { "dev": "vite --host", From 12808714c11c7ce17ef724e0bb75c3e10ae04704 Mon Sep 17 00:00:00 2001 From: imsyy Date: Mon, 19 Jun 2023 11:21:37 +0800 Subject: [PATCH 2/8] =?UTF-8?q?fix:=20=E9=83=A8=E5=88=86=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=97=A0=E6=95=88=20#155?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 +- README.md | 2 +- README_EN.md | 2 +- src/assets/siteLinks.json | 74 ++++++++++++++--------------- src/components/Background/index.vue | 7 +-- src/components/Footer/index.vue | 4 +- src/components/Links/index.vue | 19 ++++++-- 7 files changed, 62 insertions(+), 50 deletions(-) diff --git a/.env b/.env index a679382..8b34c17 100644 --- a/.env +++ b/.env @@ -7,7 +7,8 @@ VITE_SITE_URL = "imsyy.top" VITE_SITE_LOGO = "/images/icon/favicon.ico" VITE_SITE_APPLE_LOGO = "/images/logo/apple-touch-icon.png" -# 百度统计(若不需要可不填) +# 百度统计 +## 若不需要,请设为空即可 VITE_SITE_BAIDUTONGJI = "14e9f35ff8bc67fd4bcb5f07a6e6655a" # 简介文本 @@ -30,6 +31,7 @@ VITE_DESC_TEXT_OTHER = "哎呀,这都被你发现了( 再点击一次可关 VITE_WEATHER_KEY = "6c13af6fc30868bee488faf2cc652ab4" # 建站日期 +## 若不需要,请设为空即可 ## 请按照 YYYY-MM-DD 格式填写或者仅填写年份 YYYY VITE_SITE_START = "2020-10-24" diff --git a/README.md b/README.md index 04e2f0c..ef6056b 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ make clean all ### API * [MetingAPI By 武恩赐](https://api.wuenci.com/meting/api/) -* [小歪 API](https://api.ixiaowai.cn/) +* [搏天 API](https://api.btstu.cn/doc/sjbz.php) * [高德开放平台](https://lbs.amap.com/) * [Hitokoto 一言](https://hitokoto.cn/) diff --git a/README_EN.md b/README_EN.md index 8b847c9..bfa5787 100644 --- a/README_EN.md +++ b/README_EN.md @@ -119,7 +119,7 @@ make clean all ### API * [MetingAPI By 武恩赐](https://api.wuenci.com/meting/api/) -* [小歪 API](https://api.ixiaowai.cn/) +* [搏天 API](https://api.btstu.cn/doc/sjbz.php) * [高德开放平台](https://lbs.amap.com/) * [Hitokoto 一言](https://hitokoto.cn/) diff --git a/src/assets/siteLinks.json b/src/assets/siteLinks.json index 048680b..e29ae50 100644 --- a/src/assets/siteLinks.json +++ b/src/assets/siteLinks.json @@ -1,41 +1,37 @@ [ - [ - { - "icon": "Blog", - "name": "博客", - "link": "https://blog.imsyy.top/" - }, - { - "icon": "Cloud", - "name": "网盘", - "link": "https://pan.imsyy.top/" - }, - { - "icon": "CompactDisc", - "name": "音乐", - "link": "https://music.imsyy.top/" - }, - { - "icon": "Compass", - "name": "起始页", - "link": "https://nav.imsyy.top/" - }, - { - "icon": "Book", - "name": "网址集", - "link": "https://web.imsyy.top/" - }, - { - "icon": "Fire", - "name": "今日热榜", - "link": "https://hot.imsyy.top/" - } - ], - [ - { - "icon": "LaptopCode", - "name": "站点监测", - "link": "https://status.imsyy.top/" - } - ] + { + "icon": "Blog", + "name": "博客", + "link": "https://blog.imsyy.top/" + }, + { + "icon": "Cloud", + "name": "网盘", + "link": "https://pan.imsyy.top/" + }, + { + "icon": "CompactDisc", + "name": "音乐", + "link": "https://music.imsyy.top/" + }, + { + "icon": "Compass", + "name": "起始页", + "link": "https://nav.imsyy.top/" + }, + { + "icon": "Book", + "name": "网址集", + "link": "https://web.imsyy.top/" + }, + { + "icon": "Fire", + "name": "今日热榜", + "link": "https://hot.imsyy.top/" + }, + { + "icon": "LaptopCode", + "name": "站点监测", + "link": "https://status.imsyy.top/" + } ] diff --git a/src/components/Background/index.vue b/src/components/Background/index.vue index 6bd044a..599c447 100644 --- a/src/components/Background/index.vue +++ b/src/components/Background/index.vue @@ -18,10 +18,11 @@ import { onMounted, ref, watch, h } from "vue"; import { SuccessPicture } from "@icon-park/vue-next"; import { mainStore } from "@/store"; -const store = mainStore(); +const store = mainStore(); const bgUrl = ref(null); // 壁纸链接 +// 更换壁纸链接 const changeBg = (type) => { if (type == 0) { bgUrl.value = `/images/background${Math.floor( @@ -32,7 +33,7 @@ const changeBg = (type) => { } else if (type == 2) { bgUrl.value = "https://api.btstu.cn/sjbz/api.php?lx=fengjing&format=images"; } else if (type == 3) { - bgUrl.value = "https://www.dmoe.cc/random.php"; + bgUrl.value = "https://api.btstu.cn/sjbz/api.php?lx=dongman&format=images"; } }; @@ -140,4 +141,4 @@ watch( } } } - \ No newline at end of file + diff --git a/src/components/Footer/index.vue b/src/components/Footer/index.vue index 131a4b5..8adeebd 100644 --- a/src/components/Footer/index.vue +++ b/src/components/Footer/index.vue @@ -8,7 +8,7 @@ - {{ fullYear }} - 無名 + {{ SiteAnthor }}