Skip to content

Commit d403448

Browse files
authored
Merge pull request #164 from HaveAGitGat/dev
Dev
2 parents 09cfe34 + 8d988df commit d403448

38 files changed

+3674
-3279
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
22
.meteor/local
33

4-
.idea
4+
.idea
5+
version.desktop

.meteor/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
local
2+
desktop-build

.meteor/packages

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ [email protected] # Allow all DB writes from clients (for prototypin
1919
static-html # Define static page content in .html files
2020
react-meteor-data # React higher-order component for reactively tracking Meteor data
2121
fourseven:scss
22+
omega:meteor-desktop-watcher@=2.2.5
23+
omega:meteor-desktop-bundler@=2.2.5

.meteor/versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ [email protected]
5050
5151
5252
53+
54+
5355
5456
5557

imports/api/pluginCreatorMethods.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { Meteor } from 'meteor/meteor';
66
const shortid = require('shortid');
77

88
//Globals
9-
var fs = require('fs');
10-
var path = require('path');
9+
const fs = require('fs');
10+
const path = require('path');
1111

1212

1313

imports/ui/App.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ const tabs = [
3636
{path: '/', text: 'Dev', component: TabDev},
3737
];
3838

39-
const AppRouter = () => {
39+
export default AppRouter = () => {
4040

4141

4242

4343
const [basePath, setBasePath] = React.useState('');
4444

4545
const [currentVersion, setVersion] = React.useState('');
4646

47-
const [newVersion, setNewVersion] = React.useState(1.104);
47+
const [newVersion, setNewVersion] = React.useState(1.105);
4848

4949

5050

@@ -171,4 +171,3 @@ const AppRouter = () => {
171171
);
172172
};
173173

174-
export default AppRouter;
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
2+
import React, { Component } from 'react';
3+
import ItemButton from '../item_Button.jsx'
4+
5+
6+
export class BumpButton extends Component {
7+
8+
render() {
9+
var obj = {
10+
bumped: new Date(),
11+
}
12+
return <ItemButton file={this.props.file} obj={obj} symbol={'↑'} type="updateDBAction" time={this.props.lastQueueUpdateTime} />
13+
14+
}
15+
}
16+
17+
18+
19+
export class SkipButton extends Component {
20+
render() {
21+
22+
var obj = {
23+
TranscodeDecisionMaker:"Transcode success",
24+
lastTranscodeDate: new Date(),
25+
}
26+
return <ItemButton file={this.props.file} obj={obj} symbol={'⤳'} type="updateDBAction" time={this.props.lastQueueUpdateTime} />
27+
28+
}
29+
}
30+
31+
32+
export class SkipHealthCheckButton extends Component {
33+
render() {
34+
35+
var obj = {
36+
HealthCheck: "Success",
37+
lastHealthCheckDate: new Date(),
38+
}
39+
return <ItemButton file={this.props.file} obj={obj} symbol={'⤳'} type="updateDBAction" time={this.props.lastQueueUpdateTime} />
40+
41+
}
42+
}
43+
44+
45+
export class CancelBumpButton extends Component {
46+
render() {
47+
48+
var obj = {
49+
bumped: false,
50+
}
51+
return <ItemButton file={this.props.file} obj={obj} symbol={'X'} type="updateDBAction" time={this.props.lastQueueUpdateTime} />
52+
53+
}
54+
}
55+
56+
57+
58+
59+
export class RedoButton extends Component {
60+
61+
render() {
62+
63+
var obj = {
64+
[this.props.mode]: "Queued",
65+
processingStatus: false,
66+
createdAt: new Date(),
67+
}
68+
69+
70+
return <ItemButton file={this.props.file} obj={obj} symbol={'↻'} type="updateDBAction" time={this.props.lastQueueUpdateTime} />
71+
}
72+
}
73+
74+
export class ForceProcessingButton extends Component {
75+
76+
render() {
77+
var obj = {
78+
forceProcessing: true,
79+
}
80+
return <ItemButton file={this.props.file} obj={obj} symbol={'No'} type="updateDBAction" time={this.props.lastQueueUpdateTime} />
81+
}
82+
}
83+
84+
export class CancelForceProcessingButton extends Component {
85+
86+
render() {
87+
var obj = {
88+
forceProcessing: false,
89+
}
90+
return <ItemButton file={this.props.file} obj={obj} symbol={'Yes'} type="updateDBAction" time={this.props.lastQueueUpdateTime} />
91+
}
92+
}
93+
94+
95+
96+
export class IgnoreButton extends Component {
97+
98+
render() {
99+
var obj = {
100+
[this.props.mode]: "Ignored",
101+
processingStatus: false,
102+
createdAt: new Date(),
103+
}
104+
return <ItemButton file={this.props.file} obj={obj} symbol={'Ignore'} type="updateDBAction" time={this.props.lastQueueUpdateTime} />
105+
}
106+
}
107+
108+
109+
110+
111+
112+
export class CreateSampleButton extends Component {
113+
render() {
114+
115+
return <ItemButton file={this.props.file} symbol={'✄'} type="createSample" time={this.props.lastQueueUpdateTime} />
116+
}
117+
}
118+

imports/ui/ErrorBoundary.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export class ErrorBoundary extends React.Component {
1212

1313
componentDidCatch(error, errorInfo) {
1414
console.error(error);
15+
console.error(error.stack);
1516
console.log(errorInfo);
1617
}
1718

imports/ui/Local_Image.jsx

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
2+
3+
import React, { Component } from 'react';
4+
import { GlobalSettingsDB } from '../api/tasks.js';
5+
6+
7+
export default class LocalImage extends Component {
8+
9+
constructor(props) {
10+
super(props);
11+
12+
this.state = {
13+
link: '',
14+
15+
}
16+
17+
18+
}
19+
20+
componentDidMount() {
21+
22+
Meteor.subscribe('GlobalSettingsDB', () => {
23+
24+
this.setImgLink()
25+
26+
})
27+
28+
29+
}
30+
31+
32+
setImgLink = () => {
33+
34+
var basePath = GlobalSettingsDB.find({}).fetch()[0].basePath;
35+
36+
if (basePath != undefined) {
37+
var updatedLink = basePath + this.props.link
38+
} else {
39+
var updatedLink = this.props.link
40+
}
41+
42+
43+
this.setState({
44+
link: updatedLink
45+
})
46+
47+
console.log(updatedLink)
48+
49+
}
50+
51+
render() {
52+
53+
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>
54+
}
55+
}
56+
57+

0 commit comments

Comments
 (0)