From 7f050f45fbbdbb6487eb323c8cda53ff95f090a4 Mon Sep 17 00:00:00 2001 From: suxiaoxin Date: Thu, 24 Aug 2017 21:18:12 +0800 Subject: [PATCH 1/4] fix: interface path icon --- .../Project/Interface/InterfaceList/InterfaceEditForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/containers/Project/Interface/InterfaceList/InterfaceEditForm.js b/client/containers/Project/Interface/InterfaceList/InterfaceEditForm.js index 463a6dc4..751043ad 100644 --- a/client/containers/Project/Interface/InterfaceList/InterfaceEditForm.js +++ b/client/containers/Project/Interface/InterfaceList/InterfaceEditForm.js @@ -388,7 +388,7 @@ class InterfaceEditForm extends Component { 接口路径  - + From 481e951d573494b4e37d0b69b9464b498be15b1c Mon Sep 17 00:00:00 2001 From: "wenbo.dong" Date: Thu, 24 Aug 2017 21:48:53 +0800 Subject: [PATCH 2/4] =?UTF-8?q?feat:=20flag=E5=9B=BE=E6=A0=87=E6=9B=B4?= =?UTF-8?q?=E6=8D=A2=E4=B8=BAbeta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Header/Header.js | 4 +- client/components/Header/Header.scss | 9 +++-- index.html | 55 ++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 index.html diff --git a/client/components/Header/Header.js b/client/components/Header/Header.js index 36890db7..8ae0e13a 100644 --- a/client/components/Header/Header.js +++ b/client/components/Header/Header.js @@ -9,7 +9,7 @@ import { changeMenuItem } from '../../reducer/modules/menu' import { withRouter } from 'react-router'; import Srch from './Search/Search' const { Header } = Layout; -import { logoSVG } from '../../common.js'; +import { logoSVG, betaSVG } from '../../common.js'; const MenuUser = (props) => ( @@ -167,7 +167,7 @@ export default class HeaderCom extends Component {
- {logoSVG('32px')}YAPI + {logoSVG('32px')}YAPI{betaSVG}
diff --git a/client/components/Header/Header.scss b/client/components/Header/Header.scss index f8db2105..25cf96ba 100644 --- a/client/components/Header/Header.scss +++ b/client/components/Header/Header.scss @@ -32,12 +32,13 @@ } .ui-badge { position: absolute; - right: -20px; - top: 10px; + right: -18px; + top: 6px; width: 30px; height: 21px; - background-size: 240px 21px; - background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuWbvuWxgl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDgwMCA3MCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgODAwIDcwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe2ZpbGw6I0Y4NTg2MDt9LnN0MXtmaWxsOiNGRkZGRkY7fS5zdDJ7Zm9udC1mYW1pbHk6J0ZaTFRaSEstLUdCSzEtMCc7fS5zdDN7Zm9udC1zaXplOjI0cHg7fTwvc3R5bGU+PGcgaWQ9IuWbvuWxgl8xXzFfIj48ZyBpZD0i5Zu+5bGCXzIiPjxnPjxyZWN0IHg9IjkiIHk9IjQiIGNsYXNzPSJzdDAiIHdpZHRoPSI4MyIgaGVpZ2h0PSI0NCIvPjwvZz48Zz48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTkyLDQ4YzAsMC01NSw1LjktNjUuNCw1LjlTMTA5LDQ4LDEwOSw0OFY0YzAsMCw5LjQsOC4yLDE5LjgsOC4yUzE5Miw0LDE5Miw0VjQ4eiIvPjwvZz48Zz48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjkyLDQ4YzAsMC0zMS4xLDUuOS00MS41LDUuOVMyMDksNDgsMjA5LDQ4VjRjMCwwLDMxLjEsOS4zLDQxLjUsOS4zUzI5Miw0LDI5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iNGRkYiPjx0ZXh0IHRyYW5zZm9ybT0idHJhbnNsYXRlKDIgMSkiPjx0c3BhbiB4PSIwIiB5PSIxMCI+QmV0YTwvdHNwYW4+PC90ZXh0Pjx0ZXh0IHRyYW5zZm9ybT0idHJhbnNsYXRlKDIgMSkiPjx0c3BhbiB4PSIzMCIgeT0iMTAiPkJldGE8L3RzcGFuPjwvdGV4dD48dGV4dCB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyIDEpIj48dHNwYW4geD0iNjAiIHk9IjEwIj5CZXRhPC90c3Bhbj48L3RleHQ+PHRleHQgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMiAxKSI+PHRzcGFuIHg9IjkwIiB5PSIxMCI+QmV0YTwvdHNwYW4+PC90ZXh0Pjx0ZXh0IHRyYW5zZm9ybT0idHJhbnNsYXRlKDIgMSkiPjx0c3BhbiB4PSIxMjAiIHk9IjEwIj5CZXRhPC90c3Bhbj48L3RleHQ+PHRleHQgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMiAxKSI+PHRzcGFuIHg9IjE1MCIgeT0iMTAiPkJldGE8L3RzcGFuPjwvdGV4dD48dGV4dCB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyIDEpIj48dHNwYW4geD0iMTgwIiB5PSIxMCI+QmV0YTwvdHNwYW4+PC90ZXh0Pjx0ZXh0IHRyYW5zZm9ybT0idHJhbnNsYXRlKDIgMSkiPjx0c3BhbiB4PSIyMTAiIHk9IjEwIj5CZXRhPC90c3Bhbj48L3RleHQ+PC9nPjwvZz48L3N2Zz4=); animation: flag .8s steps(8) infinite; } @keyframes flag { diff --git a/index.html b/index.html new file mode 100644 index 00000000..c42807ef --- /dev/null +++ b/index.html @@ -0,0 +1,55 @@ + + + + + + + + +
+ +
+ + From 6781fc9330aa7f1bd41d07446c391f7c0956524b Mon Sep 17 00:00:00 2001 From: "wenbo.dong" Date: Thu, 24 Aug 2017 21:53:49 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=88=91=E7=9A=84?= =?UTF-8?q?=E5=85=B3=E6=B3=A8=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=ACprojectid?= =?UTF-8?q?=E4=BC=A0=E9=80=92=E9=94=99=E8=AF=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/ProjectCard/ProjectCard.js | 3 ++- client/containers/Follows/Follows.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/ProjectCard/ProjectCard.js b/client/components/ProjectCard/ProjectCard.js index f6f93cf7..0c96a1c0 100644 --- a/client/components/ProjectCard/ProjectCard.js +++ b/client/components/ProjectCard/ProjectCard.js @@ -67,9 +67,10 @@ class ProjectCard extends Component { render() { const { projectData, inFollowPage } = this.props; + console.log(projectData); return (
- this.props.history.push('/project/' + projectData._id)}> + this.props.history.push('/project/' + (projectData.projectid || projectData._id))}>

{projectData.name || projectData.projectname}

diff --git a/client/containers/Follows/Follows.js b/client/containers/Follows/Follows.js index 999ebbb8..ae231217 100644 --- a/client/containers/Follows/Follows.js +++ b/client/containers/Follows/Follows.js @@ -33,7 +33,6 @@ class Follows extends Component { } receiveRes = () => { - console.log('receive res!'); this.props.getFollowList(this.props.uid).then((res) => { console.log(res); if (res.payload.data.errcode === 0) { From 1ca761d790521d90e0603f0f4707f1e9bce95e30 Mon Sep 17 00:00:00 2001 From: "wenbo.dong" Date: Thu, 24 Aug 2017 21:57:53 +0800 Subject: [PATCH 4/4] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E9=99=88=E5=AD=A4=E9=9B=81=E8=AE=BE=E7=BD=AE=E9=87=8C=EF=BC=8C?= =?UTF-8?q?=E5=88=86=E7=BB=84=E6=88=90=E5=91=98=E6=98=BE=E7=A4=BA'?= =?UTF-8?q?=E6=88=91'=E5=AE=9A=E4=BD=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../containers/Project/Setting/ProjectMember/ProjectMember.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/containers/Project/Setting/ProjectMember/ProjectMember.js b/client/containers/Project/Setting/ProjectMember/ProjectMember.js index 59666d77..76c1417f 100644 --- a/client/containers/Project/Setting/ProjectMember/ProjectMember.js +++ b/client/containers/Project/Setting/ProjectMember/ProjectMember.js @@ -218,8 +218,7 @@ class ProjectMember extends Component { {this.state.groupMemberList.length ? this.state.groupMemberList.map((item, index) => { return (
: null} +

{item.username}{item.uid === this.props.uid ? : null}

{item.role === 'owner' ?

组长

: null} {item.role === 'dev' ?

开发者

: null}
);