Skip to content

Commit c310271

Browse files
committed
biome
1 parent f9955f7 commit c310271

File tree

8 files changed

+26
-30
lines changed

8 files changed

+26
-30
lines changed

website/public/scripts/map.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ function initMap() {
3535
document.getElementById('mapbg-image').remove()
3636
})
3737

38-
let nav = new maplibregl.NavigationControl({ showCompass: false })
38+
const nav = new maplibregl.NavigationControl({ showCompass: false })
3939
map.addControl(nav, 'top-right')
4040

4141
// let scale = new maplibregl.ScaleControl()
4242
// map.addControl(scale)
4343

44-
let attrib = new maplibregl.AttributionControl({
44+
const attrib = new maplibregl.AttributionControl({
4545
compact: false,
4646
})
4747
map.addControl(attrib)
@@ -50,7 +50,7 @@ function initMap() {
5050
}
5151

5252
function selectStyle(style) {
53-
const styleUrl = 'https://tiles.openfreemap.org/styles/' + style.split('-')[0]
53+
const styleUrl = `https://tiles.openfreemap.org/styles/${style.split('-')[0]}`
5454
map.setStyle(styleUrl)
5555

5656
if (style === 'liberty-3d') {
@@ -75,9 +75,9 @@ initMap()
7575

7676
const buttons = document.querySelectorAll('.button-container .btn')
7777

78-
buttons.forEach(button => {
79-
button.addEventListener('click', function (event) {
80-
buttons.forEach(button => button.classList.remove('selected'))
78+
buttons.forEach((button) => {
79+
button.addEventListener('click', (event) => {
80+
buttons.forEach((button) => button.classList.remove('selected'))
8181
button.classList.add('selected')
8282

8383
const style = event.target.getAttribute('data-style')

website/src/components/Donate.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
const { title } = Astro.props
33
4-
import { Content as Sponsor } from '../content/donate/sponsor.md'
54
import { Content as Pro } from '../content/donate/pro.md'
5+
import { Content as Sponsor } from '../content/donate/sponsor.md'
66
---
77

88
<Sponsor />

website/src/pages/index.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
import Layout from '../layouts/Layout.astro'
3-
import Map from '../components/Map.astro'
4-
import Logo from '../components/Logo.astro'
52
import Donate from '../components/Donate.astro'
3+
import Logo from '../components/Logo.astro'
4+
import Map from '../components/Map.astro'
5+
import Layout from '../layouts/Layout.astro'
66
7-
import { Content as WhatisText } from '../content/index/whatis.md'
8-
import { Content as BeforeDonate } from '../content/index/before_donate.md'
97
import { Content as AfterDonate } from '../content/index/after_donate.md'
8+
import { Content as BeforeDonate } from '../content/index/before_donate.md'
9+
import { Content as WhatisText } from '../content/index/whatis.md'
1010
---
1111

1212
<Layout title="OpenFreeMap">

website/src/pages/quick_start.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
2-
import Layout from '../layouts/Layout.astro'
32
import Map from '../components/Map.astro'
3+
import Layout from '../layouts/Layout.astro'
44
5-
import { Content as MaplibreText } from '../content/how_to_use/maplibre.md'
6-
import { Content as MapboxText } from '../content/how_to_use/mapbox.md'
5+
import Donate from '../components/Donate.astro'
6+
import Logo from '../components/Logo.astro'
7+
import { Content as CustomStylesText } from '../content/how_to_use/custom_styles.md'
78
import { Content as LeafletText } from '../content/how_to_use/leaflet.md'
9+
import { Content as MapboxText } from '../content/how_to_use/mapbox.md'
10+
import { Content as MaplibreText } from '../content/how_to_use/maplibre.md'
811
import { Content as MobileText } from '../content/how_to_use/mobile.md'
9-
import { Content as CustomStylesText } from '../content/how_to_use/custom_styles.md'
1012
import { Content as SelfHostingText } from '../content/how_to_use/self_hosting.md'
11-
import Logo from '../components/Logo.astro'
12-
import Donate from '../components/Donate.astro'
1313
---
1414

1515
<Layout title="OpenFreeMap Quick Start Guide">

website/src/styles/_style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'reset.css';
2-
@import 'global.css';
1+
@import "reset.css";
2+
@import "global.css";
33
/* */
4-
@import 'map.css';
4+
@import "map.css";

website/src/styles/global.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ body {
22
line-height: 1.5;
33
font-size: 17px;
44
-webkit-font-smoothing: antialiased;
5-
font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
5+
font-family: Avenir, Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif;
66
font-weight: normal;
77
color: #000;
88
}
@@ -24,7 +24,7 @@ h6 {
2424
margin-top: 3em;
2525
margin-bottom: 0.5em;
2626
line-height: 1.2;
27-
font-family: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro,
27+
font-family: Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro,
2828
sans-serif;
2929
font-weight: bold;
3030
}

website/src/styles/map.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
height: 100%;
1717
position: absolute;
1818
z-index: 1;
19-
background-image: url('/berlin.webp');
19+
background-image: url("/berlin.webp");
2020
background-size: cover;
2121
background-position: center;
2222
background-repeat: no-repeat;
@@ -25,11 +25,7 @@
2525
}
2626

2727
.mapbg-attrib {
28-
font:
29-
12px / 20px Helvetica Neue,
30-
Arial,
31-
Helvetica,
32-
sans-serif;
28+
font: 12px / 20px Helvetica Neue, Arial, Helvetica, sans-serif;
3329
background-color: hsla(0, 0%, 100%, 0.5);
3430
padding: 0 5px;
3531
bottom: 0;

website/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "astro/tsconfigs/base",
2+
"extends": "astro/tsconfigs/base"
33
}

0 commit comments

Comments
 (0)