added logger
This commit is contained in:
Родитель
3ed7f32ad3
Коммит
8e358d9ae4
|
@ -4,6 +4,7 @@
|
|||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
|
||||
{
|
||||
"name": "Debug Main Process",
|
||||
"type": "node",
|
||||
|
|
|
@ -10,8 +10,6 @@ let aboutWindow;
|
|||
|
||||
log.transports.file.level = 'info'
|
||||
log.transports.console.level = 'info'
|
||||
// log.transports.file.level = 'info';
|
||||
// log.transports.console.level = 'info';
|
||||
|
||||
if(require('electron-squirrel-startup'))
|
||||
{
|
||||
|
|
|
@ -64,7 +64,7 @@ class ConvertView extends React.Component<IComponentProperties, IComponentState>
|
|||
framework: '',
|
||||
pythonReinstall: false
|
||||
};
|
||||
log.info("Run view is created.");
|
||||
log.info("Convert view is created.");
|
||||
}
|
||||
|
||||
public render() {
|
||||
|
@ -90,13 +90,6 @@ class ConvertView extends React.Component<IComponentProperties, IComponentState>
|
|||
}
|
||||
|
||||
private getView() {
|
||||
// const { error } = this.state;
|
||||
// if (error) {
|
||||
// const message = typeof error === 'string' ? error : (`${error.stack ? `${error.stack}: ` : ''}${error.message}`);
|
||||
// this.printMessage(message)
|
||||
// this.setState({pythonReinstall: true});
|
||||
// // return <MessageBar messageBarType={MessageBarType.error}>{message}</MessageBar>
|
||||
// }
|
||||
switch (this.state.currentStep) {
|
||||
case Step.Downloading:
|
||||
return <Spinner label="Downloading Python..." />;
|
||||
|
@ -212,8 +205,6 @@ class ConvertView extends React.Component<IComponentProperties, IComponentState>
|
|||
|
||||
private setFramework = (framework: ISelectOpition) => {
|
||||
this.setState({framework: framework.value})
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log(framework.value)
|
||||
}
|
||||
|
||||
private setSource = (source?: string) => {
|
||||
|
|
|
@ -62,15 +62,6 @@ class RunView extends React.Component<IComponentProperties, IComponentState> {
|
|||
log.info("Run view is created.");
|
||||
}
|
||||
|
||||
// public componentDidMount() {
|
||||
// if(this.props.file && this.props.file.path) {
|
||||
// if(!this.lastFile || this.props.file.path !== this.lastFile){
|
||||
// this.setState({model: this.props.file.path}, () => {this.setParameters()});
|
||||
// }
|
||||
// this.lastFile = this.props.file.path;
|
||||
// }
|
||||
// }
|
||||
|
||||
public render() {
|
||||
const collabsibleRef: React.RefObject<Collapsible> = React.createRef();
|
||||
return (
|
||||
|
@ -135,7 +126,6 @@ class RunView extends React.Component<IComponentProperties, IComponentState> {
|
|||
this.lastFile = this.props.file.path;
|
||||
this.setState({model: this.props.file.path}, () => {this.setParameters()})
|
||||
}
|
||||
// const modelPath = this.state.model || this.props.file && this.props.file.path;
|
||||
|
||||
return (
|
||||
<div className="Arguments">
|
||||
|
|
|
@ -60,6 +60,12 @@ describe("WinMLDashboard Tests", function () {
|
|||
.click(convertViewButton)
|
||||
.element(mainView).element(convertView).should.eventually.exist
|
||||
});
|
||||
|
||||
it('checks python environment installation options exists', function () {
|
||||
return app.client
|
||||
.element('#ChoiceGroup17-__download').should.eventually.exist
|
||||
})
|
||||
|
||||
it('sets model to convert', function () {
|
||||
return app.client
|
||||
.element(modelToConvertTextFiled).exist
|
||||
|
|
Загрузка…
Ссылка в новой задаче