This repository has been archived by the owner on Feb 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
60 changed files
with
1,873 additions
and
832 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,9 @@ | |
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@types/d3": "^7.4.3", | ||
"@types/uuid": "^10.0.0", | ||
"d3": "^7.9.0", | ||
"dotenv": "^16.4.5" | ||
"dotenv": "^16.4.5", | ||
"uuid": "^10.0.0" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
prisma/migrations/20240710131522_add_lectures/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
Warnings: | ||
- A unique constraint covering the columns `[code]` on the table `Course` will be added. If there are existing duplicate values, this will fail. | ||
*/ | ||
-- DropForeignKey | ||
ALTER TABLE "Subject" DROP CONSTRAINT "Subject_domainId_fkey"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Domain" ALTER COLUMN "name" DROP NOT NULL, | ||
ALTER COLUMN "style" DROP NOT NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Subject" ALTER COLUMN "name" DROP NOT NULL, | ||
ALTER COLUMN "style" DROP NOT NULL, | ||
ALTER COLUMN "domainId" DROP NOT NULL; | ||
|
||
-- CreateTable | ||
CREATE TABLE "Lecture" ( | ||
"id" SERIAL NOT NULL, | ||
"graphId" INTEGER NOT NULL, | ||
"name" TEXT, | ||
|
||
CONSTRAINT "Lecture_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "_LectureToSubject" ( | ||
"A" INTEGER NOT NULL, | ||
"B" INTEGER NOT NULL | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "_LectureToSubject_AB_unique" ON "_LectureToSubject"("A", "B"); | ||
|
||
-- CreateIndex | ||
CREATE INDEX "_LectureToSubject_B_index" ON "_LectureToSubject"("B"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "Course_code_key" ON "Course"("code"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Subject" ADD CONSTRAINT "Subject_domainId_fkey" FOREIGN KEY ("domainId") REFERENCES "Domain"("id") ON DELETE SET NULL ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Lecture" ADD CONSTRAINT "Lecture_graphId_fkey" FOREIGN KEY ("graphId") REFERENCES "Graph"("id") ON DELETE RESTRICT ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "_LectureToSubject" ADD CONSTRAINT "_LectureToSubject_A_fkey" FOREIGN KEY ("A") REFERENCES "Lecture"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "_LectureToSubject" ADD CONSTRAINT "_LectureToSubject_B_fkey" FOREIGN KEY ("B") REFERENCES "Subject"("id") ON DELETE CASCADE ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
|
||
<script lang="ts"> | ||
import infoIcon from '$assets/info-icon.svg' | ||
</script> | ||
|
||
<!-- Markdown --> | ||
|
||
|
||
<div class="infobox"> | ||
<div class="sidebar"> | ||
<img src={infoIcon} alt=""> | ||
</div> | ||
<div class="content"> | ||
<slot /> | ||
</div> | ||
</div> | ||
|
||
|
||
<!-- Styles --> | ||
|
||
|
||
<style lang="sass"> | ||
@use "$styles/variables.sass" as * | ||
@use "$styles/palette.sass" as * | ||
.infobox | ||
display: flex | ||
flex-flow: row nowrap | ||
border: 1px solid $purple | ||
border-radius: $border-radius | ||
background-color: rgba($purple, 0.15) | ||
.sidebar | ||
display: flex | ||
align-items: center | ||
padding: $input-icon-padding | ||
background-color: $purple | ||
img | ||
width: 1.5rem | ||
height: 1.5rem | ||
filter: $white-filter | ||
.content | ||
padding: $card-thin-padding | ||
color: $dark-purple | ||
</style> |
Oops, something went wrong.