From 3c22bb8c7f2fdd3a04a2630acac87508f3a3dab5 Mon Sep 17 00:00:00 2001 From: Brogan Clements Date: Mon, 25 Apr 2022 14:11:46 -0400 Subject: [PATCH] Remove Default and SectDropdown as they are no longer used --- src/components/Default.js | 505 --------------------------------- src/components/SectDropdown.js | 79 ------ 2 files changed, 584 deletions(-) delete mode 100644 src/components/Default.js delete mode 100644 src/components/SectDropdown.js diff --git a/src/components/Default.js b/src/components/Default.js deleted file mode 100644 index 8d77217..0000000 --- a/src/components/Default.js +++ /dev/null @@ -1,505 +0,0 @@ -import React from "react"; - -function Default() { - return ( -
-
- -

List of Free Learning Resources In Many Languages

- -
-

- - Awesome - - - License: CC BY 4.0 - -

-
- -

Intro

- -

- This list was originally a clone of{" "} - - StackOverflow - List of Freely Available Programming Books - {" "} - with contributions from Karan Bhangui and George Stocker. -

- -

- The list was moved to GitHub by Victor Felder for collaborative updating and maintenance. It has grown to become - one of GitHub’s most popular repositories, with 221,000+ stars, - 6,900+ commits, 1,900+ contributors, and 47,100+ forks. -

-
-

- - GitHub repo forks -   - - GitHub repo stars -   - - GitHub repo contributors - -
- - GitHub org sponsors -   - - GitHub repo watchers -   - - GitHub repo size - -

-
- -

- The Free Ebook Foundation now administers the repo, a not-for-profit - organization devoted to promoting the creation, distribution, archiving, and sustainability of free ebooks.{" "} - Donations to the Free Ebook Foundation are - tax-deductible in the US. -

- -

How To Contribute

- -

- Please read CONTRIBUTING. If you’re new to GitHub,{" "} - welcome! Remember to abide by our adapted - from Contributor Covenant 1.3{" "} - Code of Conduct too. ( - translations also available) -

-

- Click on these badges to see how you might be able to help: -

-
-

- - GitHub repo Issues -   - - GitHub repo Good Issues for newbies -   - - GitHub Help Wanted issues - -
- - GitHub repo PRs -   - - GitHub repo Merged PRs -   - - GitHub Help Wanted PRs - -

-
-

How to Share

- - - -

Resources

- -

This project lists books and other resources grouped by genres:

- -

Books

- -

- English, By Programming Language -

- -

- English, By Subject -

-

Other Languages

- - - -

Cheat Sheets

- - - -

Free Online Courses

- - - -

Interactive Programming Resources

- - - -

Problem Sets and Competitive Programming

- - - -

Podcast - Screencast

- -

Free Podcasts and Screencasts:

- - - -

Programming Playgrounds

- - - -

Translations

- -

- Volunteers have translated many of our Contributing, How-to, and Code of Conduct documents into languages - covered by our lists. -

- - - -

- You might notice that there are{" "} - some missing translations here - perhaps you would like - to help out by{" "} - - contributing a translation - - ? -

- -

License

- -

- Each file included in this repository is licensed under the{" "} - CC BY License. -

-
- ); -} - -export default Default; diff --git a/src/components/SectDropdown.js b/src/components/SectDropdown.js deleted file mode 100644 index 8f828e0..0000000 --- a/src/components/SectDropdown.js +++ /dev/null @@ -1,79 +0,0 @@ -import React, { useState, useEffect } from "react"; - -function SectDropdown({ changeParameter, data, value }) { - const [sections, setSections] = useState([]); - const [selected, setSelected] = useState(""); - let options = null; - - const handleChange = (e) => { - changeParameter("section", e.target.value); - setSelected(e.target.value); - }; - - useEffect( - // run whenever data changes - () => { - if (data) { - let sectArray = []; - data.children[0].children.forEach((document) => { - // console.log(document) - if (Array.isArray(document.sections) && document.sections.length > 0); - { - // console.log(document.sections.length); - // console.log(Array.isArray(document.sections)); - for (let i = 0; i < document.sections.length; i++) { - // console.log("h") - // console.log(document.sections[i]); - if (sectArray.indexOf(document.sections[i].section) === -1) { - sectArray.push(document.sections[i].section.trim()); - } - // sectArray.push(document.sections[i].section); - } - } - }); - sectArray.sort((a, b) => a.localeCompare(b)); - setSections(sectArray); - } - }, - [data] - ); - // key={section} value={section} - const createOption = (section) => { - return ( -
- -
- ); - }; - - options = - sections && - sections.map((section) => { - return createOption(section); - }); - // console.log(options); - return ( -
-

Select Programming Language:

-
- - {options} -
-
- ); -} - -export default SectDropdown;