Skip to content

Commit

Permalink
Bump prettier from 2.8.7 to 3.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Jun 12, 2024
1 parent 6eeb1fc commit f1af75b
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 40 deletions.
4 changes: 3 additions & 1 deletion css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ kbd {
background-color: #e1e3e5;
border: 1px solid #adb3b8;
border-radius: 3px;
box-shadow: 0 1px 0 rgba(12, 13, 14, 0.2), 0 0 0 2px #fff inset;
box-shadow:
0 1px 0 rgba(12, 13, 14, 0.2),
0 0 0 2px #fff inset;
white-space: nowrap;
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta
Expand Down
53 changes: 24 additions & 29 deletions js/ide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1541,18 +1541,16 @@ class IDE {
queryWithMapCSS += `{{data:${this.queryParser.getStatement("data")}}}`;
else if (settings.server !== configs.defaultServer)
queryWithMapCSS += `{{data:overpass,server=${settings.server}}}`;
$(
"#export-dialog a#export-interactive-map"
)[0].href = `${baseurl}map.html?${new URLSearchParams({
Q: queryWithMapCSS
})}`;
$("#export-dialog a#export-interactive-map")[0].href =
`${baseurl}map.html?${new URLSearchParams({
Q: queryWithMapCSS
})}`;
// encoding exclamation marks for better command line usability (bash)
$(
"#export-dialog a#export-overpass-api"
)[0].href = `${server}interpreter?data=${encodeURIComponent(query)
.replace(/!/g, "%21")
.replace(/\(/g, "%28")
.replace(/\)/g, "%29")}`;
$("#export-dialog a#export-overpass-api")[0].href =
`${server}interpreter?data=${encodeURIComponent(query)
.replace(/!/g, "%21")
.replace(/\(/g, "%28")
.replace(/\)/g, "%29")}`;
function toDataURL(text, mediatype) {
return `data:${mediatype || "text/plain"};charset=${
document.characterSet || document.charset
Expand Down Expand Up @@ -2049,24 +2047,21 @@ class IDE {
return false;
});

$(
"#export-dialog a#export-convert-xml"
)[0].href = `${server}convert?${new URLSearchParams({
data: query,
target: "xml"
})}`;
$(
"#export-dialog a#export-convert-ql"
)[0].href = `${server}convert?${new URLSearchParams({
data: query,
target: "mapql"
})}`;
$(
"#export-dialog a#export-convert-compact"
)[0].href = `${server}convert?${new URLSearchParams({
data: query,
target: "compact"
})}`;
$("#export-dialog a#export-convert-xml")[0].href =
`${server}convert?${new URLSearchParams({
data: query,
target: "xml"
})}`;
$("#export-dialog a#export-convert-ql")[0].href =
`${server}convert?${new URLSearchParams({
data: query,
target: "mapql"
})}`;
$("#export-dialog a#export-convert-compact")[0].href =
`${server}convert?${new URLSearchParams({
data: query,
target: "compact"
})}`;

// OSM editors
// first check for possible mistakes in query.
Expand Down
2 changes: 1 addition & 1 deletion land.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head></head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion map.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"peggy": "^3.0.2",
"prettier": "^2.8.7",
"prettier": "^3.3.2",
"request": "^2.67.0",
"typescript": "^5.0.4",
"vite": "^5.2.13",
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3308,7 +3308,7 @@ __metadata:
osm-auth: "npm:^2.2.0"
osmtogeojson: "npm:^3.0.0-beta.5"
peggy: "npm:^3.0.2"
prettier: "npm:^2.8.7"
prettier: "npm:^3.3.2"
request: "npm:^2.67.0"
rgbcolor: "npm:^1.0.1"
stackblur: "npm:^1.0.0"
Expand Down Expand Up @@ -3531,12 +3531,12 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:^2.8.7":
version: 2.8.8
resolution: "prettier@npm:2.8.8"
"prettier@npm:^3.3.2":
version: 3.3.2
resolution: "prettier@npm:3.3.2"
bin:
prettier: bin-prettier.js
checksum: 10c0/463ea8f9a0946cd5b828d8cf27bd8b567345cf02f56562d5ecde198b91f47a76b7ac9eae0facd247ace70e927143af6135e8cf411986b8cb8478784a4d6d724a
prettier: bin/prettier.cjs
checksum: 10c0/39ed27d17f0238da6dd6571d63026566bd790d3d0edac57c285fbab525982060c8f1e01955fe38134ab10f0951a6076da37f015db8173c02f14bc7f0803a384c
languageName: node
linkType: hard

Expand Down

0 comments on commit f1af75b

Please sign in to comment.