Skip to content
Open
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
Binary file added .swp
Binary file not shown.
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"spellright.language": ["en"],
"spellright.documentTypes": ["markdown", "latex", "plaintext"]
}
7,724 changes: 7,724 additions & 0 deletions data/Courses.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions data/constants.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
const languages = ["french", "english", "german", "spanish"];
module.exports = { languages };
module.exports = { colorCode };
const languages = ["French", "English", "German", "Spanish"];
22 changes: 22 additions & 0 deletions data/expConst.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
export const languages = [
{ label: "French", value: "FMMC" },
{ label: "German", value: "GRMN" },
{ label: "Spanish", value: "SPAN" },
];

//function for changing and filtering the JSON of all courses
function renameKey(obj, oldKey, newKey) {
// obj["value"] = "test";
obj[newKey] = obj[oldKey];
delete obj[oldKey];
delete obj["courseDescription"];
}

let data = require("./Courses.json");
let tempCoursesVar = [];

const arr = data;
arr.forEach((obj) => renameKey(obj, "courseName", "label"));
const updatedJson = JSON.stringify(arr);

export const courses = updatedJson;
Binary file modified dev.sqlite3
Binary file not shown.
Empty file added languages
Empty file.
Loading