Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ES] Migrate from JS to TS #135

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
4114ce7
[TS Migration] Prepare folder structure for TS
dchege711 Jun 24, 2023
230b668
[NPM] Add source-map-loader, ts-loader, and typescript to dev deps
dchege711 Jun 24, 2023
365ab1f
[ES] Convert JS files to TS
dchege711 Jun 24, 2023
2f421d5
[ES] Move leftover lone JS files into src/
dchege711 Jun 24, 2023
28d2b3c
[config.ts] Fix TS errors
dchege711 Jun 24, 2023
e61ea63
[ES] Add npm start to launch.json
dchege711 Jun 25, 2023
29c85d4
[ES] tsc passes now
dchege711 Jun 25, 2023
24176d9
[ES] tsc passes in strict mode
dchege711 Jul 1, 2023
d45cc5c
[Metadata] Fix Metadata creation by passing in correct params
dchege711 Jul 1, 2023
ca880fc
[ES] Simplify npm run debug
dchege711 Jul 1, 2023
bd37f75
[Metadata] Ignore empty tags
dchege711 Jul 1, 2023
c99e558
[!] [Metadata] Side-step ParallelSaveError by not saving
dchege711 Jul 1, 2023
718c246
[TestEmailClient] Remove stale config.js import
dchege711 Jul 1, 2023
b4e2e4e
[ES] Add ts-mocha as a dev dependency
dchege711 Jul 1, 2023
f2f3246
[Metadata] Clean up some bugs
dchege711 Jul 1, 2023
4e23418
[LogInUtilities] Error on duplicate username/email and update tests
dchege711 Jul 1, 2023
b4c81bb
[SampleCards] Stricter typing
dchege711 Jul 2, 2023
f609c5b
[ES] Add chai for easier deep assertions
dchege711 Jul 2, 2023
6aacdbd
[Graph] Make the undirected nature of the graph clear
dchege711 Jul 2, 2023
9685f5b
[AutoComplete] Test various utilities for autocomplete
dchege711 Jul 2, 2023
415a457
[DB] Protect immutable fields from being updated
dchege711 Jul 2, 2023
b659d11
[ES] Copy over static resources and EJS templates
dchege711 Jul 2, 2023
0fd36d1
[ES] Fix `npx ts-node --files src/server.ts`
dchege711 Jul 2, 2023
ca2d431
[ES] Use ts-node for `npm run debug`
dchege711 Jul 2, 2023
2e645e3
[ES] Us ts-node in VS Code debug launcher
dchege711 Jul 2, 2023
0be005f
[CardsMongoDB] Fix 500 error in /browse due to missing textScore
dchege711 Jul 2, 2023
d490968
[Site] Fix 404 errors for static files and libraries
dchege711 Jul 2, 2023
e9a37af
[TS] Migrate front-end files to TypeScript
dchege711 Jul 2, 2023
2f29e45
[Testing] Fix broken tests
dchege711 Jul 2, 2023
d2897ee
[TS Migration] Move code out of EJS templates for safer typing
dchege711 Jul 3, 2023
952a34e
[Site] Fix 404 errors in npm start
dchege711 Jul 3, 2023
d23268b
[ES] Fix loading errors for latex and syntax highlighting
dchege711 Jul 3, 2023
b7c0f15
[/browse] Stop loading content prematurely
dchege711 Jul 3, 2023
aedd618
[AppUtilities] Parse responses at sendHTTPRequest
dchege711 Jul 3, 2023
51a2c49
[NPM] Use server-side AVL library and bundle it via webpack
dchege711 Jul 3, 2023
5464da8
[LogIn] Fix undefined references in the login flow
dchege711 Jul 3, 2023
b17a496
[ES] Set up debugging flow for faster iteration
dchege711 Jul 3, 2023
06c369c
[AppUtilitites] Smarter parsing of response as JSON
dchege711 Jul 3, 2023
6a21e47
[Controllers] Provide error strings with status 200
dchege711 Jul 3, 2023
55fb408
[LogIn] Fix user flow for logging into non-existent accounts
dchege711 Jul 3, 2023
2839217
[ControllerUtils] Avoid extraneous logs in convertObjectToResponse
dchege711 Jul 3, 2023
ed9afb5
[LogIn] Handle the middleware for login correctly
dchege711 Jul 3, 2023
da3f55f
[AppUtilities] Fix off-by-one error in sendHTTPRequest
dchege711 Jul 3, 2023
f82967b
[/home] Initialize the JS state on document load
dchege711 Jul 3, 2023
0312257
[SearchBarDropDown] Fix references to functions
dchege711 Jul 4, 2023
ff0b218
[/home] Fix broken function calls
dchege711 Jul 4, 2023
bce4017
[TestLogIn] Explicitly type this to Mocha.Context
dchege711 Apr 14, 2024
67106bd
git mv Autocomplete.ts AutoComplete.ts
dchege711 Apr 14, 2024
3a2a07f
[TestLogIn] Type this as Suite
dchege711 Apr 14, 2024
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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DS_Store
node_modules

# Ignore template for Node
# Ignore template for Node

# Logs
logs
Expand Down Expand Up @@ -79,3 +79,6 @@ typings/

# FuseBox cache
.fusebox/

# Build artifacts
dist/
22 changes: 9 additions & 13 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,16 @@
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 9229,
"protocol": "inspector",
"address": "localhost",
"restart": true,
"sourceMaps": false,
"command": "npm start",
"name": "npm start",
"request": "launch",
"type": "node-terminal"
},
{
"type": "node",
"command": "npm run debug",
"name": "npm debug",
"request": "launch",
"name": "Launch",
"program": "${workspaceFolder}/server.js"
},
"type": "node-terminal"
},
]
}
}
54 changes: 0 additions & 54 deletions config.js

This file was deleted.

169 changes: 0 additions & 169 deletions controllers/AuthenticationController.js

This file was deleted.

65 changes: 0 additions & 65 deletions controllers/ControllerUtilities.js

This file was deleted.

Loading
Loading