Skip to content

Commit

Permalink
Run Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Oct 22, 2024
1 parent 84f2728 commit 0e53231
Show file tree
Hide file tree
Showing 32 changed files with 27,374 additions and 2,711 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Deploy Next.js site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -19,7 +19,7 @@ permissions:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
group: 'pages'
cancel-in-progress: false

jobs:
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: '16'
cache: ${{ steps.detect-package-manager.outputs.manager }}
cache-dependency-path: ./package-lock.json
- name: Setup Pages
Expand Down Expand Up @@ -92,4 +92,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v2
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "es5",
"semi": true,
"tabWidth": 2,
"singleQuote": true,
"jsxSingleQuote": true
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# maps
NextJS Website for Displaying Project Maps

NextJS Website for Displaying Project Maps

This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

Expand Down
6 changes: 3 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
*/
const nextConfig = {
output: 'export',
}
module.exports = nextConfig
};

module.exports = nextConfig;
107 changes: 16 additions & 91 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"eslint": "^8",
"eslint-config-next": "13.5.4",
"postcss": "^8",
"prettier": "3.3.3",
"tailwindcss": "^3",
"typescript": "^5"
}
Expand Down
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ module.exports = {
tailwindcss: {},
autoprefixer: {},
},
}
};
8 changes: 4 additions & 4 deletions src/app/institutions/DynamicMapComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { BrowserRouter } from 'react-router-dom';
import MapComponent from './MapComponent';

const DynamicMapComponent: React.FC = () => (
<BrowserRouter>
<MapComponent />
</BrowserRouter>
<BrowserRouter>
<MapComponent />
</BrowserRouter>
);

export default DynamicMapComponent;
export default DynamicMapComponent;
8 changes: 4 additions & 4 deletions src/app/institutions/MapComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const MapComponent: React.FC = () => {
const [zoom, setZoom] = useState(1);
const mapRef = useRef<MapRef>(null);
const [projection, setProjection] = useState('globe');

const handleProjection = () => {
setProjection(projection === 'globe' ? 'mercator' : 'globe');
};
Expand All @@ -30,7 +30,7 @@ const MapComponent: React.FC = () => {
zoom: zoom,
width: '100%',
height: '100vh',
transitionDuration: 300
transitionDuration: 300,
};

const onMove = (event: MapMoveEvent) => {
Expand All @@ -42,12 +42,12 @@ const MapComponent: React.FC = () => {
ref={mapRef}
initialViewState={viewState}
onMove={onMove}
mapStyle="mapbox://styles/mapbox/streets-v11"
mapStyle='mapbox://styles/mapbox/streets-v11'
mapboxAccessToken={process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN}
projection={projection}
>
<MapControls mapRef={mapRef} handleProjection={handleProjection} />
<MarkersComponent mapRef={mapRef} zoom={zoom}/>
<MarkersComponent mapRef={mapRef} zoom={zoom} />
</Map>
);
};
Expand Down
Loading

0 comments on commit 0e53231

Please sign in to comment.