Skip to content

Commit b8a8fd2

Browse files
authored
Vercel dependencies (#80)
* upgrading nonbreaking dependencies and adding vercel integration * vercel build fix * using regular build to get proper out directory for static files * graph sizing adjustments for improved prof detail visibility * pandering to 100% view browsers * mobile minimum height suggestion
1 parent 05cdc18 commit b8a8fd2

File tree

7 files changed

+2636
-1123
lines changed

7 files changed

+2636
-1123
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

client/package.json

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,49 @@
11
{
22
"name": "@utd-grades/client",
33
"version": "1.4.0",
4+
"engines": {
5+
"node": ">=22.0.0",
6+
"npm": ">=10.0.0"
7+
},
48
"scripts": {
59
"dev": "next dev",
610
"build": "next build",
711
"export": "next export",
812
"start": "next start",
9-
"lint": "npx eslint src/*"
13+
"lint": "npx eslint \"src/**/*.{ts,tsx}\""
1014
},
1115
"dependencies": {
12-
"@ant-design/icons": "^4.7.0",
16+
"@ant-design/icons": "^4.8.3",
1317
"@utd-grades/db": "^1.0.0",
14-
"antd": "^4.19.3",
15-
"chart.js": "^3.7.1",
18+
"antd": "^4.24.16",
19+
"chart.js": "^3.9.1",
1620
"lodash.debounce": "^4.0.8",
17-
"next": "^12.3.4",
21+
"next": "^12.3.7",
1822
"react": "^17.0.2",
19-
"react-chartjs-2": "^4.0.1",
23+
"react-chartjs-2": "^4.3.1",
2024
"react-dom": "^17.0.2",
21-
"react-query": "^3.34.18",
22-
"react-scroll": "^1.8.6",
23-
"react-transition-group": "^4.4.2",
24-
"styled-components": "^5.3.5"
25+
"react-query": "^3.39.3",
26+
"react-scroll": "^1.9.3",
27+
"react-transition-group": "^4.4.5",
28+
"sql.js": "^1.13.0",
29+
"styled-components": "^5.3.11"
2530
},
2631
"devDependencies": {
27-
"@types/lodash.debounce": "^4.0.6",
28-
"@types/react": "^17.0.43",
29-
"@types/react-scroll": "^1.8.3",
30-
"@types/styled-components": "^5.1.24",
31-
"eslint-config-next": "^12.1.4",
32+
"@types/lodash.debounce": "^4.0.9",
33+
"@types/react": "^17.0.88",
34+
"@types/react-scroll": "^1.8.10",
35+
"@types/sql.js": "^1.4.9",
36+
"@types/styled-components": "^5.1.34",
37+
"@typescript-eslint/eslint-plugin": "^5.62.0",
38+
"@typescript-eslint/parser": "^5.62.0",
39+
"eslint": "^8.57.0",
40+
"eslint-config-next": "^12.3.7",
41+
"eslint-config-prettier": "^8.10.0",
42+
"eslint-plugin-jest": "^26.9.0",
3243
"node-polyfill-webpack-plugin": "^1.1.4",
3344
"path": "^0.12.7",
34-
"webpack": "^5.70.0"
45+
"typescript": "^4.9.5",
46+
"webpack": "^5.101.0"
3547
},
3648
"optionalDependencies": {
3749
"@next/swc-linux-x64-gnu": "^12.3.4"

client/src/components/SectionContent.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,16 @@ const Container = styled.div`
3939

4040
const GraphContainer = styled.div`
4141
width: 100%;
42+
height: 50vh;
43+
min-height: 300px;
44+
max-height: 400px;
4245
4346
@media (max-width: 992px) {
4447
& {
4548
padding-top: 20px;
49+
height: 30vh;
50+
min-height: 200px;
51+
max-height: 300px;
4652
}
4753
}
4854
@@ -326,6 +332,8 @@ export default function SectiSonContent({
326332
};
327333

328334
const options: ChartOptions<"bar"> = {
335+
responsive: true,
336+
maintainAspectRatio: false,
329337
plugins: {
330338
tooltip: {
331339
enabled: true,

db/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"test": "jest"
1212
},
1313
"dependencies": {
14-
"csv-parse": "^5.0.4",
15-
"sql.js": "^1.6.2"
14+
"csv-parse": "^5.6.0",
15+
"sql.js": "^1.13.0"
1616
},
1717
"devDependencies": {
18-
"@types/node": "^17.0.23"
18+
"@types/node": "^17.0.45"
1919
}
2020
}

0 commit comments

Comments
 (0)