Skip to content

Commit

Permalink
[hertzbeat] release hertzbeat version v1.2.2 (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsun28 authored Nov 27, 2022
1 parent 456b8a6 commit 534f897
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion script/assembly/server/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd
http://maven.apache.org/ASSEMBLY/2.0.0 ">
<!--必填,会追加到打包文件名称的末尾-->
<id>1.2.1</id>
<id>1.2.2</id>
<!--打包类型,可以设置多种类型,打包的时候不同的类型都会打包打出来-->
<formats>
<format>tar</format>
Expand Down
2 changes: 1 addition & 1 deletion script/docker/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM openjdk:11.0.16-jre-slim-buster

MAINTAINER tancloud "tomsun28@outlook.com"

ADD hertzbeat-1.2.1.tar /opt/
ADD hertzbeat-1.2.2.tar /opt/

ENV TZ=Asia/Shanghai
#ENV LANG=zh_CN.UTF-8
Expand Down
13 changes: 10 additions & 3 deletions web-app/src/app/core/guard/detect-auth-guard.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { Injectable } from '@angular/core';
import { Inject, Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
import { I18NService } from '@core';
import { ALAIN_I18N_TOKEN } from '@delon/theme';
import { NzNotificationService } from 'ng-zorro-antd/notification';
import { Observable } from 'rxjs';

Expand All @@ -9,7 +11,12 @@ import { LocalStorageService } from '../../service/local-storage.service';
providedIn: 'root'
})
export class DetectAuthGuard implements CanActivate {
constructor(private localStorageSvc: LocalStorageService, private notifySvc: NzNotificationService, private router: Router) {}
constructor(
private localStorageSvc: LocalStorageService,
private notifySvc: NzNotificationService,
@Inject(ALAIN_I18N_TOKEN) private i18nSvc: I18NService,
private router: Router
) {}

canActivate(
route: ActivatedRouteSnapshot,
Expand All @@ -18,7 +25,7 @@ export class DetectAuthGuard implements CanActivate {
let activate = this.localStorageSvc.hasAuthorizationToken();
if (!activate) {
setTimeout(() => {
this.notifySvc.warning('请先登录!', '');
this.notifySvc.warning(this.i18nSvc.fanyi('app.login.notify'), '');
this.router.navigateByUrl('/passport/login');
});
}
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/app/shared/consts.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const CONSTS = {
VERSION: 'v1.2.1'
VERSION: 'v1.2.2'
};
1 change: 1 addition & 0 deletions web-app/src/assets/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@
"app.login.tab-login-credentials": "Credentials",
"app.login.remember-me": "Remember me",
"app.login.login": "Login",
"app.login.notify": "Please Login!",
"tag.new": "New Tag",
"tag.edit": "Edit Tag",
"tag.search": "Search Tag",
Expand Down
1 change: 1 addition & 0 deletions web-app/src/assets/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@
"app.login.tab-login-credentials": "账户密码登录",
"app.login.remember-me": "自动登录",
"app.login.login": "登录",
"app.login.notify": "请先登录!",
"tag.new": "新增标签",
"tag.edit": "编辑标签",
"tag.search": "搜索标签",
Expand Down
1 change: 1 addition & 0 deletions web-app/src/assets/i18n/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@
"app.login.tab-login-credentials": "賬戶密碼登錄",
"app.login.remember-me": "自動登錄",
"app.login.login": "登錄",
"app.login.notify": "请先登錄!",
"tag.new": "新增標簽",
"tag.edit": "編輯標簽",
"tag.search": "搜索標簽",
Expand Down

0 comments on commit 534f897

Please sign in to comment.