-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add SICP toplevel button * Add Sicp Placeholder Page * Add SicpDisplay component * Add sicp XML files * Add state to sicp component * Move xml files to xml folder * Move sicp xml files to data folder * Add dummy json file * Add temp json file for testing * Remove sicp from redux store * Add function to parse json files * Add temporary mock data folder * Add sicp workspace * Add repl to side content * Add close button * Add editor value * Add non functional autorun button * Change sicp to fetch files from github * Remove unnecessary state * Add table of contents to sicp * Display code snippets using read only ace editor * Add parser for images * Add parser for equations * Add run functionality * Replace ITreeNode with TreeNodeInfo * Add features workspace * Add parsing functions for symbols and headings * Fix duplicate key error in ParseJson.tsx * Change path name from sicp to interactive-sicp * Add parser for ordered lists * Move parsing of symbols to sicp repo * Add parser for epigraph * Add parser for exercises * Add id to text containers * Move subcomponents of sicp from features to pages * Set only one editor active at a time * Change url hash to slug * Update failing tests * Update workspace reducer test * Reuse playground as sicp workspace * Update parser for latex * Update parser for references * Add parser for links * Test deployment to github pages * Test deployment to github pages * Add .vscode to .gitignore * Fix prettier errors * Update sicp index page * Add logic for scrolling within sicp component * Abstract SicpControlBar into its own component * Move sicp navbar to application navbar component * Add parser for references * Update failing tests * Update parseJson with missing tags * Add parser for tables * Rename files for consistency * Merge Sicp and SicpDisplay components * Arrange functions in ParseJson.tsx * Move usingSubst from playground to workspaces * Add previous and next buttons * Add loading page when fetching data * Add better-react-mathjax component * Remove unused imports * Fix parsing of LaTeX in snippets * Add refs to headers * Simplify parsing of figures * Fix scaling of images * Set sicp url as constant in Constants.ts * Change styling for snippet component * Simplify sicp routes * Remove redundant xml files * Set up links to sicp on sa github * Add tests for ParseJson.tsx * Fix failing test * Fix failing ci * Revamped loading and error components * Remove test.json * Fix broken tests * Remove unused css * Add test for index page * Add comments * Add error handling * Switch to mathjax 2 for performance * Remove redundant test * Style table of contents * Fix exercise no solution placeholder message * Fix epigraphs * Make code snippets resizeable * Add tests * Change styling metaphrase and meta components * Fix tests * Change MathJax config * Update SicpLatex tests * Move table of contents button to sicp folder * Add comments to sicp navigation bar * Remove unused side content type * Move TOGGLE_USING_SUBST to workspace types * Update code snippet to remove newlines * Update toc.json * Reset workspace whenever new snippet is displayed * Add max height to snippet * Update snapshots * Update styling of index page * Simplify handling of functions in ParseJson.tsx * Change ace editor to pre in code snippets * Add syntax highlighting * Update syntax highlighting * Change code snippet text size * Tweak margin for exercise * Remove redundant code * Update failing snapshots * Make syntax highlighting asynchronous * Tweak how loading works * Fix mobile keyboard width * Fix code snippets overflow * Fix table of contents overflow on mobile * Add sicp-js to navbar mobile side menu * Add sicp js to navbar * Fix code snippet mobile issues * Update tests * Fix prettier issues Co-authored-by: Martin Henz <henz@comp.nus.edu.sg>
- Loading branch information
1 parent
7497693
commit 8ba3df3
Showing
64 changed files
with
4,900 additions
and
67 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
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 |
---|---|---|
|
@@ -24,6 +24,7 @@ terraform* | |
.env.test.local | ||
.env.production.local | ||
.idea/ | ||
.vscode/ | ||
cadet-frontend.iml | ||
|
||
npm-debug.log* | ||
|
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
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,14 @@ | ||
import { IconNames } from '@blueprintjs/icons'; | ||
|
||
import controlButton from '../ControlButton'; | ||
|
||
type ControlBarCloseButtonProps = OwnProps; | ||
|
||
type OwnProps = { | ||
key: string; | ||
handleClose: () => void; | ||
}; | ||
|
||
export function ControlBarCloseButton(props: ControlBarCloseButtonProps) { | ||
return controlButton('Close', IconNames.CROSS, props.handleClose); | ||
} |
15 changes: 15 additions & 0 deletions
15
src/commons/controlBar/ControlBarShowDependenciesButton.tsx
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,15 @@ | ||
import { IconNames } from '@blueprintjs/icons'; | ||
|
||
import controlButton from '../ControlButton'; | ||
|
||
type ControlBarShowDependenciesButtonProps = OwnProps; | ||
|
||
type OwnProps = { | ||
key: string; | ||
buttonText: string; | ||
handleShowDependencies: () => void; | ||
}; | ||
|
||
export function ControlBarShowDependenciesButton(props: ControlBarShowDependenciesButtonProps) { | ||
return controlButton(props.buttonText, IconNames.CODE, props.handleShowDependencies); | ||
} |
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
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
Oops, something went wrong.