mirror of
https://github.com/dromara/hertzbeat.git
synced 2026-09-17 09:40:58 +00:00
[hertzbeat] release hertzbeat version v1.2.2 (#466)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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,
|
||||
@@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export const CONSTS = {
|
||||
VERSION: 'v1.2.1'
|
||||
VERSION: 'v1.2.2'
|
||||
};
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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": "搜索标签",
|
||||
|
||||
@@ -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": "搜索標簽",
|
||||
|
||||
Reference in New Issue
Block a user