Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
2b5f14c
Require Hello World in the document
acbart Jan 31, 2022
a7dee05
Rename text.Test.tsx to text.test.tsx
acbart Jan 31, 2022
3e381f3
Include the task info
acbart Jan 31, 2022
fee03d3
Merge branch 'task-first-branch' of https://github.com/UD-CISC275-S22…
acbart Jan 31, 2022
e6b1dab
Allow one or more instances of the Hello World text
acbart Feb 3, 2022
7a20734
Include json test command here
acbart Aug 24, 2024
7fe9ca3
Require Hello World in the document
acbart Jan 31, 2022
b8b8878
Include the task info
acbart Jan 31, 2022
fbdebde
Rename text.Test.tsx to text.test.tsx
acbart Jan 31, 2022
2f0146c
Allow one or more instances of the Hello World text
acbart Feb 3, 2022
a6acb43
Merge branch 'task-first-branch' of https://github.com/frontend-fun/t…
acbart Aug 24, 2024
83c4461
Basic functions tests and stubs
acbart Jan 30, 2022
a486530
Fix test organization
acbart Jan 30, 2022
9722564
Fix issue in fahrenheit conversion
acbart Jan 30, 2022
bd06d5d
Move around some of the functions
acbart Feb 3, 2022
4cd1900
Explain what the actual functions require you to do
acbart Feb 3, 2022
cf1d21a
Update formatting
acbart Aug 24, 2024
e11693a
Add in points
acbart Aug 24, 2024
7cc4e3f
First stab at array problems
acbart Feb 1, 2022
f253337
Add in the rest of the tests
acbart Feb 1, 2022
b8777b1
Fix question text
acbart Feb 1, 2022
f87771e
Update arrays.test.ts
acbart Feb 11, 2022
f0d316b
Add in points
acbart Aug 24, 2024
3660252
First stab at questions
acbart Feb 2, 2022
09d3d4f
Move Question interface to separate file
acbart Feb 6, 2022
9a24024
Create answer interface
acbart Feb 8, 2022
879fe17
First stab at nested tasks
acbart Feb 8, 2022
4d29d21
Document Question interface
acbart Feb 9, 2022
d71d9fc
Expand questions test data
acbart Feb 9, 2022
c955718
Add a little hint for a tough one
acbart Feb 9, 2022
c574699
Nested tests (phew)
acbart Feb 9, 2022
a368ad0
Forgot the task record!
acbart Feb 19, 2022
304184e
Fix typo in editOption test, and missing return type for editOption
acbart Mar 1, 2022
1b76b80
Fix formatting
acbart Aug 24, 2024
747931a
Added name to App
Feb 3, 2026
34ed974
Merge remote-tracking branch 'upstream/task-first-branch' into solved…
hilarezaei Feb 14, 2026
6e5c5d2
Add Hello World text for new test
hilarezaei Feb 14, 2026
1e30e72
Finished HTML CSS task
hilarezaei Feb 16, 2026
8ed6abb
Fix header to include semantic h1 for autograder
hilarezaei Feb 16, 2026
98ad3c2
Merge remote-tracking branch 'upstream/task-functions' into solved-fu…
hilarezaei Feb 23, 2026
654da67
Completed task-functions assignment
hilarezaei Feb 23, 2026
a466cb9
Merge remote-tracking branch 'upstream/task-arrays' into solved-arrays
hilarezaei Feb 23, 2026
3573257
Completed arrays task
hilarezaei Feb 23, 2026
7c17d49
Complete all functions in objects.ts
hilarezaei Mar 5, 2026
06337dd
Resolve merge conflict in objects.ts
hilarezaei Mar 5, 2026
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
Empty file added npm
Empty file.
123 changes: 57 additions & 66 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"build": "react-scripts build",
"test": "react-scripts test",
"test:cov": "react-scripts test --coverage --watchAll",
"test:json": "react-scripts test --json --watchAll=false --outputFile jest-output.json --coverage",
"eject": "react-scripts eject",
"lint": "eslint ./src --ext .tsx --ext .ts --max-warnings 0",
"eslint-output": "eslint-output ./src --ext .tsx --ext .ts --max-warnings 0",
Expand Down
5 changes: 5 additions & 0 deletions public/tasks/task-arrays.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Task - Arrays

Version: 0.0.1

Implement functions that work with arrays immutably.
5 changes: 5 additions & 0 deletions public/tasks/task-first-branch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Task - First Branch

Version: 0.0.1

Pass a short test to have certain text on the page.
5 changes: 5 additions & 0 deletions public/tasks/task-functions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Task - Functions

Version: 0.0.1

Implement a bunch of functions that work on primitives.
5 changes: 5 additions & 0 deletions public/tasks/task-nested.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Task - Nested

Version: 0.0.1

Implement functions that work with nested arrays and objects immutably.
5 changes: 5 additions & 0 deletions public/tasks/task-objects.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Task - Objects

Version: 0.0.1

Implement functions that work with objects immutably.
116 changes: 112 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,124 @@
import React from "react";
import "./App.css";
import { Button, Container, Row, Col } from "react-bootstrap";

function App(): React.JSX.Element {
return (
<div className="App">
<header className="App-header">
UD CISC275 with React Hooks and TypeScript
<div
style={{
textAlign: "center",
fontFamily: "Arial, sans-serif",
padding: "20px",
}}
>
{/* Header */}
<header
style={{
marginBottom: "20px",
}}
>
<h1
style={{
backgroundColor: "#f0a500",
color: "white",
fontSize: "2rem",
fontWeight: "bold",
padding: "20px",
borderRadius: "8px",
margin: 0,
}}
>
UD CISC275 with React Hooks and TypeScript
</h1>
</header>

{/* Paragraphs */}
<p>Hello World</p>
<p>Created by Zahra Rezaei</p>
<p>
Edit <code>src/App.tsx</code> and save. This page will
automatically reload.
</p>

{/* Placeholder Image */}
<img
src="https://via.placeholder.com/300"
alt="Placeholder"
style={{
maxWidth: "300px",
margin: "20px auto",
borderRadius: "8px",
}}
/>

{/* List */}
<ul
style={{
listStyleType: "disc",
paddingLeft: "40px",
textAlign: "left",
maxWidth: "400px",
margin: "20px auto",
}}
>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ul>

{/* Bootstrap Button */}
<Button
onClick={() => {
console.log("Hello World!");
}}
style={{
margin: "20px 0",
padding: "10px 20px",
fontSize: "1rem",
cursor: "pointer",
}}
>
Log Hello World
</Button>

{/* Two-column Layout */}
<Container style={{ marginTop: "30px" }}>
<Row>
<Col>
<div
style={{
width: "100%",
height: "100px",
backgroundColor: "red",
display: "flex",
alignItems: "center",
justifyContent: "center",
color: "white",
fontWeight: "bold",
borderRadius: "4px",
}}
>
Column 1
</div>
</Col>
<Col>
<div
style={{
width: "100%",
height: "100px",
backgroundColor: "red",
display: "flex",
alignItems: "center",
justifyContent: "center",
color: "white",
fontWeight: "bold",
borderRadius: "4px",
}}
>
Column 2
</div>
</Col>
</Row>
</Container>
</div>
);
}
Expand Down
Loading