Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,9 @@ cabal.sandbox.config
.pnpm-store/

# TODO: eventually remove all public/js files from tracking
/public/js/search
/public/js/grid/app.js
/public/js/post/app.js
/public/js/generate/app.js
/public/js/graph/app.js
/public/js/draw/app.js
/public/js/about/app.js
/public/*.svg
/public/*.png
Expand Down
3 changes: 0 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ db/
doc/
graphs/

# TODO: review this file
js/components/draw/

public/

vendor/
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- Added invalid JSON graph test coverage for `saveGraphJSON` in `app/Controllers/Graph.hs`
- Converted various JS files to TypeScript
- Fixed lint-staged check for CSS files
- Removed deprecated `Draw` feature and remaining references to previously deprecated `Search` and `Post` features

## [0.8.1] - 2026-08-10

Expand Down
4 changes: 0 additions & 4 deletions app/MasterTemplate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ header page =
if page == "generate-prerequisites"
then H.li ! A.class_ "selected-page" $ toLink "/generate" "Generate (beta)"
else H.li ! A.id "nav-generate" $ toLink "/generate" "Generate (beta)"
-- H.li $ toLink "/timesearch" "Search"
-- H.li $ toLink "/draw" "Draw"
-- TODO: re-enable after handling new first-year courses
-- H.li $ toLink "post" "Check My POSt!"
if page == "about"
then H.li ! A.class_ "selected-page" $ toLink "/about" "About"
else H.li $ toLink "/about" "About"
Expand Down
1 change: 0 additions & 1 deletion app/Response.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Response (module X) where

import Response.About as X
import Response.Draw as X
import Response.Loading as X
import Response.NotFound as X
65 changes: 0 additions & 65 deletions app/Response/Draw.hs

This file was deleted.

3 changes: 1 addition & 2 deletions app/Routes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import Happstack.Server (
seeOther,
serveDirectory,
)
import Response (aboutResponse, drawResponse, loadingResponse, notFoundResponse)
import Response (aboutResponse, loadingResponse, notFoundResponse)

routeResponses :: String -> ServerPartT IO Response
routeResponses staticDir =
Expand All @@ -45,7 +45,6 @@ strictRoutes =
, ("timetable-image", TimetableController.exportTimetableImageResponse)
, ("timetable-pdf", TimetableController.exportTimetablePDFResponse)
, ("post", ProgramController.retrieveProgram)
, ("draw", drawResponse)
, ("about", aboutResponse)
, ("graphs", GraphsController.index)
, ("generate", generateResponse)
Expand Down
24 changes: 0 additions & 24 deletions app/Scripts.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
module Scripts (
graphScripts,
timetableScripts,
drawScripts,
postScripts,
searchScripts,
generateScripts,
aboutScripts,
)
Expand All @@ -12,34 +9,13 @@ where
import Text.Blaze ((!))
import qualified Text.Blaze.Html5 as H
import qualified Text.Blaze.Html5.Attributes as A
import Util.Blaze

graphScripts :: H.Html
graphScripts = H.script ! A.src "/static/js/graph/app.js" $ ""

timetableScripts :: H.Html
timetableScripts = H.script ! A.src "/static/js/grid/app.js" $ ""

drawScripts :: H.Html
drawScripts = do
mapM_
toScript
[ "/static/js/draw/variables.js"
, "/static/js/draw/path.js"
, "/static/js/draw/setup.js"
, "/static/js/vendor/jscolor.min.js"
]
H.script ! A.src "/static/js/draw/app.js" $ ""

postScripts :: H.Html
postScripts = do
mapM_ toScript []
H.script ! A.src "/static/js/post/app.js" $ ""

searchScripts :: H.Html
searchScripts = do
H.script ! A.src "/static/js/search/app.js" $ ""

generateScripts :: H.Html
generateScripts = do
H.script ! A.src "/static/js/generate/app.js" $ ""
Expand Down
1 change: 0 additions & 1 deletion courseography.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ executable courseography
Models.Time,
Response,
Response.About,
Response.Draw,
Response.Loading,
Response.NotFound,
Routes,
Expand Down
Loading
Loading