From 13de0e15b02fde7aa4cb1ac21ecb6cbf76a534af Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 7 Dec 2021 23:23:56 -0500 Subject: [PATCH 1/2] Remove instructions that do not work --- components/_fuzzy.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/components/_fuzzy.tsx b/components/_fuzzy.tsx index 2a55b95..080ccee 100644 --- a/components/_fuzzy.tsx +++ b/components/_fuzzy.tsx @@ -43,17 +43,11 @@ export default class Fuzzy { showSearchResults(): void { let searchValue: string = this.searchValue.toLowerCase(); searchValue = searchValue.trimStart().trimEnd(); - if ( - (this.maxResults !== undefined && searchValue === '') || - searchValue === '?' || - searchValue === 'help') { + if (this.maxResults !== undefined && searchValue === ''){ this.setResultsValue( <> -

Help

-
Enter a page or directory name. If do not know any, clear the search field to list everything.
-
Using the Enter key would take you to the first page in list, if the list is not empty.
-
Alternatively, use the Up and Down arrow keys to select the page you want and use the Enter key.
-
Use Backspace to go back to the search.
+

Search PaulW.XYZ

+
Enter a page or directory name in the search bar above.
) return; From b817641b4bc45edf93315ea972fe0969ff587aef Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 7 Dec 2021 23:30:34 -0500 Subject: [PATCH 2/2] Display resources page data --- pages/resources.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pages/resources.tsx b/pages/resources.tsx index 9479b24..6e51272 100644 --- a/pages/resources.tsx +++ b/pages/resources.tsx @@ -1,5 +1,6 @@ import React, { ReactElement } from 'react'; import Layout from '../components/layout'; +import style from '../styles/lists.module.css'; type listItem = { children?: listItem[] | string[]; @@ -87,17 +88,17 @@ function mapChild(obj: listItem | string, level: number) { if (typeof obj === 'string') { if (obj === '') return <> - return
  • {obj}
  • + return {obj} } if (obj.title === '') return <> if (obj.url) - return
  • {obj.title}
  • + return {obj.title} if (!obj.children) - return
  • {obj.title}
  • + return {obj.title} let title: ReactElement; @@ -110,9 +111,9 @@ function mapChild(obj: listItem | string, level: number) { <> {title} {obj.description ?

    {obj.description}

    : <>} - + ); } @@ -121,7 +122,7 @@ function Resources() { return (
    - + {list.map(l => mapChild(l, 0))}
    ); }