Skip to content

Commit 8b42f8e

Browse files
authored
Merge pull request #11 from RouteWorks/enhancement/metrics_update
Fixed def and added prettier
2 parents fb5ca10 + 1011d5b commit 8b42f8e

23 files changed

Lines changed: 709 additions & 581 deletions

‎.github/workflows/precommit.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ jobs:
77
- uses: actions/checkout@v4
88
- uses: actions/setup-python@v5
99
with:
10-
python-version: "3.x"
10+
python-version: '3.x'
1111
- run: pip install pre-commit
1212
- run: pre-commit run --all-files

‎.pre-commit-config.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
- id: check-json
1313
- id: check-yaml
1414
- id: check-added-large-files
15-
args: ["--maxkb=2048"]
15+
args: ['--maxkb=2048']
1616
- id: check-merge-conflict
1717
- id: check-case-conflict
1818
- id: detect-private-key
@@ -32,5 +32,5 @@ repos:
3232
rev: v2.2.6
3333
hooks:
3434
- id: codespell
35-
args: ["--ignore-words-list=teh,fo"]
35+
args: ['--ignore-words-list=teh,fo']
3636
exclude: '^package-lock\.json$'

‎.prettierrc.json‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"singleQuote": true,
5+
"semi": true,
6+
"trailingComma": "es5",
7+
"printWidth": 100,
8+
"bracketSpacing": true,
9+
"arrowParens": "avoid"
10+
}

‎README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,20 @@ RouterArena is the first open platform enabling comprehensive evaluation and com
2424
### Installation
2525

2626
1. Clone the repository:
27+
2728
```bash
2829
git clone https://github.com/rice-university/routerarena.git
2930
cd routerarena
3031
```
3132

3233
2. Install dependencies:
34+
3335
```bash
3436
npm install
3537
```
3638

3739
3. Start the development server:
40+
3841
```bash
3942
npm start
4043
```
@@ -104,6 +107,7 @@ src/
104107
```
105108

106109
### Router Data Structure
110+
107111
```typescript
108112
interface Router {
109113
id: string;

‎package-lock.json‎

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@types/react-katex": "^3.0.4",
2525
"gh-pages": "^6.3.0",
2626
"html-webpack-plugin": "^4.5.2",
27+
"prettier": "3.6.2",
2728
"react-scripts": "^5.0.1",
2829
"typescript": "^4.9.5"
2930
},
@@ -33,7 +34,8 @@
3334
"test": "react-scripts test",
3435
"eject": "react-scripts eject",
3536
"predeploy": "npm run build",
36-
"deploy": "gh-pages -d build"
37+
"deploy": "gh-pages -d build",
38+
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,scss,md,markdown,yml,yaml,html}\""
3739
},
3840
"eslintConfig": {
3941
"extends": [

‎public/index.html‎

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
55
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
8-
<meta
9-
name="description"
10-
content="Web site created using create-react-app"
11-
/>
8+
<meta name="description" content="Web site created using create-react-app" />
129
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
1310
<!--
1411
manifest.json provides metadata used when your web app is installed on a
@@ -27,12 +24,14 @@
2724
<title>RouterArena</title>
2825
</head>
2926
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CFZYZLHP5X"></script>
30-
<script>
31-
window.dataLayer = window.dataLayer || [];
32-
function gtag(){dataLayer.push(arguments);}
33-
gtag('js', new Date());
34-
gtag('config', 'G-CFZYZLHP5X');
35-
</script>
27+
<script>
28+
window.dataLayer = window.dataLayer || [];
29+
function gtag() {
30+
dataLayer.push(arguments);
31+
}
32+
gtag('js', new Date());
33+
gtag('config', 'G-CFZYZLHP5X');
34+
</script>
3635

3736
<body>
3837
<noscript>You need to enable JavaScript to run this app.</noscript>

‎src/App.css‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
body {
77
margin: 0;
8-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
9-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
10-
sans-serif;
8+
font-family:
9+
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
10+
'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
1111
-webkit-font-smoothing: antialiased;
1212
-moz-osx-font-smoothing: grayscale;
1313
background-color: #f8fafc;
@@ -16,8 +16,7 @@ body {
1616
}
1717

1818
code {
19-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
20-
monospace;
19+
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
2120
}
2221

2322
.App {

‎src/components/DatasetCompositionChart.css‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
margin-bottom: 1rem;
2323
}
2424

25-
2625
/* Pie Chart Container */
2726
.pie-chart-container {
2827
margin: 1rem 0;
@@ -94,7 +93,6 @@
9493
.pie-chart-container {
9594
margin: 1rem 0;
9695
}
97-
9896
}
9997

10098
@media (max-width: 480px) {
@@ -105,5 +103,4 @@
105103
.chart-title {
106104
font-size: 1.1rem;
107105
}
108-
109106
}

0 commit comments

Comments
 (0)