Skip to content

Commit 0460892

Browse files
author
newtom28
committed
Add prettier
1 parent 2d6330f commit 0460892

20 files changed

+235
-249
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ jobs:
2121

2222
- name: Run ESLint
2323
run: npm run lint
24+
25+
- name: Run Prettier check
26+
run: npx prettier --check src/*.js
27+

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,7 @@ You can ask a LLM to read this source code and answer most questions about this
136136
- Review the source code of https://github.com/cozymos/mini-moving-map — is it safe to enter my OpenAI API key in the browser? Does the repo send my API keys anywhere?
137137
- Look into the codebase of cozymos/mini-moving-map to find out what does search_stations() do? Why doesn’t my radio stream start when pressing Play? Can you make it open a station automatically when loading the app?
138138

139+
## Screenshots
140+
141+
![Screenshot 1](public/screenshot1.png)
142+
![Screenshot 2](public/screenshot2.png)

index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
@@ -33,7 +33,8 @@
3333
.active-marker {
3434
background-color: #ff5722 !important;
3535
border: 2px solid #ffc107 !important;
36-
box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.5),
36+
box-shadow:
37+
0 0 0 2px rgba(255, 193, 7, 0.5),
3738
0 2px 6px rgba(0, 0, 0, 0.4) !important;
3839
transform: scale(1.2);
3940
z-index: 100;
@@ -76,7 +77,11 @@
7677
}
7778

7879
body {
79-
font-family: 'Inter', -apple-system, BlinkMacSystemFont, Roboto,
80+
font-family:
81+
'Inter',
82+
-apple-system,
83+
BlinkMacSystemFont,
84+
Roboto,
8085
sans-serif;
8186
}
8287
</style>

package-lock.json

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

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@
55
"type": "module",
66
"scripts": {
77
"lint": "eslint . --ext .js",
8-
"test": "npm run lint && node src/test_runner1.js",
8+
"format": "prettier --write src/*.js",
9+
"test": "npm run lint && npm run format && node src/test_runner1.js",
910
"dev": "vite --force",
1011
"build": "vite build",
1112
"preview": "vite preview"
1213
},
1314
"devDependencies": {
14-
"vite": "^6.3.5",
15-
"@eslint/js": "^9.27.0",
16-
"eslint": "^9.27.0",
15+
"@eslint/js": "^9.29.0",
16+
"eslint": "^9.29.0",
1717
"globals": "^16.2.0",
18+
"prettier": "3.6.2",
19+
"vite": "^6.3.5",
1820
"vite-plugin-eslint": "^1.8.1"
1921
}
2022
}

public/Screenshot1.png

515 KB
Loading

public/Screenshot2.png

1.09 MB
Loading

public/config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
},
1010
"search_radius": 15,
1111
"zoom_level": 12,
12-
"tileLayer": "googleMaps"
12+
"tileLayer": "googleMaps",
13+
"openai_model": "gpt-4.1-nano",
14+
"openai_temperature": 0.1,
15+
"radio_limit": 30
1316
},
1417
"test_mode": {
1518
"test_landmarks": [

0 commit comments

Comments
 (0)