Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
<label>
} />
</label>
{/* list of available subtitles? */}
<div>
<div>
<div>{"Version "}<b>{version}</b></div>
<div>{"Duration "}<b>{formatTime(duration)}</b></div>
<div>{"Number of events "}<b>{events.length}</b></div>
</div>
</div>
<div style="{{textAlign:">
<div>
<button>
</button><button disabled="{!canSave}">
</button></div>
</div>
{!canSave &&
{"The current user is not allowed to modify this Codecast."}
}
{save &&
<div>
{save.state === 'pending' &&
<div>
{"Saving, please wait…"}
</div>}
{save.state === 'failure' &&
<div></div></div>
/>
<button>
{
queryElapsed &&
<span>
{`Last query took ${(queryElapsed / 1000).toFixed(2)} seconds`}
</span>
}
{
queryElapsed &&
</button><button>
}
;
}
}</button>
tooltipContent = (
<>
SQL query ID: <strong>{queryExtraInfo.sqlQueryId}</strong> (click to copy)
);
}
return (
<div>
<div>
{`${resultCount} in ${(elapsed / 1000).toFixed(2)}s`}
</div>
<button>
</button></div>
);
});
onSelect={this._selectOption} />)}
<menuitem>
{langOptions.map(option =>
option.value === key)}
onSelect={this._addOption} />)}
</menuitem>
<div style="{{paddingLeft:">
{selected
? <div>
<textarea value="{subtitlesText}" style="{{width:" rows="{7}"> <div className='buttons-bar'>
<Files onChange={this._fileChanged} accepts={this._fileAccepts} style={{display: 'inline-block'}}><Button icon={IconNames.UPLOAD}>{"Load"}</Button></Files>
<Button onClick={this._saveSelected} icon={IconNames.DOWNLOAD} text={"Save"}/>
<Button onClick={this._reloadSelected} icon={IconNames.CLOUD_DOWNLOAD} disabled={!selected.url} text={"Revert"}/>
<Button onClick={this._removeSelected} icon={IconNames.CROSS} text={'Remove'}/>
</div>
</div>
: <NonIdealState visual='arrow-left' title={"No language selected"} description={"Load existing subtitles or add a new language, and click the Edit button."} />}
</div>
</div>
<div className='hbox mb' style={{textAlign: 'center', backgroundColor: '#efefef', padding: '10px'}}>
<div className='fill center'>
<Button onClick={this._beginEdit} disabled={!selected} icon={IconNames.EDIT} text={"Edit"} style={{marginRight: '10px'}}/>
<Button onClick={this._save} icon={IconNames.CLOUD_UPLOAD} text={"Save"} disabled={!canSave} intent={unsaved ? Intent.PRIMARY : Intent.NONE}/>
</div>
</div>
{!canSave &&
<Callout intent={Intent.WARNING} title={"Insufficient access rights"}>
{"The current user is not allowed to modify this Codecast."}</textarea></div></div>
render() {
return (
Dawn v
{ VERSION }
<button disabled="{this.props.disconnected}">
Upload
</button>
<button disabled="{this.props.disconnected}">
Download
</button>
}
interactionKind={PopoverInteractionKind.HOVER}
hoverOpenDelay={0}
hoverCloseDelay={200}>
<button disabled="{this.props.disconnected}">Start</button>
<button disabled="{this.props.disconnected}"> this.props.setMatch(Mode.IDLE)}</button>