mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	调整界面
This commit is contained in:
		@@ -224,5 +224,8 @@ window.teaweb = {
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		});
 | 
			
		||||
	},
 | 
			
		||||
	reload: function () {
 | 
			
		||||
		window.location.reload()
 | 
			
		||||
	}
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
@@ -29,7 +29,7 @@
 | 
			
		||||
        <div class="right menu">
 | 
			
		||||
			<a href="" class="item" v-if="globalChangedClusters.length > 0" @click.prevent="syncClustersConfigs()"><i class="icon refresh"></i>{{globalChangedClusters.length}}个集群服务已变更,点此同步</a>
 | 
			
		||||
			<a href="/monitor/messages" class="item" v-if="teaBadge > 0"><span :class="{'blink':teaBadge > 0}"><i class="icon bell"></i>告警({{teaBadge}}) </span></a>
 | 
			
		||||
			<a href="/settings" class="item"  :class="{active: teaMenu == 'settings'}">
 | 
			
		||||
			<a href="/settings/profile" class="item"  :class="{active: teaMenu == 'settings'}">
 | 
			
		||||
				<i class="icon user" v-if="teaUserAvatar.length == 0"></i>
 | 
			
		||||
				<img class="avatar" alt="" :src="teaUserAvatar" v-if="teaUserAvatar.length > 0"/>
 | 
			
		||||
                {{teaUsername}}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +0,0 @@
 | 
			
		||||
<first-menu>
 | 
			
		||||
	<menu-item href="/api" code="index">节点列表</menu-item>
 | 
			
		||||
	<menu-item href="/api/node/create" code="create">创建节点</menu-item>
 | 
			
		||||
</first-menu>
 | 
			
		||||
@@ -1,9 +1,11 @@
 | 
			
		||||
{$layout}
 | 
			
		||||
{$template "menu"}
 | 
			
		||||
 | 
			
		||||
<first-menu>
 | 
			
		||||
	<a href="" class="item" @click.prevent="createNode()">[添加节点]</a>
 | 
			
		||||
</first-menu>
 | 
			
		||||
 | 
			
		||||
<p class="comment" v-if="nodes.length == 0">暂时还没有节点。</p>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<table class="ui table selectable" v-if="nodes.length > 0">
 | 
			
		||||
	<thead>
 | 
			
		||||
		<tr>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										13
									
								
								web/views/@default/api/index.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								web/views/@default/api/index.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
Tea.context(function () {
 | 
			
		||||
	this.createNode = function () {
 | 
			
		||||
		teaweb.popup("/api/node/createPopup", {
 | 
			
		||||
			width: "50em",
 | 
			
		||||
			height: "30em",
 | 
			
		||||
			callback: function () {
 | 
			
		||||
				teaweb.success("保存成功", function () {
 | 
			
		||||
					teaweb.reload()
 | 
			
		||||
				})
 | 
			
		||||
			}
 | 
			
		||||
		})
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
							
								
								
									
										5
									
								
								web/views/@default/api/node/@menu.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								web/views/@default/api/node/@menu.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
<first-menu>
 | 
			
		||||
	<menu-item href="/api" code="index">节点列表</menu-item>
 | 
			
		||||
	<span class="item">|</span>
 | 
			
		||||
	<menu-item :href="'/api/node/settings?nodeId=' + node.id" active="true">{{node.name}}</menu-item>
 | 
			
		||||
</first-menu>
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
{$layout}
 | 
			
		||||
{$template "../menu"}
 | 
			
		||||
<div class="margin"></div>
 | 
			
		||||
{$layout "layout_popup"}
 | 
			
		||||
 | 
			
		||||
<h3>添加API节点</h3>
 | 
			
		||||
<form class="ui form" data-tea-action="$" data-tea-success="success">
 | 
			
		||||
	<table class="ui table selectable definition">
 | 
			
		||||
		<tr>
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
Tea.context(function () {
 | 
			
		||||
	this.success = NotifySuccess("保存成功", "/api")
 | 
			
		||||
	this.success = NotifyPopup
 | 
			
		||||
 | 
			
		||||
	this.hasHTTPS = false
 | 
			
		||||
	this.changeListens = function (addrs) {
 | 
			
		||||
@@ -2,6 +2,8 @@
 | 
			
		||||
{$template "/left_menu"}
 | 
			
		||||
 | 
			
		||||
<div class="right-box">
 | 
			
		||||
	{$template "menu"}
 | 
			
		||||
 | 
			
		||||
	<form class="ui form" data-tea-action="$" data-tea-success="success">
 | 
			
		||||
		<input type="hidden" name="nodeId" :value="node.id"/>
 | 
			
		||||
		<input type="hidden" name="sslPolicyId" :value="node.sslPolicyId"/>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								web/views/@default/settings/backup/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								web/views/@default/settings/backup/index.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
{$layout}
 | 
			
		||||
 | 
			
		||||
<p class="comment">此功能暂未开放,敬请期待。</p>
 | 
			
		||||
							
								
								
									
										3
									
								
								web/views/@default/settings/login/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								web/views/@default/settings/login/index.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
{$layout}
 | 
			
		||||
 | 
			
		||||
<p class="comment">此功能暂未开放,敬请期待。</p>
 | 
			
		||||
							
								
								
									
										3
									
								
								web/views/@default/settings/profile/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								web/views/@default/settings/profile/index.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
{$layout}
 | 
			
		||||
 | 
			
		||||
<p class="comment">此功能暂未开放,敬请期待。</p>
 | 
			
		||||
							
								
								
									
										3
									
								
								web/views/@default/settings/security/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								web/views/@default/settings/security/index.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
{$layout}
 | 
			
		||||
 | 
			
		||||
<p class="comment">此功能暂未开放,敬请期待。</p>
 | 
			
		||||
							
								
								
									
										3
									
								
								web/views/@default/settings/upgrade/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								web/views/@default/settings/upgrade/index.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
{$layout}
 | 
			
		||||
 | 
			
		||||
<p class="comment">此功能暂未开放,敬请期待。</p>
 | 
			
		||||
		Reference in New Issue
	
	Block a user