diff --git a/.env b/.env index bb64dc4..53beec3 100644 --- a/.env +++ b/.env @@ -10,18 +10,13 @@ VITE_DESC_HELLO_OTHER = "Oops !" VITE_DESC_TEXT_OTHER = "哎呀,这都被你发现了( 再点击一次可关闭 )" # 社交链接 -VITE_SOCIAL_GITHUB = "imsyy" -VITE_SOCIAL_GITEE = "imsyy" -VITE_SOCIAL_QQ = "1539250352" -VITE_SOCIAL_EMAIL = "one@imsyy.top" -VITE_SOCIAL_TELEGRAM = "bottom_user" -VITE_SOCIAL_TWITTER = "iimmsyy" +## 请在根目录下的 socialLinks.json 文件中配置 # 网站链接 -## 请在 src/components/Links/index.vue 中设置 +## 请在 src/components/Links/index.vue 文件中配置 # 天气 Key -## 请前往高德开放平台注册 Web服务 Key +## 请前往高德开放平台注册 Web服务 Key(免费的) ## 请各位大佬行行好,别再让我超量了 VITE_WEATHER_KEY = "57eaea5833ff1616cfd1ff2c4cf9b58a" diff --git a/package.json b/package.json index 4346823..735dfbd 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "github": "https://github.com/imsyy/home", "home": "https://imsyy.top", "private": true, - "version": "4.0.0", + "version": "4.0.1", "type": "module", "scripts": { "dev": "vite", diff --git a/public/images/icon/bilibili.png b/public/images/icon/bilibili.png new file mode 100644 index 0000000..abb84c6 Binary files /dev/null and b/public/images/icon/bilibili.png differ diff --git a/public/images/icon/email.png b/public/images/icon/email.png new file mode 100644 index 0000000..776379f Binary files /dev/null and b/public/images/icon/email.png differ diff --git a/public/images/icon/gitee.png b/public/images/icon/gitee.png index 8a9c91b..36b5965 100644 Binary files a/public/images/icon/gitee.png and b/public/images/icon/gitee.png differ diff --git a/public/images/icon/github.png b/public/images/icon/github.png new file mode 100644 index 0000000..1656a6f Binary files /dev/null and b/public/images/icon/github.png differ diff --git a/public/images/icon/qq.png b/public/images/icon/qq.png new file mode 100644 index 0000000..2d317cd Binary files /dev/null and b/public/images/icon/qq.png differ diff --git a/public/images/icon/telegram.png b/public/images/icon/telegram.png new file mode 100644 index 0000000..4ba0fd0 Binary files /dev/null and b/public/images/icon/telegram.png differ diff --git a/public/images/icon/twitter.png b/public/images/icon/twitter.png new file mode 100644 index 0000000..a3f5811 Binary files /dev/null and b/public/images/icon/twitter.png differ diff --git a/socialLinks.json b/socialLinks.json new file mode 100644 index 0000000..bfeace1 --- /dev/null +++ b/socialLinks.json @@ -0,0 +1,26 @@ +[{ + "name": "Github", + "icon": "/images/icon/github.png", + "tip": "去 Github 看看", + "url": "https://github.com/imsyy" +}, { + "name": "BiliBili", + "icon": "/images/icon/bilibili.png", + "tip": "(゜-゜)つロ 干杯 ~", + "url": "https://space.bilibili.com/98544142" +}, { + "name": "QQ", + "icon": "/images/icon/qq.png", + "tip": "有什么事吗", + "url": "https://wpa.qq.com/msgrd?v=3&uin=1539250352&site=qq&menu=yes" +}, { + "name": "Email", + "icon": "/images/icon/email.png", + "tip": "来封 Email ~", + "url": "mailto:one@imsyy.top" +}, { + "name": "Telegram", + "icon": "/images/icon/telegram.png", + "tip": "你懂的 ~", + "url": "https://twitter.com/iimmsyy" +}] \ No newline at end of file diff --git a/src/api/index.js b/src/api/index.js index 6e46d5a..b057490 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -35,4 +35,14 @@ export const getAdcode = async (key) => { export const getWeather = async (key, city) => { const res = await fetch(`https://restapi.amap.com/v3/weather/weatherInfo?key=${key}&city=${city}`); return await res.json(); +} + +/** + * 获取配置 + */ + +// 获取社交链接 +export const getSocialLinks = async () => { + const res = await fetch("/socialLinks.json"); + return await res.json(); } \ No newline at end of file diff --git a/src/components/SocialLinks/index.vue b/src/components/SocialLinks/index.vue index 123fb3c..02a9707 100644 --- a/src/components/SocialLinks/index.vue +++ b/src/components/SocialLinks/index.vue @@ -3,69 +3,14 @@
{{ socialTip }} @@ -73,66 +18,37 @@