repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/SchemaTable/SchemaTable.js | client/components/SchemaTable/SchemaTable.js | import React, { Component } from 'react';
import { Table } from 'antd';
import json5 from 'json5';
import PropTypes from 'prop-types';
import { schemaTransformToTable } from '../../../common/schema-transformTo-table.js';
import _ from 'underscore';
import './index.scss';
const messageMap = {
desc: '备注',
default: '... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/ProjectCard/ProjectCard.js | client/components/ProjectCard/ProjectCard.js | import './ProjectCard.scss';
import React, { PureComponent as Component } from 'react';
import { Card, Icon, Tooltip, Modal, Alert, Input, message } from 'antd';
import { connect } from 'react-redux';
import { delFollow, addFollow } from '../../reducer/modules/follow';
import PropTypes from 'prop-types';
import { withR... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/MockDoc/MockDoc.js | client/components/MockDoc/MockDoc.js | import './MockDoc.scss';
import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
// 组件用法 <MockDoc mock= mockData doc= docData />
// mockData: mock数据 格式为json
// docData:docData数据 格式为array
class MockDoc extends Component {
constructor(props) {
super(props);
this.state = ... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/Intro/Intro.js | client/components/Intro/Intro.js | import React from 'react';
import PropTypes from 'prop-types';
import { Icon } from 'antd';
import './Intro.scss';
import { OverPack } from 'rc-scroll-anim';
import TweenOne from 'rc-tween-one';
import QueueAnim from 'rc-queue-anim';
const IntroPart = props => (
<li className="switch-content">
<div className="ic... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/ErrMsg/ErrMsg.js | client/components/ErrMsg/ErrMsg.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { Icon } from 'antd';
import './ErrMsg.scss';
import { withRouter } from 'react-router';
/**
* 错误信息提示
*
* @component ErrMsg
* @examplelanguage js
*
* * 错误信息提示组件
* * 错误信息提示组件
*
*
*/
/**
* 标题
* 一般用于描述错误信息名称... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/Notify/Notify.js | client/components/Notify/Notify.js | import React, { Component } from 'react';
import axios from 'axios';
import { Alert, message } from 'antd';
export default class Notify extends Component {
constructor(props) {
super(props);
this.state = {
newVersion: process.env.version,
version: process.env.version
};
}
componentDidMou... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/Label/Label.js | client/components/Label/Label.js | import React, { Component } from 'react';
import { Icon, Input, Tooltip } from 'antd';
import PropTypes from 'prop-types';
import './Label.scss';
export default class Label extends Component {
constructor(props) {
super(props);
this.state = {
inputShow: false,
inputValue: ''
};
}
static p... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/CaseEnv/index.js | client/components/CaseEnv/index.js | // 测试集合中的环境切换
import React from 'react';
import PropTypes from 'prop-types';
import { Select, Row, Col, Collapse, Icon, Tooltip } from 'antd';
const Option = Select.Option;
const Panel = Collapse.Panel;
import './index.scss';
export default class CaseEnv extends React.Component {
constructor(props) {
super(prop... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/GuideBtns/GuideBtns.js | client/components/GuideBtns/GuideBtns.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { Button } from 'antd';
import { connect } from 'react-redux';
import { changeStudyTip, finishStudy } from '../../reducer/modules/user.js';
@connect(
null,
{
changeStudyTip,
finishStudy
}
)
class GuideBt... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/Postman/Postman.js | client/components/Postman/Postman.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import {
Button,
Input,
Checkbox,
Modal,
Select,
Spin,
Icon,
Collapse,
Tooltip,
Tabs,
Switch,
Row,
Col,
Alert
} from 'antd';
import constants from '../../constants/variable.js';
import AceEditor fr... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | true |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/Postman/CheckCrossInstall.js | client/components/Postman/CheckCrossInstall.js | import React from 'react';
import { Alert } from 'antd';
import PropTypes from 'prop-types';
exports.initCrossRequest = function (fn) {
let startTime = 0;
let _crossRequest = setInterval(() => {
startTime += 500;
if (startTime > 5000) {
clearInterval(_crossRequest);
}
if (window.crossRequest)... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/LogoSVG/index.js | client/components/LogoSVG/index.js | import React from 'react';
import PropTypes from 'prop-types';
const LogoSVG = props => {
let length = props.length;
return (
<svg className="svg" width={length} height={length} viewBox="0 0 64 64" version="1.1">
<title>Icon</title>
<desc>Created with Sketch.</desc>
<defs>
<linearGrad... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/Header/Header.js | client/components/Header/Header.js | import './Header.scss';
import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { Icon, Layout, Menu, Dropdown, message, Tooltip, Popover, Tag } from 'antd';
import { checkLoginState, logoutActi... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/Header/Search/Search.js | client/components/Header/Search/Search.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Icon, Input, AutoComplete } from 'antd';
import './Search.scss';
import { withRouter } from 'react-router';
import axios from 'axios';
import { setCurrGroup, fetchGroupMsg } fro... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/components/EasyDragSort/EasyDragSort.js | client/components/EasyDragSort/EasyDragSort.js | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
/**
* @author suxiaoxin
* @demo
* <EasyDragSort data={()=>this.state.list} onChange={this.handleChange} >
* {list}
* </EasyDragSot>
*/
let curDragIndex = null;
function isDom(obj) {
return (
obj &&
typeof... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/reducer/create.js | client/reducer/create.js | import { createStore as _createStore, applyMiddleware } from 'redux';
import promiseMiddleware from 'redux-promise';
import messageMiddleware from './middleware/messageMiddleware';
import reducer from './modules/reducer';
export default function createStore(initialState = {}) {
const middleware = [promiseMiddleware,... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/reducer/middleware/messageMiddleware.js | client/reducer/middleware/messageMiddleware.js | import { message } from 'antd';
export default () => next => action => {
if (!action) {
return;
}
if (action.error) {
message.error((action.payload && action.payload.message) || '服务器错误');
} else if (
action.payload &&
action.payload.data &&
action.payload.data.errcode &&
action.payload.... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/reducer/modules/user.js | client/reducer/modules/user.js | import axios from 'axios';
// Actions
const LOGIN = 'yapi/user/LOGIN';
const LOGIN_OUT = 'yapi/user/LOGIN_OUT';
const LOGIN_TYPE = 'yapi/user/LOGIN_TYPE';
const GET_LOGIN_STATE = 'yapi/user/GET_LOGIN_STATE';
const REGISTER = 'yapi/user/REGISTER';
const SET_BREADCRUMB = 'yapi/user/SET_BREADCRUMB';
const CHANGE_STUDY_TI... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/reducer/modules/reducer.js | client/reducer/modules/reducer.js | import { combineReducers } from 'redux';
import user from './user.js';
import group from './group.js';
import project from './project.js';
import inter from './interface.js';
import interfaceCol from './interfaceCol.js';
import news from './news.js';
import addInterface from './addInterface.js';
import menu from './men... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/reducer/modules/menu.js | client/reducer/modules/menu.js | // Actions
const CHANGE_MENU_ITEM = 'yapi/menu/CHANGE_MENU_ITEM';
// Reducer
const initialState = {
curKey: '/' + window.location.hash.split('/')[1]
};
export default (state = initialState, action) => {
if (action.type === CHANGE_MENU_ITEM) {
return {
...state,
curKey: action.data
};
} else ... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/reducer/modules/interface.js | client/reducer/modules/interface.js | import axios from 'axios';
import qs from 'qs';
// Actions
const INIT_INTERFACE_DATA = 'yapi/interface/INIT_INTERFACE_DATA';
const FETCH_INTERFACE_DATA = 'yapi/interface/FETCH_INTERFACE_DATA';
const FETCH_INTERFACE_LIST_MENU = 'yapi/interface/FETCH_INTERFACE_LIST_MENU';
const DELETE_INTERFACE_DATA = 'yapi/interface/DEL... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/reducer/modules/interfaceCol.js | client/reducer/modules/interfaceCol.js | import axios from 'axios';
// Actions
const FETCH_INTERFACE_COL_LIST = 'yapi/interfaceCol/FETCH_INTERFACE_COL_LIST';
const FETCH_CASE_DATA = 'yapi/interfaceCol/FETCH_CASE_DATA';
const FETCH_CASE_LIST = 'yapi/interfaceCol/FETCH_CASE_LIST';
const SET_COL_DATA = 'yapi/interfaceCol/SET_COL_DATA';
const FETCH_VARIABLE_PARAM... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/reducer/modules/group.js | client/reducer/modules/group.js | import axios from 'axios';
// Actions
const FETCH_GROUP_LIST = 'yapi/group/FETCH_GROUP_LIST';
const SET_CURR_GROUP = 'yapi/group/SET_CURR_GROUP';
const FETCH_GROUP_MEMBER = 'yapi/group/FETCH_GROUP_MEMBER';
const FETCH_GROUP_MSG = 'yapi/group/FETCH_GROUP_MSG';
const ADD_GROUP_MEMBER = 'yapi/group/ADD_GROUP_MEMBER';
con... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/reducer/modules/addInterface.js | client/reducer/modules/addInterface.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/addIn... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/reducer/modules/news.js | client/reducer/modules/news.js | // Actions
const FETCH_NEWS_DATA = 'yapi/news/FETCH_NEWS_DATA';
const FETCH_MORE_NEWS = 'yapi/news/FETCH_MORE_NEWS';
// Reducer
const initialState = {
newsData: {
list: [],
total: 0
},
curpage: 1
};
export default (state = initialState, action) => {
switch (action.type) {
case FETCH_NEWS_DATA: {
... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/reducer/modules/follow.js | client/reducer/modules/follow.js | import axios from 'axios';
// Actions
const GET_FOLLOW_LIST = 'yapi/follow/GET_FOLLOW_LIST';
const DEL_FOLLOW = 'yapi/follow/DEL_FOLLOW';
const ADD_FOLLOW = 'yapi/follow/ADD_FOLLOW';
// Reducer
const initialState = {
data: []
};
export default (state = initialState, action) => {
if (action.type === GET_FOLLOW_LI... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/reducer/modules/mockCol.js | client/reducer/modules/mockCol.js | import axios from 'axios';
// Actions
const FETCH_MOCK_COL = 'yapi/mockCol/FETCH_MOCK_COL';
// Reducer
const initialState = {
list: []
};
export default (state = initialState, action) => {
switch (action.type) {
case FETCH_MOCK_COL:
return {
...state,
list: action.payload.data
};
... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/reducer/modules/project.js | client/reducer/modules/project.js | import axios from 'axios';
import variable from '../../constants/variable';
import {htmlFilter} from '../../common';
// 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_TABLE_LOADING = '... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/index.js | client/containers/index.js | import Header from '../components/Header/Header.js';
import Home from './Home/Home.js';
import Login from './Login/LoginContainer.js';
import Group from './Group/Group.js';
import Project from './Project/Project.js';
import Follows from './Follows/Follows.js';
import AddProject from './AddProject/AddProject.js';
expor... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Project.js | client/containers/Project/Project.js | import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Route, Switch, Redirect, matchPath } from 'react-router-dom';
import { Subnav } from '../../components/index';
import { fetchGroupMsg } from '../../reducer/modules/group';
impor... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Activity/Activity.js | client/containers/Project/Activity/Activity.js | import './Activity.scss';
import React, { PureComponent as Component } from 'react';
import TimeTree from '../../../components/TimeLine/TimeLine';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Button } from 'antd';
@connect(state => {
return {
uid: state.user.uid + '',
cu... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/Interface.js | client/containers/Project/Interface/Interface.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { Tabs, Layout } from 'antd';
import { Route, Switch, matchPath } from 'react-router-dom';
import { connect } from 'react-redux';
const { Content, Sider } = Layout;
import './interface.scss';
import InterfaceMenu fro... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceList/InterfaceList.js | client/containers/Project/Interface/InterfaceList/InterfaceList.js | import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import axios from 'axios';
import { Table, Button, Modal, message, Tooltip, Select, Icon } from 'antd';
import AddInterfaceForm from './AddInterfaceForm';
import {
fetchInterfaceListMe... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceList/Edit.js | client/containers/Project/Interface/InterfaceList/Edit.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import InterfaceEditForm from './InterfaceEditForm.js';
import {
updateInterfaceData,
fetchInterfaceListMenu,
fetchInterfaceData
} from '../../../../reducer/modules/interface.js';
... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceList/InterfaceEditForm.js | client/containers/Project/Interface/InterfaceList/InterfaceEditForm.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import _ from 'underscore';
import constants from '../../../../constants/variable.js';
import { handlePath, nameLengthLimit } from '../../../../common.js';
import { changeEditStatus } fr... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | true |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceList/AddInterfaceCatForm.js | client/containers/Project/Interface/InterfaceList/AddInterfaceCatForm.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { Form, Input, Button } from 'antd';
const FormItem = Form.Item;
function hasErrors(fieldsError) {
return Object.keys(fieldsError).some(field => fieldsError[field]);
}
class AddInterfaceForm extends Component {
sta... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceList/InterfaceContent.js | client/containers/Project/Interface/InterfaceList/InterfaceContent.js | import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Tabs, Modal, Button } from 'antd';
import Edit from './Edit.js';
import View from './View.js';
import { Prompt } from 'react-router';
import { fetchInterfaceData } from '../../.... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceList/InterfaceMenu.js | client/containers/Project/Interface/InterfaceList/InterfaceMenu.js | import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import {
fetchInterfaceListMenu,
fetchInterfaceList,
fetchInterfaceCatList,
fetchInterfaceData,
deleteInterfaceData,
deleteInterfaceCatData,
initInterface
} from '../../../... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceList/AddInterfaceForm.js | client/containers/Project/Interface/InterfaceList/AddInterfaceForm.js | import React, { PureComponent as Component } from 'react'
import PropTypes from 'prop-types'
import { Form, Input, Select, Button } from 'antd';
import constants from '../../../../constants/variable.js'
import { handleApiPath, nameLengthLimit } from '../../../../common.js'
const HTTP_METHOD = constants.HTTP_METHOD;
co... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceList/View.js | client/containers/Project/Interface/InterfaceList/View.js | import './View.scss';
import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Table, Icon, Row, Col, Tooltip, message } from 'antd';
import { Link } from 'react-router-dom';
import AceEditor from 'client/components/AceEditor/AceEdito... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceList/Run/AddColModal.js | client/containers/Project/Interface/InterfaceList/Run/AddColModal.js | import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import { Modal, Collapse, Row, Col, Input, message, Button, Icon } from 'antd';
import PropTypes from 'prop-types';
import axios from 'axios';
import { withRouter } from 'react-router';
import { fetchInterfaceColList } fro... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceList/Run/Run.js | client/containers/Project/Interface/InterfaceList/Run/Run.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import axios from 'axios';
import { message } from 'antd';
import { Postman } from '../../../../../components';
import AddColModal from './AddC... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js | client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js | import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import PropTypes from 'prop-types';
import {
fetchInterfaceColList,
fetchInterfaceCaseList,
setColData,
fetchCaseList,
fetchCaseData
} from '../../../../reducer/modules/... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceCol/InterfaceCaseContent.js | client/containers/Project/Interface/InterfaceCol/InterfaceCaseContent.js | import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router';
import { Link } from 'react-router-dom';
import axios from 'axios';
import { message, Tooltip, Input } from 'antd';
import { getEnv } from '../... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceCol/ImportInterface.js | client/containers/Project/Interface/InterfaceCol/ImportInterface.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { Table, Select, Tooltip, Icon } from 'antd';
import variable from '../../../../constants/variable';
import { connect } from 'react-redux';
const Option = Select.Option;
import { fetchInterfaceListMenu } from '../../..... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceCol/CaseReport.js | client/containers/Project/Interface/InterfaceCol/CaseReport.js | import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col, Tabs } from 'antd';
const TabPane = Tabs.TabPane;
function jsonFormat(json) {
// console.log('json',json)
if (json && typeof json === 'object') {
return JSON.stringify(json, null, ' ');
}
return json;
}
const CaseReport = f... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js | client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js | import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router';
import { Link } from 'react-router-dom';
//import constants from '../../../../constants/variable.js'
import { Tooltip, Icon,Input, Button, Row,... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | true |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Setting/Setting.js | client/containers/Project/Setting/Setting.js | import React, { PureComponent as Component } from 'react';
import { Tabs } from 'antd';
import PropTypes from 'prop-types';
import ProjectMessage from './ProjectMessage/ProjectMessage.js';
import ProjectEnv from './ProjectEnv/index.js';
import ProjectRequest from './ProjectRequest/ProjectRequest';
import ProjectToken f... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Setting/ProjectMember/ProjectMember.js | client/containers/Project/Setting/ProjectMember/ProjectMember.js | import React, { PureComponent as Component } from 'react';
import {
Table,
Card,
Badge,
Select,
Button,
Modal,
Row,
Col,
message,
Popconfirm,
Switch,
Tooltip
} from 'antd';
import PropTypes from 'prop-types';
import { fetchGroupMsg } from '../../../../reducer/modules/group';
import { connect } f... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Setting/ProjectData/ProjectData.js | client/containers/Project/Setting/ProjectData/ProjectData.js | import React, { PureComponent as Component } from 'react';
import {
Upload,
Icon,
message,
Select,
Tooltip,
Button,
Spin,
Switch,
Modal,
Radio,
Input,
Checkbox
} from 'antd';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import './ProjectData.scss';
import axios from... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Setting/ProjectMock/index.js | client/containers/Project/Setting/ProjectMock/index.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Form, Switch, Button, Icon, Tooltip, message } from 'antd';
import AceEditor from '../../../../components/AceEditor/AceEditor';
const FormItem = Form.Item;
import { updateProjectMock, getProject... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Setting/ProjectMessage/ProjectMessage.js | client/containers/Project/Setting/ProjectMessage/ProjectMessage.js | import React, { PureComponent as Component } from 'react';
import {
Form,
Input,
Switch,
Select,
Icon,
Tooltip,
Button,
Row,
Col,
message,
Card,
Radio,
Alert,
Modal,
Popover
} from 'antd';
import PropTypes from 'prop-types';
import {
updateProject,
delProject,
getProject,
upsetProj... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Setting/ProjectMessage/ProjectTag.js | client/containers/Project/Setting/ProjectMessage/ProjectTag.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Icon, Row, Col, Input } from 'antd';
import './ProjectTag.scss';
class ProjectTag extends Component {
static propTypes = {
tagMsg: PropTypes.array,
tagSubmit: PropTypes.func
};
constructor(props) {
super(props);
... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Setting/ProjectToken/ProjectToken.js | client/containers/Project/Setting/ProjectToken/ProjectToken.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './ProjectToken.scss';
import { getToken, updateToken } from '../../../../reducer/modules/project';
import { connect } from 'react-redux';
import { Icon, Tooltip, message, Modal } from 'antd';
import copy from 'copy-to-clipboard';
cons... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Setting/ProjectEnv/index.js | client/containers/Project/Setting/ProjectEnv/index.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './index.scss';
import { Icon, Layout, Tooltip, message, Row, Popconfirm } from 'antd';
const { Content, Sider } = Layout;
import ProjectEnvContent from './ProjectEnvContent.js';
import { connect } from 'react-redux';
import { updateEn... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Setting/ProjectEnv/ProjectEnvContent.js | client/containers/Project/Setting/ProjectEnv/ProjectEnvContent.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './index.scss';
import { Icon, Row, Col, Form, Input, Select, Button, AutoComplete, Tooltip } from 'antd';
const FormItem = Form.Item;
const Option = Select.Option;
import constants from 'client/constants/variable.js';
const initMap =... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Project/Setting/ProjectRequest/ProjectRequest.js | client/containers/Project/Setting/ProjectRequest/ProjectRequest.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Form, Button, message } from 'antd';
const FormItem = Form.Item;
import './project-request.scss';
import AceEditor from 'client/components/AceEditor/AceEditor';
import { updateP... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/AddProject/AddProject.js | client/containers/AddProject/AddProject.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Button, Form, Input, Icon, Tooltip, Select, message, Row, Col, Radio } from 'antd';
import { addProject } from '../../reducer/modules/project.js';
import { fetchGroupList } from... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/DevTools/DevTools.js | client/containers/DevTools/DevTools.js | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
module.exports = createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-q"
defaultIsVisible={... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Follows/Follows.js | client/containers/Follows/Follows.js | import React, { PureComponent as Component } from 'react';
import './Follows.scss';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Row, Col } from 'antd';
import { getFollowList } from '../../reducer/modules/follow';
import { setBreadcrumb } from '../../reducer/modules/user';
import... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/News/News.js | client/containers/News/News.js | import './News.scss';
import React, { PureComponent as Component } from 'react';
import NewsTimeline from './NewsTimeline/NewsTimeline';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Breadcrumb from '../../components/Breadcrumb/Breadcrumb';
import { Button } from 'antd';
import { get... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/News/NewsList/NewsList.js | client/containers/News/NewsList/NewsList.js | import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Menu } from 'antd';
import { fetchNewsData } from '../../../reducer/modules/news.js';
const logList = [
{
name: '用户'
},
{
name: '分组'
},
{
name: '接口'
},
... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/News/NewsTimeline/NewsTimeline.js | client/containers/News/NewsTimeline/NewsTimeline.js | import React, { PureComponent as Component } from 'react';
import { Timeline, Spin } from 'antd';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { formatTime } from '../../../common.js';
import { fetchNewsData } from '../../../reducer/modules/news.js';
import { timeago } from '../../.... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Group/Group.js | client/containers/Group/Group.js | import React, { PureComponent as Component } from 'react';
import GroupList from './GroupList/GroupList.js';
import ProjectList from './ProjectList/ProjectList.js';
import MemberList from './MemberList/MemberList.js';
import GroupLog from './GroupLog/GroupLog.js';
import GroupSetting from './GroupSetting/GroupSetting.j... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Group/ProjectList/ProjectList.js | client/containers/Group/ProjectList/ProjectList.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Row, Col, Button, Tooltip } from 'antd';
import { Link } from 'react-router-dom';
import {
addProject,
fetchProjectList,
delProject,
changeUpdateModal
} from '../../../r... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Group/ProjectList/UpDateModal.js | client/containers/Group/ProjectList/UpDateModal.js | import React, { PureComponent as 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,
changeTabl... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Group/GroupList/GroupList.js | client/containers/Group/GroupList/GroupList.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Icon, Modal, Input, message,Spin, Row, Menu, Col, Popover, Tooltip } from 'antd';
import { autobind } from 'core-decorators';
import axios from 'axios';
import { withRouter } f... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Group/GroupSetting/GroupSetting.js | client/containers/Group/GroupSetting/GroupSetting.js | import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Input, Button, message, Icon, Card, Alert, Modal, Switch, Row, Col, Tooltip } from 'antd';
import { fetchNewsData } from '../../../reducer/modules/news.js';
import {
changeGro... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Group/GroupLog/GroupLog.js | client/containers/Group/GroupLog/GroupLog.js | import React, { PureComponent as Component } from 'react';
import TimeTree from '../../../components/TimeLine/TimeLine';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
// import { Button } from 'antd'
@connect(state => {
return {
uid: state.user.uid + '',
curGroupId: state.group.cu... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Group/MemberList/MemberList.js | client/containers/Group/MemberList/MemberList.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Table, Select, Button, Modal, Row, Col, message, Popconfirm } from 'antd';
import { Link } from 'react-router-dom';
import './MemberList.scss';
import { autobind } from 'core-de... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Home/Home.js | client/containers/Home/Home.js | import './Home.scss';
import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { Row, Col, Button, Icon, Card } from 'antd';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router';
import LogoSVG from '../../... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/User/Profile.js | client/containers/User/Profile.js | import React, { PureComponent as Component } from 'react';
import { Row, Col, Input, Button, Select, message, Upload, Tooltip } from 'antd';
import axios from 'axios';
import { formatTime } from '../../common.js';
import PropTypes from 'prop-types';
import { setBreadcrumb, setImageUrl } from '../../reducer/modules/user... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/User/List.js | client/containers/User/List.js | import React, { PureComponent as Component } from 'react';
import { formatTime } from '../../common.js';
import { Link } from 'react-router-dom';
import { setBreadcrumb } from '../../reducer/modules/user';
//import PropTypes from 'prop-types'
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
im... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/User/User.js | client/containers/User/User.js | import './index.scss';
import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import { Route } from 'react-router-dom';
import List from './List.js';
import PropTypes from 'prop-types';
import Profile from './Profile.js';
import { Row } from 'antd';
@connect(
state => {
... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Login/Reg.js | client/containers/Login/Reg.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Form, Button, Input, Icon, message } from 'antd';
import { regActions } from '../../reducer/modules/user';
import { withRouter } from 'react-router';
const FormItem = Form.Item;... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Login/LoginWrap.js | client/containers/Login/LoginWrap.js | import React, { PureComponent as Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Tabs } from 'antd';
import LoginForm from './Login';
import RegForm from './Reg';
import './Login.scss';
const TabPane = Tabs.TabPane;
@connect(state => ({
loginWrapActiveKey... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Login/Login.js | client/containers/Login/Login.js | import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Form, Button, Input, Icon, message, Radio } from 'antd';
import { loginActions, loginLdapActions } from '../../reducer/modules/user';
import { withRouter } from 'react-router';
... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/containers/Login/LoginContainer.js | client/containers/Login/LoginContainer.js | import React, { PureComponent as Component } from 'react';
import Login from './LoginWrap';
import { Row, Col, Card } from 'antd';
import LogoSVG from '../../components/LogoSVG/index.js';
class LoginContainer extends Component {
render() {
return (
<div className="g-body login-body">
<div className... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/client/constants/variable.js | client/constants/variable.js | module.exports = {
PAGE_LIMIT: 10, // 默认每页展示10条数据
NAME_LIMIT: 100, // 限制名称的字符长度(中文算两个长度)
HTTP_METHOD: {
'GET': {
request_body: false,
default_tab: 'query'
},
'POST': {
request_body: true,
default_tab: 'body'
},
'PUT': {
request_body: true,
default_tab: 'body... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-statistics/statisMockModel.js | exts/yapi-plugin-statistics/statisMockModel.js | /**
* Created by gxl.gao on 2017/10/24.
*/
const yapi = require('yapi.js');
const baseModel = require('models/base.js');
class statisMockModel extends baseModel {
getName() {
return 'statis_mock';
}
getSchema() {
return {
interface_id: { type: Number, required: true },
... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-statistics/index.js | exts/yapi-plugin-statistics/index.js | /**
* Created by gxl.gao on 2017/10/24.
*/
module.exports = {
server: true,
client: true,
httpCodes: [
100,101,102,200,201,202,203,204,205,206,207,208,226,300,301,302,303,304,305,307,308,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,422,423,424,426,428,429,431,500,501... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-statistics/test.js | exts/yapi-plugin-statistics/test.js | const fs = require('fs-extra');
const yapi = require('../../server/yapi.js');
const commons = require('../../server/utils/commons');
const dbModule = require('../../server/utils/db.js');
const userModel = require('../../server/models/user.js');
const mongoose = require('mongoose');
yapi.commons = commons;
yapi.connect... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-statistics/controller.js | exts/yapi-plugin-statistics/controller.js | /**
* Created by gxl.gao on 2017/10/24.
*/
const baseController = require('controllers/base.js');
const statisMockModel = require('./statisMockModel.js');
const groupModel = require('models/group.js');
const projectModel = require('models/project.js');
const interfaceModel = require('models/interface.js');
const inte... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-statistics/client.js | exts/yapi-plugin-statistics/client.js | /**
* Created by gxl.gao on 2017/10/24.
*/
import StatisticsPage from './statisticsClientPage/index'
module.exports = function () {
this.bindHook('header_menu', function (menu) {
menu.statisticsPage = {
path: '/statistic',
name: '系统信息',
icon: 'bar-chart',
adminFlag: true
}
})
th... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-statistics/server.js | exts/yapi-plugin-statistics/server.js | /**
* Created by gxl.gao on 2017/10/24.
*/
const yapi = require('yapi.js');
const mongoose = require('mongoose');
const controller = require('./controller');
const statisModel = require('./statisMockModel.js');
const commons = require('./util.js');
module.exports = function() {
yapi.connect.then(function() {
l... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-statistics/util.js | exts/yapi-plugin-statistics/util.js | /**
* 获取所需要的日期区间点
* @param time {Number} Number是ele日期区间选择组件返回的结果
* Number是之前时刻距离今天的间隔天数,默认是90天
* @param start {String} 日期对象,日期区间的开始点 '2017-01-17 00:00:00'
* @param withToday {Boolean} 是否包含今天
* @return {Array} ['2017-01-17 00:00:00', '2017-01-20 23:59:59']
*/
exports.getDateRange = (time = 90, start = false,... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-statistics/statisticsClientPage/StatisChart.js | exts/yapi-plugin-statistics/statisticsClientPage/StatisChart.js | /**
* Created by gxl.gao on 2017/10/25.
*/
import React, { Component } from 'react';
// import PropTypes from 'prop-types'
import axios from 'axios';
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts';
import { Spin } from 'antd';
class StatisChart extends Component {
static pr... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-statistics/statisticsClientPage/index.js | exts/yapi-plugin-statistics/statisticsClientPage/index.js | /**
* Created by gxl.gao on 2017/10/25.
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import axios from 'axios';
import PropTypes from 'prop-types';
import './index.scss';
// import { withRouter } from 'react-router-dom';
import { Row, Col, Tooltip, Icon } from 'antd';
import { s... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-statistics/statisticsClientPage/StatisTable.js | exts/yapi-plugin-statistics/statisticsClientPage/StatisTable.js | import React from 'react';
import { Table } from 'antd';
import PropTypes from 'prop-types';
const columns = [
{
title: 'Group',
dataIndex: 'name',
key: 'name'
},
{
title: '项目',
dataIndex: 'project',
key: 'project'
},
{
title: '接口',
dataIndex: 'interface',
key: 'interface'... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-import-yapi-json/index.js | exts/yapi-plugin-import-yapi-json/index.js | module.exports = {
server: false,
client: true
} | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-import-yapi-json/client.js | exts/yapi-plugin-import-yapi-json/client.js | import { message } from 'antd';
function importData(importDataModule) {
async function run(res) {
try {
let interfaceData = { apis: [], cats: [] };
res = JSON.parse(res);
res.forEach(item => {
interfaceData.cats.push({
name: item.name,
desc: item.desc
});
... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-import-swagger/index.js | exts/yapi-plugin-import-swagger/index.js | module.exports = {
server: true,
client: true
} | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-import-swagger/client.js | exts/yapi-plugin-import-swagger/client.js | import { message } from 'antd';
import run from './run';
module.exports = function() {
this.bindHook('import_data', function(importDataModule) {
if (!importDataModule || typeof importDataModule !== 'object') {
console.error('importDataModule 参数Must be Object Type');
return null;
}
importDataM... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-import-swagger/run.js | exts/yapi-plugin-import-swagger/run.js | const _ = require('underscore')
const swagger = require('swagger-client');
const compareVersions = require('compare-versions');
var SwaggerData, isOAS3;
function handlePath(path) {
if (path === '/') return path;
if (path.charAt(0) != '/') {
path = '/' + path;
}
if (path.charAt(path.length - 1... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-import-swagger/server.js | exts/yapi-plugin-import-swagger/server.js | module.exports = function(){
this.bindHook('import_data', function(importDataModule){
importDataModule.swagger = async (res)=>{
try{
return await require('./run.js')(res)
}catch(err){
this.commons.log(err, 'error')
return false;
}
}
})
} | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-export-swagger2-data/index.js | exts/yapi-plugin-export-swagger2-data/index.js | module.exports = {
server: true,
client: true
} | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-export-swagger2-data/controller.js | exts/yapi-plugin-export-swagger2-data/controller.js | const baseController = require('controllers/base.js');
const interfaceModel = require('models/interface.js');
const projectModel = require('models/project.js');
const interfaceCatModel = require('models/interfaceCat.js');
const yapi = require('yapi.js');
class exportSwaggerController extends baseController {
cons... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-export-swagger2-data/client.js | exts/yapi-plugin-export-swagger2-data/client.js | function exportData(exportDataModule, pid) {
exportDataModule.swaggerjson = {
name: 'swaggerjson',
route: `/api/plugin/exportSwagger?type=OpenAPIV2&pid=${pid}`,
desc: '导出项目接口文档为(Swagger 2.0)Json文件'
};
}
module.exports = function() {
this.bindHook('export_data', exportData);
}; | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-export-swagger2-data/server.js | exts/yapi-plugin-export-swagger2-data/server.js | const exportSwaggerController = require('./controller');
module.exports = function(){
this.bindHook('add_router', function(addRouter){
addRouter({
controller: exportSwaggerController,
method: 'get',
path: 'exportSwagger',
action: 'exportData'
})
}... | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
YMFE/yapi | https://github.com/YMFE/yapi/blob/59bade3a8a43e7db077d38a4b0c7c584f30ddf8c/exts/yapi-plugin-import-postman/index.js | exts/yapi-plugin-import-postman/index.js | module.exports = {
server: false,
client: true
} | javascript | Apache-2.0 | 59bade3a8a43e7db077d38a4b0c7c584f30ddf8c | 2026-01-04T15:02:27.154950Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.