Skip to content

Commit

Permalink
Refactor: restructure projects data (Opentek-Org#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
kailashchoudhary11 authored Jun 8, 2023
1 parent 763cdc8 commit 8537169
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 103 deletions.
167 changes: 78 additions & 89 deletions data/projects.json
Original file line number Diff line number Diff line change
@@ -1,189 +1,178 @@
[
{
"domainId": "0",
"Data": [
{
{
"langId": "0",
"langTitle": ["HTML", "SCSS", "JS"],
"langName": "Doc2Pen",
"langDesc": "Doc2Pen is the 1 stop shop for getting all your handmade assignments ready for submission digitally. <br/>Check it out and contribute!",
"langurl": "https://github.com/smaranjitghose/doc2pen",
"langAdmin": "Smaranjit Ghose"
},
{
"langAdmin": "Smaranjit Ghose",
"domainIds": ["0"]
},
{
"langId": "1",
"langTitle": ["HTML", "CSS", "JS"],
"langName": "Awesome Portfolio Website",
"langDesc": "A community maintained open source project aimed at making personal portfolio for researchers, developers and analysts simple, fast and less cumbersome.",
"langurl": "https://github.com/smaranjitghose/awesome-portfolio-websites",
"langAdmin": "Smaranjit Ghose"
},
{
"langAdmin": "Smaranjit Ghose",
"domainIds": ["0"]
},
{
"langId": "2",
"langTitle": ["JavaScript"],
"langName": "Manthan",
"langDesc": "We provide an online testing platform that can be used to conduct tests that are wrapped with all the necessary precautions to reduce the chances of cheating.",
"langurl": "https://github.com/Manthan933/Manthan",
"langAdmin": "Manthan"
},
{
"langAdmin": "Manthan",
"domainIds": ["0"]
},
{
"langId": "3",
"langTitle": ["JavaScript"],
"langName": "2-DEGREE",
"langDesc": "Project 2° has simulated to design the most optimal scenario to restrain the rise in global temperature due to global warming.",
"langurl": "https://github.com/The-CODE-Plus-Plus-Community/2-Degree-HackACode",
"langAdmin": "The-CODE-Plus-Plus-Community"
},
{
"langAdmin": "The-CODE-Plus-Plus-Community",
"domainIds": ["0"]
},
{
"langId": "4",
"langTitle": ["HTML", "CSS", "JS"],
"langName": "Aec-Library-Website",
"langDesc": "This is a College Library Website in which you can keep a record of all the books you have issued.",
"langurl": "https://github.com/SauravMukherjee44/Aec-Library-Website",
"langAdmin": "Saurav Mukherjee"
},
{
"langAdmin": "Saurav Mukherjee",
"domainIds": ["0"]
},
{
"langId": "5",
"langTitle": [
"NodeJS, MongoDB, REST API, TypeScript, JavaScript, CI/CD, Docker, ReactJS"
"NodeJS, MongoDB, REST API, TypeScript, JavaScript, CI/CD, Docker, ReactJS"
],
"langTitle": ["HTML, CSS, Javascript, NodeJS, PostgreSQL/MySQL"],
"langName": "DevTernShip",
"langDesc": "An Internship Onboarding platform with an innovative learning management system and intuitive performance tools.",
"langurl": "https://github.com/praveenscience/Internship-LMS-FrontEnd",
"langAdmin": "Anushka Jain"
},
{
"langAdmin": "Anushka Jain",
"domainIds": ["0"]
},
{
"langId": "6",
"langTitle": [
"NodeJS, MongoDB, REST API, TypeScript, JavaScript, CI/CD, Docker, ReactJS"
"NodeJS, MongoDB, REST API, TypeScript, JavaScript, CI/CD, Docker, ReactJS"
],
"langName": "REST-fetch",
"langDesc": "A community-owned REST API service for testers and developers.",
"langurl": "https://github.com/adityabisoi/Placeholder-Master",
"langAdmin": "Aditya Bisoi"
},
{
"langAdmin": "Aditya Bisoi",
"domainIds": ["0"]
},
{
"langId": "7",
"langTitle": ["MERN, AWS, React, Node, Express, MongoDB"],
"langName": "HITK Community Website",
"langDesc": "This project aims to build the official site for the community page so that any student can use the resources shared by HITK Community.",
"langurl": "https://github.com/HITK-TECH-Community/Community-Website",
"langAdmin": "HITK TECH Community"
},
{
"langAdmin": "HITK TECH Community",
"domainIds": ["0"]
},
{
"langId": "8",
"langTitle": ["React JS, HTML, CSS, JavaScript"],
"langName": "DevTernShip",
"langDesc": "An Internship Onboarding platform with an innovative learning management system and intuitive performance tools.",
"langurl": "https://github.com/praveenscience/Internship-LMS-FrontEnd",
"langAdmin": "Praveen Kumar Purushothaman"
},
{
"langAdmin": "Praveen Kumar Purushothaman",
"domainIds": ["0"]
},
{
"langId": "9",
"langTitle": ["HTML, Tailwind CSS"],
"langName": "Seamless UI",
"langDesc": "The next gen UI made with simple HTML and Tailwind CSS. It's compatible with simple HTML, CSS static website or a React, Vue, Angular or Next.js Complex app.",
"langurl": "https://github.com/Clueless-Community/seamless-ui",
"langAdmin": "Clueless Community"
}
]
},
{
"domainId": "1",
"Data": [
{
"langAdmin": "Clueless Community",
"domainIds": ["0"]
},
{
"langId": "0",
"langTitle": ["Python"],
"langName": "Jina",
"langDesc": "Cloud-native neural search framework for 𝙖𝙣𝙮 kind of Data",
"langurl": "https://github.com/jina-ai/jina",
"langAdmin": "Jina AI"
},
{
"langAdmin": "Jina AI",
"domainIds": ["1"]
},
{
"langId": "1",
"langTitle": ["Jupyter Notebook"],
"langName": "FACE-X",
"langDesc": "Demonstration of different algorithms and operations on faces.",
"langurl": "https://github.com/akshitagupta15june/Face-X",
"langAdmin": "AKSHITA GUPTA"
},
{
"langAdmin": "AKSHITA GUPTA",
"domainIds": ["1"]
},
{
"langId": "2",
"langTitle": ["Python", "Flask", "Numpy"],
"langName": "Breast-Cancer-Predictor",
"langDesc": "A Flask based web application to predict breast cancer.",
"langurl": "https://github.com/srimani-programmer/Breast-Cancer-Predictor",
"langAdmin": "Srimani"
},
{
"langAdmin": "Srimani",
"domainIds": ["1"]
},
{
"langId": "3",
"langTitle": ["Flask, Bootstrap, Python, JavaScript, jQuery"],
"langName": "Certificate Generation and Verification System",
"langDesc": "This project aims in developing a computerized system to maintain and generate the certificate.",
"langurl": "https://github.com/vigneshshettyin/Flask-Generate-Certificate",
"langAdmin": "Vignesh Shetty"
}
]
},
{
"domainId": "2",
"Data": [
{
"langAdmin": "Vignesh Shetty",
"domainIds": ["1"]
},
{
"langId": "0",
"langTitle": ["Jupyter Notebook"],
"langName": "FACE-X",
"langDesc": "Demonstration of different algorithms and operations on faces.",
"langurl": "https://github.com/akshitagupta15june/Face-X",
"langAdmin": "AKSHITA GUPTA"
}
]
},
{
"domainId": "3",
"Data": [
{
"langAdmin": "AKSHITA GUPTA",
"domainIds": ["2"]
},
{
"langId": "0",
"langTitle": ["DS", "Algorithms"],
"langName": "NeoAlgo",
"langDesc": "Bringing all Data Structures and Algorithms under one Roof ⚡",
"langurl": "https://github.com/TesseractCoding/NeoAlgo",
"langAdmin": "Tesseract Coding"
}
]
},
{
"domainId": "4",
"Data": [
{
"langAdmin": "Tesseract Coding",
"domainIds": ["3"]
},
{
"langId": "0",
"langTitle": ["JavaScript"],
"langName": "Manthan",
"langDesc": "We provide an online testing platform that can be used to conduct tests that are wrapped with all the necessary precautions to reduce the chances of cheating.",
"langurl": "https://github.com/Manthan933/Manthan",
"langAdmin": "Manthan"
}
]
},
{
"domainId": "5",
"Data": [
{
"langAdmin": "Manthan",
"domainIds": ["4"]
},
{
"langId": "0",
"langTitle": ["Dart"],
"langName": "Simulate",
"langDesc": "A collection of simulations and visualizations for all sorts of stuff (Majorly Algorithmic or Mathematical)",
"langurl": "https://github.com/cod-ed/simulate",
"langAdmin": "cod-ed"
},
{
"langAdmin": "cod-ed",
"domainIds": ["5"]
},
{
"langId": "1",
"langTitle": ["Dart"],
"langName": "Spectrum UI",
"langDesc": "User-friendly Flutter UI library that offers a variety of beautifully designed widgets and components.",
"langurl": "https://github.com/Clueless-Community/Spectrum-UI",
"langAdmin": "Clueless Community"
}
]
}
"langAdmin": "Clueless Community",
"domainIds": ["5s"]
}
]
24 changes: 10 additions & 14 deletions js/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,37 +22,33 @@ fetch("../data/projects.json")
$(function () {
$("#type").change(function () {
valu = $(this).val();
console.log(valu);
let index = valu;
$("#project").empty();
$("#error").empty();
console.log(data[index].Data.length);
if (valu < data.length && data[index].Data.length > 0) {
for (let i = 0; i < data[index].Data.length; i++) {
if (valu < data.length) {
var html = "";
for (let i = 0; i < data.length; i++) {
if (data[i].domainIds.includes(index))
try {
console.log(data);
var html = "";
for (i = 0; i < data[index].Data.length; i++) {
html += `
<li class="cards_item">
<div class="card">
<div class="card_content">
<p class="card_title">${data[index].Data[i].langName}</p>
<span class="cardtitle">Project Admin-${data[index].Data[i].langAdmin}</span>
<h6 class="card_title">Tech Stack- ${data[index].Data[i].langTitle}</h6>
<p class="card_text">${data[index].Data[i].langDesc}</p>
<button class="btn card_btn" onclick="window.location.href='${data[index].Data[i].langurl}'"target="blank">Repo Url</button>
<p class="card_title">${data[i].langName}</p>
<span class="cardtitle">Project Admin-${data[i].langAdmin}</span>
<h6 class="card_title">Tech Stack- ${data[i].langTitle}</h6>
<p class="card_text">${data[i].langDesc}</p>
<button class="btn card_btn" onclick="window.location.href='${data[i].langurl}'"target="blank">Repo Url</button>
</div>
</div>
</li>
`;
}
$("#project").append(html);
} catch (error) {
console.log(error);
}
}
$("#project").append(html);
} else {
var htmlz = `<div class= "container unique-style3 mb-5 pb-5">`;
htmlz += `<p class="text-light text-center text-no-data">No data found.Please select another month.</p>`;
Expand Down

0 comments on commit 8537169

Please sign in to comment.