Add psb-record

This commit is contained in:
DogTang0323 2025-04-09 16:54:35 +08:00
parent 0b3844b1a7
commit 927aed041d
6 changed files with 3391 additions and 3702 deletions

View File

@ -37,6 +37,10 @@ VITE_SITE_START = "2020-10-24"
## 若不需要,请设为空即可
VITE_SITE_ICP = "豫ICP备2022018134号-1"
# 公安网备 备案号
## 若不需要,请设为空即可
VITE_SITE_PSB = "公安网备XXXXXXXXXXX号"
# 歌曲 API 地址
## 请参照 https://github.com/xizeyoupan/Meting-API#deno-deploy 进行 API 服务部署
## 此处提供的服务可能会超量从而无法访问,请自行部署

6951
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
public/images/icon/psb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -5,8 +5,7 @@
<span>
<span :class="startYear < fullYear ? 'c-hidden' : 'hidden'">Copyright&nbsp;</span>
&copy;
<span v-if="startYear < fullYear"
class="site-start">
<span v-if="startYear < fullYear" class="site-start">
{{ startYear }}
-
</span>
@ -27,6 +26,15 @@
{{ siteIcp }}
</a>
</span>
<span>
<!-- 站点公安网备备案 -->
&amp;
<a v-if="sitePsb" :href="`https://beian.mps.gov.cn/#/query/webSearch?code=${sitePsb.match(/\d+/)?.[0]}`"
target="_blank" rel="noopener noreferrer">
<img src="/public/images/icon/psb.png" style="height:20px;vertical-align:middle;margin-right:5px;">
{{ sitePsb }}
</a>
</span>
</div>
<div v-else class="lrc">
<Transition name="fade" mode="out-in">
@ -56,6 +64,7 @@ const startYear = ref(
import.meta.env.VITE_SITE_START.substring(0, 4) : null
);
const siteIcp = ref(import.meta.env.VITE_SITE_ICP);
const sitePsb = ref(import.meta.env.VITE_SITE_PSB);
const siteAuthor = ref(import.meta.env.VITE_SITE_AUTHOR);
const siteUrl = computed(() => {
const url = import.meta.env.VITE_SITE_URL;
@ -82,24 +91,29 @@ const siteUrl = computed(() => {
//
word-break: keep-all;
white-space: nowrap;
.power {
animation: fade 0.3s;
}
.lrc {
padding: 0 20px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
.lrc-all {
width: 98%;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
.lrc-text {
margin: 0 8px;
}
.i-icon {
width: 18px;
height: 18px;
@ -107,26 +121,32 @@ const siteUrl = computed(() => {
}
}
}
&.blur {
backdrop-filter: blur(10px);
background: rgb(0 0 0 / 25%);
font-size: 16px;
}
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.15s ease-in-out;
}
@media (max-width: 720px) {
font-size: 0.9rem;
&.blur {
font-size: 0.9rem;
}
}
@media (max-width: 560px) {
.c-hidden {
display: none;
}
}
@media (max-width: 480px) {
.hidden {
display: none;