Skip to content

Commit 257194e

Browse files
Dinoxhkexanajkluge
authored
Site layout (#10)
* sidebar component add * tailwind workin, beggining page building * structure * fixed app * Main design layout * initial sidebar * courseView init * searchbar done, firebase auth done * Create .DS_Store * design fixes. started working on courseview * Added logic for listing courses * work on the sidebar * Imports missing * More dependencies * Make model observable... * some changes * New Data * changes to listview * Lazy Loading * Fix for presenters --------- Co-authored-by: kexana <deotsts@gmail.com> Co-authored-by: Justus Kluge <justus.kluge@aikq.de>
1 parent 8bf806e commit 257194e

35 files changed

+3084
-456
lines changed

.DS_Store

6 KB
Binary file not shown.

my-app/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ yarn-error.log*
77
pnpm-debug.log*
88
lerna-debug.log*
99
/node_modules
10+
.firebase
1011

1112
node_modules
1213
dist
@@ -23,3 +24,4 @@ dist-ssr
2324
*.njsproj
2425
*.sln
2526
*.sw?
27+

my-app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Project Structure Draft:
1414
│   ├── index.jsx // the react router - routes between pages, all pages are inserted here
1515
│   ├── model.js // the model - handles prog. logic, that is either global or account specific
1616
│   ├── pages // pages combine the presenters to a webpage. mby obsolete for 1 page project
17-
│   │   └── HomeRoot.jsx // The future homepage?
17+
│   │   └── App.jsx // The future homepage?
1818
│   ├── presenters // Presenters link views and the model.
1919
│   | Hooks to modify the model & component state is defined here
2020
│   │   └── HandleSearchPresenter.jsx // An example presenter

my-app/firebase.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ export async function saveJSONCoursesToFirebase(model, data){
7878
}
7979
const entries = Object.entries(data);
8080
entries.forEach(entry => {
81-
const course = {code : entry[1].code ,
81+
const course = {
82+
code : entry[1].code ,
8283
name: entry[1]?.name ?? "",
8384
location: entry[1]?.location ?? "",
8485
department: entry[1]?.department ?? "",

my-app/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
<head>
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<link href="/src/styles.css" rel="stylesheet">
67
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + React</title>
8+
<title>Find my course</title>
89
</head>
910
<div id="root"></div>
1011
<script type="module" src="/src/index.jsx"></script>

my-app/package-lock.json

Lines changed: 184 additions & 0 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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@
1212
"dependencies": {
1313
"@tailwindcss/vite": "^4.0.17",
1414
"firebase": "^11.5.0",
15+
"mobx": "^6.13.7",
16+
"mobx-react-lite": "^4.1.0",
1517
"react": "^19.0.0",
1618
"react-dom": "^19.0.0",
19+
"react-router-dom": "^7.4.0",
1720
"tailwindcss": "^4.0.17"
1821
},
1922
"devDependencies": {
2023
"@eslint/js": "^9.21.0",
2124
"@types/react": "^19.0.10",
2225
"@types/react-dom": "^19.0.4",
2326
"@vitejs/plugin-react": "^4.3.4",
27+
"autoprefixer": "^10.4.21",
2428
"eslint": "^9.21.0",
2529
"eslint-plugin-react-hooks": "^5.1.0",
2630
"eslint-plugin-react-refresh": "^0.4.19",

my-app/postcss.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default {
2+
plugins: {
3+
autoprefixer: {},
4+
},
5+
}
80.7 KB
Loading

0 commit comments

Comments
 (0)