Merge branch 'master' of https://bdgit.educoder.net/Hjqreturn/educoder
Conflicts: public/react/src/modules/courses/busyWork/CommonWorkAppraise.jsdev_forum
commit
4088ebcdc0
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,74 +1,75 @@
|
||||
import React, { Component } from 'react';
|
||||
|
||||
export function loadSshScript(callback) {
|
||||
let _url_origin = ``;
|
||||
let prefix = 'react/build'
|
||||
if (window.location.port == 3007) {
|
||||
prefix = ''
|
||||
} else {
|
||||
_url_origin = `https://testeduplus2.educoder.net/`;
|
||||
}
|
||||
const $ = window.$;
|
||||
// 未加载过
|
||||
if (!window['Terminal']) {
|
||||
// /js/js_min_all.
|
||||
$('head').append($('<link rel="stylesheet" type="text/css" />')
|
||||
.attr('href', `${_url_origin}${prefix}/js/xterm/xterm.css`));
|
||||
|
||||
// $.getScript(
|
||||
// `${_url_origin}${prefix}/js/xterm/xterm.js`,
|
||||
// (data, textStatus, jqxhr) => {
|
||||
// });
|
||||
// $.getScript(
|
||||
// `${_url_origin}${prefix}/js/jsFromMiddleLayer/base64.js`,
|
||||
// (data, textStatus, jqxhr) => {
|
||||
// });
|
||||
// $.getScript(
|
||||
// `${_url_origin}${prefix}/js/jsFromMiddleLayer/ws.js`,
|
||||
// (data, textStatus, jqxhr) => {
|
||||
// $.getScript(
|
||||
// `${_url_origin}${prefix}/js/jsFromMiddleLayer/main.js`,
|
||||
// (data, textStatus, jqxhr) => {
|
||||
// callback && callback()
|
||||
// });
|
||||
// });
|
||||
|
||||
$.when(
|
||||
$.getScript( `${_url_origin}${prefix}/js/xterm/xterm.js` ),
|
||||
$.getScript( `${_url_origin}${prefix}/js/jsFromMiddleLayer/base64.js` ),
|
||||
$.getScript( `${_url_origin}${prefix}/js/jsFromMiddleLayer/ws.js` ),
|
||||
$.getScript( `${_url_origin}${prefix}/js/jsFromMiddleLayer/main.js` ),
|
||||
$.Deferred(function( deferred ){
|
||||
$( deferred.resolve );
|
||||
})
|
||||
).done(function(){
|
||||
//place your code here, the scripts are all loaded
|
||||
callback && callback()
|
||||
});
|
||||
} else {
|
||||
callback && callback()
|
||||
}
|
||||
}
|
||||
|
||||
export function openTerminal(props, parentDomId) {
|
||||
const { game_id, host, password, port, username, webssh_url, ws_url,
|
||||
rows, cols, width, height} = props;
|
||||
|
||||
var options = {
|
||||
host: host,
|
||||
port: port,
|
||||
username: username,
|
||||
secret: password,
|
||||
gameid: game_id,
|
||||
rows: rows,
|
||||
columns: cols,
|
||||
width,
|
||||
height,
|
||||
parentDomId,
|
||||
// tab: $("#terminalTab").val(),
|
||||
}
|
||||
window.g_websocket_url = ws_url;
|
||||
// TODO 加一个parentDomId 来做多ssh tab
|
||||
window.openTerminal(options)
|
||||
}
|
||||
|
||||
import React, { Component } from 'react';
|
||||
|
||||
export function loadSshScript(callback) {
|
||||
let _url_origin = ``;
|
||||
let prefix = 'react/build'
|
||||
if (window.location.port == 3007) {
|
||||
prefix = ''
|
||||
} else {
|
||||
// _url_origin = `https://testeduplus2.educoder.net/`;
|
||||
_url_origin = 'http://47.96.87.25:48080';
|
||||
}
|
||||
const $ = window.$;
|
||||
// 未加载过
|
||||
if (!window['Terminal']) {
|
||||
// /js/js_min_all.
|
||||
$('head').append($('<link rel="stylesheet" type="text/css" />')
|
||||
.attr('href', `${_url_origin}${prefix}/js/xterm/xterm.css`));
|
||||
|
||||
// $.getScript(
|
||||
// `${_url_origin}${prefix}/js/xterm/xterm.js`,
|
||||
// (data, textStatus, jqxhr) => {
|
||||
// });
|
||||
// $.getScript(
|
||||
// `${_url_origin}${prefix}/js/jsFromMiddleLayer/base64.js`,
|
||||
// (data, textStatus, jqxhr) => {
|
||||
// });
|
||||
// $.getScript(
|
||||
// `${_url_origin}${prefix}/js/jsFromMiddleLayer/ws.js`,
|
||||
// (data, textStatus, jqxhr) => {
|
||||
// $.getScript(
|
||||
// `${_url_origin}${prefix}/js/jsFromMiddleLayer/main.js`,
|
||||
// (data, textStatus, jqxhr) => {
|
||||
// callback && callback()
|
||||
// });
|
||||
// });
|
||||
|
||||
$.when(
|
||||
$.getScript( `${_url_origin}${prefix}/js/xterm/xterm.js` ),
|
||||
$.getScript( `${_url_origin}${prefix}/js/jsFromMiddleLayer/base64.js` ),
|
||||
$.getScript( `${_url_origin}${prefix}/js/jsFromMiddleLayer/ws.js` ),
|
||||
$.getScript( `${_url_origin}${prefix}/js/jsFromMiddleLayer/main.js` ),
|
||||
$.Deferred(function( deferred ){
|
||||
$( deferred.resolve );
|
||||
})
|
||||
).done(function(){
|
||||
//place your code here, the scripts are all loaded
|
||||
callback && callback()
|
||||
});
|
||||
} else {
|
||||
callback && callback()
|
||||
}
|
||||
}
|
||||
|
||||
export function openTerminal(props, parentDomId) {
|
||||
const { game_id, host, password, port, username, webssh_url, ws_url,
|
||||
rows, cols, width, height} = props;
|
||||
|
||||
var options = {
|
||||
host: host,
|
||||
port: port,
|
||||
username: username,
|
||||
secret: password,
|
||||
gameid: game_id,
|
||||
rows: rows,
|
||||
columns: cols,
|
||||
width,
|
||||
height,
|
||||
parentDomId,
|
||||
// tab: $("#terminalTab").val(),
|
||||
}
|
||||
window.g_websocket_url = ws_url;
|
||||
// TODO 加一个parentDomId 来做多ssh tab
|
||||
window.openTerminal(options)
|
||||
}
|
||||
|
||||
|
@ -1,129 +1,129 @@
|
||||
.paragraph:hover .status_li a{
|
||||
display: block;
|
||||
}
|
||||
|
||||
.newedu-filter-btn{
|
||||
display: block;
|
||||
float: left;
|
||||
padding: 0 9px;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
border-radius: 14px;
|
||||
background-color: #F5F5F5;
|
||||
color: #666;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 9px;
|
||||
}
|
||||
|
||||
.edu-filter-btn29BD8B{
|
||||
display: block;
|
||||
float: left;
|
||||
padding: 0 9px;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
border-radius: 14px;
|
||||
background-color: #29BD8B;
|
||||
color: #FFF;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 9px;
|
||||
}
|
||||
|
||||
.lesson-saved-list-item{
|
||||
border-bottom: none!important;
|
||||
margin-bottom: 10px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.click_add{
|
||||
border-top: none!important;
|
||||
}
|
||||
.white-panel li{border:1px solid #fafafa!important;}
|
||||
.white-panel li.active{border:1px solid #4CACFF!important;}
|
||||
|
||||
/* 选择实训列表 */
|
||||
.greybackHead{height: 40px;line-height: 40px;padding: 0px 20px;box-sizing: border-box;color: #676767;background-color: #eaeaea;}
|
||||
|
||||
.mtf3{
|
||||
margin-top:-3px;
|
||||
}
|
||||
|
||||
.mtf5{
|
||||
margin-top: -5px;
|
||||
}
|
||||
|
||||
.color204{
|
||||
color:rgba(204,204,204,1);
|
||||
}
|
||||
|
||||
.lesson-saved-list-itemdrop{
|
||||
height: 93px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.lesson-saved-list{
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.itempositionleft{
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.itempositionright{
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.ant-input{
|
||||
background-color: #fafafa!important;
|
||||
}
|
||||
.ant-input:focus{
|
||||
background-color:#ffffff!important;
|
||||
}
|
||||
|
||||
.pathNavLine{bottom: -11px;}
|
||||
|
||||
#shixun_operation:hover{
|
||||
color:#fff !important;
|
||||
}
|
||||
|
||||
.cursor{
|
||||
cursor: pointer;
|
||||
}
|
||||
.paragraph_nameid:hover{
|
||||
color:#4cacff !important;
|
||||
}
|
||||
/* 学习统计 */
|
||||
.statisticsNav{height: 100px;}
|
||||
.statisticsNav ul{margin-top: 35px;}
|
||||
.statisticsNav ul li{float: left;font-size: 18px;color: #4D4D4D;height: 64px;line-height: 64px;margin:0px 30px;cursor: pointer;}
|
||||
.statisticsNav ul li a{color: #4D4D4D!important;}
|
||||
.statisticsNav ul li.active{color: #05101A;border-bottom: 2px solid #05101A;}
|
||||
.statisticsNav ul li.active a{color: #05101A!important; text-decoration: none !important;}
|
||||
|
||||
|
||||
.next-loading{
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.paddingleft22{
|
||||
text-align: left;
|
||||
padding-left: 22px;
|
||||
}
|
||||
|
||||
.paddingl5{
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.paddingl10{
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.red{
|
||||
color:red;
|
||||
}
|
||||
|
||||
.pl38{
|
||||
padding-left: 38px;
|
||||
}
|
||||
.ml37{
|
||||
margin-left: 37px;
|
||||
.paragraph:hover .status_li a{
|
||||
display: block;
|
||||
}
|
||||
|
||||
.newedu-filter-btn{
|
||||
display: block;
|
||||
float: left;
|
||||
padding: 0 9px;
|
||||
/*height: 28px;*/
|
||||
line-height: 28px;
|
||||
border-radius: 14px;
|
||||
background-color: #F5F5F5;
|
||||
color: #666;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 9px;
|
||||
}
|
||||
|
||||
.edu-filter-btn29BD8B{
|
||||
display: block;
|
||||
float: left;
|
||||
padding: 0 9px;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
border-radius: 14px;
|
||||
background-color: #29BD8B;
|
||||
color: #FFF;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 9px;
|
||||
}
|
||||
|
||||
.lesson-saved-list-item{
|
||||
border-bottom: none!important;
|
||||
margin-bottom: 10px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.click_add{
|
||||
border-top: none!important;
|
||||
}
|
||||
.white-panel li{border:1px solid #fafafa!important;}
|
||||
.white-panel li.active{border:1px solid #4CACFF!important;}
|
||||
|
||||
/* 选择实训列表 */
|
||||
.greybackHead{height: 40px;line-height: 40px;padding: 0px 20px;box-sizing: border-box;color: #676767;background-color: #eaeaea;}
|
||||
|
||||
.mtf3{
|
||||
margin-top:-3px;
|
||||
}
|
||||
|
||||
.mtf5{
|
||||
margin-top: -5px;
|
||||
}
|
||||
|
||||
.color204{
|
||||
color:rgba(204,204,204,1);
|
||||
}
|
||||
|
||||
.lesson-saved-list-itemdrop{
|
||||
height: 93px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.lesson-saved-list{
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.itempositionleft{
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.itempositionright{
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.ant-input{
|
||||
background-color: #fafafa!important;
|
||||
}
|
||||
.ant-input:focus{
|
||||
background-color:#ffffff!important;
|
||||
}
|
||||
|
||||
.pathNavLine{bottom: -11px;}
|
||||
|
||||
#shixun_operation:hover{
|
||||
color:#fff !important;
|
||||
}
|
||||
|
||||
.cursor{
|
||||
cursor: pointer;
|
||||
}
|
||||
.paragraph_nameid:hover{
|
||||
color:#4cacff !important;
|
||||
}
|
||||
/* 学习统计 */
|
||||
.statisticsNav{height: 100px;}
|
||||
.statisticsNav ul{margin-top: 35px;}
|
||||
.statisticsNav ul li{float: left;font-size: 18px;color: #4D4D4D;height: 64px;line-height: 64px;margin:0px 30px;cursor: pointer;}
|
||||
.statisticsNav ul li a{color: #4D4D4D!important;}
|
||||
.statisticsNav ul li.active{color: #05101A;border-bottom: 2px solid #05101A;}
|
||||
.statisticsNav ul li.active a{color: #05101A!important; text-decoration: none !important;}
|
||||
|
||||
|
||||
.next-loading{
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.paddingleft22{
|
||||
text-align: left;
|
||||
padding-left: 22px;
|
||||
}
|
||||
|
||||
.paddingl5{
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.paddingl10{
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.red{
|
||||
color:red;
|
||||
}
|
||||
|
||||
.pl38{
|
||||
padding-left: 38px;
|
||||
}
|
||||
.ml37{
|
||||
margin-left: 37px;
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue