cont.
This commit is contained in:
parent
8ec860eec8
commit
32cdb6ced3
|
|
@ -136,7 +136,7 @@ export function getZoneUrl(path) {
|
|||
let settings = localStorage.chromesetting&&JSON.parse(localStorage.chromesetting);
|
||||
let actionUrl = settings && settings.common.zone;
|
||||
|
||||
return `${actionUrl}${path?path:''}`
|
||||
return `${actionUrl}/zoneAdmin${path?path:''}`
|
||||
}
|
||||
|
||||
export function getUrlmys(path, goTest) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ const wx = window.wx
|
|||
const appId = 'wxf8debe756b4a0309'
|
||||
|
||||
let settings = localStorage && localStorage.chromesetting && localStorage.chromesetting !== "undefined" && JSON.parse(localStorage.chromesetting);
|
||||
let actionUrl = settings && settings.common.zone +'/api';
|
||||
let actionUrl = settings && settings.common.zone +'/zoneAdmin/api';
|
||||
|
||||
const service = axios.create({
|
||||
baseURL: actionUrl,
|
||||
|
|
|
|||
|
|
@ -44,7 +44,9 @@ function News(props) {
|
|||
|
||||
const getTopList = () => {
|
||||
gethomePageDocList(factoryZoneId).then(res => {
|
||||
setMainList(res.data.rows)
|
||||
if (res && res.data && res.data.rows) {
|
||||
setMainList(res.data.rows)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -59,7 +61,7 @@ function News(props) {
|
|||
|
||||
const getHotList = () => {
|
||||
getNewsHotList(factoryZoneId, { pageSize: 1, pageNum: 1 }).then(res => {
|
||||
if (res.data.rows && res.data.rows.length > 0) {
|
||||
if (res && res.data.rows && res.data.rows.length > 0) {
|
||||
setNews(res.data.rows[0])
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import '../../common.scss'
|
|||
gsap.registerPlugin(ScrollTrigger);
|
||||
|
||||
const resourceInfo = [
|
||||
{ name: '项目', title: '工厂开源项目', icon: 'icon-xiangmu', desc: '标准化生产线核心代码及软件工厂开发工具源码', path: '/sf/resources/project' },
|
||||
{ name: '项目', title: '工厂开源项目', icon: 'icon-xiangmu', desc: '基于标准化生产线开发的项目源码、依赖包源码、标准化生产线源码等', path: '/sf/resources/project' },
|
||||
{ name: '版本', title: '生产线安装包', icon: 'icon-banben', desc: '标准化生产线快速迭代版本和稳定支持版本', path: '/sf/resources/releases' },
|
||||
{ name: '工具', title: '共建共用工具', icon: 'icon-gongju', desc: '由菌工集团、科研院所、地方企业等提供,可免费共用的工具', path: '/sf/resources/commontools' },
|
||||
{ name: '软件', title: '开源社区软件', icon: 'icon-gongju', desc: '来自开源社区,可按授权许可使用和复用的各类软件', path: '/sf/resources/devtools' },
|
||||
|
|
|
|||
|
|
@ -65,7 +65,9 @@ function Index(props) {
|
|||
|
||||
const getHotList = () => {
|
||||
getNewsHotList(factoryZoneId, { pageSize: 2, pageNum: 1 }).then(res => {
|
||||
setHotList(res.data.rows)
|
||||
if (res && res.data && res.data.rows) {
|
||||
setHotList(res.data.rows)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -97,7 +97,8 @@ function Index(props) {
|
|||
<h5 className="item-title">{item.name}</h5>
|
||||
</div>
|
||||
<div className="item-tags">
|
||||
<span>共建方</span> <div></div>{item.extendDataSharer}
|
||||
<span>共建方</span> <div></div>
|
||||
<span title={item.extendDataSharer}>{item.extendDataSharer}</span>
|
||||
</div>
|
||||
<div className="item-desc" title={ item.summary }>
|
||||
{item.summary}
|
||||
|
|
|
|||
|
|
@ -103,6 +103,13 @@
|
|||
color: #091221;
|
||||
font-size: 13px;
|
||||
|
||||
span {
|
||||
max-width: 330px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 15px;
|
||||
margin-right: 5px;
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ function Index(props) {
|
|||
|
||||
<div className="project-content-top">
|
||||
<div className="project-content-top-left">
|
||||
<p>标准化生产线核心代码及软件工厂开发工具源码</p>
|
||||
<p>基于标准化生产线开发的项目源码、依赖包源码、标准化生产线源码等</p>
|
||||
<div className="content-top-list">
|
||||
{
|
||||
contentList.map((item, index) => {
|
||||
|
|
@ -90,7 +90,8 @@ function Index(props) {
|
|||
})
|
||||
} */}
|
||||
<img src={ index % 3 === 0 ? user1 : user2} alt="" />
|
||||
<span>共建方</span> <div></div>{project.name.split('/')[0]}
|
||||
<span>共建方</span> <div></div>
|
||||
<span title={ project.name.split('/')[0] }>{project.name.split('/')[0]}</span>
|
||||
</div>
|
||||
<div className="item-desc">
|
||||
{project.description}
|
||||
|
|
@ -140,7 +141,8 @@ function Index(props) {
|
|||
})
|
||||
} */}
|
||||
<img src={user2} alt="" />
|
||||
<span>共建方</span> <div></div>{project.name.split('/')[0]}
|
||||
<span>共建方</span> <div></div>
|
||||
<span title={ project.name.split('/')[0] }>{project.name.split('/')[0]}</span>
|
||||
</div>
|
||||
|
||||
<div className="item-desc">
|
||||
|
|
|
|||
|
|
@ -164,8 +164,8 @@
|
|||
}
|
||||
|
||||
&-content {
|
||||
background: linear-gradient(180deg,#f4f8fd6c 0%,#f4f8fd6c 80.62%,#f4f8fd 100%), #ffffff;
|
||||
border-radius:80px 80px 0px 0px;
|
||||
background: linear-gradient(180deg, #f4f8fd6c 0%, #f4f8fd6c 80.62%, #f4f8fd 100%), #ffffff;
|
||||
border-radius: 80px 80px 0px 0px;
|
||||
padding-top: 28px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
@ -330,6 +330,13 @@
|
|||
color: #091221;
|
||||
font-size: 13px;
|
||||
|
||||
span {
|
||||
max-width: 200px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 15px;
|
||||
margin-right: 5px;
|
||||
|
|
@ -349,19 +356,25 @@
|
|||
margin-right: 32px;
|
||||
}
|
||||
|
||||
&:nth-child(1), &:nth-child(4) {
|
||||
&:nth-child(1),
|
||||
&:nth-child(4) {
|
||||
color: #ffffff;
|
||||
h5, div {
|
||||
|
||||
h5,
|
||||
div {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.item-data {
|
||||
span {
|
||||
color: #ffffff;
|
||||
|
||||
&:after {
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item-tags {
|
||||
height: 32px;
|
||||
background: rgba(179, 190, 252, 0.18);
|
||||
|
|
@ -453,6 +466,13 @@
|
|||
color: #091221;
|
||||
font-size: 13px;
|
||||
|
||||
span {
|
||||
max-width: 200px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 15px;
|
||||
margin-right: 5px;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ function CloneAddress({ http_url, ssh_url, zip_url, tar_url }) {
|
|||
|
||||
if (match && match[1]) {
|
||||
const path = match[1];
|
||||
setCloneUrl(`${window.location.hostname}:3000/${path}`);
|
||||
setCloneUrl(`${ window.location.protocol }//${window.location.hostname}:3000/${path}`);
|
||||
} else {
|
||||
setCloneUrl(http_url);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ class NewHeader extends Component {
|
|||
}
|
||||
window._header_componentHandler = this;
|
||||
|
||||
this.getZoneList(settings && settings.common.zone +'/api')
|
||||
this.getZoneList(settings && settings.common.zone +'/zoneAdmin/api')
|
||||
|
||||
try {
|
||||
window.sessionStorage.setItem("yslgeturls", JSON.stringify(window.location.href))
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ function beforeFetch(actionUrl){
|
|||
return service;
|
||||
}
|
||||
let settings = localStorage.chromesetting&& localStorage.chromesetting !=="undefined"&& JSON.parse(localStorage.chromesetting);
|
||||
let actionUrl = settings && settings.common.zone +'/api';
|
||||
let actionUrl = settings && settings.common.zone +'/zoneAdmin/api';
|
||||
|
||||
const service = beforeFetch(actionUrl);
|
||||
export const httpUrl = actionUrl;
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ function Banner({isVisible}) {
|
|||
{/* 底部统计数据 */}
|
||||
<div className="df stats-container pt10 pb25">
|
||||
<div className="stat-item">
|
||||
<div className="stat-number">24</div>
|
||||
<div className="stat-number">35</div>
|
||||
<div className="stat-label">开源项目</div>
|
||||
</div>
|
||||
<Divider type="vertical" style={{ height: '60px' }} className="mt10 opacity4" />
|
||||
|
|
@ -165,7 +165,7 @@ function Banner({isVisible}) {
|
|||
</div>
|
||||
<Divider type="vertical" style={{ height: '60px' }} className="mt10 opacity4" />
|
||||
<div className="stat-item">
|
||||
<div className="stat-number">99</div>
|
||||
<div className="stat-number">20000<span className='font-30 ml3'>+</span></div>
|
||||
<div className="stat-label">已治理组件</div>
|
||||
</div>
|
||||
<Divider type="vertical" style={{ height: '60px' }} className="mt10 opacity4" />
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ function beforeFetch(actionUrl){
|
|||
return service;
|
||||
}
|
||||
let settings = localStorage.chromesetting&& localStorage.chromesetting !=="undefined"&& JSON.parse(localStorage.chromesetting);
|
||||
let actionUrl = settings && settings.common.zone +'/api';
|
||||
let actionUrl = settings && settings.common.zone +'/zoneAdmin/api';
|
||||
|
||||
const service = beforeFetch(actionUrl);
|
||||
export const httpUrl = actionUrl;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ let baseZoneUrl = `${zoneUrl}/api`
|
|||
if (__CLIENT__ ) {
|
||||
let settings = localStorage.chromesetting && localStorage.chromesetting !== 'undefined' &&JSON.parse(localStorage.chromesetting);
|
||||
baseUrl = settings && settings.common && settings.common.main_site_url ? `${settings.common.main_site_url}/api` : baseUrl;
|
||||
baseZoneUrl = settings ? `${settings && settings.common.zone}/api` : `${zoneUrl}/api`;
|
||||
baseZoneUrl = settings ? `${settings && settings.common.zone}/zoneAdmin/api` : `${zoneUrl}/api`;
|
||||
}
|
||||
console.log("__CLIENT__",__CLIENT__,baseUrl);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue