mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-06 12:45:22 +08:00
Merge branch 'dev' of gitlab.corp.qunar.com:mfe/yapi into dev
This commit is contained in:
commit
5e3c699822
@ -91,7 +91,7 @@ const HomeGuest = () => (
|
||||
<li className="item"><span className="orderNum">3</span><span>    <span className="string">"errmsg|4-8"</span><span>: </span><span className="string">"@string"</span><span>,  </span></span></li>
|
||||
<li className="item"><span className="orderNum">4</span><span>    <span className="string">"data"</span><span>: {  </span></span></li>
|
||||
<li className="item"><span className="orderNum">5</span><span>        <span className="string">"boolean|1"</span><span>: </span><span className="keyword">true</span><span>,  </span></span></li>
|
||||
<li className="item"><span className="orderNum">6</span><span>        <span className="string">"array|4"</span><span>: <span className="number">1</span>,  </span></span></li>
|
||||
<li className="item"><span className="orderNum">6</span><span>        <span className="string">"array|2"</span><span>: [<span className="string">"Bob"</span>, <span className="string">"Jim"</span>],  </span></span></li>
|
||||
<li className="item"><span className="orderNum">7</span><span>        <span className="string">"combine"</span><span>: </span><span className="string">"@boolean & @array"</span><span>  </span></span></li>
|
||||
<li className="item"><span className="orderNum">8</span><span>    }  </span></li>
|
||||
<li className="item"><span className="orderNum orderNum-last">9</span><span>}  </span></li>
|
||||
@ -109,8 +109,8 @@ const HomeGuest = () => (
|
||||
<li className="alt"><span className="orderNum">3</span><span>  <span className="string">"errmsg"</span><span>: </span><span className="string">"JtkMIoRu)N#ie^h%Z77[F)"</span><span>,  </span></span></li>
|
||||
<li className=""><span className="orderNum">4</span><span>  <span className="string">"data"</span><span>: {  </span></span></li>
|
||||
<li className="alt"><span className="orderNum">5</span><span>    <span className="string">"boolean"</span><span>: </span><span className="keyword">true</span><span>,  </span></span></li>
|
||||
<li className=""><span className="orderNum">6</span><span>    <span className="string">"array"</span><span>: </span><span className="number">4</span><span>,  </span></span></li>
|
||||
<li className="alt"><span className="orderNum">7</span><span>    <span className="string">"combine"</span><span>: </span><span className="string">"true & 4"</span><span>  </span></span></li>
|
||||
<li className=""><span className="orderNum">6</span><span>    <span className="string">"array"</span><span>: </span>[<span className="string">"Bob"</span>, <span className="string">"Jim"</span>, <span className="string">"Bob"</span>, <span className="string">"Jim"</span>]<span>,  </span></span></li>
|
||||
<li className="alt"><span className="orderNum">7</span><span>    <span className="string">"combine"</span><span>: </span><span className="string">"true & Bob,Jim,Bob,Jim"</span><span>  </span></span></li>
|
||||
<li className=""><span className="orderNum">8</span><span>  }  </span></li>
|
||||
<li className="alt"><span className="orderNum orderNum-last">9</span><span>}  </span></li>
|
||||
</ol>
|
||||
|
@ -46,11 +46,7 @@ class Login extends Component {
|
||||
if (res.payload.data.errcode == 0) {
|
||||
this.props.history.push('/group');
|
||||
message.success('登录成功! ');
|
||||
} else {
|
||||
message.error(res.payload.data.errmsg);
|
||||
}
|
||||
}).catch((err) => {
|
||||
message.error(err);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -48,7 +48,7 @@ class InterfaceMenu extends Component {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} key
|
||||
* @param {String} key
|
||||
*/
|
||||
changeModal = (key, status) => {
|
||||
//visible add_cat_modal_visible change_cat_modal_visible del_cat_modal_visible
|
||||
@ -112,7 +112,7 @@ class InterfaceMenu extends Component {
|
||||
this.setState({
|
||||
visible: false
|
||||
});
|
||||
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
@ -282,7 +282,7 @@ class InterfaceMenu extends Component {
|
||||
if (this.state.filter) {
|
||||
let arr = [];
|
||||
menuList = this.props.list.filter(item => {
|
||||
if (item.name.indexOf(this.state.filter) === -1) {
|
||||
if (item.name.indexOf(this.state.filter) === -1) {
|
||||
return false;
|
||||
}
|
||||
arr.push('cat_' + item._id)
|
||||
@ -328,7 +328,7 @@ class InterfaceMenu extends Component {
|
||||
selectedKeys={currentKes.selects}
|
||||
onSelect={this.onSelect}
|
||||
>
|
||||
<TreeNode title={<Link style={{ fontSize: '14px' }} to={"/project/" + matchParams.id + "/interface/api"}><Icon type="folder" style={{ marginRight: 5 }} />全部接口</Link>} key="root" />
|
||||
<TreeNode className="item-all-interface" title={<Link style={{ fontSize: '14px' }} to={"/project/" + matchParams.id + "/interface/api"}><Icon type="folder" style={{ marginRight: 5 }} />全部接口</Link>} key="root" />
|
||||
{menuList.map((item) => {
|
||||
return <TreeNode title={<div>
|
||||
<Link className="interface-item" to={"/project/" + matchParams.id + "/interface/api/cat_" + item._id} ><Icon type="folder-open" style={{ marginRight: 5 }} />{item.name}</Link>
|
||||
|
@ -1,14 +1,16 @@
|
||||
.web-content{
|
||||
.web-content{
|
||||
.left-menu{
|
||||
min-height: 5rem;
|
||||
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.20);
|
||||
background: #FFF;
|
||||
border-radius:5px;
|
||||
margin: 3px;
|
||||
// .item-all-interface {
|
||||
// background-color: red;
|
||||
// }
|
||||
.ant-tabs-bar{
|
||||
border-bottom: none;
|
||||
margin-bottom: 0
|
||||
|
||||
}
|
||||
.ant-tabs-nav{
|
||||
width:100%;
|
||||
@ -40,7 +42,7 @@
|
||||
height: 40px;
|
||||
line-height: 31px;
|
||||
}
|
||||
|
||||
|
||||
.interface-filter{
|
||||
padding-left: 10px;
|
||||
height:45px;
|
||||
@ -52,7 +54,7 @@
|
||||
a{
|
||||
color: #333
|
||||
}
|
||||
|
||||
|
||||
.btn-http{
|
||||
height: 23px;
|
||||
font-size: 10px;
|
||||
@ -93,8 +95,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -27,4 +27,3 @@ if (process.env.NODE_ENV === 'production') {
|
||||
document.getElementById('yapi')
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -92,3 +92,9 @@ em {
|
||||
.pannel-without-tab {
|
||||
min-height: 5rem;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
html {
|
||||
width: min-content !important;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user