From 8e86d94b4d11d1212f1d72db2822cb3e8b9ef32f Mon Sep 17 00:00:00 2001 From: Deepak Singh Date: Fri, 21 Jul 2023 16:29:38 +0530 Subject: [PATCH 1/3] IOT --- components/Searchbar/Searchbar.tsx | 7 ------- database/IOT/coursera.json | 9 +++++++++ database/data.ts | 18 +++++++++++++++--- database/index.ts | 3 ++- types/index.ts | 6 ++++++ 5 files changed, 32 insertions(+), 11 deletions(-) create mode 100644 database/IOT/coursera.json diff --git a/components/Searchbar/Searchbar.tsx b/components/Searchbar/Searchbar.tsx index f1545eea3..b7ba4e38c 100644 --- a/components/Searchbar/Searchbar.tsx +++ b/components/Searchbar/Searchbar.tsx @@ -1,19 +1,12 @@ import React, { useState, useRef } from 'react' import SearchIcon from 'assets/icons/SearchIcon' import { useRouter } from 'next/router' -// import type { ISidebar, SubCategories, subcategoryArray } from '../../types' import { subcategoryArray } from '../../types' interface SearchbarProps { setSearch: (search: string) => void } -// const subcategory =subcategoryArray; - -// const subcategoryList: SubCategory[] = Object.keys(SubCategory).filter( -// (key) => isNaN(Number(key)) -// ) as SubCategory[]; - const searchOptions = subcategoryArray export const Searchbar: React.FC = ({ setSearch }) => { diff --git a/database/IOT/coursera.json b/database/IOT/coursera.json new file mode 100644 index 000000000..b9fe6238a --- /dev/null +++ b/database/IOT/coursera.json @@ -0,0 +1,9 @@ +[ + { + "name": "An Introduction to Programming the Internet of Things (IOT) Specialization", + "description": "Design, create, and deploy a fun IoT device using Arduino and Raspberry Pi platforms. This Specialization covers embedded systems, the Raspberry Pi Platform, and the Arduino environment for building devices that can control the physical world. In the final Capstone Project, you’ll apply the skills you learned by designing, building, and testing a microcontroller-based embedded system, producing a unique final project suitable for showcasing to future employers.", + "url": "https://www.coursera.org/specializations/iot", + "category": "internet of things", + "subcategory": "coursera" + } +] \ No newline at end of file diff --git a/database/data.ts b/database/data.ts index b5c6d8862..dc5d97d84 100644 --- a/database/data.ts +++ b/database/data.ts @@ -116,7 +116,11 @@ export const sidebarData: ISidebar[] = [ { category: 'machine learning', subcategory: [ - { name: 'machine learning', url: '/machine-learning', resources: DB.machineLearning }, + { + name: 'machine learning', + url: '/machine-learning', + resources: DB.machineLearning, + }, { name: 'data science', url: '/data-science', resources: DB.dataScience }, { name: 'deep learning', @@ -128,8 +132,16 @@ export const sidebarData: ISidebar[] = [ { category: 'artificial intelligence', subcategory: [ - { name: 'Artificial Int.', url: '/artificial-intelligence', resources: DB.artificialIntelligence }, - ] + { + name: 'Artificial Int.', + url: '/artificial-intelligence', + resources: DB.artificialIntelligence, + }, + ], + }, + { + category: 'internet of things', + subcategory: [{ name: 'coursera', url: '/iot', resources: DB.coursera }], }, { category: 'resources', diff --git a/database/index.ts b/database/index.ts index 210394ecc..02e70fc92 100644 --- a/database/index.ts +++ b/database/index.ts @@ -35,6 +35,8 @@ export { default as java } from './languages/java.json' export { default as cpp } from './languages/c++.json' //artificial intelligence export { default as artificialIntelligence } from './artificial_intelligence/artificial-intelligence.json' +//internet of things +export { default as coursera } from './IOT/coursera.json' //machine learning export { default as ml } from './machine_learning/machine-learning.json' export { default as dataScience } from './machine_learning/data-science.json' @@ -69,4 +71,3 @@ export { default as devtools } from './other/devtools.json' export { default as podcasts } from './other/podcasts.json' export { default as otherResources } from './other/other-resources.json' export { default as communities } from './other/communities.json' - diff --git a/types/index.ts b/types/index.ts index 6011db66c..ac15d9945 100644 --- a/types/index.ts +++ b/types/index.ts @@ -37,6 +37,7 @@ export type Category = | 'backend' | 'languages' | 'artificial intelligence' + | 'internet of things' | 'machine learning' | 'open source' | 'resources' @@ -175,6 +176,11 @@ export const subcategoryArray = [ 'typescript', //artificial intelligence 'artificial-intelligence', + //Internet of Things + 'coursera', + 'Esp-32', + 'Sensors', + 'Raspberry pi', // machin learning 'data-science', 'deep-learning', From ef97ace380a1f7d1461a648e8b1a68a4cb3c2256 Mon Sep 17 00:00:00 2001 From: Christine Belzie <105683440+CBID2@users.noreply.github.com> Date: Fri, 21 Jul 2023 21:34:53 -0400 Subject: [PATCH 2/3] fix: revise typo in the description --- database/IOT/coursera.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database/IOT/coursera.json b/database/IOT/coursera.json index b9fe6238a..e7bc44d9f 100644 --- a/database/IOT/coursera.json +++ b/database/IOT/coursera.json @@ -1,9 +1,9 @@ [ { - "name": "An Introduction to Programming the Internet of Things (IOT) Specialization", - "description": "Design, create, and deploy a fun IoT device using Arduino and Raspberry Pi platforms. This Specialization covers embedded systems, the Raspberry Pi Platform, and the Arduino environment for building devices that can control the physical world. In the final Capstone Project, you’ll apply the skills you learned by designing, building, and testing a microcontroller-based embedded system, producing a unique final project suitable for showcasing to future employers.", + "name": "An Introduction to Programming the Internet of Things (IoT) Specialization", + "description": "Design, create, and deploy a fun IoT device using Arduino and Raspberry Pi platforms. This course covers embedded systems, the Raspberry Pi Platform, and the Arduino environment for building devices that can control the physical world. In the final Capstone Project, you’ll apply the skills you learned by designing, building, and testing a microcontroller-based embedded system, producing a unique final project suitable for showcasing to future employers.", "url": "https://www.coursera.org/specializations/iot", "category": "internet of things", "subcategory": "coursera" } -] \ No newline at end of file +] From 5b2fdcda3fd7ea2ba90f89032558a87343ddcdf0 Mon Sep 17 00:00:00 2001 From: Rupali Haldiya <78981177+rupali-codes@users.noreply.github.com> Date: Thu, 27 Jul 2023 12:28:49 +0530 Subject: [PATCH 3/3] chore: update url Co-authored-by: Abhijith Muthyala <73361366+abhijithmuthyala@users.noreply.github.com> --- database/data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/data.ts b/database/data.ts index 8c4796fe3..a15db2d18 100644 --- a/database/data.ts +++ b/database/data.ts @@ -142,7 +142,7 @@ export const sidebarData: ISidebar[] = [ }, { category: 'internet of things', - subcategory: [{ name: 'coursera', url: '/iot', resources: DB.coursera }], + subcategory: [{ name: 'coursera', url: '/coursera', resources: DB.coursera }], }, { category: 'resources',