Skip to content

Commit

Permalink
chore: added lang sub-categories (rupali-codes#377)
Browse files Browse the repository at this point in the history
* added lang sub-categories

* update : new category created

* Update database/languages/javascript.json

Co-authored-by: Christine Belzie <105683440+CBID2@users.noreply.github.com>

* Update database/languages/javascript.json

Co-authored-by: Christine Belzie <105683440+CBID2@users.noreply.github.com>

---------

Co-authored-by: Christine Belzie <105683440+CBID2@users.noreply.github.com>
  • Loading branch information
ujjawaltyagii and CBID2 authored Mar 27, 2023
1 parent 4520d15 commit 19c1fc2
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 3 deletions.
8 changes: 8 additions & 0 deletions database/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ export const sidebarData: ISidebar[] = [
{ name: "hosting", url: "/hosting" },
],
},
{
category: "languages",
subcategory: [
{ name: "JavaScript", url: "/javascript"},
{ name: "Python", url: "/python"},
{ name: "Go", url: "/golang"},
],
},
{
category: "Other",
subcategory: [
Expand Down
6 changes: 5 additions & 1 deletion database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ export { default as web3metaverse } from "./youtube/web3-metaverse.json";
export { default as youtubTesting } from "./youtube/testing.json";
// other
export { default as github } from "./Other/Github.json";
export { default as devtools } from "./Other/devtools.json";
export { default as devtools } from "./Other/devtools.json";
//languages
export { default as javascript } from "./languages/javascript.json";
export { default as python } from "./languages/python.json";
export { default as golang } from "./languages/golang.json";
3 changes: 3 additions & 0 deletions database/languages/golang.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[

]
16 changes: 16 additions & 0 deletions database/languages/javascript.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"name": "JavaScript Info",
"description": "It is a modern JavaScript tutorial that provides detailed explanation, examples, and tasks.",
"url": "https://javascript.info/",
"category": "Other",
"subcategory": "javascript"
},
{
"name": "JavaScript-Tutorial",
"description": "It helps you quickly and effectively learn JavaScript.",
"url": "https://www.javascripttutorial.net/",
"category": "Other",
"subcategory": "javascript"
}
]
3 changes: 3 additions & 0 deletions database/languages/python.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[

]
7 changes: 5 additions & 2 deletions types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface IData {
language?: string;
}

export type Category = "frontend" | "backend" | "youtube" | "resources" | "Other";
export type Category = "frontend" | "backend" | "youtube" | "resources" | "Other" | "languages";

export type SubCategory =
| "images"
Expand Down Expand Up @@ -58,7 +58,10 @@ export type SubCategory =
| "hosting"
| "web3-metaverse"
| "Github"
| "devtools";
| "devtools"
| "javascript"
| "python"
| "golang";
export type SubCategories = {
name: string;
url: string;
Expand Down

0 comments on commit 19c1fc2

Please sign in to comment.