Skip to content

Commit

Permalink
address various issues with the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
toresbe committed May 11, 2020
1 parent 59c059d commit f866dde
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
6 changes: 3 additions & 3 deletions packages/frontend/components/ScheduleInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class ScheduleInfo extends Component {
constructor(props){
super(props);
const json = this.fetchJSON().then(json => {
const sched = json.data.fkOnRightNows.edges
const sched = json.data.allFkOnRightNows.edges
//console.log(sched[2].node)
this.setState({
previous: sched[2].node,
Expand All @@ -22,7 +22,7 @@ export class ScheduleInfo extends Component {
fetchJSON = async () => {
const query = `
query {
fkOnRightNows {
allFkOnRightNows {
edges {
node {
starttime
Expand All @@ -45,7 +45,7 @@ export class ScheduleInfo extends Component {

updateSchedule = async () => {
const json = await this.fetchJSON()
const sched = json.data.fkOnRightNows.edges
const sched = json.data.allFkOnRightNows.edges
//console.log(sched[2].node)
this.setState({
previous: sched[2].node,
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/components/UserAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class UserAuth extends Component {
token: cookies(props).token || null,
field_email:'',
field_password:'',
showLogin: false
showLogin: true
};
this.load_profile_data()
}
Expand All @@ -52,7 +52,7 @@ class UserAuth extends Component {
</div>
)
} else {
staff_button = <></>
staff_button = <div></div>
}
return (
<div className="user_nav">
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/components/WebRTC.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class Realtime extends React.Component {
};
init_janus = () => {
var server = null;
server = "https://janus.frikanalen.no/";
server = "http://simula.frikanalen.no:3005";

this.opaqueId = "streamingtest-"+Janus.randomString(12);

Expand Down Expand Up @@ -123,7 +123,7 @@ export default class Realtime extends React.Component {
render = () => {
return (
<div>
<video autoPlay="true" ref={this.videoRef} />
<video autoPlay={true} ref={this.videoRef} />
</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/components/constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
console.log(process.env.API_BASE_URL)
console.log(process.env.GRAPHQL_URL)
export const API_BASE_URL = process.env.API_BASE_URL || 'https://forrige.frikanalen.no/api/'
export const GRAPHQL_URL = process.env.GRAPHQL_URL || 'https://forrige.frikanalen.no/graphql'
export const API_BASE_URL = process.env.API_BASE_URL || 'https://frikanalen.no/api/'
export const GRAPHQL_URL = process.env.GRAPHQL_URL || 'https://frikanalen.no/graphql'
6 changes: 1 addition & 5 deletions packages/frontend/pages/playout.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ class Playout extends Component {
return knapperad
}

MezzanineSource = () => {

}

ATEM = () => {
var inputs = [
{index: 2, name: "tx1"},
Expand Down Expand Up @@ -130,13 +126,13 @@ class Playout extends Component {
}

// <DASHPlayer manifestUri="https://beta.frikanalen.no/stream/multiviewer.webm" />
//<this.ATEM/>
render = () => {
return (
<Layout>
<div className="playoutControl">
<div className="header">playout-styring</div>
<Realtime />
<this.ATEM />
</div>
<style jsx global>{`
.playoutControl >div {
Expand Down

0 comments on commit f866dde

Please sign in to comment.