WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Commit a812b15

Browse files
authored
Merge pull request #149 from imsyy/dev
fix: 修复部分参数配置无效 #148
2 parents 8bbf410 + ff83ffd commit a812b15

File tree

6 files changed

+44
-57
lines changed

6 files changed

+44
-57
lines changed

.env

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ VITE_SITE_ANTHOR = "無名"
44
VITE_SITE_KEYWORDS = "無名,个人主页"
55
VITE_SITE_DES = "一个默默无闻的主页"
66
VITE_SITE_URL = "imsyy.top"
7-
VITE_SITE_LOGO = "/images/icon/logo.png"
7+
VITE_SITE_LOGO = "/images/icon/favicon.ico"
8+
VITE_SITE_APPLE_LOGO = "/images/logo/apple-touch-icon.png"
89

910
# 百度统计(若不需要可不填)
1011
VITE_SITE_BAIDUTONGJI = "14e9f35ff8bc67fd4bcb5f07a6e6655a"
@@ -20,20 +21,26 @@ VITE_DESC_TEXT_OTHER = "哎呀,这都被你发现了( 再点击一次可关
2021

2122
# 网站链接
2223
## 请在 src/assets/siteLinks.json 文件中配置
24+
## 网站链接的图标名称可前往 https://www.xicons.org 自行挑选并在 src/components/Links/index.vue 中引入
2325

2426
# 天气 Key
25-
## 请前往高德开放平台注册 **Web服务** Key(免费的)
26-
## 请各位大佬行行好,别再让我超量了
27+
## 请前往 高德开放平台注册 Web服务 Key
28+
## 请注意不是 Web端 (JS API),免费申请,每日上限 5000 次
29+
## 此处提供的服务可能会超量从而无法访问,请自行申请!请自行申请!请自行申请!
2730
VITE_WEATHER_KEY = "6c13af6fc30868bee488faf2cc652ab4"
2831

2932
# 建站日期
30-
## 请按照 YYYY-MM-DD 格式填写
33+
## 请按照 YYYY-MM-DD 格式填写或者仅填写年份 YYYY
3134
VITE_SITE_START = "2020-10-24"
3235

36+
# ICP 备案号
37+
## 若不需要,请设为空即可
38+
VITE_SITE_ICP = "豫ICP备2022018134号-1"
39+
3340
# 歌曲 API 地址
3441
## 请参照 https://github.com/xizeyoupan/Meting-API#deno-deploy 进行 API 服务部署
3542
## 此处提供的服务可能会超量从而无法访问,请自行部署
36-
## 若使用QQ音乐歌单,歌曲数量最好不要超出50首
43+
## 若使用 QQ 音乐歌单,歌曲数量最好不要超出 50 首
3744
## 备用:https://api.wuenci.com/meting/api/
3845
VITE_SONG_API = "https://api-meting.imsyy.top/api"
3946
# 歌曲服务器 ( netease-网易云, tencent-qq音乐 )

index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<meta http-equiv="Access-Control-Allow-Origin" content="*">
77
<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> -->
88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9+
<link rel="icon" href="<%- logo %>">
10+
<link rel="apple-touch-icon" href="<%- appleLogo %>" />
11+
<link rel="bookmark" href="<%- appleLogo %>" />
12+
<link rel="apple-touch-icon-precomposed" sizes="200x200" href="<%- appleLogo %>" />
913
<meta name="description" content="<%- description %>" />
1014
<meta name="keywords" content="<%- keywords %>" />
1115
<meta name="author" content="<%- author %>" />
@@ -15,8 +19,6 @@
1519
<!-- 本站 CDN 已开启防盗链,非本站域名不可访问,请更改链接为下方内容,否则自定义字体将失效 -->
1620
<!-- https://s1.hdslb.com/bfs/static/jinkela/long/font/regular.css -->
1721
<link rel="stylesheet" href="https://cdn.imsyy.top/gh/imsyy/file/font/HarmonyOS_Sans/regular.min.css" />
18-
<link rel="icon" href="/images/icon/favicon.ico">
19-
<link rel="apple-touch-icon" href="/images/icon/apple-touch-icon.png">
2022
<link rel="stylesheet" href="/loading/loading.min.css">
2123
<!-- IE Out -->
2224
<script>
@@ -28,7 +30,7 @@
2830
<!-- 百度统计 -->
2931
<script>
3032
var _hmt = _hmt || [];
31-
(function () {
33+
(function() {
3234
var hm = document.createElement("script");
3335
hm.src = "https://hm.baidu.com/hm.js?<%- tongji %>";
3436
var s = document.getElementsByTagName("script")[0];

src/components/Footer/index.vue

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
<template>
22
<footer>
33
<div class="power" v-show="!store.playerState">
4-
<span
5-
>Copyright&nbsp;&copy;&nbsp;{{ fullYear }}
4+
<span>
5+
Copyright&nbsp;&copy;
6+
<span v-if="siteStartDate?.length >= 4" class="site-start">
7+
{{ siteStartDate.substring(0, 4) }}
8+
-
9+
</span>
10+
{{ fullYear }}
611
<a href="https://imsyy.top">無名</a>
712
</span>
813
<!-- 以下信息请不要修改哦 -->
9-
<span class="hidden"
10-
>&nbsp;&amp;&nbsp;Made&nbsp;by&nbsp;<a
11-
:href="config.github"
12-
target="_blank"
13-
>
14+
<span class="hidden">
15+
&amp;&nbsp;Made&nbsp;by
16+
<a :href="config.github" target="_blank">
1417
{{ config.author }}
15-
</a></span
16-
>&nbsp;&amp;
18+
</a>
19+
</span>
1720
<!-- 站点备案 -->
18-
<a href="https://beian.miit.gov.cn" target="_blank"
19-
>豫ICP备2022018134号-1</a
20-
>
21+
<a v-if="siteIcp" href="https://beian.miit.gov.cn" target="_blank">
22+
&amp;
23+
{{ siteIcp }}
24+
</a>
2125
</div>
2226
<div class="lrc" v-show="store.playerState">
2327
<music-one theme="filled" size="18" fill="#efefef" />
@@ -30,12 +34,17 @@
3034
</template>
3135

3236
<script setup>
37+
import { ref } from "vue";
3338
import { MusicOne } from "@icon-park/vue-next";
3439
import { mainStore } from "@/store";
3540
import config from "@/../package.json";
36-
const store = mainStore();
3741
42+
const store = mainStore();
3843
const fullYear = new Date().getFullYear();
44+
45+
// 加载配置数据
46+
const siteStartDate = ref(import.meta.env.VITE_SITE_START);
47+
const siteIcp = ref(import.meta.env.VITE_SITE_ICP);
3948
</script>
4049
4150
<style lang="scss" scoped>
@@ -87,4 +96,4 @@ footer {
8796
}
8897
}
8998
}
90-
</style>
99+
</style>

src/components/Links/index.vue

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<script setup>
4848
import { onMounted } from "vue";
4949
import { Icon } from "@vicons/utils";
50+
// 可前往 https://www.xicons.org 自行挑选并在此处引入
5051
import {
5152
Link,
5253
Blog,
@@ -77,40 +78,6 @@ const siteIcon = {
7778
LaptopCode,
7879
};
7980
80-
// 网站链接数据
81-
const linksData = [
82-
{
83-
icon: Blog,
84-
name: "博客",
85-
link: "https://blog.imsyy.top/",
86-
},
87-
{
88-
icon: Cloud,
89-
name: "网盘",
90-
link: "https://pan.imsyy.top/",
91-
},
92-
{
93-
icon: CompactDisc,
94-
name: "音乐",
95-
link: "https://music.imsyy.top/",
96-
},
97-
{
98-
icon: Compass,
99-
name: "起始页",
100-
link: "https://nav.imsyy.top/",
101-
},
102-
{
103-
icon: Book,
104-
name: "网址集",
105-
link: "https://web.imsyy.top/",
106-
},
107-
{
108-
icon: Fire,
109-
name: "今日热榜",
110-
link: "https://hot.imsyy.top/",
111-
},
112-
];
113-
11481
// 链接跳转
11582
const jumpLink = (data) => {
11683
if (data.name === "音乐" && store.musicClick) {

src/components/TimeCapsule/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
:stroke-width="20"
4141
:percentage="timeData.year.pass"
4242
/>
43-
<div v-if="startDateText && store.siteStartShow">
43+
<div v-if="startDate?.length >= 4 && store.siteStartShow">
4444
<span class="text" v-html="startDateText" />
4545
<!-- <el-progress
4646
:show-text="false"

vite.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export default ({
3535
template: 'index.html',
3636
inject: {
3737
data: {
38+
logo: loadEnv(mode, process.cwd()).VITE_SITE_LOGO,
39+
appleLogo: loadEnv(mode, process.cwd()).VITE_SITE_APPLE_LOGO,
3840
title: loadEnv(mode, process.cwd()).VITE_SITE_NAME,
3941
author: loadEnv(mode, process.cwd()).VITE_SITE_ANTHOR,
4042
keywords: loadEnv(mode, process.cwd()).VITE_SITE_KEYWORDS,

0 commit comments

Comments
 (0)