mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
1. 更新启动脚本
2. 优化更新界面 3. 优化项目结构 4. 添加站点图标
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
<head>
|
||||
<title>{% block title %}PT一下,你就知道{% endblock %}</title>
|
||||
{% include 'admin/includes/css-part.html' %}
|
||||
<link rel="stylesheet" href="{% static 'favicon.ico' %}">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/base.css' %}?_=2.7">
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'admin/simpleui-x/css/base.css' %}?_=2.7">
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="renderer" content="webkit">
|
||||
<link rel="stylesheet" href="{% static 'favicon.ico' %}">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/>
|
||||
{% block title %}
|
||||
@@ -116,14 +117,14 @@
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
<!-- menu -->
|
||||
<transition name="el-zoom-in-center">
|
||||
<multiple-menu
|
||||
:menus="menus"
|
||||
:menu-active="menuActive"
|
||||
:fold="fold"
|
||||
></multiple-menu>
|
||||
</transition>
|
||||
<!-- menu -->
|
||||
<transition name="el-zoom-in-center">
|
||||
<multiple-menu
|
||||
:menus="menus"
|
||||
:menu-active="menuActive"
|
||||
:fold="fold"
|
||||
></multiple-menu>
|
||||
</transition>
|
||||
|
||||
</el-aside>
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<div slot="header" class="clearfix">
|
||||
<span>更新日志</span>
|
||||
<span style="float: right;margin-top: -10px">
|
||||
<el-button type="success" @click="do_update">拉取更新</el-button>
|
||||
<el-button type="success" @click="do_update">更新</el-button>
|
||||
<el-button type="danger" @click="do_restart">重启</el-button>
|
||||
</span>
|
||||
</div>
|
||||
@@ -21,9 +21,6 @@
|
||||
{# {{ update_notes|safe }}#}
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
|
||||
{# href='javascript:(confirm("确定重启?"))?location="/tasks/restart":location="/"'#}
|
||||
</div>
|
||||
|
||||
<script src="{% static 'admin/simpleui-x/js/vue.min.js' %}"></script>
|
||||
@@ -39,9 +36,6 @@
|
||||
data: {
|
||||
update_note: ['请先拉取更新哦']
|
||||
},
|
||||
created: function () {
|
||||
{#this.data.update_note = converter.makeHtml({{ update_notes }});#}
|
||||
},
|
||||
methods: {
|
||||
do_restart() {
|
||||
this.$confirm('此操作将重启容器,并更新软件, 是否继续?', '提示', {
|
||||
|
||||
Reference in New Issue
Block a user