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 392dbf8

Browse files
authored
Merge pull request #212 from imsyy/dev
feat: 同步
2 parents 709198e + e879efa commit 392dbf8

File tree

13 files changed

+70
-26
lines changed

13 files changed

+70
-26
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ VITE_SITE_NAME = "無名の主页" # 名称
33
VITE_SITE_ANTHOR = "無名" # 作者
44
VITE_SITE_KEYWORDS = "無名,个人主页" # 关键词
55
VITE_SITE_DES = "一个默默无闻的主页" # 站点简介
6-
VITE_SITE_URL = "imsyy.top" # 站点地址
6+
VITE_SITE_URL = "jmsyy.top" # 站点地址
77
VITE_SITE_LOGO = "/images/icon/favicon.ico" # 站点主图标
88
VITE_SITE_MAIN_LOGO = "/images/icon/logo.png" # 主页图标
99
VITE_SITE_APPLE_LOGO = "/images/logo/apple-touch-icon.png" # Apple 端图标
@@ -47,5 +47,5 @@ VITE_SONG_API = "https://api-meting.imsyy.top/api"
4747
VITE_SONG_SERVER = "netease"
4848
# 播放类型 ( song-歌曲, playlist-播放列表, album-专辑, search-搜索, artist-艺术家 )
4949
VITE_SONG_TYPE = "playlist"
50-
# 播放 ID
50+
# 播放 ID ( 若无需播放器,请设为空即可 )
5151
VITE_SONG_ID = "7452421335"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ if (type == 0) {
207207
* [高德开放平台](https://lbs.amap.com/)
208208
* [Hitokoto 一言](https://hitokoto.cn/)
209209
* [MetingAPI By 武恩赐](https://api.wuenci.com/meting/api/)
210-
*
210+
211211
## Star History
212212

213213
[![Star History Chart](https://api.star-history.com/svg?repos=imsyy/home&type=Date)](https://star-history.com/#imsyy/home&Date)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"github": "https://github.com/imsyy/home",
55
"home": "https://imsyy.top",
66
"private": true,
7-
"version": "4.1.2",
7+
"version": "4.1.3",
88
"type": "module",
99
"scripts": {
1010
"dev": "vite --host",
308 KB
Binary file not shown.

public/font/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Logo 字体替换
2+
3+
可将该文件夹下的 `Pacifico-Regular-all.ttf` 替换原来的 `Pacifico-Regular.ttf`

src/App.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
</section>
1818
</div>
1919
<!-- 移动端菜单按钮 -->
20-
<Icon class="menu" size="24" @click="store.mobileOpenState = !store.mobileOpenState">
20+
<Icon
21+
class="menu"
22+
size="24"
23+
v-show="!store.backgroundShow"
24+
@click="store.mobileOpenState = !store.mobileOpenState"
25+
>
2126
<component :is="store.mobileOpenState ? CloseSmall : HamburgerButton" />
2227
</Icon>
2328
<!-- 页脚 -->
@@ -178,7 +183,7 @@ onBeforeUnmount(() => {
178183
.i-icon {
179184
transform: translateY(2px);
180185
}
181-
@media (min-width: 720px) {
186+
@media (min-width: 721px) {
182187
display: none;
183188
}
184189
}

src/components/Background.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="cover">
2+
<div :class="store.backgroundShow ? 'cover show' : 'cover'">
33
<img
44
v-show="store.imgLoadStatus"
55
class="bg"
@@ -99,6 +99,10 @@ onBeforeUnmount(() => {
9999
transition: 0.25s;
100100
z-index: -1;
101101
102+
&.show {
103+
z-index: 1;
104+
}
105+
102106
.bg {
103107
position: absolute;
104108
left: 0;

src/components/Hitokoto.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
</div>
1919
</Transition>
2020
<!-- 一言内容 -->
21-
<div class="content" @click="updateHitokoto">
22-
<span class="text">{{ hitokotoData.text }}</span>
23-
<span class="from">-「&nbsp;{{ hitokotoData.from }}&nbsp;」</span>
24-
</div>
21+
<Transition name="el-fade-in-linear" mode="out-in">
22+
<div :key="hitokotoData.text" class="content" @click="updateHitokoto">
23+
<span class="text">{{ hitokotoData.text }}</span>
24+
<span class="from">-「&nbsp;{{ hitokotoData.from }}&nbsp;」</span>
25+
</div>
26+
</Transition>
2527
</div>
2628
</template>
2729

@@ -57,13 +59,13 @@ const getHitokotoData = () => {
5759
fill: "#efefef",
5860
}),
5961
});
62+
hitokotoData.text = "这里应该显示一句话";
63+
hitokotoData.from = "無名";
6064
});
6165
};
6266
6367
// 更新一言数据
6468
const updateHitokoto = () => {
65-
hitokotoData.text = "新的一言正在赶来的路上";
66-
hitokotoData.from = "来源加载中";
6769
// 防抖
6870
debounce(() => {
6971
getHitokotoData();

src/components/Message.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<!-- Logo -->
55
<div class="logo">
66
<img class="logo-img" :src="siteLogo" alt="logo" />
7-
<div class="name text-hidden">
7+
<div :class="{ name: true, 'text-hidden': true, long: siteUrl[0].length >= 6 }">
88
<span class="bg">{{ siteUrl[0] }}</span>
99
<span class="sm">.{{ siteUrl[1] }}</span>
1010
</div>
@@ -97,9 +97,8 @@ watch(
9797
width: 120px;
9898
}
9999
.name {
100-
width: 100%;
101-
height: 142px;
102-
margin-left: 12px;
100+
width: calc(460px - 120px);
101+
padding-left: 22px;
103102
transform: translateY(-8px);
104103
font-family: "Pacifico-Regular";
105104

src/components/Music.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</div>
4343
</div>
4444
<!-- 音乐列表弹窗 -->
45-
<Transition name="fade">
45+
<Transition name="fade" mode="out-in">
4646
<div class="music-list" v-show="musicListShow" @click="musicListShow = false">
4747
<Transition name="zoom">
4848
<div class="list" v-show="musicListShow" @click.stop>
@@ -281,12 +281,6 @@ watch(
281281
}
282282
283283
// 弹窗动画
284-
.fade-enter-active {
285-
animation: fade 0.3s ease-in-out;
286-
}
287-
.fade-leave-active {
288-
animation: fade 0.3s ease-in-out reverse;
289-
}
290284
.zoom-enter-active {
291285
animation: zoom 0.4s ease-in-out;
292286
}

0 commit comments

Comments
 (0)