.eslintcache 14 KB

1
  1. [{"C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\index.js":"1","C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\App.js":"2","C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\reportWebVitals.js":"3","C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\components\\Navbar\\navbar.jsx":"4","C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\IndexApiList.jsx":"5","C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\components\\indexBasicInfo\\indexBasicInfo.jsx":"6","C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\components\\Overview\\overview.jsx":"7","C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\StocksApiList.jsx":"8","C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\components\\StocksInfo\\stocksInfo.jsx":"9"},{"size":570,"mtime":1611496335173,"results":"10","hashOfConfig":"11"},{"size":238,"mtime":1611496335160,"results":"12","hashOfConfig":"11"},{"size":375,"mtime":1611496335174,"results":"13","hashOfConfig":"11"},{"size":3364,"mtime":1611641963223,"results":"14","hashOfConfig":"11"},{"size":14427,"mtime":1611732804984,"results":"15","hashOfConfig":"11"},{"size":2662,"mtime":1611732809674,"results":"16","hashOfConfig":"11"},{"size":5805,"mtime":1611668326358,"results":"17","hashOfConfig":"11"},{"size":24058,"mtime":1611719087337,"results":"18","hashOfConfig":"11"},{"size":2578,"mtime":1611719087339,"results":"19","hashOfConfig":"11"},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},"c0lf79",{"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,"usedDeprecatedRules":"22"},{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"31","messages":"32","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"33","usedDeprecatedRules":"22"},{"filePath":"34","messages":"35","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"36","usedDeprecatedRules":"22"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"39"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},"C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\index.js",[],["42","43"],"C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\App.js",[],"C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\reportWebVitals.js",[],"C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\components\\Navbar\\navbar.jsx",[],"C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\IndexApiList.jsx",[],"C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\components\\indexBasicInfo\\indexBasicInfo.jsx",["44","45"],"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 sdkurl = this.props.location.state.sdk_url;\r\n const apiurl = this.props.location.state.apiurl;\r\n const inputPara = this.props.location.state.inputpara.map((item, index) => {\r\n return <Text key={index}>{item}</Text>;\r\n });\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 {inputPara}\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 <a href={apiurl} target=\"_blank\">\r\n API测试工具\r\n </a>\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 href={sdkurl}>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\n","C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\components\\Overview\\overview.jsx",["46","47","48"],"import React, { Component } from 'react';\r\nimport './overview.css'\r\nimport { Typography, Table, Button, Card } from \"antd\"\r\nconst { Text, Paragraph, Title, Link } = Typography;\r\n\r\nclass Overview extends Component {\r\n\r\n render() {\r\n return (\r\n <div>\r\n\r\n <Title level={3}>总体说明</Title>\r\n\r\n <Text type=\"secondary\">接口请求方式采用get方式</Text>\r\n <Text type=\"secondary\">接口采用模拟HTTP协议及JSON接口模式</Text>\r\n\r\n <Title className=\"overview-title\" level={5}>校验方式说明:<Text type=\"secondary\" code={{fontSize:16}}>sign=md5(method=接口名称&time=时间戳)</Text></Title>\r\n <Text type=\"secondary\">http://boniu.xazhima.com/api/v1.0/api.php?sign=校验方式\"&timestamp=\"时间戳\"&method=\"方法名\"&code=\"$code&\"start_date=\"开始日期\"&end_date=\"截止日期\"&order=\"排序;</Text>\r\n\r\n\r\n <Title className=\"overview-title\" level={5}>输出结果:</Title>\r\n <Table\r\n columns={columns}\r\n // expandable\r\n dataSource={columnsData}\r\n pagination={false}\r\n size=\"small\"\r\n />\r\n\r\n <Title className=\"overview-title margin-top-20\" level={5}>异常结果:</Title>\r\n <Table\r\n columns={errColumns}\r\n // expandable\r\n dataSource={errColumnsData}\r\n pagination={false}\r\n size=\"small\"\r\n />\r\n\r\n <Card title=\"输出结果格式:\" hoverable={true} style={{ width: 300, marginTop:20 }} >\r\n <p>\r\n {'\\u007B'}<br/>\r\n (信息码区)<br/>\r\n (输入参数呼应区)<br/>\r\n (结果返回)<br/>\r\n {'\\u007d'}\r\n </p>\r\n </Card>\r\n\r\n <Title className=\"overview-title margin-top-20\" level={5}>输出结果规则总体说明:</Title>\r\n <Text>1.所有交易日期格式均为8位整数,不传为当天数据</Text>\r\n <Text>2.5日线、10 日线、20日线、30日线、60日线、233线以及开盘价、收盘价、最高价、最低价等价格参数均与输入参数复权方式一致</Text>\r\n <Text>3.所有输出的价格,均按照四舍五入保留小数点后两位的格式输出</Text>\r\n <Text>4.价格计算方式:①涨跌额:当天收盘价-前一天收盘价。②涨跌幅:涨跌额÷前一天收盘价*100%。③涨停价:科创板、创业板股为前一天收盘价*120%,ST为前一天收盘价*105%,其他股为前一天收盘价*110%。④跌停价:科创板、创业板股为前一天收盘价*80%,ST为前一天收盘价*95%,其他股为前一天收盘价*90%。⑤是否涨跌停标志:涨跌停标志按照收盘价计算,如果当天收盘价等于涨停价,则为涨停,如果收盘价等于跌停价,则为跌停。如果没有涨/跌停,涨跌停标志输出0/-1。(新股发行前5天没有涨跌停价格)</Text>\r\n\r\n </div>\r\n )\r\n }\r\n\r\n\r\n\r\n}\r\n\r\nexport default Overview;\r\nconst columns = [\r\n {\r\n title: \"名称\",\r\n dataIndex: \"name\",\r\n key: \"name\",\r\n },\r\n {\r\n title: \"说明\",\r\n dataIndex: \"desc\",\r\n key: \"desc\",\r\n },\r\n];\r\nconst columnsData = [\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: \"data\",\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 },\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\nconst errColumnsData = [\r\n {\r\n key: \"1\",\r\n type: \"错误码300\",\r\n code: '300...',\r\n message: \"接口参数输入错误\",\r\n },\r\n {\r\n key: \"2\",\r\n type: \"错误码400\",\r\n code: '400...',\r\n message: \"对外输出错误\",\r\n },\r\n {\r\n key: \"3\",\r\n type: \"错误码500\",\r\n code: '500...',\r\n message: \"系统错误\",\r\n },\r\n {\r\n key: \"4\",\r\n type: \"例如:\",\r\n code: '',\r\n message: \"\",\r\n children: [\r\n {\r\n key: \"9\",\r\n type: \"股票代码错误\",\r\n code: '301',\r\n message: \" 股票/指数代码不存在/错误\",\r\n },\r\n {\r\n key: \"10\",\r\n type: \"交易板块错误\",\r\n code: '302',\r\n message: \"交易板块不存在/错误\",\r\n },\r\n {\r\n key: \"11\",\r\n type: \"所属市场错误\",\r\n code: '303',\r\n message: \"所属市场不存在/错误\",\r\n },\r\n {\r\n key: \"12\",\r\n type: \"签名错误\",\r\n code: '304',\r\n message: \"非法签名\",\r\n },\r\n {\r\n key: \"13\",\r\n type: \"返回数据为空\",\r\n code: '401',\r\n message: \" 股票/指数数据为空\",\r\n },\r\n {\r\n key: \"14\",\r\n type: \"服务器错误\",\r\n code: '501',\r\n message: \"服务器错误\",\r\n },\r\n ]\r\n }\r\n];\r\n","C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\StocksApiList.jsx",[],["49","50"],"C:\\Users\\LucaChen\\Desktop\\zhima\\boniuApi\\boniu\\src\\components\\StocksInfo\\stocksInfo.jsx",[],{"ruleId":"51","replacedBy":"52"},{"ruleId":"53","replacedBy":"54"},{"ruleId":"55","severity":1,"message":"56","line":8,"column":3,"nodeType":"57","messageId":"58","endLine":11,"endColumn":4},{"ruleId":"59","severity":1,"message":"60","line":59,"column":13,"nodeType":"61","endLine":59,"endColumn":46},{"ruleId":"62","severity":1,"message":"63","line":3,"column":29,"nodeType":"64","messageId":"65","endLine":3,"endColumn":35},{"ruleId":"62","severity":1,"message":"66","line":4,"column":15,"nodeType":"64","messageId":"65","endLine":4,"endColumn":24},{"ruleId":"62","severity":1,"message":"67","line":4,"column":33,"nodeType":"64","messageId":"65","endLine":4,"endColumn":37},{"ruleId":"51","replacedBy":"68"},{"ruleId":"53","replacedBy":"69"},"no-native-reassign",["70"],"no-negated-in-lhs",["71"],"no-useless-constructor","Useless constructor.","MethodDefinition","noUselessConstructor","react/jsx-no-target-blank","Using target=\"_blank\" without rel=\"noreferrer\" is a security risk: see https://html.spec.whatwg.org/multipage/links.html#link-type-noopener","JSXOpeningElement","no-unused-vars","'Button' is defined but never used.","Identifier","unusedVar","'Paragraph' is assigned a value but never used.","'Link' is assigned a value but never used.",["70"],["71"],"no-global-assign","no-unsafe-negation"]