代码拉取完成,页面将自动刷新
同步操作将从 zhangrenyang/cicd-frontend 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
[{"/Users/janlay/k8s-demo/k8s-demo-frontend/src/index.js":"1","/Users/janlay/k8s-demo/k8s-demo-frontend/src/App.js":"2","/Users/janlay/k8s-demo/k8s-demo-frontend/src/PageContent/index.js":"3","/Users/janlay/k8s-demo/k8s-demo-frontend/src/PageContent/DataTable.js":"4","/Users/janlay/k8s-demo/k8s-demo-frontend/src/PageContent/AddUserModal.js":"5","/Users/janlay/k8s-demo/k8s-demo-frontend/src/PageContent/service.js":"6","/Users/janlay/k8s-demo/k8s-demo-frontend/src/utils/request.js":"7"},{"size":197,"mtime":1610808820459,"results":"8","hashOfConfig":"9"},{"size":382,"mtime":1610797963991,"results":"10","hashOfConfig":"9"},{"size":1947,"mtime":1610820706335,"results":"11","hashOfConfig":"9"},{"size":1238,"mtime":1610820785659,"results":"12","hashOfConfig":"9"},{"size":1707,"mtime":1610820037262,"results":"13","hashOfConfig":"9"},{"size":527,"mtime":1610820503247,"results":"14","hashOfConfig":"9"},{"size":652,"mtime":1610819905636,"results":"15","hashOfConfig":"9"},{"filePath":"16","messages":"17","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},"ggqw0z",{"filePath":"19","messages":"20","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},{"filePath":"21","messages":"22","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},{"filePath":"23","messages":"24","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"25","usedDeprecatedRules":"18"},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/janlay/k8s-demo/k8s-demo-frontend/src/index.js",[],["32","33"],"/Users/janlay/k8s-demo/k8s-demo-frontend/src/App.js",[],"/Users/janlay/k8s-demo/k8s-demo-frontend/src/PageContent/index.js",[],"/Users/janlay/k8s-demo/k8s-demo-frontend/src/PageContent/DataTable.js",["34","35"],"import React, {useMemo, useCallback} from \"react\";\nimport {Table} from 'antd';\n\nconst columns = [\n {\n title: '姓名',\n dataIndex: 'name',\n key: 'name',\n },\n {\n title: '年龄',\n dataIndex: 'age',\n key: 'age',\n },\n {\n title: '性别',\n dataIndex: 'sex',\n key: 'sex',\n render: (text) => (\n <>\n <span>{text === '1' ? '男' : '女'}</span>\n </>\n ),\n },\n {\n title: '操作',\n dataIndex: 'config',\n key: 'config',\n render: (text, record) => (\n <>\n <a onClick={record.onEdit}>编辑</a>\n \n <a onClick={record.onDelete}>删除</a>\n </>\n ),\n }\n];\n\nconst DataTable = ({onEdit, onDelete, dataSource}) => {\n const handleEdit = useCallback((record) => {\n onEdit && onEdit(record);\n }, [onEdit]);\n\n const handleDelete = useCallback((record) => {\n onDelete && onDelete(record);\n }, [onDelete]);\n\n const data = useMemo(() => (\n dataSource.map(item => ({\n ...item,\n onEdit: () => handleEdit(item),\n onDelete: () => handleDelete(item)\n }))\n ), [dataSource, handleDelete, handleEdit]);\n\n return (\n <Table\n dataSource={data}\n columns={columns}\n bordered\n />\n )\n};\n\nexport default DataTable;\n","/Users/janlay/k8s-demo/k8s-demo-frontend/src/PageContent/AddUserModal.js",[],"/Users/janlay/k8s-demo/k8s-demo-frontend/src/PageContent/service.js",[],"/Users/janlay/k8s-demo/k8s-demo-frontend/src/utils/request.js",[],{"ruleId":"36","replacedBy":"37"},{"ruleId":"38","replacedBy":"39"},{"ruleId":"40","severity":1,"message":"41","line":31,"column":9,"nodeType":"42","endLine":31,"endColumn":36},{"ruleId":"40","severity":1,"message":"41","line":33,"column":9,"nodeType":"42","endLine":33,"endColumn":38},"no-native-reassign",["43"],"no-negated-in-lhs",["44"],"jsx-a11y/anchor-is-valid","The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md","JSXOpeningElement","no-global-assign","no-unsafe-negation"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。