forked from noahpresler/semesterly
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1150 from jhuopensource/rel/2025_10B
Release 5.8.2 -- after prod hotfix + adding s25 courses to JHU parser
- Loading branch information
Showing
22 changed files
with
1,034 additions
and
776 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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 |
---|---|---|
|
@@ -177,7 +177,7 @@ exports[`CourseModalBody correctly renders 1`] = ` | |
alt="🔥" | ||
class="emoji" | ||
draggable="false" | ||
src="https://twemoji.maxcdn.com/v/14.0.2/72x72/1f525.png" | ||
src="https://cdn.jsdelivr.net/gh/jdecked/[email protected]/assets/72x72/1f525.png" | ||
/> | ||
</div> | ||
<div | ||
|
@@ -223,7 +223,7 @@ exports[`CourseModalBody correctly renders 1`] = ` | |
alt="😍" | ||
class="emoji" | ||
draggable="false" | ||
src="https://twemoji.maxcdn.com/v/14.0.2/72x72/1f60d.png" | ||
src="https://cdn.jsdelivr.net/gh/jdecked/[email protected]/assets/72x72/1f60d.png" | ||
/> | ||
</div> | ||
<div | ||
|
@@ -269,7 +269,7 @@ exports[`CourseModalBody correctly renders 1`] = ` | |
alt="💩" | ||
class="emoji" | ||
draggable="false" | ||
src="https://twemoji.maxcdn.com/v/14.0.2/72x72/1f4a9.png" | ||
src="https://cdn.jsdelivr.net/gh/jdecked/[email protected]/assets/72x72/1f4a9.png" | ||
/> | ||
</div> | ||
<div | ||
|
@@ -315,7 +315,7 @@ exports[`CourseModalBody correctly renders 1`] = ` | |
alt="😐" | ||
class="emoji" | ||
draggable="false" | ||
src="https://twemoji.maxcdn.com/v/14.0.2/72x72/1f610.png" | ||
src="https://cdn.jsdelivr.net/gh/jdecked/[email protected]/assets/72x72/1f610.png" | ||
/> | ||
</div> | ||
<div | ||
|
@@ -361,7 +361,7 @@ exports[`CourseModalBody correctly renders 1`] = ` | |
alt="😴" | ||
class="emoji" | ||
draggable="false" | ||
src="https://twemoji.maxcdn.com/v/14.0.2/72x72/1f634.png" | ||
src="https://cdn.jsdelivr.net/gh/jdecked/[email protected]/assets/72x72/1f634.png" | ||
/> | ||
</div> | ||
<div | ||
|
@@ -407,7 +407,7 @@ exports[`CourseModalBody correctly renders 1`] = ` | |
alt="😩" | ||
class="emoji" | ||
draggable="false" | ||
src="https://twemoji.maxcdn.com/v/14.0.2/72x72/1f629.png" | ||
src="https://cdn.jsdelivr.net/gh/jdecked/[email protected]/assets/72x72/1f629.png" | ||
/> | ||
</div> | ||
<div | ||
|
@@ -453,7 +453,7 @@ exports[`CourseModalBody correctly renders 1`] = ` | |
alt="💯" | ||
class="emoji" | ||
draggable="false" | ||
src="https://twemoji.maxcdn.com/v/14.0.2/72x72/1f4af.png" | ||
src="https://cdn.jsdelivr.net/gh/jdecked/[email protected]/assets/72x72/1f4af.png" | ||
/> | ||
</div> | ||
<div | ||
|
@@ -499,7 +499,7 @@ exports[`CourseModalBody correctly renders 1`] = ` | |
alt="🤓" | ||
class="emoji" | ||
draggable="false" | ||
src="https://twemoji.maxcdn.com/v/14.0.2/72x72/1f913.png" | ||
src="https://cdn.jsdelivr.net/gh/jdecked/[email protected]/assets/72x72/1f913.png" | ||
/> | ||
</div> | ||
<div | ||
|
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
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,47 @@ | ||
/* | ||
Copyright (C) 2017 Semester.ly Technologies, LLC | ||
Semester.ly is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
Semester.ly is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
*/ | ||
|
||
import React, { useState } from "react"; | ||
|
||
interface SideScrollerProps { | ||
content: JSX.Element[]; | ||
navItems: JSX.Element[]; | ||
} | ||
|
||
function SideScroller(props: SideScrollerProps) { | ||
const [activeSlide, setActiveSlide] = useState(0); | ||
|
||
let navItems = null; | ||
if (props.navItems) { | ||
const navs = []; | ||
|
||
for (let i = 0; i < props.navItems.length; i++) { | ||
const cls = activeSlide === i ? " nav-item-active" : ""; | ||
navs.push( | ||
<span key={i} className={`nav-item${cls}`} onClick={() => setActiveSlide(i)}> | ||
{props.navItems[i]} | ||
</span> | ||
); | ||
} | ||
navItems = <div className="scroll-nav">{navs}</div>; | ||
} | ||
return ( | ||
<div> | ||
{navItems} | ||
{props.content[activeSlide]} | ||
</div> | ||
); | ||
} | ||
|
||
export default SideScroller; |
Oops, something went wrong.