Skip to content

Commit

Permalink
Added transcript parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-lao committed Oct 18, 2024
1 parent 00501b3 commit c3ea171
Show file tree
Hide file tree
Showing 11 changed files with 34,703 additions and 1,167 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM --platform=linux/amd64 ubuntu:22.04
FROM --platform=linux/arm64 ubuntu:22.04
ARG IMAGE_NAME=pennlabs/courses-devcontainer
RUN apt-get update && apt-get install -y wget curl gcc python3-dev libpq-dev
RUN apt-get update && apt-get install -y wget curl gcc python3-dev libpq-dev
2 changes: 2 additions & 0 deletions frontend/degree-plan/components/Dock/Dock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ const Dock = ({ user, login, logout, activeDegreeplanId }: DockProps) => {
const { createOrUpdate } = useSWRCrud<DockedCourse>(`/api/degree/docked`, { idKey: 'full_code' });
const { data: dockedCourses = [], isLoading } = useSWR<DockedCourse[]>(user ? `/api/degree/docked` : null);

// console.log(dockedCourses)

// Returns a boolean that indiates whether this is the first render
const useIsMount = () => {
const isMountRef = React.useRef(true);
Expand Down
2 changes: 2 additions & 0 deletions frontend/degree-plan/components/Requirements/ReqPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ const ReqPanel = ({setModalKey, setModalObject, activeDegreeplan, isLoading}: Re
const { data: activeDegreeplanDetail = null, isLoading: isLoadingDegrees } = useSWR<DegreePlan>(activeDegreeplan ? `/api/degree/degreeplans/${activeDegreeplan.id}` : null);
const { data: fulfillments, isLoading: isLoadingFulfillments } = useSWR<Fulfillment[]>(activeDegreeplan ? `/api/degree/degreeplans/${activeDegreeplan.id}/fulfillments` : null);

// console.log(fulfillments)

const rulesToFulfillments = useMemo(() => {
if (isLoadingFulfillments || !fulfillments) return {};
const rulesToCourses: { [rule: string]: Fulfillment[] } = {};
Expand Down
9 changes: 9 additions & 0 deletions frontend/degree-plan/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ const nextConfig = {
displayName: true,
},
},
webpack(config) {
Object.defineProperty(config, 'devtool', {
get() {
return 'source-map';
},
set() {},
});
return config;
},
async rewrites() {
if (process.env.node !== "production") {
return [
Expand Down
2 changes: 1 addition & 1 deletion frontend/degree-plan/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ server {
#location ~ /\.ht {
# deny all;
#}
}
}
3 changes: 3 additions & 0 deletions frontend/degree-plan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,20 @@
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"axios": "^1.6.2",
"core-js": "^3.38.1",
"immutability-helper": "^3.1.1",
"lodash": "^4.17.21",
"lodash.clonedeep": "^4.5.0",
"next": "13.2.1",
"pcx-shared-components": "0.1.0",
"pdfjs-dist": "^4.6.82",
"react": "^18.2.0",
"react-circular-progressbar": "^2.1.0",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^18.2.0",
"react-loading-skeleton": "^3.4.0",
"react-pdf": "^9.1.1",
"react-resizable": "^3.0.5",
"react-select": "^5.8.0",
"react-split-pane": "^0.1.92",
Expand Down
Loading

0 comments on commit c3ea171

Please sign in to comment.