Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: '3.x'
- run: pip install pre-commit
- run: pre-commit run --all-files
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: check-json
- id: check-yaml
- id: check-added-large-files
args: ["--maxkb=2048"]
args: ['--maxkb=2048']
- id: check-merge-conflict
- id: check-case-conflict
- id: detect-private-key
Expand All @@ -32,5 +32,5 @@ repos:
rev: v2.2.6
hooks:
- id: codespell
args: ["--ignore-words-list=teh,fo"]
args: ['--ignore-words-list=teh,fo']
exclude: '^package-lock\.json$'
10 changes: 10 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"semi": true,
"trailingComma": "es5",
"printWidth": 100,
"bracketSpacing": true,
"arrowParens": "avoid"
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,20 @@ RouterArena is the first open platform enabling comprehensive evaluation and com
### Installation

1. Clone the repository:

```bash
git clone https://github.com/rice-university/routerarena.git
cd routerarena
```

2. Install dependencies:

```bash
npm install
```

3. Start the development server:

```bash
npm start
```
Expand Down Expand Up @@ -104,6 +107,7 @@ src/
```

### Router Data Structure

```typescript
interface Router {
id: string;
Expand Down
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@types/react-katex": "^3.0.4",
"gh-pages": "^6.3.0",
"html-webpack-plugin": "^4.5.2",
"prettier": "3.6.2",
"react-scripts": "^5.0.1",
"typescript": "^4.9.5"
},
Expand All @@ -33,7 +34,8 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
"deploy": "gh-pages -d build",
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,scss,md,markdown,yml,yaml,html}\""
},
"eslintConfig": {
"extends": [
Expand Down
21 changes: 10 additions & 11 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<meta name="description" content="Web site created using create-react-app" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
Expand All @@ -27,12 +24,14 @@
<title>RouterArena</title>
</head>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CFZYZLHP5X"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-CFZYZLHP5X');
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-CFZYZLHP5X');
</script>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
9 changes: 4 additions & 5 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
font-family:
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: #f8fafc;
Expand All @@ -16,8 +16,7 @@ body {
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

.App {
Expand Down
3 changes: 0 additions & 3 deletions src/components/DatasetCompositionChart.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
margin-bottom: 1rem;
}


/* Pie Chart Container */
.pie-chart-container {
margin: 1rem 0;
Expand Down Expand Up @@ -94,7 +93,6 @@
.pie-chart-container {
margin: 1rem 0;
}

}

@media (max-width: 480px) {
Expand All @@ -105,5 +103,4 @@
.chart-title {
font-size: 1.1rem;
}

}
Loading