-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[webapp] bugfix can not auto change i18n data (#946)
- Loading branch information
Showing
3 changed files
with
2 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,54 +82,7 @@ export class StartupService { | |
); | ||
} | ||
|
||
private viaMock(): Observable<void> { | ||
// const tokenData = this.tokenService.get(); | ||
// if (!tokenData.token) { | ||
// this.router.navigateByUrl(this.tokenService.login_url!); | ||
// return; | ||
// } | ||
// mock | ||
const app: any = { | ||
name: `HertzBeat`, | ||
description: `面向开发者,易用友好的高性能监控云服务` | ||
}; | ||
const user: any = { | ||
name: 'Admin', | ||
avatar: './assets/tmp/img/avatar.svg', | ||
email: '[email protected]', | ||
token: '123456789' | ||
}; | ||
// Application information: including site name, description, year | ||
this.settingService.setApp(app); | ||
// User information: including name, avatar, email address | ||
this.settingService.setUser(user); | ||
// ACL: Set the permissions to full, https://ng-alain.com/acl/getting-started | ||
this.aclService.setFull(true); | ||
// Menu data, https://ng-alain.com/theme/menu | ||
this.menuService.add([ | ||
{ | ||
text: 'Main', | ||
group: true, | ||
children: [ | ||
{ | ||
text: 'Dashboard', | ||
link: '/dashboard', | ||
icon: { type: 'icon', value: 'appstore' } | ||
} | ||
] | ||
} | ||
]); | ||
// Can be set page suffix title, https://ng-alain.com/theme/title | ||
this.titleService.suffix = app.name; | ||
|
||
return of(); | ||
} | ||
|
||
load(): Observable<void> { | ||
// http | ||
return this.loadConfigResourceViaHttp(); | ||
// mock: Don’t use it in a production environment. ViaMock is just to simulate some data to make the scaffolding work normally | ||
// mock:请勿在生产环境中这么使用,viaMock 单纯只是为了模拟一些数据使脚手架一开始能正常运行 | ||
// return this.viaMockI18n(); | ||
} | ||
} |