Fixed frontend linter
parent
0b86ed9254
commit
6532fbebb1
|
@ -5,8 +5,8 @@
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vue-tsc --noEmit && vite build",
|
"build": "vue-tsc --noEmit && vite build",
|
||||||
"serve": "vite preview",
|
"serve": "vite preview",
|
||||||
"lint": "eslint \"src/**\"",
|
"lint": "eslint --ext .js,.vue src",
|
||||||
"format": "eslint --fix \"src/**\""
|
"format": "yarn run lint --fix"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"vue": "^3.0.5",
|
"vue": "^3.0.5",
|
||||||
|
|
|
@ -3,11 +3,11 @@ export interface Street {
|
||||||
city: string
|
city: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function search (search_term: string): Promise<Street[]> {
|
export async function search (searchTerm: string): Promise<Street[]> {
|
||||||
const base_url = import.meta.env.VITE_ENDPOINT as string
|
const baseURL = import.meta.env.VITE_ENDPOINT as string
|
||||||
|
|
||||||
const r = await fetch(`${base_url}/ivago/search?` + new URLSearchParams({
|
const r = await fetch(`${baseURL}/ivago/search?` + new URLSearchParams({
|
||||||
q: search_term
|
q: searchTerm
|
||||||
}))
|
}))
|
||||||
|
|
||||||
if (!r.ok) {
|
if (!r.ok) {
|
||||||
|
|
Loading…
Reference in New Issue