Merge branch 'master' of https://bdgit.educoder.net/Hjqreturn/educoder
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 1.2 KiB |
@ -0,0 +1,44 @@
|
||||
import React, {Component} from 'react';
|
||||
import '../css/Courses.css';
|
||||
import {setImagesUrl} from 'educoder';
|
||||
|
||||
|
||||
class CoursesGuide extends Component {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
this.state={
|
||||
step:1
|
||||
}
|
||||
}
|
||||
render(){
|
||||
let {step} = this.state;
|
||||
return(
|
||||
<div className="guidePanel">
|
||||
<style>{`
|
||||
body{
|
||||
overflow:hidden!important;
|
||||
}
|
||||
`}</style>
|
||||
<div className="educontent">
|
||||
{
|
||||
step ==1 &&
|
||||
<div>
|
||||
<p className="clearfix"><img className="fr" src="/images/course/guide/1-1.png" width="175px" style={{margin:"205px 38px 0px 0px"}}/></p>
|
||||
<p className="clearfix pr"><img src="/images/course/guide/1-2.png" className="fr mt20 guideFirstRight"/></p>
|
||||
<p className="clearfix pr" style={{marginTop:"80px"}}>
|
||||
<img src="/images/course/guide/1-4.png" className="fl guideFirstLeft"/>
|
||||
<img src="/images/course/guide/1-3.png" className="fl" style={{marginLeft:"410px"}}/>
|
||||
</p>
|
||||
<p className="clearfix">
|
||||
<img src="/images/course/guide/1-5.png" className="fl mt50"/>
|
||||
<img src="/images/course/guide/1-6.png" className="fl mt40"/>
|
||||
<a href="javascript:void(0)"><img src="/images/course/guide/1-7.png" className="fl mt80 ml100"/></a>
|
||||
</p>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
export default CoursesGuide;
|
@ -1,90 +1,91 @@
|
||||
import React, { Component } from 'react';
|
||||
import {Tooltip} from 'antd';
|
||||
class CoursesListType extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state={
|
||||
// typelist:[],
|
||||
// typesylename:"",
|
||||
// tipval:""
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
// let{typelist,typesylename,tipval}=this.props;
|
||||
//
|
||||
// this.setState({
|
||||
// typelist:typelist,
|
||||
// typesylename:typesylename,
|
||||
// tipval:tipval
|
||||
// })
|
||||
// console.log("CoursesListType")
|
||||
// console.log(typelist)
|
||||
}
|
||||
|
||||
render() {
|
||||
let {typelist,typesylename,tipval}=this.props;
|
||||
|
||||
return(
|
||||
<span style={{display:'inline-block'}}>
|
||||
{
|
||||
typelist===undefined?"":typelist.map((item,key)=>{
|
||||
return(
|
||||
<Tooltip placement="bottom" title={tipval} getPopupContainer={()=>document.querySelector('.TabsWarp')}>
|
||||
<span key={key}>
|
||||
{item==="公开"?<span className={"edu-filter-btn edu-filter-btn-028d01 ml15 fl typestyle " + typesylename} >公开</span>:""}
|
||||
{item==="已开启补交"?<span className={"edu-filter-btn edu-filter-btn-028d01 ml15 fl typestyle "+ typesylename} >已开启补交</span>:""}
|
||||
{item==="未开启补交"?<span className={"edu-filter-btn edu-filter-btn-CC317C ml15 fl typestyle "+ typesylename} >未开启补交</span>:""}
|
||||
{item==="匿名作品"?<span className={"edu-filter-btn edu-filter-btn-006B75 ml15 fl typestyle "+ typesylename} >匿名作品</span>:""}
|
||||
{item==="已选择"?<span className={"edu-filter-btn edu-filter-btn-EDEDED ml15 fl typestyle color666666 "+ typesylename} >已选择</span>:""}
|
||||
{item==="已结束"?<span className={"edu-filter-btn edu-filter-btn-EDEDED ml15 fl typestyle color666666 "+ typesylename} >已结束</span>:""}
|
||||
{item==="提交中"?<span className={"edu-filter-btn edu-filter-btn-4CACFF ml15 fl typestyle "+ typesylename} >提交中</span>:""}
|
||||
{item==="匿评中"?<span className={"edu-filter-btn edu-filter-btn-4CACFF ml15 fl typestyle "+ typesylename} >匿评中</span>:""}
|
||||
{item==="申诉中"?<span className={"edu-filter-btn edu-filter-btn-4CACFF ml15 fl typestyle "+ typesylename} >申诉中</span>:""}
|
||||
{item==="补交中"?<span className={"edu-filter-btn edu-filter-btn-4CACFF ml15 fl typestyle "+ typesylename} >补交中</span>:""}
|
||||
{item==="评阅中"?<span className={"edu-filter-btn edu-filter-btn-4CACFF ml15 fl typestyle "+ typesylename} >评阅中</span>:""}
|
||||
{item==="待选中"?<span className={"edu-filter-btn edu-filter-btn-4CACFF ml15 fl typestyle "+ typesylename} >待选中</span>:""}
|
||||
{item==="交叉评阅中"?<span className={"edu-filter-btn edu-filter-btn-4CACFF ml15 fl typestyle "+ typesylename} >交叉评阅中</span>:""}
|
||||
{item==="已开启交叉评阅"?<span className={"edu-filter-btn edu-filter-btn-E99695 ml15 fl typestyle "+ typesylename} >已开启交叉评阅</span>:""}
|
||||
{item==="待确认"?<span className={"edu-filter-btn edu-filter-btn-5E5FB9 ml15 fl typestyle "+ typesylename} >待确认</span>:""}
|
||||
{item==="待处理"?<span className={"edu-filter-btn edu-filter-btn-5E5FB9 ml15 fl typestyle mr10 "+ typesylename} >待处理</span>:""}
|
||||
{item==="未发布"?<span className={"edu-filter-btn edu-filter-btn-84B6EB ml15 fl typestyle "+ typesylename} >未发布</span>:""}
|
||||
{item==="私有"?<span className={"edu-filter-btn edu-filter-btn-84B6EB ml15 fl typestyle "+ typesylename} >私有</span>:""}
|
||||
{item==="未提交"?<span className={"edu-filter-btn edu-filter-btn-84B6EB ml15 fl typestyle "+ typesylename} >未提交</span>:""}
|
||||
{item==="已确认"?<span className={"edu-filter-btn edu-filter-btn-FC2B6A ml15 fl typestyle "+ typesylename} >已确认</span>:""}
|
||||
{item==="已截止"?<span className={"edu-filter-btn edu-filter-btn-FC2B6A ml15 fl typestyle "+ typesylename} >已截止</span>:""}
|
||||
</span>
|
||||
</Tooltip>
|
||||
)
|
||||
})
|
||||
}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
}
|
||||
export default CoursesListType;
|
||||
|
||||
|
||||
// let typelist=["公开",
|
||||
// "已开启补交",
|
||||
// "未开启补交",
|
||||
// "匿名作品",
|
||||
// "已选择",
|
||||
// "已结束",
|
||||
// "提交中",
|
||||
// "匿评中",
|
||||
// "申诉中",
|
||||
// "补交中",
|
||||
// "评阅中",
|
||||
// "待选中",
|
||||
// "交叉评阅中",
|
||||
// "已开启交叉评阅",
|
||||
// "待确认",
|
||||
// "待处理",
|
||||
// "未发布",
|
||||
// "私有",
|
||||
// "未提交",
|
||||
// "已确认",
|
||||
// "已截止",
|
||||
import React, { Component } from 'react';
|
||||
import {Tooltip} from 'antd'
|
||||
import '../css/Courses.css';
|
||||
class CoursesListType extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state={
|
||||
// typelist:[],
|
||||
// typesylename:"",
|
||||
// tipval:""
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
// let{typelist,typesylename,tipval}=this.props;
|
||||
//
|
||||
// this.setState({
|
||||
// typelist:typelist,
|
||||
// typesylename:typesylename,
|
||||
// tipval:tipval
|
||||
// })
|
||||
// console.log("CoursesListType")
|
||||
// console.log(typelist)
|
||||
}
|
||||
|
||||
render() {
|
||||
let {typelist,typesylename,tipval}=this.props;
|
||||
|
||||
return(
|
||||
<span style={{display:'inline-block'}}>
|
||||
{
|
||||
typelist===undefined?"":typelist.map((item,key)=>{
|
||||
return(
|
||||
<Tooltip placement="bottom" title={tipval} getPopupContainer={()=>document.querySelector('.TabsWarp')}>
|
||||
<span key={key}>
|
||||
{item==="公开"?<span className={"edu-filter-btn edu-filter-btn-028d01 ml15 fl typestyle " + typesylename} >公开</span>:""}
|
||||
{item==="已开启补交"?<span className={"edu-filter-btn edu-filter-btn-028d01 ml15 fl typestyle "+ typesylename} >已开启补交</span>:""}
|
||||
{item==="未开启补交"?<span className={"edu-filter-btn edu-filter-btn-CC317C ml15 fl typestyle "+ typesylename} >未开启补交</span>:""}
|
||||
{item==="匿名作品"?<span className={"edu-filter-btn edu-filter-btn-006B75 ml15 fl typestyle "+ typesylename} >匿名作品</span>:""}
|
||||
{item==="已选择"?<span className={"edu-filter-btn edu-filter-btn-EDEDED ml15 fl typestyle color666666 "+ typesylename} >已选择</span>:""}
|
||||
{item==="已结束"?<span className={"edu-filter-btn edu-filter-btn-EDEDED ml15 fl typestyle color666666 "+ typesylename} >已结束</span>:""}
|
||||
{item==="提交中"?<span className={"edu-filter-btn edu-filter-btn-4CACFF ml15 fl typestyle "+ typesylename} >提交中</span>:""}
|
||||
{item==="匿评中"?<span className={"edu-filter-btn edu-filter-btn-4CACFF ml15 fl typestyle "+ typesylename} >匿评中</span>:""}
|
||||
{item==="申诉中"?<span className={"edu-filter-btn edu-filter-btn-4CACFF ml15 fl typestyle "+ typesylename} >申诉中</span>:""}
|
||||
{item==="补交中"?<span className={"edu-filter-btn edu-filter-btn-4CACFF ml15 fl typestyle "+ typesylename} >补交中</span>:""}
|
||||
{item==="评阅中"?<span className={"edu-filter-btn edu-filter-btn-4CACFF ml15 fl typestyle "+ typesylename} >评阅中</span>:""}
|
||||
{item==="待选中"?<span className={"edu-filter-btn edu-filter-btn-4CACFF ml15 fl typestyle "+ typesylename} >待选中</span>:""}
|
||||
{item==="交叉评阅中"?<span className={"edu-filter-btn edu-filter-btn-4CACFF ml15 fl typestyle "+ typesylename} >交叉评阅中</span>:""}
|
||||
{item==="已开启交叉评阅"?<span className={"edu-filter-btn edu-filter-btn-E99695 ml15 fl typestyle "+ typesylename} >已开启交叉评阅</span>:""}
|
||||
{item==="待确认"?<span className={"edu-filter-btn edu-filter-btn-5E5FB9 ml15 fl typestyle "+ typesylename} >待确认</span>:""}
|
||||
{item==="待处理"?<span className={"edu-filter-btn edu-filter-btn-5E5FB9 ml15 fl typestyle mr10 "+ typesylename} >待处理</span>:""}
|
||||
{item==="未发布"?<span className={"edu-filter-btn edu-filter-btn-84B6EB ml15 fl typestyle "+ typesylename} >未发布</span>:""}
|
||||
{item==="私有"?<span className={"edu-filter-btn edu-filter-btn-84B6EB ml15 fl typestyle "+ typesylename} >私有</span>:""}
|
||||
{item==="未提交"?<span className={"edu-filter-btn edu-filter-btn-84B6EB ml15 fl typestyle "+ typesylename} >未提交</span>:""}
|
||||
{item==="已确认"?<span className={"edu-filter-btn edu-filter-btn-FC2B6A ml15 fl typestyle "+ typesylename} >已确认</span>:""}
|
||||
{item==="已截止"?<span className={"edu-filter-btn edu-filter-btn-FC2B6A ml15 fl typestyle "+ typesylename} >已截止</span>:""}
|
||||
</span>
|
||||
</Tooltip>
|
||||
)
|
||||
})
|
||||
}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
}
|
||||
export default CoursesListType;
|
||||
|
||||
|
||||
// let typelist=["公开",
|
||||
// "已开启补交",
|
||||
// "未开启补交",
|
||||
// "匿名作品",
|
||||
// "已选择",
|
||||
// "已结束",
|
||||
// "提交中",
|
||||
// "匿评中",
|
||||
// "申诉中",
|
||||
// "补交中",
|
||||
// "评阅中",
|
||||
// "待选中",
|
||||
// "交叉评阅中",
|
||||
// "已开启交叉评阅",
|
||||
// "待确认",
|
||||
// "待处理",
|
||||
// "未发布",
|
||||
// "私有",
|
||||
// "未提交",
|
||||
// "已确认",
|
||||
// "已截止",
|
||||
// ]
|
@ -1,154 +1,154 @@
|
||||
// import React, { Component } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
|
||||
// import RFB from '@novnc/novnc/lib/rfb.js';
|
||||
import RFB from '@novnc/novnc/lib/rfb.js';
|
||||
|
||||
// const $ = window.$;
|
||||
// // const showIframeContent = window.location.search.indexOf('vnc=1') != -1;
|
||||
// class VNCDisplay extends Component {
|
||||
// componentDidMount() {
|
||||
// console.log(RFB)
|
||||
const $ = window.$;
|
||||
// const showIframeContent = window.location.search.indexOf('vnc=1') != -1;
|
||||
class VNCDisplay extends Component {
|
||||
componentDidMount() {
|
||||
console.log(RFB)
|
||||
|
||||
// let rfb;
|
||||
// let desktopName;
|
||||
// // When this function is called we have
|
||||
// // successfully connected to a server
|
||||
// function connectedToServer(e) {
|
||||
// status("Connected to " + desktopName);
|
||||
// }
|
||||
// // This function is called when we are disconnected
|
||||
// function disconnectedFromServer(e) {
|
||||
// if (e.detail.clean) {
|
||||
// status("Disconnected");
|
||||
// } else {
|
||||
// status("Something went wrong, connection is closed");
|
||||
// }
|
||||
// }
|
||||
// // When this function is called, the server requires
|
||||
// // credentials to authenticate
|
||||
// function credentialsAreRequired(e) {
|
||||
// const password = prompt("Password Required:");
|
||||
// rfb.sendCredentials({ password: password });
|
||||
// }
|
||||
// // When this function is called we have received
|
||||
// // a desktop name from the server
|
||||
// function updateDesktopName(e) {
|
||||
// desktopName = e.detail.name;
|
||||
// }
|
||||
// // Since most operating systems will catch Ctrl+Alt+Del
|
||||
// // before they get a chance to be intercepted by the browser,
|
||||
// // we provide a way to emulate this key sequence.
|
||||
// function sendCtrlAltDel() {
|
||||
// rfb.sendCtrlAltDel();
|
||||
// return false;
|
||||
// }
|
||||
// // Show a status text in the top bar
|
||||
// function status(text) {
|
||||
// document.getElementById('status').textContent = text;
|
||||
// }
|
||||
// // This function extracts the value of one variable from the
|
||||
// // query string. If the variable isn't defined in the URL
|
||||
// // it returns the default value instead.
|
||||
// function readQueryVariable(name, defaultValue) {
|
||||
// // A URL with a query parameter can look like this:
|
||||
// // https://www.example.com?myqueryparam=myvalue
|
||||
// //
|
||||
// // Note that we use location.href instead of location.search
|
||||
// // because Firefox < 53 has a bug w.r.t location.search
|
||||
// const re = new RegExp('.*[?&]' + name + '=([^&#]*)'),
|
||||
// match = document.location.href.match(re);
|
||||
// if (typeof defaultValue === 'undefined') { defaultValue = null; }
|
||||
// if (match) {
|
||||
// // We have to decode the URL since want the cleartext value
|
||||
// return decodeURIComponent(match[1]);
|
||||
// }
|
||||
// return defaultValue;
|
||||
// }
|
||||
// document.getElementById('sendCtrlAltDelButton')
|
||||
// .onclick = sendCtrlAltDel;
|
||||
// // Read parameters specified in the URL query string
|
||||
// // By default, use the host and port of server that served this file
|
||||
let rfb;
|
||||
let desktopName;
|
||||
// When this function is called we have
|
||||
// successfully connected to a server
|
||||
function connectedToServer(e) {
|
||||
status("Connected to " + desktopName);
|
||||
}
|
||||
// This function is called when we are disconnected
|
||||
function disconnectedFromServer(e) {
|
||||
if (e.detail.clean) {
|
||||
status("Disconnected");
|
||||
} else {
|
||||
status("Something went wrong, connection is closed");
|
||||
}
|
||||
}
|
||||
// When this function is called, the server requires
|
||||
// credentials to authenticate
|
||||
function credentialsAreRequired(e) {
|
||||
const password = prompt("Password Required:");
|
||||
rfb.sendCredentials({ password: password });
|
||||
}
|
||||
// When this function is called we have received
|
||||
// a desktop name from the server
|
||||
function updateDesktopName(e) {
|
||||
desktopName = e.detail.name;
|
||||
}
|
||||
// Since most operating systems will catch Ctrl+Alt+Del
|
||||
// before they get a chance to be intercepted by the browser,
|
||||
// we provide a way to emulate this key sequence.
|
||||
function sendCtrlAltDel() {
|
||||
rfb.sendCtrlAltDel();
|
||||
return false;
|
||||
}
|
||||
// Show a status text in the top bar
|
||||
function status(text) {
|
||||
document.getElementById('status').textContent = text;
|
||||
}
|
||||
// This function extracts the value of one variable from the
|
||||
// query string. If the variable isn't defined in the URL
|
||||
// it returns the default value instead.
|
||||
function readQueryVariable(name, defaultValue) {
|
||||
// A URL with a query parameter can look like this:
|
||||
// https://www.example.com?myqueryparam=myvalue
|
||||
//
|
||||
// Note that we use location.href instead of location.search
|
||||
// because Firefox < 53 has a bug w.r.t location.search
|
||||
const re = new RegExp('.*[?&]' + name + '=([^&#]*)'),
|
||||
match = document.location.href.match(re);
|
||||
if (typeof defaultValue === 'undefined') { defaultValue = null; }
|
||||
if (match) {
|
||||
// We have to decode the URL since want the cleartext value
|
||||
return decodeURIComponent(match[1]);
|
||||
}
|
||||
return defaultValue;
|
||||
}
|
||||
document.getElementById('sendCtrlAltDelButton')
|
||||
.onclick = sendCtrlAltDel;
|
||||
// Read parameters specified in the URL query string
|
||||
// By default, use the host and port of server that served this file
|
||||
|
||||
// // const host = readQueryVariable('host', window.location.hostname);
|
||||
// // let port = readQueryVariable('port', window.location.port);
|
||||
// // const password = readQueryVariable('password', '');
|
||||
// const host = readQueryVariable('host', window.location.hostname);
|
||||
// let port = readQueryVariable('port', window.location.port);
|
||||
// const password = readQueryVariable('password', '');
|
||||
|
||||
// const { vnc_url } = this.props;
|
||||
// // http://117.50.12.63:43149/vnc_lite.html?password=headless
|
||||
// let _ar1 = vnc_url.split('/');
|
||||
// let ipAndPort = _ar1[2].split(':')
|
||||
// let passwordAr = _ar1[3].split('password=')
|
||||
// const host = ipAndPort[0]
|
||||
// let port = ipAndPort[1]
|
||||
// const password = passwordAr[1].split('&')[0]
|
||||
const { vnc_url } = this.props;
|
||||
// http://117.50.12.63:43149/vnc_lite.html?password=headless
|
||||
let _ar1 = vnc_url.split('/');
|
||||
let ipAndPort = _ar1[2].split(':')
|
||||
let passwordAr = _ar1[3].split('password=')
|
||||
const host = ipAndPort[0]
|
||||
let port = ipAndPort[1]
|
||||
const password = passwordAr[1].split('&')[0]
|
||||
|
||||
// const path = readQueryVariable('path', 'websockify');
|
||||
// // | | | | | |
|
||||
// // | | | Connect | | |
|
||||
// // v v v v v v
|
||||
// status("Connecting");
|
||||
// // Build the websocket URL used to connect
|
||||
// let url;
|
||||
// if (vnc_url.indexOf("https:") != -1) {
|
||||
// url = 'wss';
|
||||
// } else {
|
||||
// url = 'ws';
|
||||
// }
|
||||
// url += '://' + host;
|
||||
// if(port) {
|
||||
// url += ':' + port;
|
||||
// }
|
||||
// url += '/' + path;
|
||||
// // Creating a new RFB object will start a new connection
|
||||
// rfb = new RFB(document.getElementById('screen'), url,
|
||||
// { credentials: { password: password } });
|
||||
// // Add listeners to important events from the RFB module
|
||||
// rfb.addEventListener("connect", connectedToServer);
|
||||
// rfb.addEventListener("disconnect", disconnectedFromServer);
|
||||
// rfb.addEventListener("credentialsrequired", credentialsAreRequired);
|
||||
// rfb.addEventListener("desktopname", updateDesktopName);
|
||||
// // Set parameters that can be changed on an active connection
|
||||
// rfb.viewOnly = readQueryVariable('view_only', false);
|
||||
// rfb.scaleViewport = readQueryVariable('scale', false);
|
||||
// }
|
||||
const path = readQueryVariable('path', 'websockify');
|
||||
// | | | | | |
|
||||
// | | | Connect | | |
|
||||
// v v v v v v
|
||||
status("Connecting");
|
||||
// Build the websocket URL used to connect
|
||||
let url;
|
||||
if (vnc_url.indexOf("https:") != -1) {
|
||||
url = 'wss';
|
||||
} else {
|
||||
url = 'ws';
|
||||
}
|
||||
url += '://' + host;
|
||||
if(port) {
|
||||
url += ':' + port;
|
||||
}
|
||||
url += '/' + path;
|
||||
// Creating a new RFB object will start a new connection
|
||||
rfb = new RFB(document.getElementById('screen'), url,
|
||||
{ credentials: { password: password } });
|
||||
// Add listeners to important events from the RFB module
|
||||
rfb.addEventListener("connect", connectedToServer);
|
||||
rfb.addEventListener("disconnect", disconnectedFromServer);
|
||||
rfb.addEventListener("credentialsrequired", credentialsAreRequired);
|
||||
rfb.addEventListener("desktopname", updateDesktopName);
|
||||
// Set parameters that can be changed on an active connection
|
||||
rfb.viewOnly = readQueryVariable('view_only', false);
|
||||
rfb.scaleViewport = readQueryVariable('scale', false);
|
||||
}
|
||||
|
||||
// render() {
|
||||
// const { challenge, vnc_url } = this.props
|
||||
render() {
|
||||
const { challenge, vnc_url } = this.props
|
||||
|
||||
|
||||
// return (
|
||||
// <div className="">
|
||||
// <style>{`
|
||||
// #top_bar {
|
||||
// background-color: #6e84a3;
|
||||
// color: white;
|
||||
// font: bold 12px Helvetica;
|
||||
// padding: 6px 5px 4px 5px;
|
||||
// border-bottom: 1px outset;
|
||||
// }
|
||||
// #status {
|
||||
// text-align: center;
|
||||
// }
|
||||
// #sendCtrlAltDelButton {
|
||||
// position: fixed;
|
||||
// top: 0px;
|
||||
// right: 0px;
|
||||
// border: 1px outset;
|
||||
// padding: 5px 5px 4px 5px;
|
||||
// cursor: pointer;
|
||||
// }
|
||||
// #screen {
|
||||
// flex: 1; /* fill remaining space */
|
||||
// overflow: hidden;
|
||||
// }
|
||||
// `}</style>
|
||||
// <div id="top_bar">
|
||||
// <div id="status">Loading</div>
|
||||
// <div id="sendCtrlAltDelButton">Send CtrlAltDel</div>
|
||||
// </div>
|
||||
// <div id="screen"></div>
|
||||
// </div>
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
return (
|
||||
<div className="">
|
||||
<style>{`
|
||||
#top_bar {
|
||||
background-color: #6e84a3;
|
||||
color: white;
|
||||
font: bold 12px Helvetica;
|
||||
padding: 6px 5px 4px 5px;
|
||||
border-bottom: 1px outset;
|
||||
}
|
||||
#status {
|
||||
text-align: center;
|
||||
}
|
||||
#sendCtrlAltDelButton {
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
right: 0px;
|
||||
border: 1px outset;
|
||||
padding: 5px 5px 4px 5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
#screen {
|
||||
flex: 1; /* fill remaining space */
|
||||
overflow: hidden;
|
||||
}
|
||||
`}</style>
|
||||
<div id="top_bar">
|
||||
<div id="status">Loading</div>
|
||||
<div id="sendCtrlAltDelButton">Send CtrlAltDel</div>
|
||||
</div>
|
||||
<div id="screen"></div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// export default VNCDisplay;
|
||||
export default VNCDisplay;
|
||||
|