.eslintcache 8.0 KB

1
  1. [{"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\index.js":"1","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\reportWebVitals.js":"2","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\App.js":"3","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\Navbar\\navbar.jsx":"4","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\Overview\\overview.jsx":"5","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\StocksApiList.jsx":"6","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\IndexApiList.jsx":"7","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\indexBasicInfo\\indexBasicInfo.jsx":"8","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\StocksInfo\\stocksInfo.jsx":"9"},{"size":570,"mtime":1611572954549,"results":"10","hashOfConfig":"11"},{"size":375,"mtime":1611572954550,"results":"12","hashOfConfig":"11"},{"size":238,"mtime":1611572954543,"results":"13","hashOfConfig":"11"},{"size":3364,"mtime":1611634865659,"results":"14","hashOfConfig":"11"},{"size":283,"mtime":1611572954546,"results":"15","hashOfConfig":"11"},{"size":21810,"mtime":1611634742828,"results":"16","hashOfConfig":"11"},{"size":9378,"mtime":1611630947897,"results":"17","hashOfConfig":"11"},{"size":4146,"mtime":1611631432039,"results":"18","hashOfConfig":"11"},{"size":2143,"mtime":1611634293093,"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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"35","messages":"36","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"37","usedDeprecatedRules":"22"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\index.js",[],["40","41"],"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\reportWebVitals.js",[],"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\App.js",[],"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\Navbar\\navbar.jsx",[],"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\Overview\\overview.jsx",[],"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\StocksApiList.jsx",[],"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\IndexApiList.jsx",[],"F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\indexBasicInfo\\indexBasicInfo.jsx",["42"],"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 const nowKey = this.props.location.state.key;\r\n const outPutList = this.props.location.state.data.outputResult;\r\n const errorList = this.props.location.state.data.errorResult;\r\n const title = this.props.location.state.name;\r\n return (\r\n <div>\r\n <Title level={4}>{title}</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 expandable={{\r\n expandedRowRender: (record) =>\r\n record.name === \"list\" ? (\r\n <Table\r\n columns={columns}\r\n dataSource={\r\n nowKey !== \"indexListInf\" ? subListTime : subList\r\n }\r\n pagination={false}\r\n />\r\n ) : (\r\n \"\"\r\n ),\r\n rowExpandable: (record) => record.name === \"list\"\r\n }}\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\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\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\nvar subList = [\r\n {\r\n key: \"3\",\r\n name: \"code\",\r\n desc: \"指数代码\"\r\n },\r\n {\r\n key: \"3\",\r\n name: \"name\",\r\n desc: \"指数名称\"\r\n },\r\n {\r\n key: \"4\",\r\n name: \"name\",\r\n desc: \"sector\"\r\n },\r\n {\r\n key: \"5\",\r\n name: \"exchange\",\r\n desc: \"所属市场\"\r\n }\r\n];\r\nvar subListTime = [\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: \"date\",\r\n desc: \"交易日期\"\r\n },\r\n {\r\n key: \"6\",\r\n name: \"open_price\",\r\n desc: \"开盘价\"\r\n },\r\n {\r\n key: \"7\",\r\n name: \"close_price\",\r\n desc: \"收盘价\"\r\n },\r\n {\r\n key: \"8\",\r\n name: \"highest_price\",\r\n desc: \"最高价\"\r\n },\r\n {\r\n key: \"9\",\r\n name: \"lowest_price\",\r\n desc: \"最低价\"\r\n },\r\n {\r\n key: \"10\",\r\n name: \"amount\",\r\n desc: \"成交量\"\r\n },\r\n {\r\n key: \"11\",\r\n name: \"value\",\r\n desc: \"成交金额\"\r\n },\r\n {\r\n key: \"12\",\r\n name: \"increase_ratio\",\r\n desc: \"涨跌幅\"\r\n },\r\n {\r\n key: \"13\",\r\n name: \"increase_price\",\r\n desc: \"涨跌额\"\r\n }\r\n];\r\n","F:\\zhima\\boniu\\boniuApi\\boniu\\src\\components\\StocksInfo\\stocksInfo.jsx",[],{"ruleId":"43","replacedBy":"44"},{"ruleId":"45","replacedBy":"46"},{"ruleId":"47","severity":1,"message":"48","line":8,"column":3,"nodeType":"49","messageId":"50","endLine":11,"endColumn":4},"no-native-reassign",["51"],"no-negated-in-lhs",["52"],"no-useless-constructor","Useless constructor.","MethodDefinition","noUselessConstructor","no-global-assign","no-unsafe-negation"]