关于页面优化
This commit is contained in:
@@ -41,9 +41,9 @@ public class SchedulerTask {
|
|||||||
if (Objects.equals(ZyplayerDocVersion.version, properties.getProperty("lastVersion"))) {
|
if (Objects.equals(ZyplayerDocVersion.version, properties.getProperty("lastVersion"))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
properties.setProperty("nowVersion", ZyplayerDocVersion.version);
|
|
||||||
String jsonString = JSON.toJSONString(properties);
|
String jsonString = JSON.toJSONString(properties);
|
||||||
UpgradeUtil.upgradeInfo = JSON.parseObject(jsonString, UpgradeInfo.class);
|
UpgradeUtil.upgradeInfo = JSON.parseObject(jsonString, UpgradeInfo.class);
|
||||||
|
UpgradeUtil.upgradeInfo.setNowVersion(ZyplayerDocVersion.version);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
package com.zyplayer.doc.manage.utils;
|
package com.zyplayer.doc.manage.utils;
|
||||||
|
|
||||||
|
import com.zyplayer.doc.core.util.ZyplayerDocVersion;
|
||||||
import com.zyplayer.doc.manage.utils.bean.UpgradeInfo;
|
import com.zyplayer.doc.manage.utils.bean.UpgradeInfo;
|
||||||
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
public class UpgradeUtil {
|
public class UpgradeUtil {
|
||||||
public static UpgradeInfo upgradeInfo;
|
public static UpgradeInfo upgradeInfo = new UpgradeInfo();
|
||||||
|
|
||||||
|
static {
|
||||||
|
UpgradeUtil.upgradeInfo.setNowVersion(ZyplayerDocVersion.version);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
VUE_APP_BASE_API = 'http://local.zyplayer.com:8083/zyplayer-doc-manage'
|
# VUE_APP_BASE_API = 'http://local.zyplayer.com:8083/zyplayer-doc-manage'
|
||||||
# VUE_APP_BASE_API = 'http://doc.zyplayer.com/zyplayer-doc-manage'
|
VUE_APP_BASE_API = 'http://doc.zyplayer.com/zyplayer-doc-manage'
|
||||||
|
|
||||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||||
|
|
||||||
|
|||||||
@@ -74,26 +74,66 @@
|
|||||||
</el-container>
|
</el-container>
|
||||||
</el-container>
|
</el-container>
|
||||||
<!--关于弹窗-->
|
<!--关于弹窗-->
|
||||||
<el-dialog title="关于zyplayer-doc" :visible.sync="aboutDialogVisible" width="600px">
|
<el-dialog title="关于" :visible.sync="aboutDialogVisible" width="600px" custom-class="about-zyplayer-doc">
|
||||||
<el-form>
|
<div style="">
|
||||||
<el-form-item label="项目地址:">
|
<div style="font-weight: bold;font-size: 25px;">zyplayer-doc</div>
|
||||||
<a target="_blank" href="https://gitee.com/zyplayer/zyplayer-doc">zyplayer-doc</a>
|
<div style="line-height: 30px;font-size: 12px;color: #666;padding: 10px 0;">
|
||||||
</el-form-item>
|
<div>版本 {{upgradeInfo.nowVersion || '1.0.9'}}</div>
|
||||||
<el-form-item label="开发人员:">
|
<div>版权所有 © 2018-2021 <a target="_blank" href="http://doc.zyplayer.com">doc.zyplayer.com</a></div>
|
||||||
<a target="_blank" href="http://zyplayer.com">暮光:城中城</a>
|
</div>
|
||||||
</el-form-item>
|
<template v-if="!!upgradeInfo.nowVersion">v{{upgradeInfo.nowVersion}}</template>
|
||||||
<template v-if="upgradeInfo.lastVersion">
|
<el-tabs type="border-card">
|
||||||
<el-form-item label="当前版本:">{{upgradeInfo.nowVersion}}</el-form-item>
|
<el-tab-pane label="支持">
|
||||||
<el-form-item label="最新版本:">{{upgradeInfo.lastVersion}}</el-form-item>
|
<div style="line-height: 30px;">
|
||||||
<el-form-item label="升级地址:">
|
<div>文档:<a target="_blank" href="http://doc.zyplayer.com/zyplayer-doc-manage/doc-wiki#/page/share/view?pageId=1&space=23f3f59a60824d21af9f7c3bbc9bc3cb">http://doc.zyplayer.com</a></div>
|
||||||
<a target="_blank" :href="upgradeInfo.upgradeUrl">{{upgradeInfo.upgradeUrl}}</a>
|
<div>主页:<a target="_blank" href="https://gitee.com/zyplayer/zyplayer-doc">https://gitee.com/zyplayer/zyplayer-doc</a></div>
|
||||||
</el-form-item>
|
<div>反馈:<a target="_blank" href="https://gitee.com/zyplayer/zyplayer-doc/issues">https://gitee.com/zyplayer/zyplayer-doc/issues</a></div>
|
||||||
<el-form-item label="升级内容:">{{upgradeInfo.upgradeContent}}</el-form-item>
|
<div>特性关注&技术交流QQ群:466363173</div>
|
||||||
</template>
|
<el-divider content-position="left">UI/设计/开发/测试</el-divider>
|
||||||
<el-form-item label="">
|
<div><a target="_blank" href="http://zyplayer.com">暮光:城中城</a></div>
|
||||||
欢迎加群讨论,QQ群号:466363173,欢迎提交需求,欢迎使用和加入开发!
|
<el-divider content-position="left">参与人员</el-divider>
|
||||||
</el-form-item>
|
<div>
|
||||||
</el-form>
|
辽宁-天平、
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-tab-pane>
|
||||||
|
<el-tab-pane label="开源软件">
|
||||||
|
<div style="line-height: 30px;">
|
||||||
|
<div>此项目基于以下开源软件构建</div>
|
||||||
|
<el-divider content-position="left">后端</el-divider>
|
||||||
|
<div>
|
||||||
|
<a target="_blank" href="https://spring.io/projects/spring-boot">Spring-Boot</a>、
|
||||||
|
<a target="_blank" href="http://www.mybatis.org">MyBatis</a>、
|
||||||
|
<a target="_blank" href="https://github.com/alibaba/druid">Druid</a>、
|
||||||
|
<a target="_blank" href="https://mp.baomidou.com">MyBatis-Plus</a>、
|
||||||
|
<a target="_blank" href="https://www.hutool.cn">Hutool</a>、
|
||||||
|
<a target="_blank" href="https://github.com/alibaba/fastjson">Fastjson</a>、
|
||||||
|
<a target="_blank" href="https://alibaba-easyexcel.github.io">Easy Excel</a>、
|
||||||
|
<a target="_blank" href="https://swagger.io">Swagger</a>、
|
||||||
|
<a target="_blank" href="https://dubbo.io">Dubbo</a>、
|
||||||
|
<a target="_blank" href="http://www.eclipse.org/jgit">JGit</a>、...
|
||||||
|
</div>
|
||||||
|
<el-divider content-position="left">前端</el-divider>
|
||||||
|
<div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-tab-pane>
|
||||||
|
<!-- <el-tab-pane label="软件更新" v-if="upgradeInfo.lastVersion">-->
|
||||||
|
<el-tab-pane>
|
||||||
|
<span slot="label">
|
||||||
|
软件更新
|
||||||
|
<!-- <sup class="el-badge__content el-badge__content--undefined is-fixed" style="top: 10px;">new</sup>-->
|
||||||
|
<sup class="el-badge__content el-badge__content--undefined is-fixed is-dot" style="top: 10px;right: 20px;"></sup>
|
||||||
|
</span>
|
||||||
|
<div style="line-height: 30px;">
|
||||||
|
<div>当前版本:{{upgradeInfo.nowVersion}}</div>
|
||||||
|
<div>最新版本:{{upgradeInfo.lastVersion}}</div>
|
||||||
|
<div>升级地址:<a target="_blank" :href="upgradeInfo.upgradeUrl">{{upgradeInfo.upgradeUrl}}</a></div>
|
||||||
|
<div>升级内容:{{upgradeInfo.upgradeContent}}</div>
|
||||||
|
</div>
|
||||||
|
</el-tab-pane>
|
||||||
|
</el-tabs>
|
||||||
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -322,4 +362,6 @@
|
|||||||
.el-tree-node__content{}
|
.el-tree-node__content{}
|
||||||
.el-tree-node__content .el-icon-more{margin-left: 5px;color: #606266;font-size: 12px; display: none;padding: 2px 5px;}
|
.el-tree-node__content .el-icon-more{margin-left: 5px;color: #606266;font-size: 12px; display: none;padding: 2px 5px;}
|
||||||
.el-tree-node__content:hover .el-icon-more{display: inline-block;}
|
.el-tree-node__content:hover .el-icon-more{display: inline-block;}
|
||||||
|
|
||||||
|
.about-zyplayer-doc .el-dialog__body{padding: 20px;}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user