合并之后影响的样式、功能等
This commit is contained in:
parent
a05700ed5d
commit
ea737f5b61
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@ if (isDev) {
|
||||||
}
|
}
|
||||||
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
|
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
|
||||||
window.location.search.indexOf('debug=s') !== -1 ? 'student' :
|
window.location.search.indexOf('debug=s') !== -1 ? 'student' :
|
||||||
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'a'
|
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'admin'
|
||||||
}
|
}
|
||||||
window._debugType = debugType;
|
window._debugType = debugType;
|
||||||
export function initAxiosInterceptors(props) {
|
export function initAxiosInterceptors(props) {
|
||||||
|
|
|
@ -6,9 +6,9 @@ const { Search } = Input;
|
||||||
const $ = window.$;
|
const $ = window.$;
|
||||||
const isDev = window.location.port == 3007;
|
const isDev = window.location.port == 3007;
|
||||||
const isdev2= window.location.hostname ==='www.educoder.net'
|
const isdev2= window.location.hostname ==='www.educoder.net'
|
||||||
export const TEST_HOST = "http://39.105.176.215:49999"
|
export const TEST_HOST = "http://192.168.1.40:3000"
|
||||||
export function getImageUrl(path) {
|
export function getImageUrl(path) {
|
||||||
const local = 'http://192.168.1.40:3000';
|
const local = TEST_HOST;
|
||||||
|
|
||||||
if (isDev) {
|
if (isDev) {
|
||||||
return `${local}/${path}`
|
return `${local}/${path}`
|
||||||
|
@ -37,7 +37,7 @@ export function getImage(path) {
|
||||||
// https://www.educoder.net
|
// https://www.educoder.net
|
||||||
// https://testbdweb.trustie.net
|
// https://testbdweb.trustie.net
|
||||||
// const local = 'http://localhost:3000'
|
// const local = 'http://localhost:3000'
|
||||||
const local = 'http://39.105.176.215:49999';
|
const local = TEST_HOST;
|
||||||
if(path.indexOf("http://")===-1){
|
if(path.indexOf("http://")===-1){
|
||||||
if (isDev) {
|
if (isDev) {
|
||||||
return `${local}/images/${path}`
|
return `${local}/images/${path}`
|
||||||
|
@ -49,11 +49,8 @@ export function getImage(path) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getTestImage(path) {
|
export function getTestImage(path) {
|
||||||
// https://www.educoder.net
|
|
||||||
// https://testbdweb.trustie.net
|
|
||||||
// const local = 'http://localhost:3000'
|
|
||||||
const local = 'http://117.50.100.12:49999';
|
const local = 'http://117.50.100.12:49999';
|
||||||
if(path.indexOf("http://")===-1){
|
if(path && path.indexOf("http://")===-1){
|
||||||
if (isDev) {
|
if (isDev) {
|
||||||
return `${local}${path}`
|
return `${local}${path}`
|
||||||
}
|
}
|
||||||
|
@ -132,7 +129,7 @@ export function setImagesUrl(path){
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getUrl(path, goTest) {
|
export function getUrl(path, goTest) {
|
||||||
const local = 'http://39.105.176.215:49999'
|
const local = TEST_HOST;
|
||||||
if (isDev) {
|
if (isDev) {
|
||||||
return `${local}${path?path:''}`
|
return `${local}${path?path:''}`
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ function Footer(){
|
||||||
|
|
||||||
return(
|
return(
|
||||||
<div>
|
<div>
|
||||||
|
<div style={{height:'107px'}}></div>
|
||||||
{value && showhtml(value)}
|
{value && showhtml(value)}
|
||||||
</div>
|
</div>
|
||||||
// {/* <div className="footEdition">
|
// {/* <div className="footEdition">
|
||||||
|
|
|
@ -182,7 +182,7 @@ class NewHeader extends Component {
|
||||||
geturlsdata = () => {
|
geturlsdata = () => {
|
||||||
let url = "/setting.json";
|
let url = "/setting.json";
|
||||||
axios.get(url).then((response) => {
|
axios.get(url).then((response) => {
|
||||||
if (response && response.data) {
|
if (response && response.data && response.data.setting) {
|
||||||
this.setState({ settings: response.data.setting });
|
this.setState({ settings: response.data.setting });
|
||||||
localStorage.setItem('chromesetting', JSON.stringify(response.data.setting));
|
localStorage.setItem('chromesetting', JSON.stringify(response.data.setting));
|
||||||
localStorage.setItem('chromesettingresponse', JSON.stringify(response));
|
localStorage.setItem('chromesettingresponse', JSON.stringify(response));
|
||||||
|
|
|
@ -77,6 +77,7 @@
|
||||||
min-width: 1200px;
|
min-width: 1200px;
|
||||||
z-index: 8;
|
z-index: 8;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
|
padding-bottom: 15px;
|
||||||
p {
|
p {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom:0px !important;
|
margin-bottom:0px !important;
|
||||||
|
|
|
@ -66,17 +66,16 @@ function DetailBanner({ history,list , owner , projectsId , isManager , url , pa
|
||||||
</Link>
|
</Link>
|
||||||
</li>:""
|
</li>:""
|
||||||
}
|
}
|
||||||
{
|
{/* {
|
||||||
item.menu_name === "devops" ?
|
item.menu_name === "devops" ?
|
||||||
<li className={pathname==="devops" ? "active" : ""}>
|
<li className={pathname==="devops" ? "active" : ""}>
|
||||||
{/* <Link to={{ pathname: `/${owner}/${projectsId}/devops${open_devops ? `/dispose`:""}`, state }}> */}
|
|
||||||
<Link to={{ pathname: `/${owner}/${projectsId}/devops`, state:{...state,open_devops} }}>
|
<Link to={{ pathname: `/${owner}/${projectsId}/devops`, state:{...state,open_devops} }}>
|
||||||
<i className="iconfont icon-gongzuoliuicon font-13 mr5 color-grey-3"></i>引擎(Engine)
|
<i className="iconfont icon-gongzuoliuicon font-13 mr5 color-grey-3"></i>引擎(Engine)
|
||||||
{projectDetail && projectDetail.ops_count ? <span>{projectDetail.ops_count}</span> : ""}
|
{projectDetail && projectDetail.ops_count ? <span>{projectDetail.ops_count}</span> : ""}
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
:""
|
:""
|
||||||
}
|
} */}
|
||||||
{/* {
|
{/* {
|
||||||
item.menu_name === "resources" &&
|
item.menu_name === "resources" &&
|
||||||
<li className={pathname==="source" ? "active" : ""}>
|
<li className={pathname==="source" ? "active" : ""}>
|
||||||
|
|
|
@ -59,6 +59,8 @@
|
||||||
}
|
}
|
||||||
.body-show{
|
.body-show{
|
||||||
padding: 5px 10px 10px 10px;
|
padding: 5px 10px 10px 10px;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
& .version-user>a>span{
|
& .version-user>a>span{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -108,6 +110,7 @@
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
border-top: 1px solid #eee;
|
border-top: 1px solid #eee;
|
||||||
|
width: 100%;
|
||||||
// width: 100%;
|
// width: 100%;
|
||||||
a{
|
a{
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -81,10 +81,9 @@ class order_form extends Component {
|
||||||
if (result) {
|
if (result) {
|
||||||
let data ={
|
let data ={
|
||||||
branch_name: result.data.branch_name,
|
branch_name: result.data.branch_name,
|
||||||
issue_tag_ids: [
|
issue_tag_ids:result.data.issue_tags && result.data.issue_tags[0].id ?
|
||||||
result.data.issue_tags && result.data.issue_tags[0].id ?
|
String(result.data.issue_tags[0].id) : []
|
||||||
String(result.data.issue_tags[0].id) : "",
|
,
|
||||||
],
|
|
||||||
fixed_version_id: result.data.fixed_version_id ? String(result.data.fixed_version_id) : "",
|
fixed_version_id: result.data.fixed_version_id ? String(result.data.fixed_version_id) : "",
|
||||||
tracker_id: result.data.tracker_id ? String(result.data.tracker_id) : "",
|
tracker_id: result.data.tracker_id ? String(result.data.tracker_id) : "",
|
||||||
issue_type: result.data.issue_type,
|
issue_type: result.data.issue_type,
|
||||||
|
|
|
@ -115,10 +115,10 @@ class Index extends Component {
|
||||||
{
|
{
|
||||||
projectDetail && projectDetail.permission && (projectDetail.permission === "Owner" || projectDetail.permission === "Admin") ?
|
projectDetail && projectDetail.permission && (projectDetail.permission === "Owner" || projectDetail.permission === "Admin") ?
|
||||||
<li
|
<li
|
||||||
className={pathname.indexOf("setting/special") > -1 ? "active" : ""}
|
className={pathname.indexOf("settings/special") > -1 ? "active" : ""}
|
||||||
>
|
>
|
||||||
<p>
|
<p>
|
||||||
<Link to={`/projects/${owner}/${projectsId}/setting/special`} className="w-100">
|
<Link to={`/${owner}/${projectsId}/settings/special`} className="w-100">
|
||||||
<i className="iconfont icon-jingyan font-18 mr10"></i>
|
<i className="iconfont icon-jingyan font-18 mr10"></i>
|
||||||
特殊开源许可证项目管理
|
特殊开源许可证项目管理
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -172,7 +172,7 @@ class Index extends Component {
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
<Route
|
<Route
|
||||||
path="/projects/:owner/:projectsId/setting/special"
|
path="/:owner/:projectsId/settings/special"
|
||||||
render={(props) => (
|
render={(props) => (
|
||||||
<Special {...this.props} {...props} {...this.state} />
|
<Special {...this.props} {...props} {...this.state} />
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -180,9 +180,12 @@ function New({ form , match , showNotification , history }) {
|
||||||
subTitle={`删除后未来事件将不会推送至此Webhook地址:${data && data.url}`}
|
subTitle={`删除后未来事件将不会推送至此Webhook地址:${data && data.url}`}
|
||||||
/>
|
/>
|
||||||
<Banner>
|
<Banner>
|
||||||
<Link to={`/${owner}/${projectsId}/settings/webhooks`} className="color-blue">Webhooks</Link>
|
<Link to={`/${owner}/${projectsId}/settings/webhooks`} className="color-blue">
|
||||||
<i className="iconfont icon-youjiantou ml5 mr5 font-12"></i>
|
<i className="iconfont icon-zuojiantou mr5 font-16"></i>
|
||||||
<span>{id ? "更新" : "添加"}Webhook</span>
|
Webhooks
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
{/* <Button type="primary" size="large">{id ? "更新" : "添加"}Webhook</Button> */}
|
||||||
</Banner>
|
</Banner>
|
||||||
<div>
|
<div>
|
||||||
<p className="deschead mg"><span>当webhook被触发时,我们将向以下URL发送通知,包括已选择事件的详细信息。更多信息可查阅<a className="color-blue hoverLine" target="_blank" href="https://forum.trustie.net/forums/3408/detail">webhooks指南</a>。</span></p>
|
<p className="deschead mg"><span>当webhook被触发时,我们将向以下URL发送通知,包括已选择事件的详细信息。更多信息可查阅<a className="color-blue hoverLine" target="_blank" href="https://forum.trustie.net/forums/3408/detail">webhooks指南</a>。</span></p>
|
||||||
|
|
|
@ -279,7 +279,10 @@ export function TPMIndexHOC(WrappedComponent, headFoot) {
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</Spin>
|
</Spin>
|
||||||
<NewFooter {...this.state} {...this.props} />
|
{
|
||||||
|
headFoot && headFoot.noFooter ? "" :
|
||||||
|
<NewFooter {...this.state} {...this.props} />
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue