-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 26.3 KB
/
.eslintcache
1
[{"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Footer\\Footer.jsx":"1","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Navbar\\IwwNavbar.jsx":"2","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\App.js":"3","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\SearchBar\\SearchBar.jsx":"4","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Button\\Button.jsx":"5","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\Index\\Index.jsx":"6","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\Article\\ArticleEdit.jsx":"7","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\hooks\\useDebounce\\useDebounce.js":"8","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\Article\\Article.jsx":"9","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Avatar\\Avatar.jsx":"10","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Popup\\Popup.jsx":"11","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\hooks\\useEventListener\\useEventListener.js":"12","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\hooks\\useClickOutside\\useClickOutside.js":"13","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Popup\\PopupOption.jsx":"14","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Switch\\Switch.jsx":"15","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\hooks\\useTimeout\\useTimeout.js":"16","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\hooks\\useStorage\\useStorage.js":"17","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\Search\\Search.jsx":"18","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Markdown\\renderMarkdown.js":"19","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\login\\Login.jsx":"20","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\Login\\Login.jsx":"21","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\User\\User.jsx":"22","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\reportWebVitals.js":"23","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\404\\NotFound.jsx":"24","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Markdown\\Markdown.jsx":"25","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Center\\Center.jsx":"26","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Icon\\Icon.jsx":"27","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Icon\\BrandIcon.jsx":"28","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\api\\user.js":"29","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\index.js":"30","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Navbar\\Navbar.jsx":"31","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Container\\Container.jsx":"32","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\api\\article.js":"33","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\UserSettings\\UserSettings.jsx":"34","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\ArticleResult\\ArticleResult.jsx":"35","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Dialog\\Dialog.jsx":"36","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Input\\input.jsx":"37","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Overlay\\Overlay.jsx":"38","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\Register\\Register.jsx":"39","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\ProtectedRoute\\ProtectedRoute.jsx":"40"},{"size":939,"mtime":1610810695532,"results":"41","hashOfConfig":"42"},{"size":784,"mtime":1638395020116,"results":"43","hashOfConfig":"42"},{"size":1666,"mtime":1641044678998,"results":"44","hashOfConfig":"42"},{"size":835,"mtime":1639433494669,"results":"45","hashOfConfig":"42"},{"size":453,"mtime":1640088414076,"results":"46","hashOfConfig":"42"},{"size":567,"mtime":1638486034775,"results":"47","hashOfConfig":"42"},{"size":4667,"mtime":1641137337849,"results":"48","hashOfConfig":"42"},{"size":279,"mtime":1636363206306,"results":"49","hashOfConfig":"42"},{"size":1580,"mtime":1641137583398,"results":"50","hashOfConfig":"42"},{"size":423,"mtime":1640468884203,"results":"51","hashOfConfig":"42"},{"size":765,"mtime":1638400893564,"results":"52","hashOfConfig":"42"},{"size":490,"mtime":1636361518133,"results":"53","hashOfConfig":"42"},{"size":274,"mtime":1638398824418,"results":"54","hashOfConfig":"42"},{"size":228,"mtime":1638965022272,"results":"55","hashOfConfig":"42"},{"size":488,"mtime":1639565392942,"results":"56","hashOfConfig":"42"},{"size":659,"mtime":1636361517828,"results":"57","hashOfConfig":"42"},{"size":909,"mtime":1636361517985,"results":"58","hashOfConfig":"42"},{"size":1239,"mtime":1640552191714,"results":"59","hashOfConfig":"42"},{"size":1294,"mtime":1638801379919,"results":"60","hashOfConfig":"42"},{"size":454,"mtime":1638486136498,"results":"61","hashOfConfig":"42"},{"size":2020,"mtime":1640626490296,"results":"62","hashOfConfig":"42"},{"size":1281,"mtime":1640471659325,"results":"63","hashOfConfig":"42"},{"size":362,"mtime":499162500000,"results":"64","hashOfConfig":"42"},{"size":829,"mtime":1636014253950,"results":"65","hashOfConfig":"42"},{"size":462,"mtime":1638801304725,"results":"66","hashOfConfig":"42"},{"size":353,"mtime":1610810670223,"results":"67","hashOfConfig":"42"},{"size":612,"mtime":1610810140212,"results":"68","hashOfConfig":"42"},{"size":417,"mtime":1610809706423,"results":"69","hashOfConfig":"42"},{"size":3878,"mtime":1641052470844,"results":"70","hashOfConfig":"42"},{"size":519,"mtime":1610811277361,"results":"71","hashOfConfig":"42"},{"size":1781,"mtime":1610810767318,"results":"72","hashOfConfig":"42"},{"size":678,"mtime":1610810677563,"results":"73","hashOfConfig":"42"},{"size":2767,"mtime":1640551736816,"results":"74","hashOfConfig":"42"},{"size":4018,"mtime":1640635187236,"results":"75","hashOfConfig":"42"},{"size":536,"mtime":1641051711759,"results":"76","hashOfConfig":"42"},{"size":1348,"mtime":1640634468724,"results":"77","hashOfConfig":"42"},{"size":218,"mtime":1640625978349,"results":"78","hashOfConfig":"42"},{"size":471,"mtime":1640633797928,"results":"79","hashOfConfig":"42"},{"size":3258,"mtime":1641046128085,"results":"80","hashOfConfig":"42"},{"size":458,"mtime":1641043312640,"results":"81","hashOfConfig":"42"},{"filePath":"82","messages":"83","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},"drshxg",{"filePath":"85","messages":"86","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"87"},{"filePath":"88","messages":"89","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"91","messages":"92","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"93"},{"filePath":"94","messages":"95","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"96"},{"filePath":"97","messages":"98","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"99"},{"filePath":"100","messages":"101","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"102"},{"filePath":"103","messages":"104","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"105","usedDeprecatedRules":"106"},{"filePath":"107","messages":"108","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"109","messages":"110","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"111","messages":"112","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"113"},{"filePath":"114","messages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"99"},{"filePath":"118","messages":"119","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"120"},{"filePath":"121","messages":"122","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"96"},{"filePath":"123","messages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"125"},{"filePath":"126","messages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"120"},{"filePath":"128","messages":"129","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"130","usedDeprecatedRules":"96"},{"filePath":"131","messages":"132","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"133"},{"filePath":"134","messages":"135","errorCount":1,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"136","messages":"137","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"138"},{"filePath":"139","messages":"140","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"141","messages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"93"},{"filePath":"143","messages":"144","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"145"},{"filePath":"146","messages":"147","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"138"},{"filePath":"148","messages":"149","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"138"},{"filePath":"150","messages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"106"},{"filePath":"152","messages":"153","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"93"},{"filePath":"154","messages":"155","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"159","messages":"160","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"113"},{"filePath":"161","messages":"162","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"113"},{"filePath":"163","messages":"164","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"106"},{"filePath":"165","messages":"166","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"167","messages":"168","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"169"},{"filePath":"170","messages":"171","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"120"},{"filePath":"172","messages":"173","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"138"},{"filePath":"174","messages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"96"},{"filePath":"176","messages":"177","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Footer\\Footer.jsx",[],["180","181"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Navbar\\IwwNavbar.jsx",[],["182","183"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\App.js",[],["184","185"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\SearchBar\\SearchBar.jsx",[],["186","187"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Button\\Button.jsx",[],["188","189"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\Index\\Index.jsx",[],["190","191"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\Article\\ArticleEdit.jsx",["192"],"import React, { useEffect, useState } from 'react'\r\nimport { useHistory } from \"react-router\";\r\nimport styles from './ArticleEdit.module.scss'\r\nimport Markdown from '../../components/Markdown/Markdown'\r\nimport Editor from \"@monaco-editor/react\";\r\nimport { useSessionStorage } from \"../../hooks/useStorage/useStorage\"\r\nimport useDebounce from \"../../hooks/useDebounce/useDebounce\"\r\nimport { renderSnipped } from \"../../components/Markdown/renderMarkdown\"\r\nimport Button from '../../components/Button/Button'\r\nimport Switch from '../../components/Switch/Switch';\r\nimport Icon from '../../components/Icon/Icon';\r\nimport ArticleApi from '../../api/article'\r\nimport UserApi from '../../api/user'\r\n\r\n\r\nexport default function ArticleEdit(props) {\r\n\r\n let isCached = true;\r\n const history = useHistory();\r\n const user = UserApi.getUser()\r\n\r\n const { id } = props.match.params\r\n const [markdown, setMarkdown] = useState(\"\")\r\n const [title, setTitle] = useState(\"\")\r\n const [owner, setOwner] = useState()\r\n const [isVisible, setIsVisible] = useState(false)\r\n const [isShared, setIsShared] = useState(false)\r\n const [cachedArticle, setCachedArticle, removeCachedArticle] = useSessionStorage(\r\n `article.${id}.edit`, generateNewArticle)\r\n \r\n useDebounce(cacheArticle, 500, [markdown, title, isVisible, isShared])\r\n\r\n useEffect(() => {\r\n if (isCached) {\r\n loadArticleFromCache()\r\n return\r\n }\r\n ArticleApi.getFromId(id, data => setArticleFromJSON(data))\r\n }, [])\r\n\r\n function canEdit() {\r\n return (user.role === \"admin\" || user._id === owner)\r\n }\r\n\r\n function generateNewArticle() {\r\n isCached = false;\r\n return {\r\n title: \"New Title\",\r\n markdown: \"\",\r\n isShared: isShared,\r\n isVisible: isVisible\r\n }\r\n }\r\n\r\n function loadArticleFromCache() {\r\n setMarkdown(cachedArticle.markdown)\r\n setTitle(cachedArticle.title)\r\n setIsVisible(cachedArticle.isVisible)\r\n setIsShared(cachedArticle.isShared)\r\n setOwner(cachedArticle.owner)\r\n }\r\n\r\n function cacheArticle() {\r\n setCachedArticle(getArticleJSON())\r\n }\r\n\r\n function getArticleJSON() {\r\n return {\r\n title: title,\r\n markdown: markdown,\r\n isShared: isShared,\r\n isVisible: isVisible,\r\n owner: owner,\r\n }\r\n }\r\n\r\n function setArticleFromJSON(data) {\r\n setTitle(data.title)\r\n setMarkdown(data.markdown)\r\n setIsVisible(data.isVisible)\r\n setIsShared(data.isShared)\r\n setOwner(data.owner)\r\n }\r\n\r\n function createSaveData() {\r\n let saveData = getArticleJSON()\r\n saveData.snipped = renderSnipped(cachedArticle.markdown)\r\n return saveData\r\n }\r\n\r\n function handleEditorWillMount(monaco) {\r\n //TODO: handle editor theming\r\n }\r\n\r\n function handleCancelClick() {\r\n removeCachedArticle();\r\n const url = id === \"new\" ? \"/\" : `/article/${id}`\r\n history.push({ pathname: url })\r\n }\r\n\r\n function redirectAfterSave(data) {\r\n removeCachedArticle();\r\n const url = `/article/${data._id}`\r\n history.push({ pathname: url })\r\n }\r\n\r\n function handleSaveClick() {\r\n const saveData = createSaveData()\r\n id === \"new\" ?\r\n ArticleApi.create(saveData, redirectAfterSave) :\r\n ArticleApi.update(saveData, id, redirectAfterSave)\r\n }\r\n\r\n return (\r\n <div className={styles.mainGrid}>\r\n <div className={styles.top}>\r\n <input\r\n type=\"text\"\r\n className={styles.header}\r\n value={title}\r\n onChange={(e) => setTitle(e.target.value)}\r\n />\r\n {canEdit() &&\r\n <>\r\n <Switch\r\n on={<Icon color=\"var(--black)\" size=\"20px\" frame=\"25px\" name=\"far fa-eye\" />}\r\n off={<Icon color=\"var(--gray)\" size=\"20px\" frame=\"25px\" name=\"far fa-eye-slash\" />}\r\n onChange={(e) => { setIsVisible(e) }}\r\n value={isVisible}\r\n />\r\n <Switch\r\n on={<Icon color=\"var(--black)\" size=\"20px\" frame=\"25px\" name=\"fas fa-users\" />}\r\n off={<Icon color=\"var(--gray)\" size=\"20px\" frame=\"25px\" name=\"fas fa-users-slash\" />}\r\n onChange={(e) => { setIsShared(e) }}\r\n value={isShared}\r\n />\r\n </>\r\n }\r\n <Button onClick={handleSaveClick}>Save</Button>\r\n <Button onClick={handleCancelClick} type=\"outline\">Cancel</Button>\r\n </div>\r\n <Editor\r\n height=\"100%\"\r\n width=\"100%\"\r\n defaultLanguage=\"markdown\"\r\n value={markdown}\r\n beforeMount={handleEditorWillMount}\r\n onChange={(text) => setMarkdown(text)}\r\n //theme=\"myCustomTheme\"\r\n />\r\n <Markdown className={styles.md}>{markdown}</Markdown>\r\n </div>\r\n )\r\n}\r\n\r\n\r\n","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\hooks\\useDebounce\\useDebounce.js",["193"],"import { useEffect } from \"react\"\nimport useTimeout from \"../useTimeout/useTimeout\"\n\nexport default function useDebounce(callback, delay, dependencies) {\n const { reset, clear } = useTimeout(callback, delay)\n useEffect(reset, [...dependencies, reset])\n useEffect(clear, [])\n}\n",["194","195"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\Article\\Article.jsx",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Avatar\\Avatar.jsx",["196"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Popup\\Popup.jsx",[],["197","198"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\hooks\\useEventListener\\useEventListener.js",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\hooks\\useClickOutside\\useClickOutside.js",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Popup\\PopupOption.jsx",[],["199","200"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Switch\\Switch.jsx",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\hooks\\useTimeout\\useTimeout.js",[],["201","202"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\hooks\\useStorage\\useStorage.js",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\Search\\Search.jsx",["203"],"import React, { useEffect, useState } from 'react'\r\nimport Container from '../../components/Container/Container'\r\nimport SearchBar from '../../components/SearchBar/SearchBar';\r\nimport styles from './Search.module.scss'\r\nimport User from '../../components/User/User'\r\nimport ArticleApi from '../../api/article';\r\nimport ArticleResult from '../../components/ArticleResult/ArticleResult'\r\n\r\nexport default function Search(props) {\r\n\r\n const urlParams = new URLSearchParams(props.location.search);\r\n const SearchParam = urlParams.get('q');\r\n const q = SearchParam?.split(' ').join('+') ?? \"\";\r\n\r\n const [results, setResults] = useState([])\r\n\r\n useEffect(() => {\r\n ArticleApi.search(q, data => setResults(data))\r\n }, [])\r\n\r\n return (\r\n <Container margin=\"true\" size=\"large\">\r\n <div className={styles.top}>\r\n <SearchBar />\r\n <User/>\r\n </div>\r\n <p className={styles.resulttext}>Results for \"{SearchParam}\" </p>\r\n {results.map( result =>\r\n <ArticleResult\r\n key={result._id}\r\n name={result.title}\r\n text={result.snipped}\r\n id={result._id}\r\n date={result.date} />\r\n )}\r\n </Container>\r\n )\r\n}\r\n\r\n//bestes search ergebnis 111.10000000000001\r\n\r\n","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Markdown\\renderMarkdown.js",[],["204","205"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\login\\Login.jsx",["206","207","208"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\Login\\Login.jsx",[],["209","210"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\User\\User.jsx",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\reportWebVitals.js",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\404\\NotFound.jsx",[],["211","212"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Markdown\\Markdown.jsx",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Center\\Center.jsx",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Icon\\Icon.jsx",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Icon\\BrandIcon.jsx",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\api\\user.js",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\index.js",[],["213","214"],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Navbar\\Navbar.jsx",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Container\\Container.jsx",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\api\\article.js",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\UserSettings\\UserSettings.jsx",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\ArticleResult\\ArticleResult.jsx",["215"],"import React from 'react'\r\nimport styles from './ArticleResult.module.scss'\r\nimport { Link } from 'react-router-dom';\r\nimport Icon from '../Icon/Icon';\r\n\r\nexport default function ArticleResult(props) {\r\n\r\n return (\r\n <div className={styles.result}>\r\n <div className={styles.wrapper}>\r\n <p className={styles.date}>{props.date.substring(0, 10)}</p>\r\n <Link to={\"/article/\" + props.id}>{props.name}</Link>\r\n <p className={styles.text}>\r\n {props.text}\r\n </p>\r\n </div>\r\n </div>\r\n )\r\n}\r\n","F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Dialog\\Dialog.jsx",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Input\\input.jsx",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\Overlay\\Overlay.jsx",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\routes\\Register\\Register.jsx",[],"F:\\Websites\\NickiWiki\\nickiwiki_frontend\\src\\components\\ProtectedRoute\\ProtectedRoute.jsx",[],{"ruleId":"216","replacedBy":"217"},{"ruleId":"218","replacedBy":"219"},{"ruleId":"216","replacedBy":"220"},{"ruleId":"218","replacedBy":"221"},{"ruleId":"216","replacedBy":"222"},{"ruleId":"218","replacedBy":"223"},{"ruleId":"216","replacedBy":"224"},{"ruleId":"218","replacedBy":"225"},{"ruleId":"216","replacedBy":"226"},{"ruleId":"218","replacedBy":"227"},{"ruleId":"216","replacedBy":"228"},{"ruleId":"218","replacedBy":"229"},{"ruleId":"230","severity":1,"message":"231","line":39,"column":6,"nodeType":"232","endLine":39,"endColumn":8,"suggestions":"233"},{"ruleId":"230","severity":1,"message":"234","line":7,"column":3,"nodeType":"235","endLine":7,"endColumn":12,"suggestions":"236"},{"ruleId":"216","replacedBy":"237"},{"ruleId":"218","replacedBy":"238"},{"ruleId":"239","severity":1,"message":"240","line":1,"column":10,"nodeType":"235","messageId":"241","endLine":1,"endColumn":28},{"ruleId":"216","replacedBy":"242"},{"ruleId":"218","replacedBy":"243"},{"ruleId":"216","replacedBy":"244"},{"ruleId":"218","replacedBy":"245"},{"ruleId":"216","replacedBy":"246"},{"ruleId":"218","replacedBy":"247"},{"ruleId":"230","severity":1,"message":"248","line":19,"column":6,"nodeType":"232","endLine":19,"endColumn":8,"suggestions":"249"},{"ruleId":"216","replacedBy":"250"},{"ruleId":"218","replacedBy":"251"},{"ruleId":"239","severity":1,"message":"252","line":4,"column":8,"nodeType":"235","messageId":"241","endLine":4,"endColumn":14},{"ruleId":"239","severity":1,"message":"253","line":5,"column":10,"nodeType":"235","messageId":"241","endLine":5,"endColumn":14},{"ruleId":"254","severity":2,"message":"255","line":13,"column":12,"nodeType":"256","endLine":13,"endColumn":21},{"ruleId":"216","replacedBy":"257"},{"ruleId":"218","replacedBy":"258"},{"ruleId":"216","replacedBy":"259"},{"ruleId":"218","replacedBy":"260"},{"ruleId":"216","replacedBy":"261"},{"ruleId":"218","replacedBy":"262"},{"ruleId":"239","severity":1,"message":"263","line":4,"column":8,"nodeType":"235","messageId":"241","endLine":4,"endColumn":12},"no-native-reassign",["264"],"no-negated-in-lhs",["265"],["264"],["265"],["264"],["265"],["264"],["265"],["264"],["265"],["264"],["265"],"react-hooks/exhaustive-deps","React Hook useEffect has missing dependencies: 'id', 'isCached', and 'loadArticleFromCache'. Either include them or remove the dependency array.","ArrayExpression",["266"],"React Hook useEffect has a missing dependency: 'clear'. Either include it or remove the dependency array.","Identifier",["267"],["264"],["265"],"no-unused-vars","'normalizeReference' is defined but never used.","unusedVar",["264"],["265"],["264"],["265"],["264"],["265"],"React Hook useEffect has a missing dependency: 'q'. Either include it or remove the dependency array.",["268"],["264"],["265"],"'styles' is defined but never used.","'Link' is defined but never used.","react/jsx-no-undef","'SearchBar' is not defined.","JSXIdentifier",["264"],["265"],["264"],["265"],["264"],["265"],"'Icon' is defined but never used.","no-global-assign","no-unsafe-negation",{"desc":"269","fix":"270"},{"desc":"271","fix":"272"},{"desc":"273","fix":"274"},"Update the dependencies array to be: [id, isCached, loadArticleFromCache]",{"range":"275","text":"276"},"Update the dependencies array to be: [clear]",{"range":"277","text":"278"},"Update the dependencies array to be: [q]",{"range":"279","text":"280"},[1482,1484],"[id, isCached, loadArticleFromCache]",[273,275],"[clear]",[721,723],"[q]"]