From 6178535f2f99fdce9a6e42b76c2742e98b6dd671 Mon Sep 17 00:00:00 2001 From: NotJohnnyTamale <81783950+ABUCKY0@users.noreply.github.com> Date: Fri, 22 Sep 2023 16:04:09 +0000 Subject: [PATCH] Move Schedules around and add PSAT --- src/config.js | 10 ++--- src/schedules/{ => old}/SAT.js | 0 src/schedules/{ => old}/emptyschedule.js | 0 src/schedules/{ => old}/eoc.js | 0 src/schedules/{ => old}/finalsTwoFinals.js | 0 src/schedules/{ => old}/finalsWeekOnlyOne.js | 0 src/schedules/{ => old}/unknown.js | 0 src/schedules/psat.js | 45 ++++++++++++++++++++ 8 files changed, 50 insertions(+), 5 deletions(-) rename src/schedules/{ => old}/SAT.js (100%) rename src/schedules/{ => old}/emptyschedule.js (100%) rename src/schedules/{ => old}/eoc.js (100%) rename src/schedules/{ => old}/finalsTwoFinals.js (100%) rename src/schedules/{ => old}/finalsWeekOnlyOne.js (100%) rename src/schedules/{ => old}/unknown.js (100%) create mode 100644 src/schedules/psat.js diff --git a/src/config.js b/src/config.js index 57da247..db9ab74 100644 --- a/src/config.js +++ b/src/config.js @@ -1,11 +1,11 @@ import normal from "./schedules/normal.js"; import peprally from "./schedules/peprally.js"; import pack from "./schedules/extended2nd.js"; -import finals from "./schedules/finalsTwoFinals.js"; -import oneFinals from "./schedules/finalsWeekOnlyOne.js"; -import unknown from "./schedules/unknown.js"; -import SAT from "./schedules/SAT.js"; -import EOC from "./schedules/eoc.js"; +//import finals from "./schedules/finalsTwoFinals.js"; +//import oneFinals from "./schedules/finalsWeekOnlyOne.js"; +//import unknown from "./schedules/unknown.js"; +//import SAT from "./schedules/SAT.js"; +//import EOC from "./schedules/eoc.js"; const config = { schedule: { //default schedule - schedule used most often. User will be diff --git a/src/schedules/SAT.js b/src/schedules/old/SAT.js similarity index 100% rename from src/schedules/SAT.js rename to src/schedules/old/SAT.js diff --git a/src/schedules/emptyschedule.js b/src/schedules/old/emptyschedule.js similarity index 100% rename from src/schedules/emptyschedule.js rename to src/schedules/old/emptyschedule.js diff --git a/src/schedules/eoc.js b/src/schedules/old/eoc.js similarity index 100% rename from src/schedules/eoc.js rename to src/schedules/old/eoc.js diff --git a/src/schedules/finalsTwoFinals.js b/src/schedules/old/finalsTwoFinals.js similarity index 100% rename from src/schedules/finalsTwoFinals.js rename to src/schedules/old/finalsTwoFinals.js diff --git a/src/schedules/finalsWeekOnlyOne.js b/src/schedules/old/finalsWeekOnlyOne.js similarity index 100% rename from src/schedules/finalsWeekOnlyOne.js rename to src/schedules/old/finalsWeekOnlyOne.js diff --git a/src/schedules/unknown.js b/src/schedules/old/unknown.js similarity index 100% rename from src/schedules/unknown.js rename to src/schedules/old/unknown.js diff --git a/src/schedules/psat.js b/src/schedules/psat.js new file mode 100644 index 0000000..662692d --- /dev/null +++ b/src/schedules/psat.js @@ -0,0 +1,45 @@ +export default { + title: "Normal", + version: "2.1", + lunches: [ + {id: "A", name: "A Lunch"}, + {id: "B", name: "B Lunch"}, + {id: "C", name: "C Lunch"}, + {id: "D", name: "D Lunch"} + ], + getTimes: function(l) { + const lunches = { + A: [ + { name: "Lunch", time: ["11:00", "11:30"] }, + { name: "4th Period", time: ["11:36", "12:06"] }, + { name: "5th Period", time: ["12:12", "13:18"] } + ], + B: [ + { name: "4th Period", time: ["11:06", "11:36"] }, + { name: "Lunch", time: ["11:36", "12::06"] }, + { name: "5th Period", time: ["12:12", "13:18"] } + ], + C: [ + { name: "4th Period", time: ["11:06", "11:36"] }, + { name: "5th Period (Part 1)", time: ["11:42", "12:12"] }, + { name: "Lunch", time: ["12:12", "12:42"] }, + { name: "5th Period (Part 2)", time: ["12:48", "13:18"]} + ], + D: [ + { name: "4th Period", time: ["11:06", "11:36"] }, + { name: "5th Period", time: ["11:42", "12:48"] }, + { name: "Lunch", time: ["12:48", "13:18"] } + ] + }; + + return [ + { name: "1st Period", time: ["07:15", "08:26"] }, + { name: "2nd Period", time: ["08:32", "09:43"] }, + { name: "3rd Period", time: ["09:49", "11:00"] }, + ...lunches[l], + { name: "6th Period", time: ["13:24", "14:00"] }, + { name: "7th Period", time: ["14:06", "14:40"] } + ]; + } + }; + \ No newline at end of file