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: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env", "@babel/preset-typescript"]
}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ png/.DS_Store
node_modules
dist
.parcel-cache
*.zip
*.zip

coverage
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
21
20 changes: 0 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,3 @@ Just download from the Chrome Web Store and go to [Course Registration](https://
## Contributing

To get started contributing please look at [CONTRIBUTING.md](./docs/CONTRIBUTING.md)

## Changelog

- 2.0.6 - Fix for RMP
- 2.0.5 - Another update to match RateMyProfessors site update. Also add the functionality of turning the professor name into a link that leads directly to their RateMyProfessors page.
- 2.0.4 - Another update to match RateMyProfessors site update. Thanks to @DavidHuang2002
- 2.0.3 - Another update to match RateMyProfessors site update.
- 2.0.2 - Update in accordance with RateMyProfessors site update.
- 2.0.1 - Small bug fix.
- 2.0.0 - Shows ratings from rate my professor next to professor names.
- 1.3.0 - Allows for the user to choose which classes from the cart are included in making the schedule. Minor refactoring.
- 1.2.2 - Counts laboratory as separate class in the case that a Lecture and Lab have the same class number. Simplified some of the code for removing classes from your cart that are not in your schedule.
- 1.2.1 - Accounting for the change in domain name of the Class Registration Page
- 1.2.0 - Added button to enroll in all class in the class cart with one click. Code courtesy of Samuel Lijin.
- 1.1.1 - Fixed small issue with wrong professor displaying in detailed comment.
- 1.1.0 - Add a preferences button where preferences for break times can be chosen. Simplify the mechanism behind adding and removing classes. Update handling of classes that have different times on different days or are TBA. Showed classes that overlap if schedule does not work.
- 1.0.3 - Edit error message
- 1.0.2 - Edit error message and fix uncaught time overlap
- 1.0.1 - Update description
- 1.0.0 - Initial version
15 changes: 15 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { Config } from 'jest';

const config: Config = {
collectCoverage: true,
coverageThreshold: {
global: {
branches: 90,
functions: 90,
lines: 90,
statements: 90,
},
},
};

export default config;
15 changes: 13 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,19 @@
"content_scripts": [
{
"matches": ["*://*.vanderbilt.edu/more/SearchClasses*"],
"js": ["dist/content_scripts/index.js"],
"css": ["css/myButton.css", "css/modal.css"],
"js": [
"dist/content_scripts/index.js",
"dist/scripts/index.js",
"dist/html/index.js"
],
"css": [
"dist/css/myButton.css",
"dist/css/modal.css",
"dist/css/course.css",
"dist/css/schedule.css",
"dist/css/preferences.css"
],
"html": ["dist/html/modal.html"],
"all_frames": true
}
],
Expand Down
30 changes: 27 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,31 @@
"node": ">=20.8.1"
},
"targets": {
"content_scripts": {
"content": {
"source": "src/content_scripts/index.ts",
"includeNodeModules": true
"includeNodeModules": true,
"distDir": "./dist/content"
},
"html_scripts": {
"source": "src/scripts/index.ts",
"distDir": "./dist/scripts",
"outputFormat": "global"
},
"service_worker": {
"source": "src/service_worker/background.ts",
"includeNodeModules": true,
"outputFormat": "esmodule"
"outputFormat": "esmodule",
"distDir": "./dist/service_worker"
},
"css": {
"source": [
"src/css/course.css",
"src/css/modal.css",
"src/css/myButton.css",
"src/css/schedule.css",
"src/css/preferences.css"
],
"distDir": "./dist/css"
}
},
"nodemonConfig": {
Expand Down Expand Up @@ -60,24 +77,31 @@
"build": "parcel build",
"lint": "eslint ./src",
"typecheck": "tsc --noEmit",
"test": "jest",
"test:update": "jest -u",
"release": "chrome-webstore-upload"
},
"devDependencies": {
"@babel/core": "^7.12.0",
"@babel/preset-env": "^7.25.8",
"@babel/preset-typescript": "^7.25.7",
"@eslint/js": "^9.4.0",
"@parcel/config-default": "^2.12.0",
"@parcel/transformer-typescript-tsc": "^2.12.0",
"@semantic-release/exec": "^6.0.3",
"@tsconfig/recommended": "^1.0.2",
"@types/chrome": "^0.0.241",
"@types/chrome-webstore-upload": "^1.0.0",
"@types/jest": "^29.5.13",
"@types/jquery": "^3.5.18",
"chrome-webstore-upload-cli": "^3.3.0",
"eslint": "^9.4.0",
"globals": "^15.4.0",
"jest": "^29.7.0",
"nodemon": "^3.1.3",
"parcel": "^2.12.0",
"semantic-release": "^24.0.0",
"ts-node": "^10.9.2",
"typescript": "<5.5.0",
"typescript-eslint": "^7.13.0"
},
Expand Down
Loading
Loading