[docs]support en webapp

This commit is contained in:
tomsun28
2022-04-10 19:15:42 +08:00
parent 69af6d2a12
commit a7658624ab
8 changed files with 115 additions and 129 deletions

View File

@@ -4,7 +4,7 @@ category: custom
app: example app: example
name: name:
zh-CN: 模拟应用类型 zh-CN: 模拟应用类型
en-US: EXAMPLE APP en-US: EXAMPLE
# 参数映射map. type是参数类型: 0-number数字, 1-string明文字符串, 2-secret加密字符串, 3-map映射的json串 # 参数映射map. type是参数类型: 0-number数字, 1-string明文字符串, 2-secret加密字符串, 3-map映射的json串
# 强制固定必须参数 - host # 强制固定必须参数 - host
configmap: configmap:

View File

@@ -2,7 +2,7 @@ category: service
app: fullsite app: fullsite
name: name:
zh-CN: 全站监控 zh-CN: 全站监控
en-US: FULL WEBSITE MONITOR en-US: SITE MAP
configmap: configmap:
- key: host - key: host
type: 1 type: 1

View File

@@ -2,7 +2,7 @@ category: service
app: website app: website
name: name:
zh-CN: 网站监测 zh-CN: 网站监测
en-US: WEBSITE MONITOR en-US: WEBSITE
configmap: configmap:
- key: host - key: host
type: 1 type: 1

View File

@@ -6,15 +6,15 @@
<img class="logo" src="./assets/logo.svg" alt="" /> <img class="logo" src="./assets/logo.svg" alt="" />
<span class="title">HertzBeat</span> <span class="title">HertzBeat</span>
</div> </div>
<div class="desc">TanCloud-易用友好的高性能监控云服务</div> <div class="desc">{{ 'app.passport.desc' | i18n }}</div>
</div> </div>
<router-outlet></router-outlet> <router-outlet></router-outlet>
<global-footer [links]="links"> <global-footer [links]="links">
Copyright Copyright
<i nz-icon nzType="copyright" nzTheme="outline"></i> <i nz-icon nzType="copyright" nzTheme="outline"></i>
2022 2022
<a href="https://tancloud.cn" target="_blank">探云 tancloud.cn | </a> <a href="https://tancloud.cn" target="_blank">TanCloud tancloud.cn | </a>
<a href="https://hertzbeat.com" target="_blank">赫兹跳动 hertzbeat.com</a> <a href="https://hertzbeat.com" target="_blank">HertzBeat hertzbeat.com</a>
</global-footer> </global-footer>
</div> </div>
</div> </div>

View File

@@ -1,5 +1,7 @@
import { Component, Inject, OnInit } from '@angular/core'; import { Component, Inject, OnInit } from '@angular/core';
import { I18NService } from '@core';
import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth'; import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth';
import { ALAIN_I18N_TOKEN } from '@delon/theme';
@Component({ @Component({
selector: 'layout-passport', selector: 'layout-passport',
@@ -9,12 +11,12 @@ import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth';
export class LayoutPassportComponent implements OnInit { export class LayoutPassportComponent implements OnInit {
links = [ links = [
{ {
title: '欢迎使用TanCloud探云-监控云服务-tancloud.cn', title: this.i18nSvc.fanyi('app.passport.welcome'),
href: 'https://tancloud.cn' href: 'https://tancloud.cn'
} }
]; ];
constructor(@Inject(DA_SERVICE_TOKEN) private tokenService: ITokenService) {} constructor(@Inject(DA_SERVICE_TOKEN) private tokenService: ITokenService, @Inject(ALAIN_I18N_TOKEN) private i18nSvc: I18NService) {}
ngOnInit(): void { ngOnInit(): void {
this.tokenService.clear(); this.tokenService.clear();

View File

@@ -10,16 +10,19 @@
</div> </div>
<div nz-col nzSpan="14" class="p-md text-white"> <div nz-col nzSpan="14" class="p-md text-white">
<nz-tag class="mb-xs"> <nz-tag class="mb-xs">
<span>正常 </span><span style="font-weight: bolder">{{ appCountService.availableSize }}</span> <span>{{ 'dashboard.status.available' | i18n }} </span
><span style="font-weight: bolder">{{ appCountService.availableSize }}</span>
</nz-tag> </nz-tag>
<nz-tag class="mb-xs"> <nz-tag class="mb-xs">
<span>不可用 </span><span style="font-weight: bolder">{{ appCountService.unAvailableSize }}</span> <span>{{ 'dashboard.status.unavailable' | i18n }} </span
><span style="font-weight: bolder">{{ appCountService.unAvailableSize }}</span>
</nz-tag> </nz-tag>
<nz-tag class="mb-xs"> <nz-tag class="mb-xs">
<span>不可达 </span><span style="font-weight: bolder">{{ appCountService.unReachableSize }}</span> <span>{{ 'dashboard.status.unreachable' | i18n }} </span
><span style="font-weight: bolder">{{ appCountService.unReachableSize }}</span>
</nz-tag> </nz-tag>
<nz-tag class="mb-xs"> <nz-tag class="mb-xs">
<span>未监控 </span><span style="font-weight: bolder">{{ appCountService.unManageSize }}</span> <span>{{ 'dashboard.status.un-manage' | i18n }} </span><span style="font-weight: bolder">{{ appCountService.unManageSize }}</span>
</nz-tag> </nz-tag>
</div> </div>
</div> </div>

View File

@@ -1,122 +1,97 @@
{ {
"menu.search.placeholder": "Search for people, file, photos...", "menu": {
"menu.fullscreen": "Fullscreen", "main": "Main",
"menu.fullscreen.exit": "Exit Fullscreen", "lang": "Language",
"menu.clear.local.storage": "Clear Local Storage", "dashboard": "Dashboard",
"menu.lang": "Language", "search.placeholder": "SearchMonitor Name、IP",
"menu.main": "Main Navigation", "fullscreen": "Full Screen",
"menu.dashboard": "Dashboard", "fullscreen.exit": "Exit",
"menu.dashboard.v1": "Default", "clear.local.storage": "Clear Local Storage",
"menu.dashboard.analysis": "Analysis", "monitor": {
"menu.dashboard.monitor": "Monitor", "": "Monitor",
"menu.dashboard.workplace": "Workplace", "service": "Service Monitor",
"menu.shortcut": "Shortcut", "db": "DB Monitor",
"menu.widgets": "Widgets", "os": "OS Monitor",
"menu.alain": "Alain", "mid": "Mid Monitor",
"menu.style": "Style", "custom": "Custom Monitor"
"menu.style.typography": "Typography", },
"menu.style.gridmasonry": "Grid Masonry", "account": {
"menu.style.colors": "Colors", "": "Personal",
"menu.delon": "Delon Lib", "center": "Personal Center",
"menu.delon.form": "Dynamic Form", "settings": "Account Setting",
"menu.delon.table": "Simple table", "security": "Security Setting",
"menu.delon.util": "Util", "binding": "Account Binding",
"menu.delon.print": "Print", "trigger": "Trigger Error",
"menu.delon.guard": "Route Guard", "logout": "Logout"
"menu.delon.cache": "Cache", },
"menu.delon.qr": "QR", "alert": {
"menu.delon.acl": "ACL", "": "Alert",
"menu.delon.downfile": "Download File", "center": "Alert Center",
"menu.delon.xlsx": "Excel", "setting": "Alert Setting",
"menu.delon.zip": "Zip", "dispatch": "Alert Notify"
"menu.pro": "Antd Pro", },
"menu.form": "Form", "extras": {
"menu.form.basicform": "Basic Form", "": "More",
"menu.form.stepform": "Step Form", "help": "Help Center",
"menu.form.stepform.info": "Step Form(write transfer information)", "setting": "Setting"
"menu.form.stepform.confirm": "Step Form(confirm transfer information)", },
"menu.form.stepform.result": "Step Form(finished)", "more": "More"
"menu.form.advancedform": "Advanced Form", },
"menu.list": "List", "monitor": {
"menu.list.searchtable": "Search Table", "": "Monitor",
"menu.list.basiclist": "Basic List", "category": {
"menu.list.cardlist": "Card List", "": "Category",
"menu.list.searchlist": "Search List", "service": "Service",
"menu.list.searchlist.articles": "Search List(articles)", "db": "Database",
"menu.list.searchlist.projects": "Search List(projects)", "os": "OS",
"menu.list.searchlist.applications": "Search List(applications)", "mid": "Middleware",
"menu.profile": "Profile", "custom": "Custom"
"menu.profile.basic": "Basic Profile", },
"menu.profile.advanced": "Advanced Profile", "app": {
"menu.result": "Result", "": "Monitor Type",
"menu.result.success": "Success", "website": "Website Monitor",
"menu.result.fail": "Fail", "api": "HTTP API",
"menu.exception": "Exception", "http": "HTTP API",
"menu.exception.not-permission": "403", "ping": "PING Connect",
"menu.exception.not-find": "404", "port": "Port Available",
"menu.exception.server-error": "500", "mysql": "Mysql",
"menu.account": "Account", "oracle": "Oracle",
"menu.account.center": "Account Center", "redis": "Redis",
"menu.account.settings": "Account Settings", "fullsite": "SiteMap Monitor"
"menu.account.trigger": "Trigger Error", }
"menu.account.logout": "Logout", },
"menu.more": "More", "alert": {
"menu.report": "Report", "": "Alert",
"menu.report.relation": "Relation Map", "status": {
"menu.extras": "Extra", "": "Alert Status",
"menu.extras.helpcenter": "Help Center", "0": "Pending",
"menu.extras.settings": "Settings", "2": "Restored",
"menu.extras.poi": "Poi", "3": "Processed"
"app.analysis.test": "Gongzhuan No.{{no}} shop", },
"app.analysis.introduce": "Introduce", "priority": {
"app.analysis.total-sales": "Total Sales", "": "Alarm Level",
"app.analysis.day-sales": "Day Sales", "0": "Emergency Alert",
"app.analysis.visits": "Visits", "1": "Serious Alert",
"app.analysis.visits-trend": "Visits Trend", "2": "Warning Alert"
"app.analysis.visits-ranking": "Visits Ranking", }
"app.analysis.day-visits": "Day Visits", },
"app.analysis.week": "Week Ratio", "dashboard.status.available": "Available",
"app.analysis.day": "Day Ratio", "dashboard.status.unavailable": "Unavailable",
"app.analysis.payments": "Payments", "dashboard.status.unreachable": "Unreachable",
"app.analysis.conversion-rate": "Conversion Rate", "dashboard.status.un-manage": "UnManaged",
"app.analysis.operational-effect": "Operational Effect", "app.login.message-need-identifier": "Please enter your email or mobile number",
"app.analysis.sales-trend": "Stores Sales Trend", "app.login.message-need-credential": "Please enter password",
"app.analysis.sales-ranking": "Sales Ranking", "app.password.forgot": "Forgot password",
"app.analysis.all-year": "All Year", "app.password.reset": "Reset password",
"app.analysis.all-month": "All Month", "app.register-result.login": "Login",
"app.analysis.all-week": "All Week", "validation.email.invalid": "Invalid email",
"app.analysis.all-today": "All day", "validation.phone.invalid": "Invalid phone number",
"app.analysis.search-users": "Search Users", "validation.verification-code.invalid": "Invalid verification code, should be 6 digits",
"app.analysis.per-capita-search": "Per Capita Search", "validation.required": "Please fill in the required fields! ",
"app.analysis.online-top-search": "Online Top Search",
"app.analysis.the-proportion-of-sales": "The Proportion Of Sales",
"app.analysis.channel.all": "ALL",
"app.analysis.channel.online": "Online",
"app.analysis.channel.stores": "Stores",
"app.analysis.sales": "Sales",
"app.analysis.traffic": "Traffic",
"app.analysis.table.rank": "Rank",
"app.analysis.table.search-keyword": "Keyword",
"app.analysis.table.users": "Users",
"app.analysis.table.weekly-range": "Weekly Range",
"app.monitor.trading-activity": "Real-Time Trading Activity",
"app.monitor.total-transactions": "Total transactions today",
"app.monitor.sales-target": "Sales target completion rate",
"app.monitor.remaining-time": "Remaining time of activity",
"app.monitor.total-transactions-per-second": "Total transactions per second",
"app.monitor.activity-forecast": "Activity forecast",
"app.monitor.efficiency": "Efficiency",
"app.monitor.ratio": "Ratio",
"app.monitor.proportion-per-category": "Proportion Per Category",
"app.monitor.fast-food": "Fast food",
"app.monitor.western-food": "Western food",
"app.monitor.hot-pot": "Hot pot",
"app.monitor.waiting-for-implementation": "Waiting for implementation",
"app.monitor.popular-searches": "Popular Searches",
"app.monitor.resource-surplus": "Resource Surplus",
"app.monitor.fund-surplus": "Fund Surplus",
"app.lock": "Lock", "app.lock": "Lock",
"app.login.message-invalid-credentials": "Invalid username or passwordadmin/ant.design", "app.passport.desc": "TanCloud-Friendly High Performance Monitoring Cloud Service",
"app.passport.welcome": "Welcome To Use TanCloud-Monitoring Cloud Service-tancloud.cn",
"app.login.message-invalid-credentials": "Invalid username or password",
"app.login.message-invalid-verification-code": "Invalid verification code", "app.login.message-invalid-verification-code": "Invalid verification code",
"app.login.tab-login-credentials": "Credentials", "app.login.tab-login-credentials": "Credentials",
"app.login.tab-login-mobile": "Mobile number", "app.login.tab-login-mobile": "Mobile number",

View File

@@ -75,7 +75,13 @@
"2": "警告告警" "2": "警告告警"
} }
}, },
"dashboard.status.available": "正常",
"dashboard.status.unavailable": "不可用",
"dashboard.status.unreachable": "不可达",
"dashboard.status.un-manage": "未管理",
"app.lock": "锁屏", "app.lock": "锁屏",
"app.passport.desc": "TanCloud-易用友好的高性能监控云服务",
"app.passport.welcome": "欢迎使用TanCloud探云-监控云服务-tancloud.cn",
"app.login.message-need-identifier": "请输入邮箱或手机号", "app.login.message-need-identifier": "请输入邮箱或手机号",
"app.login.message-need-credential": "请输入密码", "app.login.message-need-credential": "请输入密码",
"app.login.message-invalid-credentials": "账户或密码错误", "app.login.message-invalid-credentials": "账户或密码错误",