From 540494978aabfd4b81360c94df42c6dffba25d77 Mon Sep 17 00:00:00 2001 From: Deepaksingh Kushwah Date: Thu, 27 Jul 2023 12:34:56 +0530 Subject: [PATCH] chore: add IOT (#1366) --- components/Searchbar/Searchbar.tsx | 4 +--- database/IOT/coursera.json | 9 +++++++++ database/data.ts | 10 +++++++++- database/index.ts | 2 ++ types/index.ts | 6 ++++++ 5 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 database/IOT/coursera.json diff --git a/components/Searchbar/Searchbar.tsx b/components/Searchbar/Searchbar.tsx index 5a35d2ded..809cb1ee6 100644 --- a/components/Searchbar/Searchbar.tsx +++ b/components/Searchbar/Searchbar.tsx @@ -1,14 +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 } - - + export const Searchbar: React.FC = ({ setSearch }) => { const router = useRouter() const query = router.query.query diff --git a/database/IOT/coursera.json b/database/IOT/coursera.json new file mode 100644 index 000000000..e7bc44d9f --- /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 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" + } +] diff --git a/database/data.ts b/database/data.ts index 284ce981f..cbc1de456 100644 --- a/database/data.ts +++ b/database/data.ts @@ -134,9 +134,17 @@ 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: '/coursera', resources: DB.coursera }], + }, { category: 'resources', subcategory: [ diff --git a/database/index.ts b/database/index.ts index 8f07dfcc6..a36f4e615 100644 --- a/database/index.ts +++ b/database/index.ts @@ -36,6 +36,8 @@ export { default as cpp } from './languages/cpp.json' export {default as dart} from './languages/dart.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' 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',