-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from l0ll098/master
Several improvements to the dashboard layout
- Loading branch information
Showing
23 changed files
with
311 additions
and
186 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const { gitDescribeSync } = require('git-describe'); | ||
const { version } = require('../package.json'); | ||
const { resolve, relative } = require('path'); | ||
const { writeFileSync } = require('fs-extra'); | ||
|
||
const gitInfo = gitDescribeSync({ | ||
dirtyMark: false, | ||
dirtySemver: false | ||
}); | ||
|
||
gitInfo.version = version; | ||
|
||
const file = resolve(__dirname, '..', 'src', 'environments', 'version.ts'); | ||
writeFileSync(file, | ||
`// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN! | ||
/* tslint:disable */ | ||
export const VERSION = ${JSON.stringify(gitInfo, null, 4)}; | ||
/* tslint:enable */ | ||
`, { encoding: 'utf-8' }); | ||
|
||
console.log(`Wrote version info ${gitInfo.raw} to ${relative(resolve(__dirname, '..'), file)}`); |
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
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
10 changes: 5 additions & 5 deletions
10
web/src/app/pages/dapr-components/dapr-component-detail/dapr-component-detail.module.ts
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
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 |
---|---|---|
@@ -1,4 +1,35 @@ | ||
<h1 mat-dialog-title>About</h1> | ||
<div mat-dialog-content> | ||
Version: <strong>{{ data.version }}</strong> | ||
</div> | ||
<mat-dialog-content #info> | ||
|
||
<table> | ||
<tr> | ||
<td> | ||
Dapr version | ||
</td> | ||
<td> | ||
: <strong>{{ data.version }}</strong> | ||
<button mat-icon-button aria-label="Copy" (click)="copyInfo(data.version)"> | ||
<mat-icon>content_copy</mat-icon> | ||
</button> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
Dapr Dashboard | ||
</td> | ||
<td> | ||
: <strong>{{ version.version }}</strong> (<i>{{ version.hash }}</i>) | ||
<button mat-icon-button aria-label="Copy" (click)="copyInfo(version.version + ' (' + version.hash + ')')"> | ||
<mat-icon>content_copy</mat-icon> | ||
</button> | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
</mat-dialog-content> | ||
|
||
<mat-dialog-actions align="end"> | ||
<button mat-button mat-dialog-close>Close</button> | ||
<button mat-button mat-dialog-close cdkFocusInitial (click)="copyInfo()">Copy all</button> | ||
</mat-dialog-actions> |
Oops, something went wrong.