1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-02-13 15:26:57 +08:00

feat: 优化页面footer显示形式,展示版本信息

This commit is contained in:
142vip.cn
2023-11-01 19:30:23 +08:00
parent 4fa229d52d
commit b596a86713
3 changed files with 42 additions and 14 deletions

View File

@@ -1,5 +1,35 @@
export const FOOTER_HTML_INFO = `<a href="https://tongji.baidu.com/web/welcome/login" target="_blank">百度统计</a>
Copyrights © 2015-${new Date().getFullYear()} 妍荣姑娘网络工作室 All Rights Reserved <a href="https://github.com/142vip" target="_blank">142vip</a>`
import {name, version, authorInfo} from "../../../package.json"
export const FOOTER_HTML_INFO = `
<div>
All Rights Reserved
<a href="https://github.com/142vip" target="_blank">142vip</a> Repo.
${name}@v${version}
&nbsp;&nbsp;
</div>
<div style="margin-top: 5px">
<a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">鄂ICP备17025193号-1 </a>
<span style="margin: 0 5px;">|</span>
<a href="https://tongji.baidu.com/web/welcome/login" target="_blank">百度统计</a>
</div>
`
/**
* 版权信息
*/
export const copyright = `
Copyrights © 2015-${new Date().getFullYear()} ${authorInfo.name}
`
/**
* 作者信息
*/
export const AUTHOR_INFO = {
name: authorInfo.name,
email: authorInfo.email,
url: authorInfo.homePages
}
export const NotFoundMsgList = [
"徒留我孤单在湖面成双。",
@@ -53,4 +83,4 @@ export const NotFoundMsgList = [
"我陪你走到最后,能不能别想太多,会不会手牵着手,晚一点再到尽头,你说不该再相见只为了瞬间,谢谢你让我听见因为我在等待永远。",
"天灰灰会不会,让我忘了你是谁,累不累睡不睡,单影无人相依偎,夜越黑梦违背,有谁肯安慰,我的世界将被摧毁也许颓废也是另一种美。",
"我知道你我都没有错,只是忘了怎么退后,信誓旦旦给的承诺,全被时间扑了空。我知道我们都没有错,只是放手会比较好过,最美的爱情回忆里待续。",
]
]

View File

@@ -1,4 +1,4 @@
import {FOOTER_HTML_INFO} from "./constant.config";
import {AUTHOR_INFO, copyright, FOOTER_HTML_INFO} from "./constant.config";
import {hopeTheme} from "vuepress-theme-hope";
import {langConfig} from "./lang.config";
import {navbar} from "./navbar";
@@ -15,15 +15,11 @@ export default {
darkmode: "toggle",
// 支持全屏
fullscreen: true,
// 纯净模式s
// 纯净模式
// pure: true,
print: false, // 打印按钮
hostname: 'https://408.142vip.cn',
author: {
name: '微信公众号:储凡',
email: 'fairy_408@2925.com',
url: 'https://www.142vip.cn'
},
author: AUTHOR_INFO,
favicon: "/408_favicon.ico",
logo: "/assets/408_logo.png",
navbar: navbar,
@@ -57,7 +53,8 @@ export default {
// 设置页脚
displayFooter: true,
footer: FOOTER_HTML_INFO,
// copyright:false,
// copyright: false,
copyright,
// 主题色选择器
themeColor: true,
plugins: {

View File

@@ -2,10 +2,11 @@
"name": "408CSFamily",
"description": "研究生考试408考点、工作面试计算机基础知识合集",
"version": "0.0.1-alpha.9",
"author": {
"name": "Chu Fan",
"authorInfo": {
"name": "微信公众号:储凡",
"email": "fairy_408@2925.com",
"url": "https://github.com/142vip"
"url": "https://github.com/142vip",
"homePage": "https://www.142vip.cn"
},
"packageManager": "pnpm@8.9.2",
"engines": {