1 line
11 KiB
Plaintext
1 line
11 KiB
Plaintext
[{"C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\index.js":"1","C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\History.js":"2","C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\App.js":"3","C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Components\\Dash.js":"4","C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Constants\\constants.js":"5","C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Components\\Loading.js":"6","C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Components\\Navigation.js":"7","C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Components\\System.js":"8","C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Components\\Memberlist.js":"9","C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Components\\MemberCard.js":"10","C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Functions\\discord-parser.js":"11"},{"size":329,"mtime":1607554515255,"results":"12","hashOfConfig":"13"},{"size":87,"mtime":1607504507181,"results":"14","hashOfConfig":"13"},{"size":3584,"mtime":1607553687490,"results":"15","hashOfConfig":"13"},{"size":297,"mtime":1607504507172,"results":"16","hashOfConfig":"13"},{"size":73,"mtime":1607504507180,"results":"17","hashOfConfig":"13"},{"size":231,"mtime":1607504507174,"results":"18","hashOfConfig":"13"},{"size":1212,"mtime":1607537102637,"results":"19","hashOfConfig":"13"},{"size":1745,"mtime":1607549962223,"results":"20","hashOfConfig":"13"},{"size":2160,"mtime":1607534877891,"results":"21","hashOfConfig":"13"},{"size":2320,"mtime":1607549951923,"results":"22","hashOfConfig":"13"},{"size":10382,"mtime":1607549930730,"results":"23","hashOfConfig":"13"},{"filePath":"24","messages":"25","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1rd8s2n",{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"39","usedDeprecatedRules":"28"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"42","usedDeprecatedRules":"28"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"47","usedDeprecatedRules":"28"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\index.js",[],"C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\History.js",[],["50","51"],"C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\App.js",[],"C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Components\\Dash.js",[],"C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Constants\\constants.js",[],"C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Components\\Loading.js",[],"C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Components\\Navigation.js",["52"],"import react from 'react';\r\nimport * as BS from 'react-bootstrap'\r\nimport useDarkMode from 'use-dark-mode';\r\nimport Toggle from 'react-toggle'\r\nimport { FaSun, FaMoon } from \"react-icons/fa\";\r\n\r\nimport \"react-toggle/style.css\"\r\n\r\nexport default function Navigation(props) {\r\n \r\n const darkMode = useDarkMode(false);\r\n\r\n function logOut() {\r\n localStorage.removeItem(\"token\");\r\n localStorage.removeItem(\"user\");\r\n props.setIsSubmit(false);\r\n }\r\n\r\n return (\r\n <BS.Navbar className=\"mb-3 align-items-center justify-content-between\">\r\n <BS.Navbar.Brand>\r\n pk-web\r\n </BS.Navbar.Brand>\r\n <BS.Nav className=\"mr-lg-2 d-flex align-items-center row\">\r\n <Toggle\r\n defaultChecked={true}\r\n icons={false}\r\n onChange={darkMode.toggle} />\r\n {darkMode.value ? <FaMoon className=\"m-1\"/> : <FaSun className=\"m-1\"/>}\r\n </BS.Nav>\r\n <BS.Form inline>\r\n { localStorage.getItem('token') ? <BS.Button className=\" mr-lg-2\" variant=\"primary\" onClick={logOut}>Log Out</BS.Button> : \"\" }\r\n </BS.Form>\r\n </BS.Navbar>\r\n )\r\n}","C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Components\\System.js",["53"],"import React, { useState, useEffect } from 'react';\r\nimport * as BS from 'react-bootstrap'\r\n\r\nimport { FaAddressCard } from \"react-icons/fa\";\r\nimport defaultAvatar from '../default_discord_avatar.png'\r\n\r\nexport default function System(props) {\r\n\r\n const { toHTML } = require('../Functions/discord-parser.js');\r\n\r\n const [ desc, setDesc ] = useState(\"\");\r\n const user = JSON.parse(localStorage.getItem(\"user\"));\r\n\r\n useEffect(() => {\r\n if (user.description) {\r\n setDesc(toHTML(user.description));\r\n } else setDesc(\"(no description)\");\r\n}, [user.description]);\r\n\r\n return (\r\n <BS.Card className=\"mb-3 mt-3 w-100\" >\r\n <BS.Card.Header className=\"d-flex align-items-center justify-content-between\">\r\n <BS.Card.Title className=\"float-left\"><FaAddressCard className=\"mr-3\" /> {user.name}</BS.Card.Title> \r\n { user.avatar_url ? <BS.Image src={`${user.avatar_url}`} style={{width: 50, height: 50}} className=\"float-right\" roundedCircle /> : \r\n <BS.Image src={defaultAvatar} style={{width: 50, height: 50}} className=\"float-right\" roundedCircle />}\r\n </BS.Card.Header>\r\n <BS.Card.Body>\r\n <BS.Row>\r\n <BS.Col className=\"mb-lg-3\" xs={12} lg={3}><b>ID:</b> {user.id}</BS.Col>\r\n <BS.Col className=\"mb-lg-3\" xs={12} lg={3}><b>Tag:</b> {user.tag}</BS.Col>\r\n <BS.Col className=\"mb-lg-3\" xs={12} lg={3}><b>Timezone:</b> {user.tz}</BS.Col>\r\n </BS.Row>\r\n <p><b>Description:</b></p>\r\n <p dangerouslySetInnerHTML={{__html: desc}}></p>\r\n </BS.Card.Body>\r\n </BS.Card>\r\n )\r\n}\r\n\r\n \r\n\r\n ","C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Components\\Memberlist.js",[],"C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Components\\MemberCard.js",["54"],"import React, { useEffect, useState } from 'react';\r\nimport * as BS from 'react-bootstrap'\r\n\r\nimport defaultAvatar from '../default_discord_avatar.png'\r\nimport { FaUser } from \"react-icons/fa\";\r\n\r\nexport default function MemberCard(props) {\r\n\r\n const { toHTML } = require('../Functions/discord-parser.js');\r\n\r\n const [ desc, setDesc ] = useState(\"\");\r\n const [ color, setColor ] = useState(\"\");\r\n\r\n const member = props.member;\r\n\r\n useEffect(() => {\r\n if (member.description) {\r\n setDesc(toHTML(member.description));\r\n } else setDesc(\"(no description)\");\r\n\r\n if (member.color) {\r\n setColor(member.color);\r\n }\r\n else setColor('transparent');\r\n\r\n }, [member.description, member.color]);\r\n\r\n return (\r\n <> \r\n <BS.Accordion.Toggle className=\"d-flex align-items-center justify-content-between\" as={BS.Card.Header} eventKey={member.id}>\r\n <BS.Card.Title className=\"float-left\"><FaUser className=\"mr-4\" /> <b>{member.name}</b> ({member.id})</BS.Card.Title>\r\n { member.avatar_url ? <BS.Image src={`${member.avatar_url}`} style={{width: 50, height: 50}} className=\"float-right\" roundedCircle /> : \r\n <BS.Image src={defaultAvatar} style={{width: 50, height: 50}} className=\"float-right\" roundedCircle />}\r\n </BS.Accordion.Toggle>\r\n <BS.Accordion.Collapse eventKey={member.id}>\r\n <BS.Card.Body style={{borderLeft: `5px solid #${color}` }}>\r\n <BS.Row>\r\n <BS.Col className=\"mb-lg-3\" xs={12} lg={3}><b>ID:</b> {member.id}</BS.Col>\r\n { member.display_name ? <BS.Col className=\"mb-lg-3\" xs={12} lg={3}><b>AKA: </b>{member.display_name}</BS.Col> : \"\" }\r\n { member.birthday ? <BS.Col className=\"mb-lg-3\" xs={12} lg={3}><b>Birthday:</b> {member.birthday}</BS.Col> : \"\" }\r\n { member.pronouns ? <BS.Col className=\"mb-lg-3\" xs={12} lg={3}><b>Pronouns:</b> {member.pronouns}</BS.Col> : \"\" }\r\n { member.color ? <BS.Col className=\"mb-lg-3\" xs={12} lg={3}><b>Color:</b> #{member.color}</BS.Col> : \"\" }\r\n </BS.Row>\r\n <p><b>Description:</b></p>\r\n <p dangerouslySetInnerHTML={{__html: desc}}></p>\r\n </BS.Card.Body>\r\n </BS.Accordion.Collapse>\r\n </>\r\n )\r\n}\r\n","C:\\Users\\Fleur\\Desktop\\website projects etc\\pk-web\\src\\Functions\\discord-parser.js",[],{"ruleId":"55","replacedBy":"56"},{"ruleId":"57","replacedBy":"58"},{"ruleId":"59","severity":1,"message":"60","line":1,"column":8,"nodeType":"61","messageId":"62","endLine":1,"endColumn":13},{"ruleId":"63","severity":1,"message":"64","line":18,"column":4,"nodeType":"65","endLine":18,"endColumn":22,"suggestions":"66"},{"ruleId":"63","severity":1,"message":"64","line":26,"column":8,"nodeType":"65","endLine":26,"endColumn":42,"suggestions":"67"},"no-native-reassign",["68"],"no-negated-in-lhs",["69"],"no-unused-vars","'react' is defined but never used.","Identifier","unusedVar","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'toHTML'. Either include it or remove the dependency array.","ArrayExpression",["70"],["71"],"no-global-assign","no-unsafe-negation",{"desc":"72","fix":"73"},{"desc":"74","fix":"75"},"Update the dependencies array to be: [toHTML, user.description]",{"range":"76","text":"77"},"Update the dependencies array to be: [member.description, member.color, toHTML]",{"range":"78","text":"79"},[564,582],"[toHTML, user.description]",[724,758],"[member.description, member.color, toHTML]"] |