Skip to content

Commit

Permalink
feat: 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoxiaomumu committed Nov 9, 2018
2 parents 29c67b8 + 5939869 commit ee8308c
Show file tree
Hide file tree
Showing 93 changed files with 834,450 additions and 2,058 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ target/
.settings/
.project
.classpath
.history

# idea ignore
.idea/
Expand Down
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/docs
/test
/static/doc
/iconfont
/ydoc.js
/ydocfile.js
Binary file removed .package.json.swp
Binary file not shown.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
### v1.4.1


* 支持任何人都可以添加分组,只有管理员才能修改项目是否公开
* 支持 mongodb 集群

#### Bug Fixed
* 修改 mock严格模式,GET带有 JSON BODY 导致的验证问题
* 对 queryPath 改动导致的bug,支持通过 xxx?controller=name 等 query 参数区分路径
* 因 tui-editor 需要安装github 依赖,导致部分机器无法部署成功的问题


### v1.3.23

* 接口tag功能
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ YApi 是<strong>高效</strong>、<strong>易用</strong>、<strong>功能强大
* [yapi sso 登录插件](https://github.com/YMFE/yapi-plugin-qsso)
* [yapi cas 登录插件](https://github.com/wsfe/yapi-plugin-cas) By wsfe

### YApi 一些工具
* [mysql服务http工具,可配合做自动化测试](https://github.com/hellosean1025/http-mysql-server)

### YApi docker部署(非官方)
* [使用 alpine 版 docker 镜像快速部署 yapi](https://www.jianshu.com/p/a97d2efb23c5)

Expand All @@ -61,6 +64,7 @@ YApi 是<strong>高效</strong>、<strong>易用</strong>、<strong>功能强大
* 快手
* 便利蜂
* 中商惠民
* 新浪

### Authors
* [hellosean1025](https://github.com/hellosean1025)
Expand Down
4 changes: 2 additions & 2 deletions client/containers/AddProject/AddProject.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ class ProjectList extends Component {
<span className="radio-desc">只有组长和项目开发者可以索引并查看项目信息</span>
</Radio>
<br />
<Radio value="public" className="radio">
{/* <Radio value="public" className="radio">
<Icon type="unlock" />公开<br />
<span className="radio-desc">任何人都可以索引并查看项目信息</span>
</Radio>
</Radio> */}
</RadioGroup>
)}
</FormItem>
Expand Down
17 changes: 6 additions & 11 deletions client/containers/Group/GroupList/GroupList.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,17 +221,12 @@ export default class GroupList extends Component {
<div className="curr-group">
<div className="curr-group-name">
<span className="name">{currGroup.group_name}</span>
{/* this.props.curUserRole === "admin" || this.props.curUserRoleInGroup === 'owner' ? (menu) : '' */}
{/* 只有超级管理员能添加分组 */
this.props.curUserRole === 'admin' ? (
<Tooltip title="添加分组">
<a className="editSet">
<Icon className="btn" type="folder-add" onClick={this.showModal} />
</a>
</Tooltip>
) : (
''
)}
<Tooltip title="添加分组">
<a className="editSet">
<Icon className="btn" type="folder-add" onClick={this.showModal} />
</a>
</Tooltip>

</div>
<div className="curr-group-desc">简介: {currGroup.group_desc}</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions client/containers/Login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class Login extends Component {

render() {
const { getFieldDecorator } = this.props.form;

const { isLDAP } = this.props;

const emailRule =
Expand Down
11 changes: 7 additions & 4 deletions client/containers/Login/LoginWrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import './Login.scss';
const TabPane = Tabs.TabPane;

@connect(state => ({
loginWrapActiveKey: state.user.loginWrapActiveKey
loginWrapActiveKey: state.user.loginWrapActiveKey,
canRegister: state.user.canRegister
}))
export default class LoginWrap extends Component {
constructor(props) {
Expand All @@ -17,11 +18,13 @@ export default class LoginWrap extends Component {

static propTypes = {
form: PropTypes.object,
loginWrapActiveKey: PropTypes.string
loginWrapActiveKey: PropTypes.string,
canRegister: PropTypes.bool
};

render() {
const { loginWrapActiveKey } = this.props;
const { loginWrapActiveKey, canRegister } = this.props;
{/** show only login when register is disabled */}
return (
<Tabs
defaultActiveKey={loginWrapActiveKey}
Expand All @@ -31,7 +34,7 @@ export default class LoginWrap extends Component {
<TabPane tab="登录" key="1">
<LoginForm />
</TabPane>
<TabPane tab="注册" key="2">
<TabPane tab="注册" key="2" disabled={!canRegister}>
<RegForm />
</TabPane>
</Tabs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,10 @@ class InterfaceColContent extends Component {
</Row>
<Row type="flex" justify="space-around" className="row" align="middle">
<Col span={21} className="autoTestUrl">
<a href={localUrl + autoTestsUrl} target="_blank">
<a
target="_blank"
rel="noopener noreferrer"
href={localUrl + autoTestsUrl} >
{autoTestsUrl}
</a>
</Col>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ import mockEditor from 'client/components/AceEditor/mockEditor';
import AceEditor from 'client/components/AceEditor/AceEditor';
import axios from 'axios';
import { MOCK_SOURCE } from '../../../../constants/variable.js';
import Editor from 'common/tui-editor/dist/tui-editor-Editor-all.min.js';
const jSchema = require('json-schema-editor-visual');
const ResBodySchema = jSchema({ lang: 'zh_CN', mock: MOCK_SOURCE });
const ReqBodySchema = jSchema({ lang: 'zh_CN', mock: MOCK_SOURCE });
const TabPane = Tabs.TabPane;

require('codemirror/lib/codemirror.css'); // codemirror
require('tui-editor/dist/tui-editor.css'); // editor ui
require('tui-editor/dist/tui-editor-contents.css'); // editor content
require('highlight.js/styles/github.css'); // code block highlight

require('common/tui-editor/dist/tui-editor.css'); // editor ui
require('common/tui-editor/dist/tui-editor-contents.css'); // editor content
require('./editor.css');
var Editor = require('tui-editor');


function checkIsJsonSchema(json) {
try {
Expand Down
Loading

0 comments on commit ee8308c

Please sign in to comment.