-
Notifications
You must be signed in to change notification settings - Fork 100
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 #164 from HaveAGitGat/dev
Dev
- Loading branch information
Showing
38 changed files
with
3,674 additions
and
3,279 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
node_modules | ||
.meteor/local | ||
|
||
.idea | ||
.idea | ||
version.desktop |
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 +1,2 @@ | ||
local | ||
desktop-build |
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 |
---|---|---|
@@ -0,0 +1,118 @@ | ||
|
||
import React, { Component } from 'react'; | ||
import ItemButton from '../item_Button.jsx' | ||
|
||
|
||
export class BumpButton extends Component { | ||
|
||
render() { | ||
var obj = { | ||
bumped: new Date(), | ||
} | ||
return <ItemButton file={this.props.file} obj={obj} symbol={'↑'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> | ||
|
||
} | ||
} | ||
|
||
|
||
|
||
export class SkipButton extends Component { | ||
render() { | ||
|
||
var obj = { | ||
TranscodeDecisionMaker:"Transcode success", | ||
lastTranscodeDate: new Date(), | ||
} | ||
return <ItemButton file={this.props.file} obj={obj} symbol={'⤳'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> | ||
|
||
} | ||
} | ||
|
||
|
||
export class SkipHealthCheckButton extends Component { | ||
render() { | ||
|
||
var obj = { | ||
HealthCheck: "Success", | ||
lastHealthCheckDate: new Date(), | ||
} | ||
return <ItemButton file={this.props.file} obj={obj} symbol={'⤳'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> | ||
|
||
} | ||
} | ||
|
||
|
||
export class CancelBumpButton extends Component { | ||
render() { | ||
|
||
var obj = { | ||
bumped: false, | ||
} | ||
return <ItemButton file={this.props.file} obj={obj} symbol={'X'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> | ||
|
||
} | ||
} | ||
|
||
|
||
|
||
|
||
export class RedoButton extends Component { | ||
|
||
render() { | ||
|
||
var obj = { | ||
[this.props.mode]: "Queued", | ||
processingStatus: false, | ||
createdAt: new Date(), | ||
} | ||
|
||
|
||
return <ItemButton file={this.props.file} obj={obj} symbol={'↻'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> | ||
} | ||
} | ||
|
||
export class ForceProcessingButton extends Component { | ||
|
||
render() { | ||
var obj = { | ||
forceProcessing: true, | ||
} | ||
return <ItemButton file={this.props.file} obj={obj} symbol={'No'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> | ||
} | ||
} | ||
|
||
export class CancelForceProcessingButton extends Component { | ||
|
||
render() { | ||
var obj = { | ||
forceProcessing: false, | ||
} | ||
return <ItemButton file={this.props.file} obj={obj} symbol={'Yes'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> | ||
} | ||
} | ||
|
||
|
||
|
||
export class IgnoreButton extends Component { | ||
|
||
render() { | ||
var obj = { | ||
[this.props.mode]: "Ignored", | ||
processingStatus: false, | ||
createdAt: new Date(), | ||
} | ||
return <ItemButton file={this.props.file} obj={obj} symbol={'Ignore'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
|
||
export class CreateSampleButton extends Component { | ||
render() { | ||
|
||
return <ItemButton file={this.props.file} symbol={'✄'} type="createSample" time={this.props.lastQueueUpdateTime} /> | ||
} | ||
} | ||
|
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 @@ | ||
|
||
|
||
import React, { Component } from 'react'; | ||
import { GlobalSettingsDB } from '../api/tasks.js'; | ||
|
||
|
||
export default class LocalImage extends Component { | ||
|
||
constructor(props) { | ||
super(props); | ||
|
||
this.state = { | ||
link: '', | ||
|
||
} | ||
|
||
|
||
} | ||
|
||
componentDidMount() { | ||
|
||
Meteor.subscribe('GlobalSettingsDB', () => { | ||
|
||
this.setImgLink() | ||
|
||
}) | ||
|
||
|
||
} | ||
|
||
|
||
setImgLink = () => { | ||
|
||
var basePath = GlobalSettingsDB.find({}).fetch()[0].basePath; | ||
|
||
if (basePath != undefined) { | ||
var updatedLink = basePath + this.props.link | ||
} else { | ||
var updatedLink = this.props.link | ||
} | ||
|
||
|
||
this.setState({ | ||
link: updatedLink | ||
}) | ||
|
||
console.log(updatedLink) | ||
|
||
} | ||
|
||
render() { | ||
|
||
return <img src={this.state.link ? this.state.link : this.props.link} height={this.props.height ? this.props.height : null} width={this.props.width ? this.props.width : null} alt={this.props.alt ? this.props.alt : null}></img> | ||
} | ||
} | ||
|
||
|
Oops, something went wrong.