mirror of
https://github.com/imsyy/home.git
synced 2025-05-19 04:30:13 +09:00
Merge b65f7b5572
into 0b3844b1a7
This commit is contained in:
commit
3d185ad91e
10
.env.example
10
.env.example
@ -35,7 +35,15 @@ VITE_SITE_START = "2020-10-24"
|
||||
|
||||
# ICP 备案号
|
||||
## 若不需要,请设为空即可
|
||||
VITE_SITE_ICP = "豫ICP备2022018134号-1"
|
||||
VITE_SITE_ICP = "皖ICP备2025078205号"
|
||||
# I公安网备案号
|
||||
## 若不需要,请设为空即可
|
||||
VITE_SITE_PSR = "皖公网安备34040002000514号"
|
||||
|
||||
# 时间字体
|
||||
## 默认值为 'UnidreamLED' ,使用该字体无法实现等宽字体,(注意字体名引号)
|
||||
## 添加字体请在 .\public\font 添加字体文件
|
||||
VITE_TIME_FRONT = "'UnidreamLED'"
|
||||
|
||||
# 歌曲 API 地址
|
||||
## 请参照 https://github.com/xizeyoupan/Meting-API#deno-deploy 进行 API 服务部署
|
||||
|
@ -27,6 +27,13 @@
|
||||
{{ siteIcp }}
|
||||
</a>
|
||||
</span>
|
||||
<!-- 添加:公安备案 -->
|
||||
<span>
|
||||
&
|
||||
<a v-if="sitePsr" href="https://beian.mps.gov.cn/#/query/webSearch" target="_blank">
|
||||
{{ sitePsr }}
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<div v-else class="lrc">
|
||||
<Transition name="fade" mode="out-in">
|
||||
@ -56,6 +63,8 @@ const startYear = ref(
|
||||
import.meta.env.VITE_SITE_START.substring(0, 4) : null
|
||||
);
|
||||
const siteIcp = ref(import.meta.env.VITE_SITE_ICP);
|
||||
// 添加:公安备案
|
||||
const sitePsr = ref(import.meta.env.VITE_SITE_PSR);
|
||||
const siteAuthor = ref(import.meta.env.VITE_SITE_AUTHOR);
|
||||
const siteUrl = computed(() => {
|
||||
const url = import.meta.env.VITE_SITE_URL;
|
||||
|
@ -49,6 +49,9 @@ const updateTimeData = () => {
|
||||
currentTime.value = getCurrentTime();
|
||||
};
|
||||
|
||||
// 引入配置项
|
||||
const timefornt = ref(import.meta.env.VITE_TIME_FRONT);
|
||||
|
||||
onMounted(() => {
|
||||
updateTimeData();
|
||||
timeInterval.value = setInterval(updateTimeData, 1000);
|
||||
@ -125,7 +128,8 @@ onBeforeUnmount(() => {
|
||||
margin-top: 10px;
|
||||
font-size: 3.25rem;
|
||||
letter-spacing: 2px;
|
||||
font-family: "UnidreamLED";
|
||||
font-family: v-bind(timefornt);
|
||||
font-variant-numeric: tabular-nums; // 强制数字等宽
|
||||
}
|
||||
@media (min-width: 1201px) and (max-width: 1280px) {
|
||||
font-size: 1rem;
|
||||
|
Loading…
Reference in New Issue
Block a user