Skip to content

Commit

Permalink
feat: support user-WaterMark
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang committed Nov 3, 2023
1 parent 8a55b21 commit f6af42f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cosky-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"echarts": "^5.4.2",
"file-saver": "^2.0.5",
"monaco-editor": "^0.34.1",
"ng-zorro-antd": "^15.0.3",
"ng-zorro-antd": "^15.1.1",
"ngx-monaco-editor-v2": "^15.0.1",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
Expand Down
2 changes: 2 additions & 0 deletions cosky-dashboard/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import {AuditLogComponent} from './components/audit-log/audit-log.component';
import {TopologyComponent} from './components/topology/topology.component';
import {MonacoEditorModule} from "ngx-monaco-editor-v2";
import {NgZorroAntdModule} from "./ng-zorro-antd.module";
import {NzWaterMarkModule} from "ng-zorro-antd/water-mark";

registerLocaleData(zh);

Expand Down Expand Up @@ -88,6 +89,7 @@ export const httpInterceptorProviders = [
BrowserAnimationsModule,
IconsProviderModule,
NgZorroAntdModule,
NzWaterMarkModule,
MonacoEditorModule,
MonacoEditorModule.forRoot()
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,24 @@ <h1>{{title}}</h1>
<li nz-menu-item (click)="openChangePwd()">Change Password</li>
<li nz-menu-divider></li>
<li nz-menu-item nzDanger (click)="signOut()">
<i nz-icon nzType="logout" nzTheme="outline"></i>Sign out</li>
<i nz-icon nzType="logout" nzTheme="outline"></i>Sign out
</li>
</ul>
</nz-dropdown-menu>
</div>
</div>
</nz-header>
<nz-content>
<div class="inner-content">
<router-outlet></router-outlet>
</div>
<nz-water-mark nzContent="{{currentUser.sub}}">
<div class="inner-content">
<router-outlet></router-outlet>
</div>
</nz-water-mark>
</nz-content>
<nz-footer>
<a href="https://github.com/Ahoo-Wang/CoSky" target="_blank" title="High-performance, low-cost microservice governance platform. Service Discovery and Configuration Service.">CoSky</a> © 2021-present
<a href="https://github.com/Ahoo-Wang/CoSky" target="_blank"
title="High-performance, low-cost microservice governance platform. Service Discovery and Configuration Service.">CoSky</a>
© 2021-present
</nz-footer>
</nz-layout>
</nz-layout>
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# limitations under the License.
#
group=me.ahoo.cosky
version=4.1.0
version=4.1.1
description=High-performance, low-cost microservice governance platform. Service Discovery and Configuration Service.
website=https://github.com/Ahoo-Wang/cosky
issues=https://github.com/Ahoo-Wang/cosky/issues
Expand Down

0 comments on commit f6af42f

Please sign in to comment.