mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-27 05:30:14 +08:00
opti: 优化redux结构
This commit is contained in:
parent
c7a8bc4810
commit
48bb7babd1
286
.tags
Normal file
286
.tags
Normal file
@ -0,0 +1,286 @@
|
||||
const.interfaceName /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^const initialState = {$/;" property line:15
|
||||
const.url /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^ interfaceName: '',$/;" property line:16
|
||||
const.method /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^ url: '',$/;" property line:17
|
||||
const.seqGroup /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^ method: 'GET',$/;" property line:18
|
||||
switch /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^ switch (action.type) {$/;" function line:34
|
||||
pushInputValue /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^export function pushInputValue (value) {$/;" function line:98
|
||||
reqTagValue /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^export function reqTagValue (value) {$/;" function line:105
|
||||
reqHeaderValue /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^export function reqHeaderValue (value) {$/;" function line:112
|
||||
addReqHeader /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^export function addReqHeader (value) {$/;" function line:119
|
||||
deleteReqHeader /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^export function deleteReqHeader (value) {$/;" function line:126
|
||||
getReqParams /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^export function getReqParams (value) {$/;" function line:133
|
||||
getResParams /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^export function getResParams (value) {$/;" function line:140
|
||||
pushInterfaceName /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^export function pushInterfaceName (value) {$/;" function line:147
|
||||
pushInterfaceMethod /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^export function pushInterfaceMethod (value) {$/;" function line:154
|
||||
fetchInterfaceProject /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^export function fetchInterfaceProject(id) {$/;" function line:161
|
||||
addInterfaceClipboard /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/addInterface/addInterface.js /^export function addInterfaceClipboard (func) {$/;" function line:168
|
||||
const.groupList /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/group/group.js /^const initialState = {$/;" property line:9
|
||||
switch /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/group/group.js /^ switch (action.type) {$/;" function line:15
|
||||
fetchGroupList /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/group/group.js /^export function fetchGroupList() {$/;" function line:40
|
||||
setCurrGroup /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/group/group.js /^export function setCurrGroup(group) {$/;" function line:47
|
||||
from.groupList /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ static propTypes = {$/;" property line:35
|
||||
state.addGroupModalVisible /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ state = {$/;" property line:46
|
||||
state.editGroupModalVisible /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ addGroupModalVisible: false,$/;" property line:47
|
||||
state.newGroupName /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ editGroupModalVisible: false,$/;" property line:48
|
||||
state.newGroupDesc /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ newGroupName: '',$/;" property line:49
|
||||
state.currGroupName /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ newGroupDesc: '',$/;" property line:50
|
||||
state.currGroupDesc /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ currGroupName: '',$/;" property line:51
|
||||
state.groupList /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ currGroupDesc: '',$/;" property line:52
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ constructor(props) {$/;" function line:56
|
||||
componentWillMount /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ componentWillMount() {$/;" function line:60
|
||||
showModal /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ showModal(type) {$/;" function line:81
|
||||
hideModal /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ hideModal(type) {$/;" function line:96
|
||||
addGroup /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ addGroup() {$/;" function line:108
|
||||
editGroup /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ editGroup() {$/;" function line:125
|
||||
inputNewGroupName /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ inputNewGroupName(e, type) {$/;" function line:140
|
||||
inputNewGroupDesc /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ inputNewGroupDesc(e, type) {$/;" function line:148
|
||||
selectGroup /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ selectGroup(e) {$/;" function line:157
|
||||
deleteGroup /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ deleteGroup() {$/;" function line:165
|
||||
searchGroup /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ searchGroup(e, value) {$/;" function line:183
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/GroupList/GroupList.js /^ render () {$/;" function line:193
|
||||
const.isUpdateModalShow /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/group/project.js /^const initialState = {$/;" property line:13
|
||||
const.handleUpdateIndex /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/group/project.js /^ isUpdateModalShow: false,$/;" property line:14
|
||||
switch /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/group/project.js /^ switch (action.type) {$/;" function line:24
|
||||
fetchProjectList /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/group/project.js /^export function fetchProjectList(id, pageNum) {$/;" function line:58
|
||||
changeUpdateModal /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/group/project.js /^export function changeUpdateModal(data, index) {$/;" function line:71
|
||||
changeTableLoading /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/group/project.js /^export function changeTableLoading(data) {$/;" function line:78
|
||||
addProject /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/group/project.js /^export function addProject(data) {$/;" function line:85
|
||||
updateProject /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/group/project.js /^export function updateProject(data) {$/;" function line:102
|
||||
const.id /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/group/project.js /^ desc,$/;" property line:109
|
||||
delProject /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/group/project.js /^export function delProject(id) {$/;" function line:120
|
||||
const.interfaceData /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/interface/interface.js /^const initialState = {$/;" property line:10
|
||||
switch /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/interface/interface.js /^ switch (action.type) {$/;" function line:19
|
||||
fetchInterfaceData /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/interface/interface.js /^export function fetchInterfaceData (value) {$/;" function line:57
|
||||
projectMember /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/interface/interface.js /^export function projectMember () {$/;" function line:64
|
||||
closeProjectMember /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/interface/interface.js /^export function closeProjectMember () {$/;" function line:70
|
||||
deleteInterfaceData /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/interface/interface.js /^export function deleteInterfaceData (value) {$/;" function line:76
|
||||
saveInterfaceProjectId /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/interface/interface.js /^export function saveInterfaceProjectId (value) {$/;" function line:83
|
||||
getInterfaceGroupList /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/interface/interface.js /^export function getInterfaceGroupList (value) {$/;" function line:90
|
||||
const.isLogin /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/login/login.js /^const initialState = {$/;" property line:15
|
||||
const.userName /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/login/login.js /^ isLogin: false,$/;" property line:16
|
||||
const.uid /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/login/login.js /^ userName: null,$/;" property line:17
|
||||
const.loginState /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/login/login.js /^ uid: null,$/;" property line:18
|
||||
const.loginWrapActiveKey /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/login/login.js /^ loginState: LOADING_STATUS,$/;" property line:19
|
||||
switch /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/login/login.js /^ switch (action.type) {$/;" function line:24
|
||||
checkLoginState /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/login/login.js /^export function checkLoginState() {$/;" function line:81
|
||||
loginActions /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/login/login.js /^export function loginActions(data) {$/;" function line:94
|
||||
regActions /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/login/login.js /^export function regActions(data) {$/;" function line:101
|
||||
const.username /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/login/login.js /^ password,$/;" property line:105
|
||||
logoutActions /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/login/login.js /^export function logoutActions() {$/;" function line:114
|
||||
loginTypeAction /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/login/login.js /^export function loginTypeAction(index) {$/;" function line:121
|
||||
const.curKey /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/menu/menu.js /^const initialState = {$/;" property line:5
|
||||
switch /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/menu/menu.js /^ switch (action.type) {$/;" function line:10
|
||||
changeMenuItem /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/menu/menu.js /^export function changeMenuItem(curKey) {$/;" function line:23
|
||||
const.newsData /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/news/news.js /^const initialState = {$/;" property line:6
|
||||
switch /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/news/news.js /^ switch (action.type) {$/;" function line:11
|
||||
fetchNewsData /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/news/news.js /^export function fetchNewsData (uid,page,limit) {$/;" function line:36
|
||||
export.uid /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/news/news.js /^ const param = {$/;" property line:46
|
||||
export.page /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/news/news.js /^ uid: uid,$/;" property line:47
|
||||
export.limit /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/news/news.js /^ page: page,$/;" property line:48
|
||||
fetchMoreNews /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/news/news.js /^export function fetchMoreNews (current,pageSize) {$/;" function line:60
|
||||
const.curUid /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/user/user.js /^const initialState = {$/;" property line:4
|
||||
switch /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/user/user.js /^ switch (action.type) {$/;" function line:9
|
||||
changeCurUid /Users/qitmac000445/Desktop/YAPI/yapi/client/reducer/user/user.js /^export function changeCurUid(curUid) {$/;" function line:23
|
||||
requireAuthentication /Users/qitmac000445/Desktop/YAPI/yapi/client/components/AuthenticatedComponent.js /^export function requireAuthentication(Component) {$/;" function line:16
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/components/AuthenticatedComponent.js /^ constructor(props){$/;" function line:18
|
||||
static.isAuthenticated /Users/qitmac000445/Desktop/YAPI/yapi/client/components/AuthenticatedComponent.js /^ static propTypes ={$/;" property line:21
|
||||
componentWillMount /Users/qitmac000445/Desktop/YAPI/yapi/client/components/AuthenticatedComponent.js /^ componentWillMount() {$/;" function line:28
|
||||
componentWillReceiveProps /Users/qitmac000445/Desktop/YAPI/yapi/client/components/AuthenticatedComponent.js /^ componentWillReceiveProps() {$/;" function line:31
|
||||
checkAuth /Users/qitmac000445/Desktop/YAPI/yapi/client/components/AuthenticatedComponent.js /^ checkAuth() {$/;" function line:34
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/components/AuthenticatedComponent.js /^ render() {$/;" function line:40
|
||||
MenuUser.propTypes.user /Users/qitmac000445/Desktop/YAPI/yapi/client/components/Header/Header.js /^MenuUser.propTypes={$/;" property line:27
|
||||
ToolUser.propTypes.user /Users/qitmac000445/Desktop/YAPI/yapi/client/components/Header/Header.js /^ToolUser.propTypes={$/;" property line:59
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/components/Header/Header.js /^ constructor(props) {$/;" function line:89
|
||||
static.router /Users/qitmac000445/Desktop/YAPI/yapi/client/components/Header/Header.js /^ static propTypes ={$/;" property line:92
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/components/Header/Header.js /^ render () {$/;" function line:149
|
||||
@connect.url /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ static propTypes = {$/;" property line:58
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ constructor (props) {$/;" function line:75
|
||||
constructor.state.isLoading /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ this.state = {$/;" property line:77
|
||||
constructor.state.isSave /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ isLoading: '',$/;" property line:78
|
||||
constructor.state.mockJson /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ isSave: false,$/;" property line:79
|
||||
constructor.state.mockURL /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ mockJson: '',$/;" property line:80
|
||||
constructor.state.projectData /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ mockURL: '',$/;" property line:81
|
||||
componentDidMount /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ componentDidMount () {$/;" function line:88
|
||||
getInterfaceId /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ getInterfaceId () {$/;" function line:121
|
||||
modifyTagName /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ modifyTagName (tagName) {$/;" function line:134
|
||||
verificationURL /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ verificationURL () {$/;" function line:140
|
||||
getMockURL /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ getMockURL (project_id, result) {$/;" function line:148
|
||||
getMockURL.id /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ const params = {id: project_id}$/;" property line:149
|
||||
editState /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ editState (data) {$/;" function line:161
|
||||
initInterfaceData /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ initInterfaceData (interfaceId) {$/;" function line:177
|
||||
initInterfaceData.id /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ const params = { id: interfaceId }$/;" property line:178
|
||||
initInterfaceDataTwo /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ initInterfaceDataTwo (interfaceId) {$/;" function line:198
|
||||
initInterfaceDataTwo.id /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ const params = { id: interfaceId }$/;" property line:199
|
||||
setLoading /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ setLoading (boolean) {$/;" function line:211
|
||||
routerPage /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ routerPage () {$/;" function line:217
|
||||
changeState /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ changeState (ifTrue) {$/;" function line:223
|
||||
mockData /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ mockData () { \/\/ mock 数据$/;" function line:230
|
||||
jumpEditUrl /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ jumpEditUrl (_id) {$/;" function line:244
|
||||
saveForms /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ saveForms () {$/;" function line:255
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/AddInterface.js /^ render () {$/;" function line:308
|
||||
@connect.mockURL /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/MockUrl/MockUrl.js /^ static propTypes = {$/;" property line:25
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/MockUrl/MockUrl.js /^ constructor(props) {$/;" function line:34
|
||||
componentDidMount /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/MockUrl/MockUrl.js /^ componentDidMount () {$/;" function line:38
|
||||
clipboard /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/MockUrl/MockUrl.js /^ clipboard () {$/;" function line:43
|
||||
target /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/MockUrl/MockUrl.js /^ target () {$/;" function line:50
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/MockUrl/MockUrl.js /^ render () {$/;" function line:56
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/components/Header/Search/Search.js /^ constructor(props){$/;" function line:24
|
||||
state.dataSource /Users/qitmac000445/Desktop/YAPI/yapi/client/components/Header/Search/Search.js /^ this.state = {$/;" property line:26
|
||||
static.groupList /Users/qitmac000445/Desktop/YAPI/yapi/client/components/Header/Search/Search.js /^ static propTypes = {$/;" property line:31
|
||||
getDataSource /Users/qitmac000445/Desktop/YAPI/yapi/client/components/Header/Search/Search.js /^ getDataSource(groupList){$/;" function line:91
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/components/Header/Search/Search.js /^ render(){$/;" function line:99
|
||||
@connect.reqParams /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ static propTypes = {$/;" property line:33
|
||||
state.res /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ state = {$/;" property line:43
|
||||
state.method /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ res: '',$/;" property line:44
|
||||
state.domains /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ method: 'GET',$/;" property line:45
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ constructor(props) {$/;" function line:56
|
||||
componentWillMount /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ componentWillMount() {$/;" function line:60
|
||||
componentWillReceiveProps /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ componentWillReceiveProps(nextProps) {$/;" function line:64
|
||||
getInterfaceState /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ getInterfaceState(nextProps) {$/;" function line:69
|
||||
const.prd /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ const domains = {prd: protocol + ':\/\/' + prd_host};$/;" property line:75
|
||||
requestInterface /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ requestInterface() {$/;" function line:136
|
||||
changeDomain /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ changeDomain(value) {$/;" function line:172
|
||||
selectDomain /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ selectDomain(value) {$/;" function line:177
|
||||
changeHeader /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ changeHeader(e, index, isName) {$/;" function line:182
|
||||
addHeader /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ addHeader() {$/;" function line:193
|
||||
deleteHeader /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ deleteHeader(index) {$/;" function line:198
|
||||
setContentType /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ setContentType(type) {$/;" function line:203
|
||||
changeQuery /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ changeQuery(e, index, isKey) {$/;" function line:210
|
||||
addQuery /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ addQuery() {$/;" function line:221
|
||||
deleteQuery /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ deleteQuery(index) {$/;" function line:226
|
||||
changeParams /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ changeParams(e, index, type) {$/;" function line:232
|
||||
switch /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ switch (type) {$/;" function line:234
|
||||
addParams /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ addParams() {$/;" function line:257
|
||||
deleteParams /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ deleteParams(index) {$/;" function line:262
|
||||
changeMethod /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ changeMethod(value) {$/;" function line:268
|
||||
changePath /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ changePath(e) {$/;" function line:273
|
||||
changeParamsType /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ changeParamsType(value) {$/;" function line:283
|
||||
hasCrossRequestPlugin /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ hasCrossRequestPlugin() {$/;" function line:287
|
||||
objToArr /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ objToArr(obj, key, value) {$/;" function line:292
|
||||
arrToObj /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ arrToObj(arr) {$/;" function line:303
|
||||
getFiles /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ getFiles(params) {$/;" function line:312
|
||||
getQueryObj /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ getQueryObj(query) {$/;" function line:321
|
||||
getHeadersObj /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ getHeadersObj(headers) {$/;" function line:330
|
||||
fileChange /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ fileChange(e, index) {$/;" function line:341
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/InterfaceTest/InterfaceTest.js /^ render () {$/;" function line:346
|
||||
from.seqGroup /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqHeader/ReqList.js /^ static propTypes = {$/;" property line:30
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqHeader/ReqList.js /^ constructor(props) {$/;" function line:41
|
||||
handleChange /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqHeader/ReqList.js /^ handleChange (value) {$/;" function line:46
|
||||
handleBlur /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqHeader/ReqList.js /^ handleBlur (e) {$/;" function line:79
|
||||
deleteReqHeader /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqHeader/ReqList.js /^ deleteReqHeader () {$/;" function line:96
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqHeader/ReqList.js /^ render () {$/;" function line:109
|
||||
from.pushInputValue /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqMethod/ReqMethod.js /^ static propTypes = {$/;" property line:28
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqMethod/ReqMethod.js /^ constructor(props) {$/;" function line:37
|
||||
handleChange /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqMethod/ReqMethod.js /^ handleChange (value) {$/;" function line:42
|
||||
getInputVal /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqMethod/ReqMethod.js /^ getInputVal (e) {$/;" function line:47
|
||||
getInterfaceValue /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqMethod/ReqMethod.js /^ getInterfaceValue (e) {$/;" function line:53
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqMethod/ReqMethod.js /^ render () {$/;" function line:58
|
||||
from.reqParams /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqParams/ReqParams.js /^ static propTypes = {$/;" property line:21
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqParams/ReqParams.js /^ constructor(props) {$/;" function line:26
|
||||
componentDidMount /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqParams/ReqParams.js /^ componentDidMount () {$/;" function line:37
|
||||
json_parse /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqParams/ReqParams.js /^ function json_parse(json){$/;" function line:38
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqParams/ReqParams.js /^ render () {$/;" function line:67
|
||||
from.resParams /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ResParams/ResParams.js /^ static propTypes = {$/;" property line:24
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ResParams/ResParams.js /^ constructor(props) {$/;" function line:29
|
||||
componentDidMount /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ResParams/ResParams.js /^ componentDidMount() {$/;" function line:40
|
||||
json_parse /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ResParams/ResParams.js /^ function json_parse(json) {$/;" function line:52
|
||||
langTools /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ResParams/ResParams.js /^ var langTools = window.ace.require("ace\/ext\/language_tools");$/;" variable line:61
|
||||
rhymeCompleter.identifierRegexps /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ResParams/ResParams.js /^ var rhymeCompleter = {$/;" property line:70
|
||||
getCompletions /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ResParams/ResParams.js /^ getCompletions: function (editor, session, pos, prefix, callback) {$/;" function line:72
|
||||
callback /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ResParams/ResParams.js /^ callback(null, wordList.map(function (ea) {$/;" function line:94
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ResParams/ResParams.js /^ render() {$/;" function line:113
|
||||
const.y /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^const oneAnim = { y: '+=30', opacity: 0, type: 'from', ease: 'easeOutQuad' };$/;" property line:15
|
||||
const.opacity /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^const oneAnim = { y: '+=30', opacity: 0, type: 'from', ease: 'easeOutQuad' };$/;" property line:15
|
||||
const.type /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^const oneAnim = { y: '+=30', opacity: 0, type: 'from', ease: 'easeOutQuad' };$/;" property line:15
|
||||
const.ease /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^const oneAnim = { y: '+=30', opacity: 0, type: 'from', ease: 'easeOutQuad' };$/;" property line:15
|
||||
const.y /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^const imgAnim = { y: '+=50', opacity: 0, type: 'from', ease: 'easeOutQuad', duration: '1500'};$/;" property line:16
|
||||
const.opacity /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^const imgAnim = { y: '+=50', opacity: 0, type: 'from', ease: 'easeOutQuad', duration: '1500'};$/;" property line:16
|
||||
const.type /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^const imgAnim = { y: '+=50', opacity: 0, type: 'from', ease: 'easeOutQuad', duration: '1500'};$/;" property line:16
|
||||
const.ease /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^const imgAnim = { y: '+=50', opacity: 0, type: 'from', ease: 'easeOutQuad', duration: '1500'};$/;" property line:16
|
||||
const.duration /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^const imgAnim = { y: '+=50', opacity: 0, type: 'from', ease: 'easeOutQuad', duration: '1500'};$/;" property line:16
|
||||
const.width /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^const style = {$/;" property line:17
|
||||
const.background /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^ 'width':'100%',$/;" property line:20
|
||||
const.backgroundSize /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^ 'background': 'url(.\/image\/bg-img.jpg) no-repeat',$/;" property line:21
|
||||
HomeGuest.propTypes.introList /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^HomeGuest.propTypes ={$/;" property line:125
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^ constructor(props) {$/;" function line:139
|
||||
static.introList /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^ static propTypes = {$/;" property line:142
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^ render () {$/;" function line:150
|
||||
Home.defaultProps.introList /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Home/Home.js /^Home.defaultProps={$/;" property line:174
|
||||
from.fetchInterfaceData /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Interface/Interface.js /^ static propTypes = {$/;" property line:34
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Interface/Interface.js /^ constructor(props) {$/;" function line:43
|
||||
componentWillMount /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Interface/Interface.js /^ componentWillMount () {$/;" function line:47
|
||||
getInterfaceId /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Interface/Interface.js /^ getInterfaceId () {$/;" function line:70
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Interface/Interface.js /^ render () {$/;" function line:77
|
||||
from.interfaceData /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Interface/InterfaceTable/InterfaceTable.js /^ static propTypes = {$/;" property line:22
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Interface/InterfaceTable/InterfaceTable.js /^ constructor(props) {$/;" function line:29
|
||||
confirm /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Interface/InterfaceTable/InterfaceTable.js /^ confirm (interfaceId) {$/;" function line:34
|
||||
deleteInterfaceData /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Interface/InterfaceTable/InterfaceTable.js /^ deleteInterfaceData (interfaceId) {$/;" function line:39
|
||||
deleteInterface /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Interface/InterfaceTable/InterfaceTable.js /^ deleteInterface (interfaceId) {$/;" function line:50
|
||||
deleteInterface.id /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Interface/InterfaceTable/InterfaceTable.js /^ const params = {$/;" property line:51
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Interface/InterfaceTable/InterfaceTable.js /^ render () {$/;" function line:63
|
||||
import.marginBottom /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Login/Login.js /^const formItemStyle = {$/;" property line:9
|
||||
const.height /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Login/Login.js /^const changeHeight = {$/;" property line:13
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Login/Login.js /^ constructor(props) {$/;" function line:29
|
||||
static.form /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Login/Login.js /^ static propTypes = {$/;" property line:33
|
||||
componentDidMount /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Login/Login.js /^ componentDidMount() {$/;" function line:56
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Login/Login.js /^ render() {$/;" function line:61
|
||||
const.marginBottom /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Login/Reg.js /^const formItemStyle = {$/;" property line:8
|
||||
const.height /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Login/Reg.js /^const changeHeight = {$/;" property line:12
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Login/Reg.js /^ constructor(props) {$/;" function line:28
|
||||
state.confirmDirty /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Login/Reg.js /^ this.state = {$/;" property line:30
|
||||
static.form /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Login/Reg.js /^ static propTypes = {$/;" property line:35
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/Login/Reg.js /^ render() {$/;" function line:80
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/News.js /^ constructor(props) {$/;" function line:23
|
||||
from.state.loading /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/News.js /^ this.state = {$/;" property line:25
|
||||
static.newsData /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/News.js /^ static propTypes = {$/;" property line:29
|
||||
setLoading /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/News.js /^ setLoading(bool){$/;" function line:34
|
||||
componentWillMount /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/News.js /^ componentWillMount(){$/;" function line:39
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/News.js /^ render () {$/;" function line:45
|
||||
@connect.fetchNewsData /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/NewsList/NewsList.js /^ static propTypes = {$/;" property line:34
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/NewsList/NewsList.js /^ constructor(props) {$/;" function line:40
|
||||
constructor.state.selectedKeys /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/NewsList/NewsList.js /^ this.state = {$/;" property line:42
|
||||
getLogData /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/NewsList/NewsList.js /^ getLogData(e){$/;" function line:46
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/NewsList/NewsList.js /^ render () {$/;" function line:59
|
||||
from /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/NewsTimeline/NewsTimeline.js /^import { fetchMoreNews } from '..\/..\/..\/reducer\/news\/news.js'$/;" function line:5
|
||||
@connect.newsData /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/NewsTimeline/NewsTimeline.js /^ static propTypes = {$/;" property line:22
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/NewsTimeline/NewsTimeline.js /^ constructor(props) {$/;" function line:29
|
||||
state.pagination /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/NewsTimeline/NewsTimeline.js /^ this.state = {$/;" property line:31
|
||||
handleChange /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/NewsTimeline/NewsTimeline.js /^ handleChange(pagination){$/;" function line:39
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/News/NewsTimeline/NewsTimeline.js /^ render () {$/;" function line:48
|
||||
const.labelCol /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/ProjectList.js /^const formItemLayout = {$/;" property line:81
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/ProjectList.js /^ constructor(props) {$/;" function line:112
|
||||
state.visible /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/ProjectList.js /^ this.state = {$/;" property line:114
|
||||
state.protocol /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/ProjectList.js /^ visible: false,$/;" property line:115
|
||||
state.projectData /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/ProjectList.js /^ protocol: 'http:\\\/\\\/',$/;" property line:116
|
||||
static.form /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/ProjectList.js /^ static propTypes = {$/;" property line:120
|
||||
showAddProjectModal /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/ProjectList.js /^ showAddProjectModal() {$/;" function line:137
|
||||
handleOk /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/ProjectList.js /^ handleOk(e) {$/;" function line:145
|
||||
handleCancel /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/ProjectList.js /^ handleCancel() {$/;" function line:180
|
||||
protocolChange /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/ProjectList.js /^ protocolChange(value) {$/;" function line:189
|
||||
paginationChange /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/ProjectList.js /^ paginationChange(pageNum) {$/;" function line:197
|
||||
componentWillReceiveProps /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/ProjectList.js /^ componentWillReceiveProps(nextProps) {$/;" function line:207
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/ProjectList.js /^ render() {$/;" function line:237
|
||||
import.labelCol /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/UpDateModal.js /^const formItemLayout = {$/;" property line:13
|
||||
const.wrapperCol /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/UpDateModal.js /^const formItemLayoutWithOutLabel = {$/;" property line:23
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/UpDateModal.js /^ constructor(props) {$/;" function line:50
|
||||
state.protocol /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/UpDateModal.js /^ this.state = {$/;" property line:52
|
||||
state.envProtocolChange /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/UpDateModal.js /^ protocol: 'http:\\\/\\\/',$/;" property line:53
|
||||
static.form /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/UpDateModal.js /^ static propTypes = {$/;" property line:57
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/UpDateModal.js /^ render() {$/;" function line:152
|
||||
validator /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/UpDateModal.js /^ validator(rule, value, callback) {$/;" function line:191
|
||||
validator /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/ProjectGroups/ProjectList/UpDateModal.js /^ validator(rule, value, callback) {$/;" function line:224
|
||||
path /Users/qitmac000445/Desktop/YAPI/yapi/ykit.js /^var path = require('path');$/;" variable line:1
|
||||
processOutput /Users/qitmac000445/Desktop/YAPI/yapi/ykit.js /^ processOutput: function (assets) {$/;" function line:5
|
||||
modifyQuery /Users/qitmac000445/Desktop/YAPI/yapi/ykit.js /^ modifyQuery: function (defaultQuery) { \/\/ 可查看和编辑 defaultQuery$/;" function line:13
|
||||
config /Users/qitmac000445/Desktop/YAPI/yapi/ykit.js /^ config: function (ykit) {$/;" function line:21
|
||||
modifyWebpackConfig /Users/qitmac000445/Desktop/YAPI/yapi/ykit.js /^ modifyWebpackConfig: function (baseConfig) {$/;" function line:43
|
||||
@connect.seqGroup /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqHeader/ReqHeader.js /^ static propTypes = {$/;" property line:32
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqHeader/ReqHeader.js /^ constructor(props) {$/;" function line:37
|
||||
from /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqHeader/ReqHeader.js /^} from '..\/..\/..\/reducer\/addInterface\/addInterface.js'$/;" function line:9
|
||||
addSeqGroup /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqHeader/ReqHeader.js /^ addSeqGroup () {$/;" function line:42
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/containers/AddInterface/ReqHeader/ReqHeader.js /^ render () {$/;" function line:57
|
||||
constructor /Users/qitmac000445/Desktop/YAPI/yapi/client/Application.js /^ constructor(props) {$/;" function line:27
|
||||
state.login /Users/qitmac000445/Desktop/YAPI/yapi/client/Application.js /^ this.state = {$/;" property line:29
|
||||
static.checkLoginState /Users/qitmac000445/Desktop/YAPI/yapi/client/Application.js /^ static propTypes = {$/;" property line:34
|
||||
componentDidMount /Users/qitmac000445/Desktop/YAPI/yapi/client/Application.js /^ componentDidMount() {$/;" function line:39
|
||||
render /Users/qitmac000445/Desktop/YAPI/yapi/client/Application.js /^ render() {$/;" function line:72
|
6
.tags1
Normal file
6
.tags1
Normal file
@ -0,0 +1,6 @@
|
||||
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
|
||||
!_TAG_FILE_SORTED 0 /0=unsorted, 1=sorted, 2=foldcase/
|
||||
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
|
||||
!_TAG_PROGRAM_NAME Exuberant Ctags //
|
||||
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
|
||||
!_TAG_PROGRAM_VERSION 5.8 //
|
@ -8,7 +8,7 @@ import Header from './components/Header/Header';
|
||||
import Footer from './components/Footer/Footer';
|
||||
import Breadcrumb from './components/Breadcrumb/Breadcrumb';
|
||||
import Loading from './components/Loading/Loading';
|
||||
import { checkLoginState } from './actions/login';
|
||||
import { checkLoginState } from './reducer/login/login';
|
||||
import { requireAuthentication } from './components/AuthenticatedComponent';
|
||||
|
||||
const LOADING_STATUS = 0;
|
||||
|
@ -1,91 +0,0 @@
|
||||
import {
|
||||
FETCH_ADD_INTERFACE_INPUT,
|
||||
FETCH_ADD_INTERFACE_TAG_VALUE,
|
||||
FETCH_ADD_INTERFACE_HEADER_VALUE,
|
||||
ADD_INTERFACE_SEQ_HEADER,
|
||||
DELETE_INTERFACE_SEQ_HEADER,
|
||||
GET_INTERFACE_REQ_PARAMS,
|
||||
GET_INTERFACE_RES_PARAMS,
|
||||
PUSH_INTERFACE_NAME,
|
||||
PUSH_INTERFACE_METHOD,
|
||||
FETCH_INTERFACE_PROJECT,
|
||||
ADD_INTERFACE_CLIPBOARD
|
||||
} from '../constants/action-types.js'
|
||||
import axios from 'axios'
|
||||
|
||||
export function pushInputValue (value) {
|
||||
return {
|
||||
type: FETCH_ADD_INTERFACE_INPUT,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function reqTagValue (value) {
|
||||
return {
|
||||
type: FETCH_ADD_INTERFACE_TAG_VALUE,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function reqHeaderValue (value) {
|
||||
return {
|
||||
type: FETCH_ADD_INTERFACE_HEADER_VALUE,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function addReqHeader (value) {
|
||||
return {
|
||||
type: ADD_INTERFACE_SEQ_HEADER,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function deleteReqHeader (value) {
|
||||
return {
|
||||
type: DELETE_INTERFACE_SEQ_HEADER,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function getReqParams (value) {
|
||||
return {
|
||||
type: GET_INTERFACE_REQ_PARAMS,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function getResParams (value) {
|
||||
return {
|
||||
type: GET_INTERFACE_RES_PARAMS,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function pushInterfaceName (value) {
|
||||
return {
|
||||
type: PUSH_INTERFACE_NAME,
|
||||
payload: value
|
||||
}
|
||||
}
|
||||
|
||||
export function pushInterfaceMethod (value) {
|
||||
return {
|
||||
type: PUSH_INTERFACE_METHOD,
|
||||
payload: value
|
||||
}
|
||||
}
|
||||
|
||||
export function fetchInterfaceProject(id) {
|
||||
return {
|
||||
type: FETCH_INTERFACE_PROJECT,
|
||||
payload: axios.get('/project/get', { params: {id}})
|
||||
}
|
||||
}
|
||||
|
||||
export function addInterfaceClipboard (func) {
|
||||
return {
|
||||
type: ADD_INTERFACE_CLIPBOARD,
|
||||
payload: func
|
||||
}
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
import {
|
||||
FETCH_GROUP_LIST,
|
||||
SET_CURR_GROUP
|
||||
} from '../constants/action-types';
|
||||
import axios from 'axios';
|
||||
|
||||
export function fetchGroupList() {
|
||||
return {
|
||||
type: FETCH_GROUP_LIST,
|
||||
payload: axios.get('/group/list')
|
||||
}
|
||||
}
|
||||
|
||||
export function setCurrGroup(group) {
|
||||
return {
|
||||
type: SET_CURR_GROUP,
|
||||
payload: group
|
||||
}
|
||||
}
|
@ -1,50 +0,0 @@
|
||||
import {
|
||||
FETCH_INTERFACE_DATA,
|
||||
LIST_INTERFACE_CLICK,
|
||||
PROJECT_MEMBER_INTERFACE,
|
||||
DELETE_INTERFACE_DATA,
|
||||
SAVE_INTERFACE_PROJECT_ID,
|
||||
GET_INTERFACE_GROUP_LIST
|
||||
} from '../constants/action-types.js'
|
||||
|
||||
export function fetchInterfaceData (value) {
|
||||
return {
|
||||
type: FETCH_INTERFACE_DATA,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function projectMember () {
|
||||
return {
|
||||
type: LIST_INTERFACE_CLICK
|
||||
}
|
||||
}
|
||||
|
||||
export function closeProjectMember () {
|
||||
return {
|
||||
type: PROJECT_MEMBER_INTERFACE
|
||||
}
|
||||
}
|
||||
|
||||
export function deleteInterfaceData (value) {
|
||||
return {
|
||||
type: DELETE_INTERFACE_DATA,
|
||||
payload: value
|
||||
}
|
||||
}
|
||||
|
||||
export function saveInterfaceProjectId (value) {
|
||||
return {
|
||||
type: SAVE_INTERFACE_PROJECT_ID,
|
||||
payload: value
|
||||
}
|
||||
}
|
||||
|
||||
export function getInterfaceGroupList (value) {
|
||||
return {
|
||||
type: GET_INTERFACE_GROUP_LIST,
|
||||
payload: value
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,64 +0,0 @@
|
||||
import {
|
||||
LOGIN,
|
||||
LOGIN_OUT,
|
||||
LOGIN_TYPE,
|
||||
GET_LOGIN_STATE,
|
||||
REGISTER
|
||||
} from '../constants/action-types.js';
|
||||
import axios from 'axios';
|
||||
|
||||
|
||||
const checkLoginState = () => {
|
||||
return(dispatch)=> {
|
||||
axios.get('/user/status').then((res) => {
|
||||
dispatch({
|
||||
type: GET_LOGIN_STATE,
|
||||
payload: res
|
||||
});
|
||||
}).catch((err) => {
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
const loginActions = (data) => {
|
||||
return {
|
||||
type: LOGIN,
|
||||
payload: axios.post('/user/login', data)
|
||||
};
|
||||
};
|
||||
|
||||
const regActions = (data) => {
|
||||
const { email, password, userName } = data;
|
||||
const param = {
|
||||
email,
|
||||
password,
|
||||
username: userName
|
||||
};
|
||||
return {
|
||||
type: REGISTER,
|
||||
payload: axios.post('/user/reg', param)
|
||||
};
|
||||
};
|
||||
|
||||
const logoutActions = () => {
|
||||
return {
|
||||
type: LOGIN_OUT,
|
||||
payload: axios.get('./user/logout')
|
||||
}
|
||||
}
|
||||
|
||||
const loginTypeAction = (index) => {
|
||||
return{
|
||||
type: LOGIN_TYPE,
|
||||
index
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
loginActions,
|
||||
regActions,
|
||||
logoutActions,
|
||||
loginTypeAction,
|
||||
checkLoginState
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
import {
|
||||
CHANGE_MENU_ITEM
|
||||
} from '../constants/action-types.js'
|
||||
|
||||
export function changeMenuItem(curKey) {
|
||||
return {
|
||||
type: CHANGE_MENU_ITEM,
|
||||
data: curKey
|
||||
}
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
import {
|
||||
FETCH_NEWS_DATA,
|
||||
FETCH_MORE_NEWS
|
||||
} from '../constants/action-types.js';
|
||||
|
||||
import axios from 'axios';
|
||||
import variable from '../constants/variable';
|
||||
|
||||
export function fetchNewsData (uid,page,limit) {
|
||||
// const data = {
|
||||
// newsList:[
|
||||
// { key: 1,title: '日志标题', username: 'John Brown', content: '您好!亲爱的用户:您已成功申请接口:实时空气质量数据查询,请于两个月内进行应用验证,逾期接口将不能正常使用。如果您在使用的过程中遇到任何问题,欢迎前往交流社区反馈意见,谢谢!',time: '2014-12-01' },
|
||||
// { key: 2,title: '日志标题', username: 'John Brown', content: 'My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park.',time: '2014-12-01' },
|
||||
// { key: 3,title: '日志标题', username: 'John Brown', content: 'My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park.',time: '2014-12-01' }
|
||||
// ],
|
||||
// totalPage: 34
|
||||
// };
|
||||
|
||||
const param = {
|
||||
uid: uid,
|
||||
page: page,
|
||||
limit: variable.PAGE_LIMIT?variable.PAGE_LIMIT:limit
|
||||
}
|
||||
// console.log(param);
|
||||
return {
|
||||
type: FETCH_NEWS_DATA,
|
||||
payload: axios.get('/log/list',{
|
||||
params: param
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
export function fetchMoreNews (current,pageSize) {
|
||||
// id,type,news,time,totalPage
|
||||
const newsList = [
|
||||
{ key: 1,title: '日志标题1', username: 'John Brown', content: '您好!亲爱的用户:您已成功申请接口:实时空气质量数据查询,请于两个月内进行应用验证,逾期接口将不能正常使用。如果您在使用的过程中遇到任何问题,欢迎前往交流社区反馈意见,谢谢!',time: '2014-12-01' },
|
||||
{ key: 2,title: '日志标题', username: 'John Brown', content: 'My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park.',time: '2014-12-01' },
|
||||
{ key: 3,title: '日志标题', username: 'John Brown', content: 'My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park.',time: '2014-12-01' }
|
||||
]
|
||||
console.log(current,pageSize);
|
||||
return ({
|
||||
type: FETCH_MORE_NEWS,
|
||||
payload: new Promise(function(resolve,reject){
|
||||
if(newsList){
|
||||
resolve(newsList);
|
||||
}else{
|
||||
reject("出现了错误");
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,90 +0,0 @@
|
||||
import {
|
||||
FETCH_PROJECT_LIST,
|
||||
PROJECT_ADD,
|
||||
PROJECT_DEL,
|
||||
CHANGE_UPDATE_MODAL,
|
||||
PROJECT_UPDATE,
|
||||
CHANGE_TABLE_LOADING
|
||||
} from '../constants/action-types.js';
|
||||
import axios from 'axios';
|
||||
import variable from '../constants/variable';
|
||||
|
||||
const fetchProjectList = (id, pageNum) => {
|
||||
return {
|
||||
type: FETCH_PROJECT_LIST,
|
||||
payload: axios.get('/project/list', {
|
||||
params: {
|
||||
group_id: id,
|
||||
page: pageNum || 1,
|
||||
limit: variable.PAGE_LIMIT
|
||||
}
|
||||
})
|
||||
};
|
||||
};
|
||||
|
||||
const changeUpdateModal = (data, index) => {
|
||||
return {
|
||||
type: CHANGE_UPDATE_MODAL,
|
||||
payload: { data, index }
|
||||
};
|
||||
};
|
||||
|
||||
const changeTableLoading = (data) => {
|
||||
return {
|
||||
type: CHANGE_TABLE_LOADING,
|
||||
payload: data
|
||||
};
|
||||
};
|
||||
|
||||
const addProject = (data) => {
|
||||
const { name, prd_host, basepath, desc, group_id, protocol } = data;
|
||||
const param = {
|
||||
name,
|
||||
prd_host,
|
||||
protocol,
|
||||
basepath,
|
||||
desc,
|
||||
group_id
|
||||
};
|
||||
return {
|
||||
type: PROJECT_ADD,
|
||||
// payload 可以返回 Promise,异步请求使用 axios 即可
|
||||
payload: axios.post('/project/add', param)
|
||||
};
|
||||
};
|
||||
|
||||
const updateProject = (data) => {
|
||||
const { name, prd_host, basepath, desc, _id, protocol, env } = data;
|
||||
const param = {
|
||||
name,
|
||||
prd_host,
|
||||
protocol,
|
||||
basepath,
|
||||
desc,
|
||||
id: _id,
|
||||
env
|
||||
};
|
||||
return {
|
||||
type: PROJECT_UPDATE,
|
||||
// payload 可以返回 Promise,异步请求使用 axios 即可
|
||||
payload: axios.post('/project/up', param)
|
||||
};
|
||||
};
|
||||
|
||||
const delProject = (id) => {
|
||||
const param = { id };
|
||||
return {
|
||||
type: PROJECT_DEL,
|
||||
// payload 可以返回 Promise,异步请求使用 axios 即可
|
||||
payload: axios.post('/project/del', param)
|
||||
};
|
||||
};
|
||||
|
||||
export default {
|
||||
fetchProjectList,
|
||||
addProject,
|
||||
delProject,
|
||||
changeUpdateModal,
|
||||
updateProject,
|
||||
changeTableLoading
|
||||
};
|
@ -1,10 +0,0 @@
|
||||
import {
|
||||
CHANGE_CUR_UID
|
||||
} from '../constants/action-types.js'
|
||||
|
||||
export function changeCurUid(curUid) {
|
||||
return {
|
||||
type: CHANGE_CUR_UID,
|
||||
data: curUid
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import PropTypes from 'prop-types'
|
||||
import { changeMenuItem } from '../actions/menu'
|
||||
import { changeMenuItem } from '../reducer/menu/menu'
|
||||
|
||||
@connect(
|
||||
(state) => {
|
||||
@ -49,5 +49,3 @@ export function requireAuthentication(Component) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,8 +4,8 @@ import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { Icon, Layout, Menu, Dropdown, message } from 'antd'
|
||||
import { checkLoginState, logoutActions, loginTypeAction} from '../../actions/login'
|
||||
import { changeMenuItem } from '../../actions/menu'
|
||||
import { checkLoginState, logoutActions, loginTypeAction} from '../../reducer/login/login'
|
||||
import { changeMenuItem } from '../../reducer/menu/menu'
|
||||
import { withRouter } from 'react-router';
|
||||
import Srch from './Search/Search'
|
||||
const { Header } = Layout;
|
||||
|
@ -5,8 +5,8 @@ import { Icon, Input, AutoComplete } from 'antd'
|
||||
import './Search.scss'
|
||||
import { withRouter } from 'react-router';
|
||||
import axios from 'axios';
|
||||
import { setCurrGroup } from '../../../actions/group'
|
||||
import { changeMenuItem } from '../../../actions/menu'
|
||||
import { setCurrGroup } from '../../../reducer/group/group'
|
||||
import { changeMenuItem } from '../../../reducer/menu/menu'
|
||||
const Option = AutoComplete.Option;
|
||||
|
||||
@connect(
|
||||
@ -122,4 +122,4 @@ export default class Srch extends Component{
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,50 +0,0 @@
|
||||
// Interface
|
||||
export const FETCH_INTERFACE_DATA = 'FETCH_INTERFACE_DATA'
|
||||
export const LIST_INTERFACE_CLICK = 'LIST_INTERFACE_CLICK'
|
||||
export const PROJECT_MEMBER_INTERFACE = 'PROJECT_MEMBER_INTERFACE'
|
||||
export const PUSH_INTERFACE_NAME = 'PUSH_INTERFACE_NAME'
|
||||
export const DELETE_INTERFACE_DATA = 'DELETE_INTERFACE_DATA'
|
||||
export const SAVE_INTERFACE_PROJECT_ID = 'SAVE_INTERFACE_PROJECT_ID'
|
||||
export const GET_INTERFACE_GROUP_LIST = 'GET_INTERFACE_GROUP_LIST'
|
||||
|
||||
// addInterFace
|
||||
export const FETCH_ADD_INTERFACE_INPUT = 'FETCH_ADD_INTERFACE_INPUT'
|
||||
export const FETCH_ADD_INTERFACE_TAG_VALUE = 'FETCH_ADD_INTERFACE_TAG_VALUE'
|
||||
export const FETCH_ADD_INTERFACE_HEADER_VALUE = 'FETCH_ADD_INTERFACE_HEADER_VALUE'
|
||||
export const ADD_INTERFACE_SEQ_HEADER = 'ADD_INTERFACE_SEQ_HEADER'
|
||||
export const DELETE_INTERFACE_SEQ_HEADER = 'DELETE_INTERFACE_SEQ_HEADER'
|
||||
export const GET_INTERFACE_REQ_PARAMS = 'GET_INTERFACE_REQ_PARAMS'
|
||||
export const GET_INTERFACE_RES_PARAMS = 'GET_INTERFACE_RES_PARAMS'
|
||||
export const PUSH_INTERFACE_METHOD = 'PUSH_INTERFACE_METHOD'
|
||||
export const FETCH_INTERFACE_PROJECT = 'FETCH_INTERFACE_PROJECT'
|
||||
export const ADD_INTERFACE_CLIPBOARD = 'ADD_INTERFACE_CLIPBOARD'
|
||||
|
||||
// group
|
||||
export const FETCH_GROUP_LIST = 'FETCH_GROUP_LIST'
|
||||
export const SET_CURR_GROUP = 'SET_CURR_GROUP'
|
||||
|
||||
// project
|
||||
export const CHANGE_TABLE_LOADING = 'CHANGE_TABLE_LOADING' // 控制表格的Loading状态
|
||||
export const CHANGE_UPDATE_MODAL = 'CHANGE_UPDATE_MODAL' // 控制模态框 - 修改项目
|
||||
export const OPRATE_ADD_MODAL = 'OPRATE_ADD_MODAL' // 控制模态框 - 创建项目
|
||||
export const FETCH_PROJECT_LIST = 'FETCH_PROJECT_LIST' // 获取项目列表
|
||||
export const PROJECT_ADD = 'PROJECT_ADD' // 添加项目
|
||||
export const PROJECT_UPDATE = 'PROJECT_UPDATE' // 修改项目
|
||||
export const PROJECT_DEL = 'PROJECT_DEL' // 删除项目
|
||||
|
||||
// login
|
||||
export const LOGIN = 'LOGIN'; // 登录
|
||||
export const GET_LOGIN_STATE = 'GET_LOGIN_STATE'; // 获取登录信息
|
||||
export const REGISTER = 'REGISTER'; // 注册
|
||||
|
||||
//header
|
||||
export const LOGIN_TYPE = 'LOGIN_TYPE';
|
||||
export const LOGIN_OUT = 'LOGIN_OUT';
|
||||
export const CHANGE_MENU_ITEM = 'CHANGE_MENU_ITEM';
|
||||
|
||||
// News
|
||||
export const FETCH_NEWS_DATA = 'FETCH_NEWS_DATA';
|
||||
export const FETCH_MORE_NEWS = 'FETCH_MORE_NEWS';
|
||||
|
||||
// User
|
||||
export const CHANGE_CUR_UID = 'CHANGE_CUR_UID'
|
@ -22,7 +22,7 @@ import {
|
||||
pushInterfaceName,
|
||||
fetchInterfaceProject,
|
||||
pushInterfaceMethod
|
||||
} from '../../actions/addInterface.js'
|
||||
} from '../../reducer/addInterface/addInterface.js'
|
||||
|
||||
let projectId = ''
|
||||
const success = (text, arg) => {
|
||||
@ -291,7 +291,7 @@ class AddInterface extends Component {
|
||||
this.changeState(true)
|
||||
// 初始化 mock
|
||||
this.mockData()
|
||||
|
||||
|
||||
if (id) {
|
||||
this.setState({showMock: 'show-mock'})
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ import axios from 'axios';
|
||||
import URL from 'url';
|
||||
|
||||
import {
|
||||
} from '../../../actions/group.js'
|
||||
} from '../../../reducer/group/group.js'
|
||||
|
||||
import './InterfaceTest.scss'
|
||||
|
||||
|
@ -6,7 +6,7 @@ import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux'
|
||||
import {
|
||||
addInterfaceClipboard
|
||||
} from '../../../actions/addInterface.js'
|
||||
} from '../../../reducer/addInterface/addInterface.js'
|
||||
|
||||
const success = () => {
|
||||
message.success('复制成功!')
|
||||
@ -44,7 +44,7 @@ class MockUrl extends Component {
|
||||
document.querySelector('#clipboard-button').innerHTML = '<button id="mock-clipboard">复制</button>'
|
||||
const btn = document.querySelector('#mock-clipboard')
|
||||
const txt = document.querySelector('#mock-p').innerHTML
|
||||
|
||||
|
||||
new Clipboard(btn, {
|
||||
text: () => txt,
|
||||
target () {
|
||||
|
@ -4,9 +4,9 @@ import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux'
|
||||
import { autobind } from 'core-decorators'
|
||||
import ReqList from './ReqList.js'
|
||||
import {
|
||||
import {
|
||||
addReqHeader
|
||||
} from '../../../actions/addInterface.js'
|
||||
} from '../../../reducer/addInterface/addInterface.js'
|
||||
|
||||
// 重新渲染页面
|
||||
const getReqList = function (self) {
|
||||
|
@ -3,12 +3,12 @@ import { Select, Input, Icon } from 'antd'
|
||||
import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux'
|
||||
import { autobind } from 'core-decorators'
|
||||
import {
|
||||
import {
|
||||
reqTagValue,
|
||||
reqHeaderValue,
|
||||
deleteReqHeader,
|
||||
addReqHeader
|
||||
} from '../../../actions/addInterface.js'
|
||||
} from '../../../reducer/addInterface/addInterface.js'
|
||||
|
||||
@connect(
|
||||
state => {
|
||||
@ -70,7 +70,7 @@ class ReqList extends Component {
|
||||
seqGroup.forEach(v => {
|
||||
const {id, name, value} = v
|
||||
newObject.push({id, name, value})
|
||||
})
|
||||
})
|
||||
this.props.addReqHeader(newObject)
|
||||
}
|
||||
}
|
||||
@ -84,7 +84,7 @@ class ReqList extends Component {
|
||||
if (id == v.id) {
|
||||
v.value = value
|
||||
}
|
||||
})
|
||||
})
|
||||
seqGroup.forEach(v => {
|
||||
const {id, name, value} = v
|
||||
newObject.push({id, name, value})
|
||||
|
@ -3,11 +3,11 @@ import { connect } from 'react-redux'
|
||||
import React, { Component } from 'react'
|
||||
import { Select, Input } from 'antd'
|
||||
import { autobind } from 'core-decorators'
|
||||
import {
|
||||
import {
|
||||
pushInputValue,
|
||||
pushInterfaceName,
|
||||
pushInterfaceMethod
|
||||
} from '../../../actions/addInterface.js'
|
||||
} from '../../../reducer/addInterface/addInterface.js'
|
||||
|
||||
@connect(
|
||||
state => {
|
||||
@ -76,11 +76,11 @@ class ReqMethod extends Component {
|
||||
<tr>
|
||||
<td>
|
||||
<span className="h3">URL : </span>
|
||||
<Input
|
||||
placeholder="填写 URL"
|
||||
className="url"
|
||||
size="large"
|
||||
onInput={this.getInputVal}
|
||||
<Input
|
||||
placeholder="填写 URL"
|
||||
className="url"
|
||||
size="large"
|
||||
onInput={this.getInputVal}
|
||||
value={url}
|
||||
/>
|
||||
</td>
|
||||
@ -88,12 +88,12 @@ class ReqMethod extends Component {
|
||||
<tr>
|
||||
<td>
|
||||
<span className="h3">名称 : </span>
|
||||
<Input
|
||||
placeholder="接口名称"
|
||||
className="url"
|
||||
<Input
|
||||
placeholder="接口名称"
|
||||
className="url"
|
||||
size="large"
|
||||
value={interfaceName}
|
||||
onInput={this.getInterfaceValue}
|
||||
onInput={this.getInterfaceValue}
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -3,7 +3,7 @@
|
||||
// import PropTypes from 'prop-types'
|
||||
// import { autobind } from 'core-decorators'
|
||||
// import { connect } from 'react-redux'
|
||||
// import { deleteReqParams } from '../../../actions/addInterface.js'
|
||||
// import { deleteReqParams } from '../../../reducer/addInterface/addInterface.js'
|
||||
// import json2html from 'json2html'
|
||||
|
||||
// @connect(
|
||||
@ -50,15 +50,15 @@
|
||||
// <Select defaultValue="选填" style={{ width: 'auto' }} onChange={this.handleChange} size="large" className="required">
|
||||
// <Option value="必填">必填</Option>
|
||||
// <Option value="选填">选填</Option>
|
||||
// </Select>
|
||||
// </Select>
|
||||
// <em className="title">参数名称</em>
|
||||
// <Input placeholder="参数名称" className="name" size="large" />
|
||||
// <em className="title">参数说明</em>
|
||||
// <Input placeholder="参数说明" className="name" size="large" />
|
||||
// <span className="close" onClick={this.deleteReqParams} data-num={dataNum}>×</span>
|
||||
// </li>
|
||||
// </li>
|
||||
// )
|
||||
// }
|
||||
// }
|
||||
|
||||
// export default ParamsList
|
||||
// export default ParamsList
|
||||
|
@ -2,7 +2,7 @@ import React, { Component } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux'
|
||||
// import wangEditor from 'wangeditor'
|
||||
import { getReqParams } from '../../../actions/addInterface.js'
|
||||
import { getReqParams } from '../../../reducer/addInterface/addInterface.js'
|
||||
|
||||
//const editor = new wangEditor('#req-cover')
|
||||
|
||||
@ -63,7 +63,7 @@ class ReqParams extends Component {
|
||||
// }, 500)
|
||||
// editor.create()
|
||||
}
|
||||
|
||||
|
||||
render () {
|
||||
return (
|
||||
<section className="req-params-box">
|
||||
|
@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux'
|
||||
// import wangEditor from 'wangeditor'
|
||||
import { Card } from 'antd'
|
||||
import { getResParams } from '../../../actions/addInterface.js'
|
||||
import { getResParams } from '../../../reducer/addInterface/addInterface.js'
|
||||
|
||||
//const editor = new wangEditor('#res-cover')
|
||||
|
||||
@ -56,7 +56,7 @@ class ResParams extends Component {
|
||||
return json
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
var langTools = window.ace.require("ace/ext/language_tools");
|
||||
let editor = this.editor = window.ace.edit("res-cover")
|
||||
@ -73,7 +73,7 @@ class ResParams extends Component {
|
||||
if (prefix.length === 0) { callback(null, []); return }
|
||||
var wordList = [
|
||||
{ name: '字符串', mock: '@string' },
|
||||
{ name: '自然数', mock: '@natural' },
|
||||
{ name: '自然数', mock: '@natural' },
|
||||
{ name: '布尔', mock: '@boolean' },
|
||||
{ name: '标题', mock: '@title' },
|
||||
{ name: '姓名', mock: '@name' },
|
||||
@ -97,15 +97,15 @@ class ResParams extends Component {
|
||||
}
|
||||
}
|
||||
langTools.addCompleter(rhymeCompleter);
|
||||
|
||||
|
||||
editor.getSession().on('change', () => {
|
||||
// console.log( JSON.parse(editor.getValue()));
|
||||
|
||||
|
||||
this.props.getResParams(editor.getValue());
|
||||
});
|
||||
|
||||
|
||||
setTimeout(() => {
|
||||
|
||||
|
||||
editor.setValue(json_parse(this.props.resParams))
|
||||
}, 400)
|
||||
}
|
||||
|
@ -2,14 +2,13 @@ import React from 'react';
|
||||
import { createDevTools } from 'redux-devtools';
|
||||
import LogMonitor from 'redux-devtools-log-monitor';
|
||||
import DockMonitor from 'redux-devtools-dock-monitor';
|
||||
const DockMonitorD = DockMonitor.default // 这里有 bug 不知道为啥非要使用 default
|
||||
|
||||
export default createDevTools(
|
||||
<DockMonitorD
|
||||
<DockMonitor
|
||||
toggleVisibilityKey="ctrl-h"
|
||||
changePositionKey="ctrl-q"
|
||||
defaultIsVisible={false}
|
||||
>
|
||||
<LogMonitor.default />
|
||||
</DockMonitorD>
|
||||
<LogMonitor />
|
||||
</DockMonitor>
|
||||
);
|
||||
|
@ -6,7 +6,7 @@ import { Row, Col, Button, Icon } from 'antd'
|
||||
import PropTypes from "prop-types"
|
||||
import Login from '../Login/LoginWrap'
|
||||
import Intro from '../../components/Intro/Intro'
|
||||
import { changeMenuItem } from '../../actions/menu'
|
||||
import { changeMenuItem } from '../../reducer/menu/menu'
|
||||
import { OverPack } from 'rc-scroll-anim'
|
||||
import TweenOne from 'rc-tween-one'
|
||||
import QueueAnim from 'rc-queue-anim';
|
||||
|
@ -12,7 +12,7 @@ import {
|
||||
projectMember,
|
||||
closeProjectMember,
|
||||
saveInterfaceProjectId
|
||||
} from '../../actions/interfaceAction.js'
|
||||
} from '../../reducer/interface/interface.js'
|
||||
|
||||
@connect(
|
||||
state => {
|
||||
|
@ -5,7 +5,7 @@ import axios from 'axios'
|
||||
import { autobind } from 'core-decorators'
|
||||
import { connect } from 'react-redux'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { deleteInterfaceData } from '../../../actions/interfaceAction.js'
|
||||
import { deleteInterfaceData } from '../../../reducer/interface/interface.js'
|
||||
|
||||
@connect(
|
||||
state => {
|
||||
|
@ -2,7 +2,7 @@ import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { connect } from 'react-redux';
|
||||
import { Form, Button, Input, Icon, message } from 'antd';
|
||||
import { loginActions } from '../../actions/login';
|
||||
import { loginActions } from '../../reducer/login/login';
|
||||
const FormItem = Form.Item;
|
||||
import './Login.scss'
|
||||
|
||||
|
@ -2,7 +2,7 @@ import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { connect } from 'react-redux';
|
||||
import { Form, Button, Input, Icon, message } from 'antd';
|
||||
import { regActions } from '../../actions/login';
|
||||
import { regActions } from '../../reducer/login/login';
|
||||
|
||||
const FormItem = Form.Item;
|
||||
const formItemStyle = {
|
||||
|
@ -4,7 +4,7 @@ import NewsTimeline from './NewsTimeline/NewsTimeline'
|
||||
import { connect } from 'react-redux'
|
||||
import PropTypes from 'prop-types'
|
||||
import NewsList from './NewsList/NewsList.js'
|
||||
import { fetchNewsData } from '../../actions/news.js'
|
||||
import { fetchNewsData } from '../../reducer/news/news.js'
|
||||
|
||||
|
||||
@connect(
|
||||
|
@ -2,9 +2,9 @@ import React, { Component } from 'react'
|
||||
import { connect } from 'react-redux'
|
||||
import PropTypes from 'prop-types'
|
||||
import { Menu } from 'antd'
|
||||
import {
|
||||
import {
|
||||
fetchNewsData
|
||||
} from '../../../actions/news.js'
|
||||
} from '../../../reducer/news/news.js'
|
||||
|
||||
|
||||
const logList = [{
|
||||
@ -72,11 +72,11 @@ class NewsList extends Component {
|
||||
</Menu.Item>
|
||||
)
|
||||
})}
|
||||
|
||||
|
||||
</Menu>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default NewsList
|
||||
export default NewsList
|
||||
|
@ -2,7 +2,7 @@ import React, { Component } from 'react'
|
||||
import { Table, Popconfirm } from 'antd'
|
||||
import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux'
|
||||
import { fetchMoreNews } from '../../../actions/news.js'
|
||||
import { fetchMoreNews } from '../../../reducer/news/news.js'
|
||||
|
||||
const removeConfirm = function(e){
|
||||
console.log(e);
|
||||
@ -25,7 +25,7 @@ class NewsTimeline extends Component {
|
||||
setLoading: PropTypes.func,
|
||||
loading: PropTypes.bool
|
||||
}
|
||||
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
@ -39,10 +39,10 @@ class NewsTimeline extends Component {
|
||||
handleChange(pagination){
|
||||
const pager = { ...this.state.pagination };
|
||||
pager.current = pagination.current;
|
||||
this.props.setLoading(true);
|
||||
this.props.setLoading(true);
|
||||
const that = this;
|
||||
this.props.fetchMoreNews(pagination.current,pagination.pageSize).then(function(){
|
||||
that.props.setLoading(false);
|
||||
that.props.setLoading(false);
|
||||
})
|
||||
}
|
||||
render () {
|
||||
|
@ -13,7 +13,7 @@ import {
|
||||
fetchGroupList,
|
||||
setCurrGroup,
|
||||
setGroupList
|
||||
} from '../../../actions/group.js'
|
||||
} from '../../../reducer/group/group.js'
|
||||
|
||||
import './GroupList.scss'
|
||||
|
||||
@ -197,7 +197,7 @@ export default class GroupList extends Component {
|
||||
<Icon className="delete-group" type="delete" title="删除分组"/>
|
||||
</Popconfirm>)
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<div className="m-group">
|
||||
<div className="group-bar">
|
||||
@ -210,7 +210,7 @@ export default class GroupList extends Component {
|
||||
{
|
||||
this.props.curUserRole === "admin"?(delmark):''
|
||||
}
|
||||
|
||||
|
||||
</div>
|
||||
<div className="curr-group-desc" title={currGroup.group_desc}>简介:{currGroup.group_desc}</div>
|
||||
</div>
|
||||
@ -221,7 +221,7 @@ export default class GroupList extends Component {
|
||||
{
|
||||
this.props.curUserRole === "admin"?(<Button type="primary" onClick={this.showModal}>添加分组</Button>):''
|
||||
}
|
||||
|
||||
|
||||
</div>
|
||||
<Menu
|
||||
className="group-list"
|
||||
|
@ -2,7 +2,7 @@ import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { connect } from 'react-redux';
|
||||
import { Table, Button, Modal, Form, Input, Icon, Tooltip, Select, Popconfirm, message } from 'antd';
|
||||
import { addProject, fetchProjectList, delProject, changeUpdateModal, changeTableLoading } from '../../../actions/project';
|
||||
import { addProject, fetchProjectList, delProject, changeUpdateModal, changeTableLoading } from '../../../reducer/group/project';
|
||||
import UpDateModal from './UpDateModal';
|
||||
import { Link } from 'react-router-dom'
|
||||
import variable from '../../../constants/variable';
|
||||
|
@ -2,7 +2,7 @@ import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { connect } from 'react-redux';
|
||||
import { Modal, Form, Input, Icon, Tooltip, Select, message, Button, Row, Col } from 'antd';
|
||||
import { updateProject, fetchProjectList, delProject, changeUpdateModal, changeTableLoading } from '../../../actions/project';
|
||||
import { updateProject, fetchProjectList, delProject, changeUpdateModal, changeTableLoading } from '../../../reducer/group/project';
|
||||
const { TextArea } = Input;
|
||||
const FormItem = Form.Item;
|
||||
const Option = Select.Option;
|
||||
|
@ -11,7 +11,7 @@ import { DevTools } from './containers';
|
||||
const enhancer = compose(
|
||||
// Middleware you want to use in development:
|
||||
applyMiddleware(
|
||||
thunkMiddleware.default,
|
||||
thunkMiddleware,
|
||||
promiseMiddleware
|
||||
),
|
||||
// Required! Enable Redux DevTools with the monitors you chose
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1,17 +1,17 @@
|
||||
import {
|
||||
FETCH_ADD_INTERFACE_INPUT,
|
||||
FETCH_ADD_INTERFACE_TAG_VALUE,
|
||||
FETCH_ADD_INTERFACE_HEADER_VALUE,
|
||||
ADD_INTERFACE_SEQ_HEADER,
|
||||
DELETE_INTERFACE_SEQ_HEADER,
|
||||
GET_INTERFACE_REQ_PARAMS,
|
||||
GET_INTERFACE_RES_PARAMS,
|
||||
PUSH_INTERFACE_NAME,
|
||||
PUSH_INTERFACE_METHOD,
|
||||
FETCH_INTERFACE_PROJECT,
|
||||
ADD_INTERFACE_CLIPBOARD
|
||||
} from '../../constants/action-types.js'
|
||||
// Actions
|
||||
const FETCH_ADD_INTERFACE_INPUT = 'yapi/addInterface/FETCH_ADD_INTERFACE_INPUT';
|
||||
const FETCH_ADD_INTERFACE_TAG_VALUE = 'yapi/addInterface/FETCH_ADD_INTERFACE_TAG_VALUE';
|
||||
const FETCH_ADD_INTERFACE_HEADER_VALUE = 'yapi/addInterface/FETCH_ADD_INTERFACE_HEADER_VALUE';
|
||||
const ADD_INTERFACE_SEQ_HEADER = 'yapi/addInterface/ADD_INTERFACE_SEQ_HEADER';
|
||||
const DELETE_INTERFACE_SEQ_HEADER = 'yapi/addInterface/DELETE_INTERFACE_SEQ_HEADER';
|
||||
const GET_INTERFACE_REQ_PARAMS = 'yapi/addInterface/GET_INTERFACE_REQ_PARAMS';
|
||||
const GET_INTERFACE_RES_PARAMS = 'yapi/addInterface/GET_INTERFACE_RES_PARAMS';
|
||||
const PUSH_INTERFACE_NAME = 'yapi/addInterface/PUSH_INTERFACE_NAME';
|
||||
const PUSH_INTERFACE_METHOD = 'yapi/addInterface/PUSH_INTERFACE_METHOD';
|
||||
const FETCH_INTERFACE_PROJECT = 'yapi/addInterface/FETCH_INTERFACE_PROJECT';
|
||||
const ADD_INTERFACE_CLIPBOARD = 'yapi/addInterface/ADD_INTERFACE_CLIPBOARD';
|
||||
|
||||
// Reducer
|
||||
const initialState = {
|
||||
interfaceName: '',
|
||||
url: '',
|
||||
@ -91,3 +91,83 @@ export default (state = initialState, action) => {
|
||||
return state
|
||||
}
|
||||
}
|
||||
|
||||
// Action Creators
|
||||
import axios from 'axios'
|
||||
|
||||
export function pushInputValue (value) {
|
||||
return {
|
||||
type: FETCH_ADD_INTERFACE_INPUT,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function reqTagValue (value) {
|
||||
return {
|
||||
type: FETCH_ADD_INTERFACE_TAG_VALUE,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function reqHeaderValue (value) {
|
||||
return {
|
||||
type: FETCH_ADD_INTERFACE_HEADER_VALUE,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function addReqHeader (value) {
|
||||
return {
|
||||
type: ADD_INTERFACE_SEQ_HEADER,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function deleteReqHeader (value) {
|
||||
return {
|
||||
type: DELETE_INTERFACE_SEQ_HEADER,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function getReqParams (value) {
|
||||
return {
|
||||
type: GET_INTERFACE_REQ_PARAMS,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function getResParams (value) {
|
||||
return {
|
||||
type: GET_INTERFACE_RES_PARAMS,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function pushInterfaceName (value) {
|
||||
return {
|
||||
type: PUSH_INTERFACE_NAME,
|
||||
payload: value
|
||||
}
|
||||
}
|
||||
|
||||
export function pushInterfaceMethod (value) {
|
||||
return {
|
||||
type: PUSH_INTERFACE_METHOD,
|
||||
payload: value
|
||||
}
|
||||
}
|
||||
|
||||
export function fetchInterfaceProject(id) {
|
||||
return {
|
||||
type: FETCH_INTERFACE_PROJECT,
|
||||
payload: axios.get('/project/get', { params: {id}})
|
||||
}
|
||||
}
|
||||
|
||||
export function addInterfaceClipboard (func) {
|
||||
return {
|
||||
type: ADD_INTERFACE_CLIPBOARD,
|
||||
payload: func
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,11 @@
|
||||
import {
|
||||
FETCH_GROUP_LIST,
|
||||
SET_CURR_GROUP
|
||||
} from '../../constants/action-types';
|
||||
import axios from 'axios';
|
||||
import { message } from 'antd'
|
||||
|
||||
// Actions
|
||||
const FETCH_GROUP_LIST = 'yapi/group/FETCH_GROUP_LIST';
|
||||
const SET_CURR_GROUP = 'yapi/group/SET_CURR_GROUP';
|
||||
|
||||
// Reducer
|
||||
const initialState = {
|
||||
groupList: [],
|
||||
currGroup: { group_name: '' }
|
||||
@ -33,3 +35,18 @@ export default (state = initialState, action) => {
|
||||
return state;
|
||||
}
|
||||
};
|
||||
|
||||
// Action Creators
|
||||
export function fetchGroupList() {
|
||||
return {
|
||||
type: FETCH_GROUP_LIST,
|
||||
payload: axios.get('/group/list')
|
||||
}
|
||||
}
|
||||
|
||||
export function setCurrGroup(group) {
|
||||
return {
|
||||
type: SET_CURR_GROUP,
|
||||
payload: group
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +1,15 @@
|
||||
import {
|
||||
FETCH_PROJECT_LIST,
|
||||
PROJECT_ADD,
|
||||
PROJECT_DEL,
|
||||
CHANGE_UPDATE_MODAL,
|
||||
CHANGE_TABLE_LOADING
|
||||
} from '../../constants/action-types';
|
||||
import axios from 'axios';
|
||||
import variable from '../../constants/variable';
|
||||
|
||||
// Actions
|
||||
const FETCH_PROJECT_LIST = 'yapi/project/FETCH_PROJECT_LIST';
|
||||
const PROJECT_ADD = 'yapi/project/PROJECT_ADD';
|
||||
const PROJECT_DEL = 'yapi/project/PROJECT_DEL';
|
||||
const CHANGE_UPDATE_MODAL = 'yapi/project/CHANGE_UPDATE_MODAL';
|
||||
const CHANGE_TABLE_LOADING = 'yapi/project/CHANGE_TABLE_LOADING';
|
||||
const PROJECT_UPDATE = 'yapi/project/PROJECT_UPDATE';
|
||||
|
||||
// Reducer
|
||||
const initialState = {
|
||||
isUpdateModalShow: false,
|
||||
handleUpdateIndex: -1,
|
||||
@ -49,3 +53,75 @@ export default (state = initialState, action) => {
|
||||
return state;
|
||||
}
|
||||
};
|
||||
|
||||
// Action Creators
|
||||
export function fetchProjectList(id, pageNum) {
|
||||
return {
|
||||
type: FETCH_PROJECT_LIST,
|
||||
payload: axios.get('/project/list', {
|
||||
params: {
|
||||
group_id: id,
|
||||
page: pageNum || 1,
|
||||
limit: variable.PAGE_LIMIT
|
||||
}
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
export function changeUpdateModal(data, index) {
|
||||
return {
|
||||
type: CHANGE_UPDATE_MODAL,
|
||||
payload: { data, index }
|
||||
};
|
||||
}
|
||||
|
||||
export function changeTableLoading(data) {
|
||||
return {
|
||||
type: CHANGE_TABLE_LOADING,
|
||||
payload: data
|
||||
};
|
||||
}
|
||||
|
||||
export function addProject(data) {
|
||||
const { name, prd_host, basepath, desc, group_id, protocol } = data;
|
||||
const param = {
|
||||
name,
|
||||
prd_host,
|
||||
protocol,
|
||||
basepath,
|
||||
desc,
|
||||
group_id
|
||||
};
|
||||
return {
|
||||
type: PROJECT_ADD,
|
||||
// payload 可以返回 Promise,异步请求使用 axios 即可
|
||||
payload: axios.post('/project/add', param)
|
||||
};
|
||||
}
|
||||
|
||||
export function updateProject(data) {
|
||||
const { name, prd_host, basepath, desc, _id, protocol, env } = data;
|
||||
const param = {
|
||||
name,
|
||||
prd_host,
|
||||
protocol,
|
||||
basepath,
|
||||
desc,
|
||||
id: _id,
|
||||
env
|
||||
};
|
||||
return {
|
||||
type: PROJECT_UPDATE,
|
||||
// payload 可以返回 Promise,异步请求使用 axios 即可
|
||||
payload: axios.post('/project/up', param)
|
||||
};
|
||||
}
|
||||
|
||||
export function delProject(id) {
|
||||
const param = { id };
|
||||
return {
|
||||
type: PROJECT_DEL,
|
||||
// payload 可以返回 Promise,异步请求使用 axios 即可
|
||||
payload: axios.post('/project/del', param)
|
||||
};
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
import {
|
||||
FETCH_INTERFACE_DATA,
|
||||
LIST_INTERFACE_CLICK,
|
||||
PROJECT_MEMBER_INTERFACE,
|
||||
DELETE_INTERFACE_DATA,
|
||||
SAVE_INTERFACE_PROJECT_ID,
|
||||
GET_INTERFACE_GROUP_LIST
|
||||
} from '../../constants/action-types.js'
|
||||
// Actions
|
||||
const FETCH_INTERFACE_DATA = 'yapi/interface/FETCH_INTERFACE_DATA';
|
||||
const LIST_INTERFACE_CLICK = 'yapi/interface/LIST_INTERFACE_CLICK';
|
||||
const PROJECT_MEMBER_INTERFACE = 'yapi/interface/PROJECT_MEMBER_INTERFACE';
|
||||
const DELETE_INTERFACE_DATA = 'yapi/interface/DELETE_INTERFACE_DATA';
|
||||
const SAVE_INTERFACE_PROJECT_ID = 'yapi/interface/SAVE_INTERFACE_PROJECT_ID';
|
||||
const GET_INTERFACE_GROUP_LIST = 'yapi/interface/GET_INTERFACE_GROUP_LIST';
|
||||
|
||||
// Reducer
|
||||
const initialState = {
|
||||
interfaceData: [],
|
||||
modalVisible: false,
|
||||
@ -51,3 +51,45 @@ export default (state = initialState, action) => {
|
||||
return state
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Action Creators
|
||||
export function fetchInterfaceData (value) {
|
||||
return {
|
||||
type: FETCH_INTERFACE_DATA,
|
||||
payload: value
|
||||
};
|
||||
}
|
||||
|
||||
export function projectMember () {
|
||||
return {
|
||||
type: LIST_INTERFACE_CLICK
|
||||
}
|
||||
}
|
||||
|
||||
export function closeProjectMember () {
|
||||
return {
|
||||
type: PROJECT_MEMBER_INTERFACE
|
||||
}
|
||||
}
|
||||
|
||||
export function deleteInterfaceData (value) {
|
||||
return {
|
||||
type: DELETE_INTERFACE_DATA,
|
||||
payload: value
|
||||
}
|
||||
}
|
||||
|
||||
export function saveInterfaceProjectId (value) {
|
||||
return {
|
||||
type: SAVE_INTERFACE_PROJECT_ID,
|
||||
payload: value
|
||||
}
|
||||
}
|
||||
|
||||
export function getInterfaceGroupList (value) {
|
||||
return {
|
||||
type: GET_INTERFACE_GROUP_LIST,
|
||||
payload: value
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +1,13 @@
|
||||
import {
|
||||
LOGIN,
|
||||
LOGIN_OUT,
|
||||
LOGIN_TYPE,
|
||||
GET_LOGIN_STATE,
|
||||
REGISTER
|
||||
} from '../../constants/action-types';
|
||||
import axios from 'axios';
|
||||
|
||||
// Actions
|
||||
const LOGIN = 'yapi/login/LOGIN';
|
||||
const LOGIN_OUT = 'yapi/login/LOGIN_OUT';
|
||||
const LOGIN_TYPE = 'yapi/login/LOGIN_TYPE';
|
||||
const GET_LOGIN_STATE = 'yapi/login/GET_LOGIN_STATE';
|
||||
const REGISTER = 'yapi/login/REGISTER';
|
||||
|
||||
// Reducer
|
||||
const LOADING_STATUS = 0;
|
||||
const GUEST_STATUS = 1;
|
||||
const MEMBER_STATUS = 2;
|
||||
@ -74,3 +76,51 @@ export default (state = initialState, action) => {
|
||||
return state;
|
||||
}
|
||||
};
|
||||
|
||||
// Action Creators
|
||||
export function checkLoginState() {
|
||||
return(dispatch)=> {
|
||||
axios.get('/user/status').then((res) => {
|
||||
dispatch({
|
||||
type: GET_LOGIN_STATE,
|
||||
payload: res
|
||||
});
|
||||
}).catch((err) => {
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export function loginActions(data) {
|
||||
return {
|
||||
type: LOGIN,
|
||||
payload: axios.post('/user/login', data)
|
||||
};
|
||||
}
|
||||
|
||||
export function regActions(data) {
|
||||
const { email, password, userName } = data;
|
||||
const param = {
|
||||
email,
|
||||
password,
|
||||
username: userName
|
||||
};
|
||||
return {
|
||||
type: REGISTER,
|
||||
payload: axios.post('/user/reg', param)
|
||||
};
|
||||
}
|
||||
|
||||
export function logoutActions() {
|
||||
return {
|
||||
type: LOGIN_OUT,
|
||||
payload: axios.get('./user/logout')
|
||||
}
|
||||
}
|
||||
|
||||
export function loginTypeAction(index) {
|
||||
return{
|
||||
type: LOGIN_TYPE,
|
||||
index
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import {
|
||||
CHANGE_MENU_ITEM
|
||||
} from '../../constants/action-types.js'
|
||||
// Actions
|
||||
const CHANGE_MENU_ITEM = 'yapi/menu/CHANGE_MENU_ITEM';
|
||||
|
||||
// Reducer
|
||||
const initialState = {
|
||||
curKey: '/'+window.location.hash.split("/")[1]
|
||||
}
|
||||
@ -19,3 +19,10 @@ export default (state = initialState, action) => {
|
||||
}
|
||||
}
|
||||
|
||||
// Action Creators
|
||||
export function changeMenuItem(curKey) {
|
||||
return {
|
||||
type: CHANGE_MENU_ITEM,
|
||||
data: curKey
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
import {
|
||||
FETCH_NEWS_DATA,
|
||||
FETCH_MORE_NEWS
|
||||
} from '../../constants/action-types.js'
|
||||
// Actions
|
||||
const FETCH_NEWS_DATA = 'yapi/news/FETCH_NEWS_DATA';
|
||||
const FETCH_MORE_NEWS = 'yapi/news/FETCH_MORE_NEWS';
|
||||
|
||||
// Reducer
|
||||
const initialState = {
|
||||
newsData: {}
|
||||
}
|
||||
@ -29,3 +29,53 @@ export default (state = initialState, action) => {
|
||||
}
|
||||
}
|
||||
|
||||
// Action Creators
|
||||
import axios from 'axios';
|
||||
import variable from '../../constants/variable';
|
||||
|
||||
export function fetchNewsData (uid,page,limit) {
|
||||
// const data = {
|
||||
// newsList:[
|
||||
// { key: 1,title: '日志标题', username: 'John Brown', content: '您好!亲爱的用户:您已成功申请接口:实时空气质量数据查询,请于两个月内进行应用验证,逾期接口将不能正常使用。如果您在使用的过程中遇到任何问题,欢迎前往交流社区反馈意见,谢谢!',time: '2014-12-01' },
|
||||
// { key: 2,title: '日志标题', username: 'John Brown', content: 'My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park.',time: '2014-12-01' },
|
||||
// { key: 3,title: '日志标题', username: 'John Brown', content: 'My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park.',time: '2014-12-01' }
|
||||
// ],
|
||||
// totalPage: 34
|
||||
// };
|
||||
|
||||
const param = {
|
||||
uid: uid,
|
||||
page: page,
|
||||
limit: variable.PAGE_LIMIT?variable.PAGE_LIMIT:limit
|
||||
}
|
||||
// console.log(param);
|
||||
return {
|
||||
type: FETCH_NEWS_DATA,
|
||||
payload: axios.get('/log/list',{
|
||||
params: param
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
export function fetchMoreNews (current,pageSize) {
|
||||
// id,type,news,time,totalPage
|
||||
const newsList = [
|
||||
{ key: 1,title: '日志标题1', username: 'John Brown', content: '您好!亲爱的用户:您已成功申请接口:实时空气质量数据查询,请于两个月内进行应用验证,逾期接口将不能正常使用。如果您在使用的过程中遇到任何问题,欢迎前往交流社区反馈意见,谢谢!',time: '2014-12-01' },
|
||||
{ key: 2,title: '日志标题', username: 'John Brown', content: 'My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park.',time: '2014-12-01' },
|
||||
{ key: 3,title: '日志标题', username: 'John Brown', content: 'My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park.',time: '2014-12-01' }
|
||||
]
|
||||
console.log(current,pageSize);
|
||||
return ({
|
||||
type: FETCH_MORE_NEWS,
|
||||
payload: new Promise(function(resolve,reject){
|
||||
if(newsList){
|
||||
resolve(newsList);
|
||||
}else{
|
||||
reject("出现了错误");
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
import {
|
||||
CHANGE_CUR_UID
|
||||
} from '../../constants/action-types';
|
||||
const CHANGE_CUR_UID = 'yapi/user/CHANGE_CUR_UID';
|
||||
|
||||
// Reducer
|
||||
const initialState = {
|
||||
curUid: "0"
|
||||
};
|
||||
@ -19,3 +18,11 @@ export default (state = initialState, action) => {
|
||||
return state;
|
||||
}
|
||||
};
|
||||
|
||||
// Action Creators
|
||||
export function changeCurUid(curUid) {
|
||||
return {
|
||||
type: CHANGE_CUR_UID,
|
||||
data: curUid
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user