Skip to content

Commit

Permalink
lint again
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Jul 2, 2024
1 parent bdac21d commit 4ca2e66
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 34 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 @@ -4,7 +4,7 @@
"homepage": "http://overpass-turbo.eu/",
"repository": "git+https://github.com/tyrasd/overpass-turbo.git",
"license": "MIT",
"packageManager": "[email protected].0",
"packageManager": "[email protected].1",
"scripts": {
"prepare": "husky",
"test": "yarn run test:eslint && yarn run test:style && yarn run test:vitest",
Expand Down

0 comments on commit 4ca2e66

Please sign in to comment.