.eslintcache 8.1 KB

1
  1. [{"D:\\wampServer\\www\\boniuApi\\boniu\\src\\index.js":"1","D:\\wampServer\\www\\boniuApi\\boniu\\src\\reportWebVitals.js":"2","D:\\wampServer\\www\\boniuApi\\boniu\\src\\App.js":"3","D:\\wampServer\\www\\boniuApi\\boniu\\src\\components\\Navbar\\navbar.jsx":"4","D:\\wampServer\\www\\boniuApi\\boniu\\src\\StocksApiList.jsx":"5","D:\\wampServer\\www\\boniuApi\\boniu\\src\\IndexApiList.jsx":"6","D:\\wampServer\\www\\boniuApi\\boniu\\src\\components\\Overview\\overview.jsx":"7","D:\\wampServer\\www\\boniuApi\\boniu\\src\\components\\StocksApi\\stocks.jsx":"8","D:\\wampServer\\www\\boniuApi\\boniu\\src\\components\\IndexApi\\indexApi.jsx":"9","D:\\wampServer\\www\\boniuApi\\boniu\\src\\components\\indexBasicInfo\\indexBasicInfo.jsx":"10"},{"size":552,"mtime":1611311898719,"results":"11","hashOfConfig":"12"},{"size":362,"mtime":499162500000,"results":"13","hashOfConfig":"12"},{"size":238,"mtime":1611540950308,"results":"14","hashOfConfig":"12"},{"size":3138,"mtime":1611566685835,"results":"15","hashOfConfig":"12"},{"size":733,"mtime":1611558530628,"results":"16","hashOfConfig":"12"},{"size":4137,"mtime":1611562437673,"results":"17","hashOfConfig":"12"},{"size":283,"mtime":1611566558761,"results":"18","hashOfConfig":"12"},{"size":2949,"mtime":1611540950318,"results":"19","hashOfConfig":"12"},{"size":145,"mtime":1611540950318,"results":"20","hashOfConfig":"12"},{"size":3649,"mtime":1611558327133,"results":"21","hashOfConfig":"12"},{"filePath":"22","messages":"23","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},"kug5qb",{"filePath":"25","messages":"26","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"27","messages":"28","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"29","messages":"30","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"39","messages":"40","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"41","messages":"42","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"43","usedDeprecatedRules":"24"},"D:\\wampServer\\www\\boniuApi\\boniu\\src\\index.js",[],["44","45"],"D:\\wampServer\\www\\boniuApi\\boniu\\src\\reportWebVitals.js",[],"D:\\wampServer\\www\\boniuApi\\boniu\\src\\App.js",[],"D:\\wampServer\\www\\boniuApi\\boniu\\src\\components\\Navbar\\navbar.jsx",["46"],"D:\\wampServer\\www\\boniuApi\\boniu\\src\\StocksApiList.jsx",[],"D:\\wampServer\\www\\boniuApi\\boniu\\src\\IndexApiList.jsx",[],"D:\\wampServer\\www\\boniuApi\\boniu\\src\\components\\Overview\\overview.jsx",[],"D:\\wampServer\\www\\boniuApi\\boniu\\src\\components\\StocksApi\\stocks.jsx",[],"D:\\wampServer\\www\\boniuApi\\boniu\\src\\components\\IndexApi\\indexApi.jsx",[],"D:\\wampServer\\www\\boniuApi\\boniu\\src\\components\\indexBasicInfo\\indexBasicInfo.jsx",["47"],"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":"48","replacedBy":"49"},{"ruleId":"50","replacedBy":"51"},{"ruleId":"52","severity":1,"message":"53","line":5,"column":8,"nodeType":"54","messageId":"55","endLine":5,"endColumn":16},{"ruleId":"56","severity":1,"message":"57","line":8,"column":3,"nodeType":"58","messageId":"59","endLine":11,"endColumn":4},"no-native-reassign",["60"],"no-negated-in-lhs",["61"],"no-unused-vars","'IndexApi' is defined but never used.","Identifier","unusedVar","no-useless-constructor","Useless constructor.","MethodDefinition","noUselessConstructor","no-global-assign","no-unsafe-negation"]