Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_tj
daiao 5 years ago
commit 64a5180b83

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 128 KiB

@ -17,7 +17,7 @@
<meta name=”Description” Content=”EduCoder翻转课堂教学模式颠覆了传统教学模式让教师与学生的关系由“权威”变成了“伙伴”。将学习的主动权转交给学生使学生可个性化化学学生的学习主体得到了彰显。”> <meta name=”Description” Content=”EduCoder翻转课堂教学模式颠覆了传统教学模式让教师与学生的关系由“权威”变成了“伙伴”。将学习的主动权转交给学生使学生可个性化化学学生的学习主体得到了彰显。”>
<meta name=”Description” Content=”EduCoder实训项目为单个知识点关卡实践训练帮助学生巩固单一弱点强化学习。 > <meta name=”Description” Content=”EduCoder实训项目为单个知识点关卡实践训练帮助学生巩固单一弱点强化学习。 >
<meta name=”Description” Content=”EduCoder实践教学平台各类大赛为进一步提高各类学生综合运用高级语言程序设计能力培养创新意识和实践探索精神发掘优秀软件人才。 > <meta name=”Description” Content=”EduCoder实践教学平台各类大赛为进一步提高各类学生综合运用高级语言程序设计能力培养创新意识和实践探索精神发掘优秀软件人才。 >
<meta name="viewport" id="viewport" content="width=device-width, initial-scale=0.5, maximum-scale=0.5"> <meta name="viewport" id="viewport" content="width=device-width, initial-scale=0.3, maximum-scale=0.3">
<meta name="theme-color" content="#000000"> <meta name="theme-color" content="#000000">

@ -38,14 +38,6 @@ function setCookier(){
} }
} }
function setCookie(key, value) {
const d = new Date();
d.setTime(d.getTime() + (30 * 24 * 60 * 60 * 1000));
const expires = "expires=" + d.toGMTString();
document.cookie = `_educoder_session=${key}; domain=.educoder.net; path=/; expires=${expires}`;
}
// TODO 开发期多个身份切换 // TODO 开发期多个身份切换
let debugType ="" let debugType =""
if (isDev) { if (isDev) {
@ -109,26 +101,27 @@ export function initAxiosInterceptors(props) {
// proxy="https://test-jupyterweb.educoder.net" // proxy="https://test-jupyterweb.educoder.net"
//proxy="http://192.168.2.63:3001" //proxy="http://192.168.2.63:3001"
try { try {
const str =window.location.pathname; const str =window.location.pathname;
if(str.indexOf("/wxcode") !== -1){ if(str.indexOf("/wxcode") !== -1){
// console.log("开始重写cookis"); // console.log("开始重写cookis");
const _params = window.location.search; const _params = window.location.search;
// console.log("1111"); // console.log("1111");
if (_params) { if (_params) {
// console.log("22222"); // console.log("22222");
let _search = _params.split('?')[1]; let _search = _params.split('?')[1];
_search.split('&').forEach(item => { _search.split('&').forEach(item => {
const _arr = item.split('='); const _arr = item.split('=');
if(_arr[0]==='_educoder_session'){ if(_arr[0]==='_educoder_session'){
cookie.save('_educoder_session',_arr[1],{ path: '/' }); cookie.save('_educoder_session',_arr[1],{ path: '/' });
cookie.save('_educoder_session',_arr[1], { domain: '.educoder.net', path: '/'}); cookie.save('_educoder_session',_arr[1], { domain: '.educoder.net', path: '/'});
}else{
cookie.save('autologin_trustie',_arr[1],{ path: '/' }); }else{
cookie.save('autologin_trustie',_arr[1], { domain: '.educoder.net', path: '/'}); cookie.save('autologin_trustie',_arr[1],{ path: '/' });
} cookie.save('autologin_trustie',_arr[1], { domain: '.educoder.net', path: '/'});
}); }
} });
} }
}
}catch (e) { }catch (e) {
} }

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2020-01-15 09:56:34 * @Date: 2020-01-15 09:56:34
* @LastEditors : tangjiang * @LastEditors : tangjiang
* @LastEditTime : 2020-01-18 11:51:42 * @LastEditTime : 2020-01-18 15:07:09
*/ */
import './index.scss'; import './index.scss';
import React, {useState, useEffect, useRef} from 'react'; import React, {useState, useEffect, useRef} from 'react';
@ -44,30 +44,24 @@ const App = (props) => {
const {identifier} = props.match.params; const {identifier} = props.match.params;
// 获取路径参数 // 获取路径参数
const _params = window.location.search; const setCookier = () => {
const setCookier = () => { const _params = window.location.search;
// var u = navigator.userAgent; if (_params) {
// var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 let _search = _params.split('?')[1];
// if (isIOS) { _search.split('&').forEach(item => {
// }else{ // console.log(item);
// if (_params) { const _arr = item.split('=');
// let _cookie = ''; cookie.remove(_arr[0], {
// let _search = _params.split('?')[1]; path: '/',
// if(_search.split('=')) { domain: '.educoder.net'
// _cookie = _search.split('=')[1]; });
// cookie.save('_educoder_session', _cookie); cookie.save(_arr[0], _arr[1], {
// } path: '/',
// _search.split('&').forEach(item => { domain: '.educoder.net'
// const _arr = item.split('='); });
// cookie.save(_arr[0], _arr[1], { });
// path: '/', }
// domain: '.educoder.net' }
// });
// });
// }
// }
}
setCookier(); setCookier();
const [isActive, setIsActive] = useState(-1); const [isActive, setIsActive] = useState(-1);
const [tip, setTip] = useState(''); const [tip, setTip] = useState('');
@ -198,7 +192,7 @@ const App = (props) => {
options={{ options={{
selectOnLineNumbers: true, selectOnLineNumbers: true,
automaticLayout: true, automaticLayout: true,
fontSize: `36px` fontSize: `42px`
}} }}
theme='dark' theme='dark'
editorDidMount={handleEditorChange} editorDidMount={handleEditorChange}

@ -30,8 +30,8 @@
// font-size: 24px !important; // font-size: 24px !important;
// transform: scale(2.4); // transform: scale(2.4);
// line-height: 2; // line-height: 2;
font-size: 32px !important; font-size: 34px !important;
transform: scale(2); transform: scale(1.8);
position: relative; position: relative;
// top: 10px; // top: 10px;
} }
@ -47,7 +47,7 @@
} }
.icon-txt{ .icon-txt{
// margin-top: 5px; // margin-top: 5px;
font-size: 28px; font-size: 32px;
} }
} }
} }
@ -106,11 +106,11 @@
.header-title{ .header-title{
color:#637DA6; color:#637DA6;
// font-size: 24px; // font-size: 24px;
font-size: 36px; font-size: 48px;
} }
.header-close{ .header-close{
// font-size: 36px; // font-size: 42px;
font-size: 36px; font-size: 48px;
color: #2EA4FF; color: #2EA4FF;
} }
} }
@ -129,14 +129,14 @@
color: rgba(196, 79, 78, 1); color: rgba(196, 79, 78, 1);
} }
.icon{ .icon{
font-size: 36px !important; font-size: 48px !important;
position: relative; position: relative;
// top: -8px; // top: -8px;
margin-right: 10px; margin-right: 10px;
} }
.result-txt{ .result-txt{
// font-size: 34px; // font-size: 34px;
font-size: 36px; font-size: 48px;
} }
.result-txt-desc{ .result-txt-desc{
max-width: 500px; max-width: 500px;
@ -193,19 +193,19 @@
} }
.case-item-tips{ .case-item-tips{
color: #C67676; color: #C67676;
font-size: 22px; font-size: 38px;
} }
} }
.item-header-desc{ .item-header-desc{
font-size: 36px; font-size: 48px;
color: #405D8C; color: #405D8C;
line-height: 1.5; line-height: 1.5;
// background: gold; // background: gold;
.icon{ .icon{
position: relative; position: relative;
top: -4px; top: -4px;
font-size: 36px !important; font-size: 42px !important;
margin-right: 10px; margin-right: 10px;
} }
&.active{ &.active{
@ -214,12 +214,12 @@
} }
.case-item-tips{ .case-item-tips{
font-size: 36px; font-size: 42px;
} }
.case-item-desc{ .case-item-desc{
display: none; display: none;
flex-direction: column; flex-direction: column;
font-size: 36px; font-size: 42px;
line-height: 1.5; line-height: 1.5;
&.active{ &.active{
@ -229,11 +229,12 @@
.desc-title{ .desc-title{
color: #637DA6; color: #637DA6;
line-height: 2; line-height: 2;
font-size: 48px;
} }
.text-area-style{ .text-area-style{
background:#010E1F !important; background:#010E1F !important;
color: #fff; color: #fff;
font-size: 36px; font-size: 48px;
line-height: 1.5; line-height: 1.5;
border: none; border: none;
} }
@ -283,7 +284,7 @@
font-size: 100px !important; font-size: 100px !important;
} }
.loading-txt{ .loading-txt{
font-size: 36px; font-size: 42px;
} }
} }
} }
@ -315,7 +316,7 @@
.pass-value, .pass-value,
.pass-btn .btn, .pass-btn .btn,
.pass-btn-all .btn{ .pass-btn-all .btn{
font-size: 36px; font-size: 42px;
line-height: 1.5; line-height: 1.5;
} }
.pass-value{ .pass-value{

@ -10,31 +10,21 @@ import axios from 'axios';
import cookie from 'react-cookies' import cookie from 'react-cookies'
// axios.defaults.withCredentials = true; // axios.defaults.withCredentials = true;
const setCookier = () => { const setCookier = () => {
// var u = navigator.userAgent; const _params = window.location.search;
// var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 if (_params) {
// if (isIOS) { let _search = _params.split('?')[1];
// _search.split('&').forEach(item => {
// }else{ // console.log(item);
// const _params = window.location.search; const _arr = item.split('=');
// if (_params) { cookie.remove(_arr[0], {
// let _search = _params.split('?')[1]; path: '/',
// _search.split('&').forEach(item => { domain: '.educoder.net'
// // console.log(item); });
// const _arr = item.split('='); cookie.save(_arr[0], _arr[1], { domain: '.educoder.net', path: '/'});
// cookie.remove(_arr[0], { });
// domain: '.educoder.net', }
// path: '/',
//
// });
// cookie.save(_arr[0], _arr[1], {
// path: '/',
// domain: '.educoder.net'
// });
// });
// }
//
// }
} }
// 获取代码块 // 获取代码块

Loading…
Cancel
Save