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

Adding support for sub languages on the "backend" #158

Merged
merged 5 commits into from
Jan 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
70 changes: 42 additions & 28 deletions public/consolidated/_index.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,72 @@
[
{
"lang": "C",
"icon": "/icons/c.svg"
"name": "C",
"icon": "/icons/c.svg",
"subLanguages": []
},
{
"lang": "CPP",
"icon": "/icons/cpp.svg"
"name": "CPP",
"icon": "/icons/cpp.svg",
"subLanguages": []
},
{
"lang": "CSHARP",
"icon": "/icons/csharp.svg"
"name": "CSHARP",
"icon": "/icons/csharp.svg",
"subLanguages": []
},
{
"lang": "CSS",
"icon": "/icons/css.svg"
"name": "CSS",
"icon": "/icons/css.svg",
"subLanguages": []
},
{
"lang": "HASKELL",
"icon": "/icons/haskell.svg"
"name": "HASKELL",
"icon": "/icons/haskell.svg",
"subLanguages": []
},
{
"lang": "HTML",
"icon": "/icons/html.svg"
"name": "HTML",
"icon": "/icons/html.svg",
"subLanguages": []
},
{
"lang": "JAVA",
"icon": "/icons/java.svg"
"name": "JAVA",
"icon": "/icons/java.svg",
"subLanguages": []
},
{
"lang": "JAVASCRIPT",
"icon": "/icons/javascript.svg"
"name": "JAVASCRIPT",
"icon": "/icons/javascript.svg",
"subLanguages": []
},
{
"lang": "PYTHON",
"icon": "/icons/python.svg"
"name": "PYTHON",
"icon": "/icons/python.svg",
"subLanguages": []
},
{
"lang": "REGEX",
"icon": "/icons/regex.svg"
"name": "REGEX",
"icon": "/icons/regex.svg",
"subLanguages": []
},
{
"lang": "RUBY",
"icon": "/icons/ruby.svg"
"name": "RUBY",
"icon": "/icons/ruby.svg",
"subLanguages": []
},
{
"lang": "RUST",
"icon": "/icons/rust.svg"
"name": "RUST",
"icon": "/icons/rust.svg",
"subLanguages": []
},
{
"lang": "SCSS",
"icon": "/icons/scss.svg"
"name": "SCSS",
"icon": "/icons/scss.svg",
"subLanguages": []
},
{
"lang": "TYPESCRIPT",
"icon": "/icons/typescript.svg"
"name": "TYPESCRIPT",
"icon": "/icons/typescript.svg",
"subLanguages": []
}
]
4 changes: 2 additions & 2 deletions public/consolidated/c.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"categoryName": "Basics",
"name": "Basics",
"snippets": [
{
"title": "Hello, World!",
Expand All @@ -16,7 +16,7 @@
]
},
{
"categoryName": "Mathematical Functions",
"name": "Mathematical Functions",
"snippets": [
{
"title": "Factorial Function",
Expand Down
10 changes: 5 additions & 5 deletions public/consolidated/cpp.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"categoryName": "Basics",
"name": "Basics",
"snippets": [
{
"title": "Hello, World!",
Expand All @@ -16,7 +16,7 @@
]
},
{
"categoryName": "Data Structure Conversion",
"name": "Data Structure Conversion",
"snippets": [
{
"title": "Vector to Queue",
Expand All @@ -33,7 +33,7 @@
]
},
{
"categoryName": "Debuging",
"name": "Debugging",
"snippets": [
{
"title": "Vector Print",
Expand All @@ -50,7 +50,7 @@
]
},
{
"categoryName": "Math And Numbers",
"name": "Math And Numbers",
"snippets": [
{
"title": "Check Prime Number",
Expand All @@ -66,7 +66,7 @@
]
},
{
"categoryName": "String Manipulation",
"name": "String Manipulation",
"snippets": [
{
"title": "Reverse String",
Expand Down
10 changes: 5 additions & 5 deletions public/consolidated/csharp.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"categoryName": "Basics",
"name": "Basics",
"snippets": [
{
"title": "Hello, World!",
Expand All @@ -16,7 +16,7 @@
]
},
{
"categoryName": "Guid Utilities",
"name": "Guid Utilities",
"snippets": [
{
"title": "Generate GUID",
Expand All @@ -43,7 +43,7 @@
]
},
{
"categoryName": "Jwt Utilities",
"name": "Jwt Utilities",
"snippets": [
{
"title": "Decode JWT",
Expand All @@ -70,7 +70,7 @@
]
},
{
"categoryName": "List Utilities",
"name": "List Utilities",
"snippets": [
{
"title": "Swap items at index",
Expand All @@ -86,7 +86,7 @@
]
},
{
"categoryName": "String Utilities",
"name": "String Utilities",
"snippets": [
{
"title": "Capitalize first letter",
Expand Down
8 changes: 4 additions & 4 deletions public/consolidated/css.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"categoryName": "Buttons",
"name": "Buttons",
"snippets": [
{
"title": "3D Button Effect",
Expand Down Expand Up @@ -42,7 +42,7 @@
]
},
{
"categoryName": "Effects",
"name": "Effects",
"snippets": [
{
"title": "Blur Background",
Expand Down Expand Up @@ -83,7 +83,7 @@
]
},
{
"categoryName": "Layouts",
"name": "Layouts",
"snippets": [
{
"title": "CSS Reset",
Expand Down Expand Up @@ -146,7 +146,7 @@
]
},
{
"categoryName": "Typography",
"name": "Typography",
"snippets": [
{
"title": "Letter Spacing",
Expand Down
10 changes: 5 additions & 5 deletions public/consolidated/haskell.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"categoryName": "Array Manipulation",
"name": "Array Manipulation",
"snippets": [
{
"title": "Binary Search",
Expand Down Expand Up @@ -41,7 +41,7 @@
]
},
{
"categoryName": "Basics",
"name": "Basics",
"snippets": [
{
"title": "Hello, World!",
Expand All @@ -58,7 +58,7 @@
]
},
{
"categoryName": "File Handling",
"name": "File Handling",
"snippets": [
{
"title": "Find Files in Directory by Type",
Expand Down Expand Up @@ -89,7 +89,7 @@
]
},
{
"categoryName": "Monads",
"name": "Monads",
"snippets": [
{
"title": "Either Monad for Error Handling",
Expand Down Expand Up @@ -141,7 +141,7 @@
]
},
{
"categoryName": "String Manipulation",
"name": "String Manipulation",
"snippets": [
{
"title": "CamelCase to snake_case",
Expand Down
2 changes: 1 addition & 1 deletion public/consolidated/html.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"categoryName": "Basic Layouts",
"name": "Basic Layouts",
"snippets": [
{
"title": "Grid Layout with Navigation",
Expand Down
2 changes: 1 addition & 1 deletion public/consolidated/java.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"categoryName": "Basics",
"name": "Basics",
"snippets": [
{
"title": "Hello-World",
Expand Down
22 changes: 11 additions & 11 deletions public/consolidated/javascript.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"categoryName": "Array Manipulation",
"name": "Array Manipulation",
"snippets": [
{
"title": "Partition Array",
Expand Down Expand Up @@ -62,7 +62,7 @@
]
},
{
"categoryName": "Basics",
"name": "Basics",
"snippets": [
{
"title": "Hello, World!",
Expand All @@ -78,7 +78,7 @@
]
},
{
"categoryName": "Color Manipulation",
"name": "Color Manipulation",
"snippets": [
{
"title": "RGB to Hex Color",
Expand All @@ -94,7 +94,7 @@
]
},
{
"categoryName": "Date And Time",
"name": "Date And Time",
"snippets": [
{
"title": "Check Leap Year",
Expand Down Expand Up @@ -191,7 +191,7 @@
]
},
{
"categoryName": "Dom Manipulation",
"name": "Dom Manipulation",
"snippets": [
{
"title": "Change Element Style",
Expand All @@ -218,7 +218,7 @@
]
},
{
"categoryName": "Function Utilities",
"name": "Function Utilities",
"snippets": [
{
"title": "Compose Functions",
Expand Down Expand Up @@ -327,7 +327,7 @@
]
},
{
"categoryName": "Local Storage",
"name": "Local Storage",
"snippets": [
{
"title": "Add Item to localStorage",
Expand Down Expand Up @@ -365,7 +365,7 @@
]
},
{
"categoryName": "Mathematical Functions",
"name": "Mathematical Functions",
"snippets": [
{
"title": "Greatest Common Divisor",
Expand All @@ -381,7 +381,7 @@
]
},
{
"categoryName": "Number Formatting",
"name": "Number Formatting",
"snippets": [
{
"title": "Convert Number to Currency",
Expand Down Expand Up @@ -463,7 +463,7 @@
]
},
{
"categoryName": "Object Manipulation",
"name": "Object Manipulation",
"snippets": [
{
"title": "Check if Object is Empty",
Expand Down Expand Up @@ -628,7 +628,7 @@
]
},
{
"categoryName": "String Manipulation",
"name": "String Manipulation",
"snippets": [
{
"title": "Capitalize String",
Expand Down
Loading
Loading