.eslintcache 11 KB

1
  1. [{"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\index.js":"1","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\App.js":"2","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\reportWebVitals.js":"3","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\Navbar\\navbar.jsx":"4","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\IndexApiList.jsx":"5","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\StocksApiList.jsx":"6","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\Overview\\overview.jsx":"7","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\StocksApi\\stocks.jsx":"8","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\indexBasicInfo\\indexBasicInfo.jsx":"9"},{"size":570,"mtime":1611572954549,"results":"10","hashOfConfig":"11"},{"size":238,"mtime":1611572954543,"results":"12","hashOfConfig":"11"},{"size":375,"mtime":1611572954550,"results":"13","hashOfConfig":"11"},{"size":3330,"mtime":1611574269515,"results":"14","hashOfConfig":"11"},{"size":4140,"mtime":1611572954543,"results":"15","hashOfConfig":"11"},{"size":9567,"mtime":1611574344867,"results":"16","hashOfConfig":"11"},{"size":283,"mtime":1611572954546,"results":"17","hashOfConfig":"11"},{"size":2949,"mtime":1611572954547,"results":"18","hashOfConfig":"11"},{"size":3649,"mtime":1611572954547,"results":"19","hashOfConfig":"11"},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},"q0fshq",{"filePath":"23","messages":"24","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"25","messages":"26","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"27","messages":"28","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"29","usedDeprecatedRules":"22"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"32","messages":"33","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"34","messages":"35","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"36","messages":"37","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"38","messages":"39","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"40","usedDeprecatedRules":"22"},"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\index.js",[],["41","42"],"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\App.js",[],"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\reportWebVitals.js",[],"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\Navbar\\navbar.jsx",["43"],"import React, { Component } from \"react\";\r\nimport { Route, Switch, Link, withRouter} from \"react-router-dom\";\r\nimport Overview from \"../../components/Overview/overview\";\r\nimport Stocks from \"../../components/StocksApi/stocks\";\r\nimport indexBasicInfo from \"../../components/indexBasicInfo/indexBasicInfo\";\r\nimport stocksApiList from \"../../StocksApiList\";\r\nimport indexApiList from \"../../IndexApiList\";\r\nimport \"antd/dist/antd.css\";\r\nimport \"./navbar.css\";\r\nimport { Layout, Menu } from \"antd\";\r\nimport {\r\n UserOutlined,\r\n LaptopOutlined,\r\n NotificationOutlined\r\n} from \"@ant-design/icons\";\r\nconst { SubMenu } = Menu;\r\nconst { Header, Content, Sider } = Layout;\r\nclass NavBar extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n userInfo: {}\r\n };\r\n }\r\n render() {\r\n // let { match } = this.props;\r\n const pathNames = this.props.history.location.pathname;\r\n let defaultS = [];\r\n defaultS.push(pathNames);\r\n // console.log(defaultS)//实时根据当前路径更新\r\n return (\r\n <Layout style={{ minHeight: \"100vh\" }}>\r\n <Header className=\"header\">BoNiu</Header>\r\n <Layout>\r\n <Sider width={200} className=\"site-layout-background\">\r\n <Menu\r\n mode=\"inline\"\r\n defaultSelectedKeys={[\"overview\"]}\r\n defaultOpenKeys={[\"overview\"]}\r\n style={{ height: \"100%\", borderRight: 0 }}\r\n selectedKeys={pathNames}\r\n >\r\n <Menu.Item key=\"overview\" icon={<UserOutlined />}>\r\n <Link to=\"/overview\">总体说明</Link>\r\n </Menu.Item>\r\n <SubMenu\r\n key=\"stocks\"\r\n icon={<LaptopOutlined />}\r\n title=\"股票接口\"\r\n >\r\n {stocksApiList.map((item) => {\r\n return (\r\n <Menu.Item key={item.key}>\r\n <Link to={{pathname: item.url, state: item.data}}>{item.name}</Link>\r\n </Menu.Item>\r\n );\r\n })}\r\n </SubMenu>\r\n <SubMenu\r\n key=\"indexApi\"\r\n icon={<NotificationOutlined />}\r\n title=\"指数接口\"\r\n >\r\n {indexApiList.map((item) => {\r\n return (\r\n <Menu.Item key={item.key}>\r\n <Link to={{pathname: item.url, state: item.data}}>{item.name}</Link>\r\n </Menu.Item>\r\n );\r\n })}\r\n </SubMenu>\r\n </Menu>\r\n </Sider>\r\n <Layout style={{ padding: \"0 24px 24px\" }}>\r\n <Content\r\n style={{\r\n background: \"#fff\",\r\n padding: 24,\r\n margin: 0,\r\n minHeight: 280\r\n }}\r\n >\r\n <Switch>\r\n <Route exact path=\"/\" component={Overview} />\r\n <Route path=\"/overview\" component={Overview} />\r\n <Route path=\"/stocks\" component={indexBasicInfo} />\r\n <Route path=\"/indexApi\" component={indexBasicInfo} />\r\n </Switch>\r\n </Content>\r\n </Layout>\r\n </Layout>\r\n </Layout>\r\n );\r\n }\r\n}\r\n\r\nexport default withRouter(NavBar)\r\n","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\IndexApiList.jsx",[],"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\StocksApiList.jsx",[],"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\Overview\\overview.jsx",[],"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\StocksApi\\stocks.jsx",[],"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\indexBasicInfo\\indexBasicInfo.jsx",["44"],"import React from \"react\";\r\nimport \"./indexBasicInfo.css\";\r\nimport { Typography, Table, Button } from \"antd\";\r\n\r\nconst { Text, Title, Link } = Typography;\r\n\r\nclass indexBasicInfo extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n // this.title = title[props.location.pathname];\r\n }\r\n render() {\r\n console.log(this.props.location.state);\r\n const outPutList = this.props.location.state.outputResult;\r\n const errorList = this.props.location.state.errorResult;\r\n return (\r\n <div>\r\n <Title level={4}>{title[this.props.location.pathname]}</Title>\r\n <div>\r\n <Title className=\"stocks-title\" level={5}>\r\n 输入参数:\r\n </Title>\r\n <Text>\r\n method=stock_info&code=股票代码&timestamp=时间戳&sign=签名值\r\n </Text>\r\n </div>\r\n\r\n <div>\r\n <Title className=\"stocks-title\" level={5}>\r\n 输出结果:\r\n </Title>\r\n <Table\r\n columns={columns}\r\n dataSource={outPutList}\r\n pagination={false}\r\n size=\"small\"\r\n />\r\n </div>\r\n <div>\r\n <Title className=\"stocks-title\" level={5}>\r\n 输出结果异常:\r\n </Title>\r\n <Table\r\n columns={errColumns}\r\n dataSource={errorList}\r\n pagination={false}\r\n size=\"small\"\r\n />\r\n </div>\r\n\r\n <div>\r\n <Title className=\"stocks-title\" level={5}>\r\n 测试地址:\r\n </Title>\r\n <Button type=\"primary\" className=\"stocks-button\">\r\n API测试工具\r\n </Button>\r\n </div>\r\n <div>\r\n <Title className=\"stocks-title\" level={5}>\r\n SDK包:\r\n </Title>\r\n <Link>php程序包下载</Link>\r\n </div>\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nexport default indexBasicInfo;\r\nvar title = {\r\n \"/indexBasicInfo\": \"指数基本信息\",\r\n \"/indexNow\": \"指数当天信息\",\r\n \"/indexBefore\": \"指数回溯\"\r\n};\r\nconst columns = [\r\n {\r\n title: \"名称\",\r\n dataIndex: \"name\",\r\n key: \"name\",\r\n render: (text) => <span>{text}</span>\r\n },\r\n {\r\n title: \"说明\",\r\n dataIndex: \"desc\",\r\n key: \"desc\"\r\n }\r\n];\r\n// var data = [\r\n// {\r\n// key: \"1\",\r\n// name: \"message_code\",\r\n// desc: 200\r\n// },\r\n// {\r\n// key: \"2\",\r\n// name: \"message\",\r\n// desc: \"success\"\r\n// },\r\n// {\r\n// key: \"3\",\r\n// name: \"code\",\r\n// desc: \"指数代码\"\r\n// },\r\n// {\r\n// key: \"4\",\r\n// name: \"name\",\r\n// desc: \"指数名称\"\r\n// },\r\n// {\r\n// key: \"5\",\r\n// name: \"sector\",\r\n// desc: \"交易板块\"\r\n// },\r\n// {\r\n// key: \"6\",\r\n// name: \"sector\",\r\n// desc: \"所属市场\"\r\n// }\r\n// ];\r\nconst errColumns = [\r\n {\r\n title: \"错误类型\",\r\n dataIndex: \"type\",\r\n key: \"type\",\r\n render: (text) => <span>{text}</span>\r\n },\r\n {\r\n title: \"message_code\",\r\n dataIndex: \"code\",\r\n key: \"code\"\r\n },\r\n {\r\n title: \"message\",\r\n dataIndex: \"message\",\r\n key: \"message\"\r\n }\r\n];\r\n// var errdata = [\r\n// {\r\n// key: \"1\",\r\n// type: \"股票代码错误\",\r\n// code: 301,\r\n// message: \"股票代码不存在/错误\"\r\n// },\r\n// {\r\n// key: \"3\",\r\n// type: \"签名错误\",\r\n// code: 304,\r\n// message: \"非法签名\"\r\n// },\r\n// {\r\n// key: \"4\",\r\n// type: \"返回数据为空\",\r\n// code: 401,\r\n// message: \"股票数据为空\"\r\n// },\r\n// {\r\n// key: \"5\",\r\n// type: \"服务器错误\",\r\n// code: 501,\r\n// message: \"服务器错误\"\r\n// }\r\n// ];\r\n",{"ruleId":"45","replacedBy":"46"},{"ruleId":"47","replacedBy":"48"},{"ruleId":"49","severity":1,"message":"50","line":4,"column":8,"nodeType":"51","messageId":"52","endLine":4,"endColumn":14},{"ruleId":"53","severity":1,"message":"54","line":8,"column":3,"nodeType":"55","messageId":"56","endLine":11,"endColumn":4},"no-native-reassign",["57"],"no-negated-in-lhs",["58"],"no-unused-vars","'Stocks' is defined but never used.","Identifier","unusedVar","no-useless-constructor","Useless constructor.","MethodDefinition","noUselessConstructor","no-global-assign","no-unsafe-negation"]