Skip to content

Commit 637c00f

Browse files
Sailet03kexanaDinoxhLSKpr
authored
adding prerequise tree (#33)
* sidebar component add * tailwind workin, beggining page building * structure * fixed app * Main design layout * initial sidebar * courseView init * the course page initial tests * Make it run on my comuter * Tree without database integration * fixes * npm update * add to page --------- Co-authored-by: kexana <deotsts@gmail.com> Co-authored-by: Sami Al Saati <sami.alsaati@hotmail.com> Co-authored-by: Kacper Lisik <lisik@kth.se>
1 parent 8735f7b commit 637c00f

8 files changed

Lines changed: 370 additions & 5 deletions

File tree

my-app/package-lock.json

Lines changed: 263 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

my-app/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@tailwindcss/vite": "^4.0.17",
14+
"autoprefixer": "^10.4.21",
1415
"firebase": "^11.5.0",
1516
"ldrs": "^1.1.6",
1617
"mobx": "^6.13.7",
@@ -19,6 +20,7 @@
1920
"react": "^19.0.0",
2021
"react-dom": "^19.0.0",
2122
"react-router-dom": "^7.4.0",
23+
"reactflow": "^11.11.4",
2224
"tailwindcss": "^4.0.17"
2325
},
2426
"devDependencies": {

my-app/src/model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ export const model = {
7777
);
7878
this.setCurrentSearch(searchResults);
7979
}
80-
};
80+
};

my-app/src/pages/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ function App() {
2727
);
2828
}
2929

30-
export default App;
30+
export default App;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react';
2+
3+
function PrerequisiteTree(props) {
4+
return (
5+
<div class ="flex ">
6+
7+
</div>
8+
);
9+
}
10+
11+
export default PrerequisiteTree;

my-app/src/views/CourseView.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import PrerequisiteTree from "./PrerequisiteTree.jsx";
23
// import {model} from '/src/model.js';
34

45
export default function CourseView({ course }) {
@@ -48,6 +49,12 @@ export default function CourseView({ course }) {
4849
<p className="text-lg text-slate-700 leading-7">Here would be some reviews of the course...</p>
4950
</div>
5051

52+
{/* Prerequisite Graph Tree Section */}
53+
<div style={{ display: 'flex', flexDirection: 'column', marginBottom: '20px' }}>
54+
<h3 style={{ fontFamily: 'Courier New, monospace', fontSize: '24px' }}>Prerequisite Graph Tree</h3>
55+
{/* Placeholder for graph tree */}
56+
<PrerequisiteTree />
57+
</div>
5158
</div>
5259
);
5360
}

my-app/src/views/ListView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ function ListView(props) {
9898
);
9999
}
100100

101-
export default ListView;
101+
export default ListView;

0 commit comments

Comments
 (0)