Remove Default and SectDropdown as they are no longer used

pull/21/head
Brogan Clements 2022-04-25 14:11:46 -04:00
parent a3a4b5b1e0
commit 3c22bb8c7f
2 changed files with 0 additions and 584 deletions

View File

@ -1,505 +0,0 @@
import React from "react";
function Default() {
return (
<section>
<br />
<h1 id="list-of-free-learning-resources-in-many-languages">List of Free Learning Resources In Many Languages</h1>
<div align="center">
<p>
<a href="https://github.com/sindresorhus/awesome">
<img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome" />
</a>
<a href="https://creativecommons.org/licenses/by/4.0/">
<img src="https://img.shields.io/badge/License-CC%20BY%204.0-lightgrey.svg" alt="License: CC BY 4.0" />
</a>
</p>
</div>
<h2 id="intro">Intro</h2>
<p>
This list was originally a clone of{" "}
<a href="https://web.archive.org/web/20140606191453/http://stackoverflow.com/questions/194812/list-of-freely-available-programming-books/392926">
StackOverflow - List of Freely Available Programming Books
</a>{" "}
with contributions from Karan Bhangui and George Stocker.
</p>
<p>
The list was moved to GitHub by Victor Felder for collaborative updating and maintenance. It has grown to become
one of <a href="https://octoverse.github.com/">GitHubs most popular repositories</a>, with 221,000+ stars,
6,900+ commits, 1,900+ contributors, and 47,100+ forks.
</p>
<div align="center">
<p>
<a href="https://github.com/EbookFoundation/free-programming-books/network">
<img src="https://img.shields.io/github/forks/EbookFoundation/free-programming-books?style=flat&amp;logo=github&amp;logoColor=whitesmoke&amp;label=Forks" alt="GitHub repo forks"/>
</a>&nbsp;
<a href="https://github.com/EbookFoundation/free-programming-books/stargazers">
<img src="https://img.shields.io/github/stars/EbookFoundation/free-programming-books?style=flat&amp;logo=github&amp;logoColor=whitesmoke&amp;label=Stars" alt="GitHub repo stars"/>
</a>&nbsp;
<a href="https://github.com/EbookFoundation/free-programming-books/graphs/contributors">
<img src="https://img.shields.io/github/contributors-anon/EbookFoundation/free-programming-books?style=flat&amp;logo=github&amp;logoColor=whitesmoke&amp;label=Contributors" alt="GitHub repo contributors"/>
</a>
<br/>
<a href="https://github.com/sponsors/EbookFoundation">
<img src="https://img.shields.io/github/sponsors/EbookFoundation?style=flat&amp;logo=github&amp;logoColor=whitesmoke&amp;label=Sponsors" alt="GitHub org sponsors"/>
</a>&nbsp;
<a href="https://github.com/EbookFoundation/free-programming-books/watchers">
<img src="https://img.shields.io/github/watchers/EbookFoundation/free-programming-books?style=flat&amp;logo=github&amp;logoColor=whitesmoke&amp;label=Watchers" alt="GitHub repo watchers"/>
</a>&nbsp;
<a href="https://github.com/EbookFoundation/free-programming-books/archive/refs/heads/main.zip">
<img src="https://img.shields.io/github/repo-size/EbookFoundation/free-programming-books?style=flat&amp;logo=github&amp;logoColor=whitesmoke&amp;label=Repo%20Size" alt="GitHub repo size"/>
</a>
</p>
</div>
<p>
The <a href="https://ebookfoundation.org">Free Ebook Foundation</a> now administers the repo, a not-for-profit
organization devoted to promoting the creation, distribution, archiving, and sustainability of free ebooks.{" "}
<a href="https://ebookfoundation.org/contributions.html">Donations</a> to the Free Ebook Foundation are
tax-deductible in the US.
</p>
<h2 id="how-to-contribute">How To Contribute</h2>
<p>
Please read <a href="/free-programming-books/docs/CONTRIBUTING.html">CONTRIBUTING</a>. If youre new to GitHub,{" "}
<a href="/free-programming-books/docs/HOWTO.html">welcome</a>! Remember to abide by our adapted
from <img src="https://img.shields.io/badge/Contributor%20Covenant-1.3-4baaaa.svg" alt="Contributor Covenant 1.3"></img>{" "}
<a href="/free-programming-books/docs/CODE_OF_CONDUCT.html">Code of Conduct</a> too. (
<a href="/free-programming-books/docs/#translations">translations</a> also available)
</p>
<p>
Click on these badges to see how you might be able to help:
</p>
<div align="center">
<p>
<a href="https://github.com/EbookFoundation/free-programming-books/issues">
<img src="https://img.shields.io/github/issues/EbookFoundation/free-programming-books?style=flat&amp;logo=github&amp;logoColor=red&amp;label=Issues" alt="GitHub repo Issues"/>
</a>&nbsp;
<a href="https://github.com/EbookFoundation/free-programming-books/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22">
<img src="https://img.shields.io/github/issues/EbookFoundation/free-programming-books/good%20first%20issue?style=flat&amp;logo=github&amp;logoColor=green&amp;label=Good%20First%20issues" alt="GitHub repo Good Issues for newbies"/>
</a>&nbsp;
<a href="https://github.com/EbookFoundation/free-programming-books/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22">
<img src="https://img.shields.io/github/issues/EbookFoundation/free-programming-books/help%20wanted?style=flat&amp;logo=github&amp;logoColor=b545d1&amp;label=%22Help%20Wanted%22%20issues" alt="GitHub Help Wanted issues"/>
</a>
<br/>
<a href="https://github.com/EbookFoundation/free-programming-books/pulls">
<img src="https://img.shields.io/github/issues-pr/EbookFoundation/free-programming-books?style=flat&amp;logo=github&amp;logoColor=orange&amp;label=PRs" alt="GitHub repo PRs"/>
</a>&nbsp;
<a href="https://github.com/EbookFoundation/free-programming-books/pulls?q=is%3Apr+is%3Amerged">
<img src="https://img.shields.io/github/issues-search/EbookFoundation/free-programming-books?style=flat&amp;logo=github&amp;logoColor=green&amp;label=Merged%20PRs&amp;query=is%3Amerged" alt="GitHub repo Merged PRs"/>
</a>&nbsp;
<a href="https://github.com/EbookFoundation/free-programming-books/pulls?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22">
<img src="https://img.shields.io/github/issues-pr/EbookFoundation/free-programming-books/help%20wanted?style=flat&amp;logo=github&amp;logoColor=b545d1&amp;label=%22Help%20Wanted%22%20PRs" alt="GitHub Help Wanted PRs"/>
</a>
</p>
</div>
<h2 id="how-to-share">How to Share</h2>
<ul>
<li>
<a href="http://twitter.com/intent/tweet?text=https://github.com/EbookFoundation/free-programming-books%0AFree%20Programming%20Books">
Share on Twitter
</a>
</li>
<li>
<a href="https://www.facebook.com/share.php?u=https%3A%2F%2Fgithub.com%2FEbookFoundation%2Ffree-programming-books&amp;p%5Bimages%5D%5B0%5D=&amp;p%5Btitle%5D=Free%20Programming%20Books&amp;p%5Bsummary%5D=">
Share on Facebook
</a>
</li>
<li>
<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=https://github.com/EbookFoundation/free-programming-books&amp;title=Free%20Programming%20Books&amp;summary=&amp;source=">
Share on LinkedIn
</a>
</li>
<li>
<a href="https://t.me/share/url?url=https://github.com/EbookFoundation/free-programming-books">
Share on Telegram
</a>
</li>
</ul>
<h2 id="resources">Resources</h2>
<p>This project lists books and other resources grouped by genres:</p>
<h3 id="books">Books</h3>
<p>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-langs&lang=langs">English, By Programming Language</a>
</p>
<p>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-subjects&lang=subjects">English, By Subject</a>
</p>
<h4 id="other-languages">Other Languages</h4>
<ul>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-ar&lang=ar">Arabic / al arabiya / العربية</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-az&lang=az">Azerbaijani / Азәрбајҹан дили / آذربايجانجا ديلي</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-bn&lang=bn">Bengali / </a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-bg&lang=bg">Bulgarian / български</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-my&lang=my">Burmese / </a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-zh&lang=zh">Chinese / 中文</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-cs&lang=cs">Czech / čeština / český jazyk</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-dk&lang=dk">Danish / dansk</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-nl&lang=nl">Dutch / Nederlands</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-et&lang=et">Estonian / eesti keel</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-fi&lang=fi">Finnish / suomi / suomen kieli</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-fr&lang=fr">French / français</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-de&lang=de">German / Deutsch</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-el&lang=el">Greek / ελληνικά</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-he&lang=he">Hebrew / עברית</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-hi&lang=hi">Hindi / ि</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-hu&lang=hu">Hungarian / magyar / magyar nyelv</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-id&lang=id">Indonesian / Bahasa Indonesia</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-it&lang=it">Italian / italiano</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-ja&lang=ja">Japanese / 日本語</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-ko&lang=ko">Korean / 한국어 [韓國語]</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-no&lang=no">Norwegian / Norsk</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-fa_IR&lang=fa_IR">Persian / Farsi (Iran) / فارسى</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-pl&lang=pl">Polish / polski / język polski / polszczyzna</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-pt_BR&lang=pt_BR">Portuguese (Brazil)</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-pt_PT&lang=pt_PT">Portuguese (Portugal)</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-ro&lang=ro">Romanian (Romania) / limba română / român</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-ru&lang=ru">Russian / Русский язык</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-sr&lang=sr">Serbian / српски језик / srpski jezik</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-sk&lang=sk">Slovak / slovenčina</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-es&lang=es">Spanish / español / castellano</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-sv&lang=sv">Swedish / Svenska</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-ta&lang=ta">Tamil / தமி</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-th&lang=th">Thai / ไทย</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-tr&lang=tr">Turkish / Türkçe</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-uk&lang=uk">Ukrainian / Українська</a>
</li>
<li>
<a href="/free-programming-books-search?sect=books&file=free-programming-books-vi&lang=vi">Vietnamese / Tiếng Việt</a>
</li>
</ul>
<h3 id="cheat-sheets">Cheat Sheets</h3>
<ul>
<li>
<a href="/free-programming-books-search?sect=more&file=free-programming-cheatsheets">All Languages</a>
</li>
</ul>
<h3 id="free-online-courses">Free Online Courses</h3>
<ul>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-ar&lang=ar">Arabic / al arabiya / العربية</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-bn&lang=bn">Bengali / </a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-bg&lang=bg">Bulgarian / български</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-en&lang=en">English</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-fi&lang=fi">Finnish</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-fr&lang=fr">French / français</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-de&lang=de">German / Deutsch</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-el&lang=el">Greek / ελληνικά</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-he&lang=he">Hebrew / עברית</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-hi&lang=hi">Hindi / ि</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-id&lang=id">Indonesian / Bahasa Indonesia</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-it&lang=it">Italian / italiano</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-ja&lang=ja">Japanese / 日本語</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-kk&lang=kk">Kazakh / қазақша</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-km&lang=km">Khmer / </a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-ko&lang=ko">Korean / 한국어 [韓國語]</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-ml&lang=ml">Malayalam / മലയ</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-fa_IR&lang=fa_IR">Persian / Farsi (Iran) / فارسى</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-pl&lang=pl">
Polish / polski / język polski / polszczyzna
</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-pt_BR&lang=pt_BR">Portuguese (Brazil)</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-pt_PT&lang=pt_PT">Portuguese (Portugal)</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-ru&lang=ru">Russian / Русский язык</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-si&lang=si">Sinhala / හල</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-es&lang=es">Spanish / español / castellano</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-th&lang=th">Thai / ภาษาไทย</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-tr&lang=tr">Turkish / Türkçe</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-uk&lang=uk">Ukrainian / Українська</a>
</li>
<li>
<a href="/free-programming-books-search?sect=courses&file=free-courses-vi&lang=vi">Vietnamese / Tiếng Việt</a>
</li>
</ul>
<h3 id="interactive-programming-resources">Interactive Programming Resources</h3>
<ul>
<li>
<a href="/free-programming-books-search?sect=more&file=free-programming-interactive-tutorials-zh&lang=zh">Chinese / 中文</a>
</li>
<li>
<a href="/free-programming-books-search?sect=more&file=free-programming-interactive-tutorials-en&lang=en">English</a>
</li>
<li>
<a href="/free-programming-books-search?sect=more&file=free-programming-interactive-tutorials-pt_BR&lang=pt_BR">
Portuguese (Brazil)
</a>
</li>
<li>
<a href="/free-programming-books-search?sect=more&file=free-programming-interactive-tutorials-ru&lang=ru">
Russian / Русский язык
</a>
</li>
</ul>
<h3 id="problem-sets-and-competitive-programming">Problem Sets and Competitive Programming</h3>
<ul>
<li>
<a href="/free-programming-books-search?sect=more&file=problem-sets-competitive-programming">Problem Sets</a>
</li>
</ul>
<h3 id="podcast---screencast">Podcast - Screencast</h3>
<p>Free Podcasts and Screencasts:</p>
<ul>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-ar">Arabic / al arabiya / العربية</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-cs">Czech / čeština / český jazyk</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-en">English</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-fi">Finnish / Suomi</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-fr">French / français</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-he">Hebrew / עברית</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-id">Indonesian / Bahasa Indonesia</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-fa_IR">
Persian / Farsi (Iran) / فارسى
</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-pl">
Polish / polski / język polski / polszczyzna
</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-pt_BR">Portuguese (Brazil)</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-pt_PT">Portuguese (Portugal)</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-ru">Russian / Русский язык</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-si">Sinhala / හල</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-es">Spanish / español / castellano</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-sv">Swedish / Svenska</a>
</li>
<li>
<a href="/free-programming-books-search?sect=casts&file=free-podcasts-screencasts-tr">Turkish / Türkçe</a>
</li>
</ul>
<h3 id="programming-playgrounds">Programming Playgrounds</h3>
<ul>
<li>
<a href="/free-programming-books-search?sect=more&file=free-programming-playgrounds-zh">Chinese / 中文</a>
</li>
<li>
<a href="/free-programming-books-search?sect=more&file=free-programming-playgrounds">English</a>
</li>
</ul>
<h2 id="translations">Translations</h2>
<p>
Volunteers have translated many of our Contributing, How-to, and Code of Conduct documents into languages
covered by our lists.
</p>
<ul>
<li>
English
<ul>
<li>
<a href="/free-programming-books-search?sect=docs&file=CODE_OF_CONDUCT">Code of Conduct</a>
</li>
<li>
<a href="/free-programming-books-search?sect=docs&file=CONTRIBUTING">Contributing</a>
</li>
<li>
<a href="/free-programming-books-search?sect=docs&file=HOWTO">How-to</a>
</li>
</ul>
</li>
<li>
{" "}
<em>
<a href="/free-programming-books-search?sect=docs&file=README">More languages</a>
</em>{" "}
</li>
</ul>
<p>
You might notice that there are{" "}
<a href="/free-programming-books/docs/#translations">some missing translations here</a> - perhaps you would like
to help out by{" "}
<a href="/free-programming-books/docs/CONTRIBUTING.html#help-out-by-contributing-a-translation">
contributing a translation
</a>
?
</p>
<h2 id="license">License</h2>
<p>
Each file included in this repository is licensed under the{" "}
<a href="/free-programming-books/LICENSE">CC BY License</a>.
</p>
</section>
);
}
export default Default;

View File

@ -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 (
<div>
<label>
<input
type="radio"
className="sect-select"
key={section}
value={section}
onChange={handleChange}
checked={section === selected}
/>
{section}
</label>
</div>
);
};
options =
sections &&
sections.map((section) => {
return createOption(section);
});
// console.log(options);
return (
<div>
<h3>Select Programming Language:</h3>
<form class="filters">
<label>
<input type="radio" className="sect-select" value="" onChange={handleChange} checked={"" === selected} />
All Programming Languages
</label>
{options}
</form>
</div>
);
}
export default SectDropdown;