mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-23 05:08:13 -05:00
d9097540c3
* server-status主题优化 1.前台增加半透明样式切换按钮,同时适配了深色和浅色模式 2.右小角功能区增加收纳,点击展开,滚动页面关闭 3.vps世界分布地图全屏展示 4.修改默认页底版权信息位置,从跟随container box修改为默认置于页面底部,container box到底底部后再跟随 5.修改container box默认宽度和最大宽度,适配高分辨率显示器 6.优化样式文件结构,删除无用的样式文件 7.一些小优化 * 修改默认背景图 * 修改背景图片 * 1.echart图表适配半透明样式切换 2.echart图表移动端设置更细折线 3.修改半透明样式下的默认背景图 * echart Y轴移动端更细刻度线 * fixbug * 修改半透明样式默认背景图片为本地调用
70 lines
3.8 KiB
HTML
Vendored
70 lines
3.8 KiB
HTML
Vendored
{{define "theme-server-status/menu"}}
|
|
<header role="navigation" class="navbar navbar-inverse navbar-fixed-top">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header">
|
|
<button data-target=".navbar-collapse" data-toggle="collapse" class="navbar-toggle" type="button">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a href="/" class="navbar-brand">
|
|
<img src="/static/logo.svg" style="height: 2rem;display: inline-block;">
|
|
{{.Conf.Site.Brand}}
|
|
</a>
|
|
</div>
|
|
<nav id="navbar" class="navbar-collapse collapse">
|
|
<ul class="nav navbar-nav">
|
|
<li><a href="/"><i class="home icon"></i>{{tr "Home" }}</a></li>
|
|
<template v-if="isMobile">
|
|
<li class="dropdown">
|
|
<a data-toggle="dropdown"><i class="bi bi-gear-wide-connected" style="position:relative;top:1px;margin-right:3px;font-size:1.1rem;"></i>{{tr "Feature" }}<b class="caret"></b></a>
|
|
<ul class="dropdown-menu" style="min-width:100px;">
|
|
<li><a href="/service"><i class="rss icon"></i>{{tr "Services" }}</a></li>
|
|
<li><a href="/network"><i class="bi bi-hdd-network icon"></i>{{tr "NetworkSpiter"}}</a></li>
|
|
</ul>
|
|
</li>
|
|
</template>
|
|
<template v-else>
|
|
<li><a href="/service"><i class="rss icon"></i>{{tr "Services" }}</a></li>
|
|
<li><a href="/network"><i class="bi bi-hdd-network icon"></i>{{tr "NetworkSpiter"}}</a></li>
|
|
</template>
|
|
{{ if not .Conf.DisableSwitchTemplateInFrontend }}
|
|
<li class="dropdown">
|
|
<a data-toggle="dropdown"><i class="bi bi-incognito" style="position:relative;top:1px;margin-right:3px;font-size:1.2rem;vertical-align:top;"></i>{{tr "Template" }}<b class="caret"></b></a>
|
|
<ul class="dropdown-menu">
|
|
<li v-for="(item, index) in adaptedTemplates" :key="index">
|
|
<a @click="toggleTemplate(item.key)">
|
|
<i :class="item.icon + ' icon'" style="font-size:1em"></i>@#item.name#@
|
|
<i class="check icon" v-if="preferredTemplate === item.key"></i>
|
|
</a>
|
|
</li>
|
|
<li v-if="defaultTemplate === 'custom'">
|
|
<a @click="toggleTemplate('custom')" class="item">
|
|
<i class="expand icon" style="font-size:1em"></i>Custom
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
<ul class="nav navbar-nav navbar-right">
|
|
{{if .Admin}}
|
|
<li class="dropdown">
|
|
<a data-toggle="dropdown"><i class="user icon"></i>{{.Admin.Name}}<b class="caret"></b></a>
|
|
<ul class="dropdown-menu" style="margin-bottom:20px;">
|
|
<li><a href="/server"><i class="terminal icon"></i>{{tr "AdminPanel" }}</a></li>
|
|
<li><a @click="logOut({{.Admin.ID}})"><i class="logout icon"></i>{{tr "Logout"}}</a></li>
|
|
</ul>
|
|
</li>
|
|
{{else}}
|
|
<li><a href="/login"><i class="sign-in icon"></i>{{tr "Login" }}</a></li>
|
|
{{end}}
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
<div class="nezha">
|
|
{{end}}
|
|
|