forked from microsoft/SandDance
-
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.
* add powerbi log * trigger onSetupOptionsChanged from Renderer * cleanup logging * fix for edit / view modes * do not re-persist * rename to LogView * tidy log presentation * rename * rename var * version patch * minor version * minor version
- Loading branch information
1 parent
d76e850
commit e1675d2
Showing
10 changed files
with
135 additions
and
76 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
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,57 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
import * as React from 'react'; | ||
import { controls } from '@msrvida/sanddance-explorer'; | ||
import { language } from './language'; | ||
import { DefaultButton } from '@fluentui/react'; | ||
|
||
export interface Props { | ||
log: string[]; | ||
clearLog: () => void; | ||
} | ||
|
||
export interface State { | ||
showDialog: boolean; | ||
} | ||
|
||
export class LogView extends React.Component<Props, State> { | ||
|
||
constructor(props: Props) { | ||
super(props); | ||
this.state = { | ||
showDialog: false, | ||
}; | ||
} | ||
|
||
render() { | ||
const { props, state } = this; | ||
return ( | ||
<span> | ||
<a | ||
href='#' | ||
onClick={e => { | ||
e.preventDefault(); | ||
this.setState({ showDialog: true }); | ||
}} | ||
>{language.diagnosticsLog}</a> | ||
<controls.Dialog | ||
title={language.diagnosticsLog} | ||
buttons={[ | ||
<DefaultButton | ||
key='clear' | ||
iconProps={{ iconName: 'Clear' }} | ||
text={language.buttonClear} | ||
onClick={props.clearLog} | ||
/> | ||
]} | ||
hidden={!state.showDialog} | ||
onDismiss={() => this.setState({ showDialog: false })} | ||
minWidth={'40em'} | ||
> | ||
<textarea cols={80} rows={10} value={props.log.map((s, i) => `${i}: ${s}`).join('\n\n')} /> | ||
</controls.Dialog> | ||
</span> | ||
); | ||
} | ||
} |
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,4 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
export const version: string = '4.0.0'; | ||
export const version: string = '4.1.0'; |
Oops, something went wrong.