This commit is contained in:
DogTang 2025-04-09 09:02:34 +00:00 committed by GitHub
commit 070e62b29b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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_ICP = "豫ICP备2022018134号-1"
# 公安网备 备案号
## 若不需要,请设为空即可
VITE_SITE_PSB = "公安网备XXXXXXXXXXX号"
# 歌曲 API 地址 # 歌曲 API 地址
## 请参照 https://github.com/xizeyoupan/Meting-API#deno-deploy 进行 API 服务部署 ## 请参照 https://github.com/xizeyoupan/Meting-API#deno-deploy 进行 API 服务部署
## 此处提供的服务可能会超量从而无法访问,请自行部署 ## 此处提供的服务可能会超量从而无法访问,请自行部署

7061
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>
<span :class="startYear < fullYear ? 'c-hidden' : 'hidden'">Copyright&nbsp;</span> <span :class="startYear < fullYear ? 'c-hidden' : 'hidden'">Copyright&nbsp;</span>
&copy; &copy;
<span v-if="startYear < fullYear" <span v-if="startYear < fullYear" class="site-start">
class="site-start">
{{ startYear }} {{ startYear }}
- -
</span> </span>
@ -27,6 +26,15 @@
{{ siteIcp }} {{ siteIcp }}
</a> </a>
</span> </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>
<div v-else class="lrc"> <div v-else class="lrc">
<Transition name="fade" mode="out-in"> <Transition name="fade" mode="out-in">
@ -53,9 +61,10 @@ const fullYear = new Date().getFullYear();
// const siteStartDate = ref(import.meta.env.VITE_SITE_START); // const siteStartDate = ref(import.meta.env.VITE_SITE_START);
const startYear = ref( const startYear = ref(
import.meta.env.VITE_SITE_START?.length >= 4 ? import.meta.env.VITE_SITE_START?.length >= 4 ?
import.meta.env.VITE_SITE_START.substring(0, 4) : null import.meta.env.VITE_SITE_START.substring(0, 4) : null
); );
const siteIcp = ref(import.meta.env.VITE_SITE_ICP); 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 siteAuthor = ref(import.meta.env.VITE_SITE_AUTHOR);
const siteUrl = computed(() => { const siteUrl = computed(() => {
const url = import.meta.env.VITE_SITE_URL; const url = import.meta.env.VITE_SITE_URL;
@ -82,24 +91,29 @@ const siteUrl = computed(() => {
// //
word-break: keep-all; word-break: keep-all;
white-space: nowrap; white-space: nowrap;
.power { .power {
animation: fade 0.3s; animation: fade 0.3s;
} }
.lrc { .lrc {
padding: 0 20px; padding: 0 20px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.lrc-all { .lrc-all {
width: 98%; width: 98%;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.lrc-text { .lrc-text {
margin: 0 8px; margin: 0 8px;
} }
.i-icon { .i-icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
@ -107,26 +121,32 @@ const siteUrl = computed(() => {
} }
} }
} }
&.blur { &.blur {
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
background: rgb(0 0 0 / 25%); background: rgb(0 0 0 / 25%);
font-size: 16px; font-size: 16px;
} }
.fade-enter-active, .fade-enter-active,
.fade-leave-active { .fade-leave-active {
transition: opacity 0.15s ease-in-out; transition: opacity 0.15s ease-in-out;
} }
@media (max-width: 720px) { @media (max-width: 720px) {
font-size: 0.9rem; font-size: 0.9rem;
&.blur { &.blur {
font-size: 0.9rem; font-size: 0.9rem;
} }
} }
@media (max-width: 560px) { @media (max-width: 560px) {
.c-hidden { .c-hidden {
display: none; display: none;
} }
} }
@media (max-width: 480px) { @media (max-width: 480px) {
.hidden { .hidden {
display: none; display: none;