This commit is contained in:
caishi 2021-11-19 14:26:41 +08:00
commit a2f63732cf
14 changed files with 366 additions and 118 deletions

View File

@ -1,8 +1,8 @@
@font-face { @font-face {
font-family: "iconfont"; /* Project id 2340181 */ font-family: "iconfont"; /* Project id 2340181 */
src: url('iconfont.woff2?t=1634881729644') format('woff2'), src: url('iconfont.woff2?t=1637302844926') format('woff2'),
url('iconfont.woff?t=1634881729644') format('woff'), url('iconfont.woff?t=1637302844926') format('woff'),
url('iconfont.ttf?t=1634881729644') format('truetype'); url('iconfont.ttf?t=1637302844926') format('truetype');
} }
.iconfont { .iconfont {
@ -13,6 +13,106 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-zhishitupu:before {
content: "\e8fc";
}
.icon-jisuanji1:before {
content: "\e8fd";
}
.icon-dianzi1:before {
content: "\e8ff";
}
.icon-junshililun1:before {
content: "\e900";
}
.icon-ruanjiangongcheng1:before {
content: "\e901";
}
.icon-yixue1:before {
content: "\e902";
}
.icon-tongxin1:before {
content: "\e904";
}
.icon-zhengcefagui1:before {
content: "\e906";
}
.icon-dashuju:before {
content: "\e8f3";
}
.icon-rengongzhineng:before {
content: "\e8f6";
}
.icon-a-shuangyinhao12x:before {
content: "\e8f2";
}
.icon-dingbu:before {
content: "\e8ee";
}
.icon-bangzhu1:before {
content: "\e8ef";
}
.icon-yijianfankui2:before {
content: "\e8f0";
}
.icon-fenxiang:before {
content: "\e8f1";
}
.icon-dizhi:before {
content: "\e8eb";
}
.icon-youxiang1:before {
content: "\e8ec";
}
.icon-dianhuaicon:before {
content: "\e8ed";
}
.icon-tianjiaicon:before {
content: "\e8e8";
}
.icon-lingshengicon:before {
content: "\e8ea";
}
.icon-gengduoicon:before {
content: "\e8e5";
}
.icon-shijianicon:before {
content: "\e8e7";
}
.icon-mimaicon:before {
content: "\e8e1";
}
.icon-gouicon:before {
content: "\e8e2";
}
.icon-zhankaiicon:before {
content: "\e8e3";
}
.icon-wenjian7:before { .icon-wenjian7:before {
content: "\e8e0"; content: "\e8e0";
} }

File diff suppressed because one or more lines are too long

View File

@ -5,6 +5,181 @@
"css_prefix_text": "icon-", "css_prefix_text": "icon-",
"description": "", "description": "",
"glyphs": [ "glyphs": [
{
"icon_id": "25748537",
"name": "知识图谱",
"font_class": "zhishitupu",
"unicode": "e8fc",
"unicode_decimal": 59644
},
{
"icon_id": "25748551",
"name": "计算机",
"font_class": "jisuanji1",
"unicode": "e8fd",
"unicode_decimal": 59645
},
{
"icon_id": "25748553",
"name": "电子",
"font_class": "dianzi1",
"unicode": "e8ff",
"unicode_decimal": 59647
},
{
"icon_id": "25748554",
"name": "军事理论",
"font_class": "junshililun1",
"unicode": "e900",
"unicode_decimal": 59648
},
{
"icon_id": "25748555",
"name": "软件工程",
"font_class": "ruanjiangongcheng1",
"unicode": "e901",
"unicode_decimal": 59649
},
{
"icon_id": "25748556",
"name": "医学",
"font_class": "yixue1",
"unicode": "e902",
"unicode_decimal": 59650
},
{
"icon_id": "25748558",
"name": "通信",
"font_class": "tongxin1",
"unicode": "e904",
"unicode_decimal": 59652
},
{
"icon_id": "25748560",
"name": "政策法规",
"font_class": "zhengcefagui1",
"unicode": "e906",
"unicode_decimal": 59654
},
{
"icon_id": "25748528",
"name": "大数据",
"font_class": "dashuju",
"unicode": "e8f3",
"unicode_decimal": 59635
},
{
"icon_id": "25748531",
"name": "人工智能",
"font_class": "rengongzhineng",
"unicode": "e8f6",
"unicode_decimal": 59638
},
{
"icon_id": "25733167",
"name": "双引号(1)@2x",
"font_class": "a-shuangyinhao12x",
"unicode": "e8f2",
"unicode_decimal": 59634
},
{
"icon_id": "25701947",
"name": "顶部",
"font_class": "dingbu",
"unicode": "e8ee",
"unicode_decimal": 59630
},
{
"icon_id": "25701948",
"name": "帮助",
"font_class": "bangzhu1",
"unicode": "e8ef",
"unicode_decimal": 59631
},
{
"icon_id": "25701949",
"name": "意见反馈",
"font_class": "yijianfankui2",
"unicode": "e8f0",
"unicode_decimal": 59632
},
{
"icon_id": "25701950",
"name": "分享",
"font_class": "fenxiang",
"unicode": "e8f1",
"unicode_decimal": 59633
},
{
"icon_id": "25580217",
"name": "地址",
"font_class": "dizhi",
"unicode": "e8eb",
"unicode_decimal": 59627
},
{
"icon_id": "25580218",
"name": "邮箱",
"font_class": "youxiang1",
"unicode": "e8ec",
"unicode_decimal": 59628
},
{
"icon_id": "25580219",
"name": "电话icon",
"font_class": "dianhuaicon",
"unicode": "e8ed",
"unicode_decimal": 59629
},
{
"icon_id": "25284174",
"name": "添加icon",
"font_class": "tianjiaicon",
"unicode": "e8e8",
"unicode_decimal": 59624
},
{
"icon_id": "25284175",
"name": "铃声icon",
"font_class": "lingshengicon",
"unicode": "e8ea",
"unicode_decimal": 59626
},
{
"icon_id": "25204490",
"name": "更多icon",
"font_class": "gengduoicon",
"unicode": "e8e5",
"unicode_decimal": 59621
},
{
"icon_id": "25204491",
"name": "时间icon",
"font_class": "shijianicon",
"unicode": "e8e7",
"unicode_decimal": 59623
},
{
"icon_id": "25188228",
"name": "密码icon",
"font_class": "mimaicon",
"unicode": "e8e1",
"unicode_decimal": 59617
},
{
"icon_id": "25188229",
"name": "钩icon",
"font_class": "gouicon",
"unicode": "e8e2",
"unicode_decimal": 59618
},
{
"icon_id": "25188230",
"name": "展开icon",
"font_class": "zhankaiicon",
"unicode": "e8e3",
"unicode_decimal": 59619
},
{ {
"icon_id": "24656750", "icon_id": "24656750",
"name": "文件", "name": "文件",

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -55,28 +55,6 @@ class NewHeader extends Component {
this.geturlsdata(); this.geturlsdata();
window._header_componentHandler = this; window._header_componentHandler = this;
//下拉框的显示隐藏
// var hoverTimeout;
// var hoveredPanel;
// $(".edu-menu-panel").hover(function () {
// if (hoverTimeout) { // 一次只显示一个panel
// if (hoveredPanel && hoveredPanel !== this) {
// $(hoveredPanel).find(".edu-menu-list").hide()
// }
// clearTimeout(hoverTimeout);
// hoverTimeout = null;
// }
// hoveredPanel = this;
// $(this).find(".edu-menu-list").show();
// }, function () {
// var that = this;
// // 延迟hide
// hoverTimeout = setTimeout(function () {
// $(that).find(".edu-menu-list").hide();
// }, 800)
// });
//获取游览器地址
try { try {
window.sessionStorage.setItem("yslgeturls", JSON.stringify(window.location.href)) window.sessionStorage.setItem("yslgeturls", JSON.stringify(window.location.href))
} catch (e) {} } catch (e) {}

View File

@ -242,6 +242,7 @@ class Detail extends Component {
} else if (result.data.mirror_status === 2) { } else if (result.data.mirror_status === 2) {
this.deleteProjectBack(); this.deleteProjectBack();
} else { } else {
this.getBanner();
this.getDetail(); this.getDetail();
this.setState({ this.setState({
firstSync: false, firstSync: false,
@ -287,6 +288,7 @@ class Detail extends Component {
this.deleteProjectBack(); this.deleteProjectBack();
} }
this.getDetail(); this.getDetail();
this.getBanner();
} }
this.setState({ this.setState({
firstSync: false, firstSync: false,
@ -317,7 +319,6 @@ class Detail extends Component {
getDetail = () => { getDetail = () => {
const { projectsId, owner } = this.props.match.params; const { projectsId, owner } = this.props.match.params;
this.getBanner();
const url = `/${owner}/${projectsId}/detail.json`; const url = `/${owner}/${projectsId}/detail.json`;
axios.get(url).then((result) => { axios.get(url).then((result) => {
if (result && result.data) { if (result && result.data) {

View File

@ -56,14 +56,6 @@ class Index extends Component {
componentDidMount = () => { componentDidMount = () => {
// 获取拥有者列表 // 获取拥有者列表
this.getOwner(); this.getOwner();
// 获取项目类别
this.getCategory();
// 获取项目语言
this.getLanguage();
// 获取Gitignore
this.getGitignore();
// 获取开源许可证
this.getLicenses();
//判断是否为删除新建项目失败后返回,并执行对应逻辑 //判断是否为删除新建项目失败后返回,并执行对应逻辑
this.isDeleteProjectBack(); this.isDeleteProjectBack();
} }
@ -307,6 +299,39 @@ class Index extends Component {
}) })
} }
showCateFunc =(e)=>{
const { CategoryList } = this.state;
this.setState({categoreFlag:e.target.checked});
// 获取项目类别
if(e.target.checked && (!CategoryList || (CategoryList && CategoryList.length===0))){
this.getCategory();
}
}
showLanguageFunc =(e)=>{
const { LanguageList } = this.state;
this.setState({languageFlag:e.target.checked});
// 获取项目语言
if(e.target.checked && (!LanguageList || (LanguageList && LanguageList.length===0))){
this.getLanguage();
}
}
showIgnoreFunc =(e)=>{
const { GitignoreList } = this.state;
this.setState({ignoreFlag:e.target.checked})
if(e.target.checked && (!GitignoreList || (GitignoreList && GitignoreList.length===0))){
// 获取Gitignore
this.getGitignore();
}
}
showLicenseFunc =(e)=>{
const { LicensesList } = this.state;
this.setState({licenseFlag:e.target.checked})
if(e.target.checked && (!LicensesList || (LicensesList && LicensesList.length===0))){
// 获取开源许可证
this.getLicenses();
}
}
render() { render() {
const { getFieldDecorator } = this.props.form; const { getFieldDecorator } = this.props.form;
// 项目类型deposit-托管项目mirror-镜像项目 // 项目类型deposit-托管项目mirror-镜像项目
@ -472,7 +497,7 @@ class Index extends Component {
className="privatePart" className="privatePart"
> >
{getFieldDecorator('ignoreFlag')( {getFieldDecorator('ignoreFlag')(
<Checkbox checked={ignoreFlag} onChange={(e)=>this.setState({ignoreFlag:e.target.checked})}>.gitignore</Checkbox> <Checkbox checked={ignoreFlag} onChange={(e)=>this.showIgnoreFunc(e)}>.gitignore</Checkbox>
)} )}
</Form.Item> </Form.Item>
{ ignoreFlag && { ignoreFlag &&
@ -499,7 +524,7 @@ class Index extends Component {
className="privatePart" className="privatePart"
> >
{getFieldDecorator('licenseFlag')( {getFieldDecorator('licenseFlag')(
<Checkbox checked={licenseFlag} onChange={(e)=>this.setState({licenseFlag:e.target.checked})}>开源许可证</Checkbox> <Checkbox checked={licenseFlag} onChange={(e)=>this.showLicenseFunc(e)}>开源许可证</Checkbox>
)} )}
</Form.Item> </Form.Item>
{ licenseFlag && { licenseFlag &&
@ -546,7 +571,7 @@ class Index extends Component {
className="privatePart" className="privatePart"
> >
{getFieldDecorator('categoreFlag')( {getFieldDecorator('categoreFlag')(
<Checkbox checked={categoreFlag} onChange={(e)=>this.setState({categoreFlag:e.target.checked})}>项目类别</Checkbox> <Checkbox checked={categoreFlag} onChange={(e)=>this.showCateFunc(e)}>项目类别</Checkbox>
)} )}
</Form.Item> </Form.Item>
{categoreFlag && {categoreFlag &&
@ -575,7 +600,7 @@ class Index extends Component {
className="privatePart" className="privatePart"
> >
{getFieldDecorator('languageFlag')( {getFieldDecorator('languageFlag')(
<Checkbox checked={languageFlag} onChange={(e)=>this.setState({languageFlag:e.target.checked})}>项目语言</Checkbox> <Checkbox checked={languageFlag} onChange={(e)=>this.showLanguageFunc(e)}>项目语言</Checkbox>
)} )}
</Form.Item> </Form.Item>
{languageFlag && {languageFlag &&

View File

@ -48,6 +48,7 @@
flex:1; flex:1;
p{ p{
margin:0px; margin:0px;
max-width: 660px;
} }
.notifyInfos{ .notifyInfos{
margin-bottom: 8px; margin-bottom: 8px;

View File

@ -56,7 +56,7 @@ ul,ol,dl{
} }
@media screen and (max-width: 1200px){ @media screen and (max-width: 1200px){
.main{ .main{
width:1000px; width:100%;
margin:10px auto; margin:10px auto;
} }
} }
@ -158,13 +158,24 @@ form{
margin-bottom: 20px; margin-bottom: 20px;
} }
} }
@media screen and (max-width: 1200px){
.main{
width: 100%;
}
.normal{
width: 100%;
}
#root{
width: 1200px;
}
}
@media screen and (max-width: 1000px){ @media screen and (max-width: 1000px){
.main{ .main{
width: 750px; width: 100%;
margin:1rem auto; margin:1rem auto;
} }
.normal{ .normal{
width: 750px; width: 100%;
} }
} }
@media screen and (max-width: 750px){ @media screen and (max-width: 750px){

View File

@ -1,37 +1,23 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom";
import Loading from '../../Loading';
import Loadable from 'react-loadable';
import { TPMIndexHOC } from '../tpm/TPMIndexHOC'; import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
import { SnackbarHOC, getImageUrl } from 'educoder';
import { SnackbarHOC,getImageUrl } from 'educoder';
class Shixunauthority extends Component { class Shixunauthority extends Component {
render() { render() {
return ( return (
<div className="newMain clearfix"> <div className="newMain clearfix">
<div className=" edu-txt-center mt60 mb60"> <div className=" edu-txt-center mt60 mb60">
{/*mt100 mb100*/} <img src={getImageUrl("images/warn/pic_403.jpg")} alt="" />
<img src={getImageUrl("images/warn/pic_403.jpg")} /> <p className="font-18 mt40">
<p className="font-18 mt40"> 您可以稍后尝试&nbsp;<a href="/" className="color-blue">返回首页</a>
您可以稍后尝试&nbsp;<a href="/" 或者&nbsp;
className="color-blue">返回首页</a> <a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=YVGUhY7uK8ovpyd7tG_lHe2qGZ63LOij&jump_from=webapi"
或者&nbsp; className="color-blue">QQ反馈&gt;&gt;</a>
<a target="_blank" </p>
href="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd" </div>
className="color-blue">QQ反馈&gt;&gt;</a>
</p>
</div>
{/*<div style="clear:both;"></div>*/}
{/*<div id="ajax-indicator" style="display:none;"><span>载入中...</span></div>*/}
{/*<div id="ajax-modal" style="display:none;"></div>*/}
</div> </div>
); );
} }
} }
export default SnackbarHOC() (TPMIndexHOC ( Shixunauthority )); export default SnackbarHOC()(TPMIndexHOC(Shixunauthority));

View File

@ -1,37 +1,23 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom";
import Loading from '../../Loading';
import Loadable from 'react-loadable';
import { TPMIndexHOC } from '../tpm/TPMIndexHOC'; import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
import { SnackbarHOC, getImageUrl } from 'educoder';
import { SnackbarHOC,getImageUrl } from 'educoder';
class http500 extends Component { class http500 extends Component {
render() { render() {
return ( return (
<div className="newMain clearfix"> <div className="newMain clearfix">
<div className=" edu-txt-center mt60 mb60"> <div className=" edu-txt-center mt60 mb60">
{/*mt100 mb100*/} <img src={getImageUrl("/images/warn/pic_404.jpg")} alt="" />
<img src={getImageUrl("/images/warn/pic_404.jpg")} /> <p className="font-18 mt40">
<p className="font-18 mt40"> 您可以稍后尝试&nbsp;<a href="/" className="color-blue">返回首页</a>
您可以稍后尝试&nbsp;<a href="/" 或者&nbsp;
className="color-blue">返回首页</a> <a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=YVGUhY7uK8ovpyd7tG_lHe2qGZ63LOij&jump_from=webapi"
或者&nbsp; className="color-blue">QQ反馈&gt;&gt;</a>
<a target="_blank" </p>
href="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd" </div>
className="color-blue">QQ反馈&gt;&gt;</a>
</p>
</div>
{/*<div style="clear:both;"></div>*/}
{/*<div id="ajax-indicator" style="display:none;"><span>载入中...</span></div>*/}
{/*<div id="ajax-modal" style="display:none;"></div>*/}
</div> </div>
); );
} }
} }
export default SnackbarHOC() (TPMIndexHOC ( http500 )); export default SnackbarHOC()(TPMIndexHOC(http500));

View File

@ -1,37 +1,22 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom";
import Loading from '../../Loading';
import Loadable from 'react-loadable';
import { TPMIndexHOC } from '../tpm/TPMIndexHOC'; import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
import { SnackbarHOC, getImageUrl } from 'educoder';
import { SnackbarHOC,getImageUrl } from 'educoder';
class Shixunnopage extends Component { class Shixunnopage extends Component {
render() { render() {
return ( return (
<div className="newMain clearfix"> <div className="newMain clearfix">
<div className=" edu-txt-center mt60 mb60"> <div className=" edu-txt-center mt60 mb60">
{/*mt100 mb100*/} <img src={getImageUrl("images/warn/pic_500.jpg")} alt="" />
<img src={getImageUrl("images/warn/pic_500.jpg")} /> <p className="font-18 mt40">
<p className="font-18 mt40"> 您可以稍后尝试&nbsp;<a href="/" className="color-blue">返回首页</a>
您可以稍后尝试&nbsp;<a href="/" 或者&nbsp;
className="color-blue">返回首页</a> <a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=YVGUhY7uK8ovpyd7tG_lHe2qGZ63LOij&jump_from=webapi"
或者&nbsp; className="color-blue">QQ反馈&gt;&gt;</a>
<a target="_blank" </p>
href="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd" </div>
className="color-blue">QQ反馈&gt;&gt;</a>
</p>
</div>
{/*<div style="clear:both;"></div>*/}
{/*<div id="ajax-indicator" style="display:none;"><span>载入中...</span></div>*/}
{/*<div id="ajax-modal" style="display:none;"></div>*/}
</div> </div>
); );
} }
} }
export default SnackbarHOC() (TPMIndexHOC ( Shixunnopage )); export default SnackbarHOC()(TPMIndexHOC(Shixunnopage));