mirror of
https://github.com/cuigh/swirl
synced 2024-12-28 14:51:57 +00:00
Rename dashboard to home
This commit is contained in:
parent
d16f9605d5
commit
326c8084fd
@ -20,9 +20,9 @@
|
||||
|
||||
## Snapshots
|
||||
|
||||
### Dashboard
|
||||
### Home
|
||||
|
||||
![Dashboard](docs/images/dashboard.png)
|
||||
![Home](docs/images/home.png)
|
||||
|
||||
### Service list
|
||||
|
||||
|
@ -47,7 +47,7 @@ field.role: Roles
|
||||
field.user: Users
|
||||
|
||||
# menu
|
||||
menu.dashboard: Dashboard
|
||||
menu.home: Home
|
||||
menu.local: Local
|
||||
menu.image: Images
|
||||
menu.container: Containers
|
||||
@ -85,12 +85,12 @@ login.name: Login Name
|
||||
login.password: Password
|
||||
login.forgot-password: Forgot password?
|
||||
|
||||
# dashboard
|
||||
dashboard.node: Nodes
|
||||
dashboard.network: Networks
|
||||
dashboard.service: Services
|
||||
dashboard.stack: Stacks
|
||||
dashboard.feature: Features
|
||||
# home
|
||||
home.node: Nodes
|
||||
home.network: Networks
|
||||
home.service: Services
|
||||
home.stack: Stacks
|
||||
home.feature: Features
|
||||
|
||||
# image pages
|
||||
image.title: Image
|
||||
|
@ -47,7 +47,7 @@ field.role: 角色
|
||||
field.user: 用户
|
||||
|
||||
# menu
|
||||
menu.dashboard: 仪表盘
|
||||
menu.home: 首页
|
||||
menu.local: 单机
|
||||
menu.image: 镜像
|
||||
menu.container: 容器
|
||||
@ -85,12 +85,12 @@ login.name: 登录名
|
||||
login.password: 密码
|
||||
login.forgot-password: 忘记密码?
|
||||
|
||||
# dashboard
|
||||
dashboard.node: 节点
|
||||
dashboard.network: 网络
|
||||
dashboard.service: 服务
|
||||
dashboard.stack: 编排
|
||||
dashboard.feature: 功能
|
||||
# home
|
||||
home.node: 节点
|
||||
home.network: 网络
|
||||
home.service: 服务
|
||||
home.stack: 编排
|
||||
home.feature: 功能
|
||||
|
||||
# image pages
|
||||
image.title: 镜像
|
||||
|
Before Width: | Height: | Size: 177 KiB After Width: | Height: | Size: 177 KiB |
@ -26,7 +26,7 @@
|
||||
</div>
|
||||
<div id="menu-top" class="navbar-menu">
|
||||
<div class="navbar-start">
|
||||
<a class="navbar-item" href="/">{{ i18n("menu.dashboard") }}</a>
|
||||
<a class="navbar-item" href="/">{{ i18n("menu.home") }}</a>
|
||||
<div class="navbar-item has-dropdown is-hoverable">
|
||||
<div class="navbar-link">{{ i18n("menu.local") }}</div>
|
||||
<div class="navbar-dropdown ">
|
||||
|
@ -18,7 +18,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/config/">{{ i18n("menu.config") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.edit") }}</a></li>
|
||||
</ul>
|
||||
|
@ -14,7 +14,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/container/">{{ i18n("menu.container") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.detail") }}</a></li>
|
||||
</ul>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/container/">{{ i18n("menu.container") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.log") }}</a></li>
|
||||
</ul>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/container/">{{ i18n("menu.container") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.raw") }}</a></li>
|
||||
</ul>
|
||||
|
@ -14,7 +14,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/image/">{{ i18n("menu.image") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.detail") }}</a></li>
|
||||
</ul>
|
||||
|
@ -22,7 +22,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/image/">{{ i18n("menu.image") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.raw") }}</a></li>
|
||||
</ul>
|
||||
|
@ -58,13 +58,13 @@
|
||||
WARNING: Swirl is running on basic mode now, some features are disabled. You can enable full features by configuring database.
|
||||
</div>
|
||||
<div class="columns">
|
||||
{{yield infobox(style="success", icon="cubes", text=i18n("dashboard.node"), url="/node/", count=.NodeCount)}}
|
||||
{{yield infobox(style="info", icon="globe", text=i18n("dashboard.network"), url="/network/", count=.NetworkCount)}}
|
||||
{{yield infobox(style="danger", icon="ticket-alt", text=i18n("dashboard.service"), url="/service/", count=.ServiceCount)}}
|
||||
{{yield infobox(style="primary", icon="server", text=i18n("dashboard.stack"), url="/stack/task/", count=.StackCount)}}
|
||||
{{yield infobox(style="success", icon="cubes", text=i18n("home.node"), url="/node/", count=.NodeCount)}}
|
||||
{{yield infobox(style="info", icon="globe", text=i18n("home.network"), url="/network/", count=.NetworkCount)}}
|
||||
{{yield infobox(style="danger", icon="ticket-alt", text=i18n("home.service"), url="/service/", count=.ServiceCount)}}
|
||||
{{yield infobox(style="primary", icon="server", text=i18n("home.stack"), url="/stack/task/", count=.StackCount)}}
|
||||
</div>
|
||||
<hr>
|
||||
<h3 class="title is-5">{{ i18n("dashboard.feature") }}</h3>
|
||||
<h3 class="title is-5">{{ i18n("home.feature") }}</h3>
|
||||
<div class="columns">
|
||||
<div class="column is-4">
|
||||
<div class="card is-fullwidth">
|
||||
|
@ -17,7 +17,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/network/">{{ i18n("menu.network") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.detail") }}</a></li>
|
||||
</ul>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/network/">{{ i18n("menu.network") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.raw") }}</a></li>
|
||||
</ul>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/node/">{{ i18n("menu.node") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.detail") }}</a></li>
|
||||
</ul>
|
||||
|
@ -18,7 +18,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/node/">{{ i18n("menu.node") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.edit") }}</a></li>
|
||||
</ul>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/node/">{{ i18n("menu.node") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.raw") }}</a></li>
|
||||
</ul>
|
||||
|
@ -18,7 +18,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/secret/">{{ i18n("menu.secret") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.edit") }}</a></li>
|
||||
</ul>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/service/">{{ i18n("menu.service") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.detail") }}</a></li>
|
||||
</ul>
|
||||
|
@ -9,7 +9,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/service/">{{ i18n("menu.service") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.edit") }}</a></li>
|
||||
</ul>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/service/">{{ i18n("menu.service") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.log") }}</a></li>
|
||||
</ul>
|
||||
|
@ -9,7 +9,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/service/">{{ i18n("menu.service") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.perm") }}</a></li>
|
||||
</ul>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/service/">{{ i18n("menu.service") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.raw") }}</a></li>
|
||||
</ul>
|
||||
|
@ -11,7 +11,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/service/">{{ i18n("menu.service") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.stats") }}</a></li>
|
||||
</ul>
|
||||
@ -75,16 +75,20 @@
|
||||
</div>
|
||||
</form>
|
||||
</nav>
|
||||
{{ range .Charts }}
|
||||
<div class="block">
|
||||
<div class="block-header">
|
||||
<p>{{ .Title }}</p>
|
||||
<div class="columns is-multiline">
|
||||
{{ range .Charts }}
|
||||
<div class="column is-12">
|
||||
<div class="block">
|
||||
<div class="block-header">
|
||||
<p>{{ .Title }}</p>
|
||||
</div>
|
||||
<div class="block-body is-bordered">
|
||||
<canvas id="canvas_{{ .Name }}"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="block-body is-bordered">
|
||||
<canvas id="canvas_{{ .Name }}"></canvas>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<div class="notification is-info">
|
||||
NOTICE: To enable this feature, you must set <b>Metrics</b> option on <a href="/system/setting/">Setting</a> page first.
|
||||
|
@ -9,7 +9,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/service/">{{ i18n("menu.service") }}</a></li>
|
||||
<li><a href="/service/template/">{{ i18n("menu.service.template") }}</a></li>
|
||||
<li class="is-active"><a>{{ .Action }}</a></li>
|
||||
|
@ -36,7 +36,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/stack/archive/">{{ i18n("menu.stack.archive") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.detail") }}</a></li>
|
||||
</ul>
|
||||
|
@ -38,7 +38,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/stack/archive/">{{ i18n("menu.stack.archive") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.edit") }}</a></li>
|
||||
</ul>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/system/role/">{{ i18n("menu.role") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.detail") }}</a></li>
|
||||
</ul>
|
||||
|
@ -9,7 +9,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/system/role/">{{ i18n("menu.role") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.edit") }}</a></li>
|
||||
</ul>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/system/user/">{{ i18n("menu.user") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.detail") }}</a></li>
|
||||
</ul>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/system/user/">{{ i18n("menu.user") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.edit") }}</a></li>
|
||||
</ul>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/task/">{{ i18n("menu.task") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.detail") }}</a></li>
|
||||
</ul>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/task/">{{ i18n("menu.task") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.log") }}</a></li>
|
||||
</ul>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/task/">{{ i18n("menu.task") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.raw") }}</a></li>
|
||||
</ul>
|
||||
|
@ -14,7 +14,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/volume/">{{ i18n("menu.volume") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.detail") }}</a></li>
|
||||
</ul>
|
||||
|
@ -22,7 +22,7 @@
|
||||
<div class="container">
|
||||
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="/">{{ i18n("menu.dashboard") }}</a></li>
|
||||
<li><a href="/">{{ i18n("menu.home") }}</a></li>
|
||||
<li><a href="/volume/">{{ i18n("menu.volume") }}</a></li>
|
||||
<li class="is-active"><a>{{ i18n("menu.raw") }}</a></li>
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user