forked from dapr/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some details about dashboard in "info" popup
- Loading branch information
Showing
7 changed files
with
79 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
<h1 mat-dialog-title>About</h1> | ||
<div mat-dialog-content> | ||
Version: <strong>{{ data.version }}</strong> | ||
</div> | ||
<mat-dialog-content #info> | ||
<p> | ||
Dapr version: <strong>{{ data.version }}</strong> | ||
</p> | ||
|
||
<p> | ||
Dapr Dashboard: <strong>{{ version.version }}</strong> (<i>{{ version.hash }}</i>) | ||
</p> | ||
|
||
</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 info</button> | ||
</mat-dialog-actions> |
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