Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOT #1366

Merged
merged 6 commits into from
Jul 27, 2023
Merged

IOT #1366

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions components/Searchbar/Searchbar.tsx
Original file line number Diff line number Diff line change
@@ -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<SearchbarProps> = ({ setSearch }) => {
Expand Down
9 changes: 9 additions & 0 deletions database/IOT/coursera.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
18 changes: 15 additions & 3 deletions database/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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 }],
rupali-codes marked this conversation as resolved.
Show resolved Hide resolved
},
{
category: 'resources',
Expand Down
3 changes: 2 additions & 1 deletion database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'

6 changes: 6 additions & 0 deletions types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export type Category =
| 'backend'
| 'languages'
| 'artificial intelligence'
| 'internet of things'
| 'machine learning'
| 'open source'
| 'resources'
Expand Down Expand Up @@ -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',
Expand Down