Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linting #2249

Merged
merged 2 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dev": "vite --host",
"build": "vite build",
"serve": "echo 'This is a preview server for testing the built website. Please use `dev` command over `serve`.\nStarting preview server in 5 seconds..\n';sleep 5; vite preview",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --ignore-pattern src/components/vue-tour --fix src"
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --ignore-pattern src/components/vue-tour src"
},
"dependencies": {
"@google/model-viewer": "^3.0.0",
Expand Down
46 changes: 23 additions & 23 deletions core/frontend/src/components/autopilot/EndpointManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,31 @@
class="d-flex flex-column align-center justify-center ma-0 pa-0"
style="width: 80%;"
>
<v-divider
width="80%"
class="my-4"
/>
<v-card class="align-center justify-center pa-6 d-block">
<v-card-title class="ma-0 pa-0 d-block">
Mavlink Router
</v-card-title>
<v-divider
width="80%"
class="my-4"
/>
<v-card class="align-center justify-center pa-6 d-block">
<v-card-title class="ma-0 pa-0 d-block">
Mavlink Router
</v-card-title>
<v-card-text>
<p>
Select the router to use for distributing MAVLink data.
</p>
<v-radio-group
v-model="selected_router"
row
@change="setCurrentRouter"
>
<v-radio v-for="router in available_routers" :key="router" :label="router" :value="router"></v-radio>
</v-radio-group>
</v-card-text>
</v-card>
<v-divider
width="80%"
class="my-4"
/>
<v-radio-group
v-model="selected_router"
row
@change="setCurrentRouter"
>
<v-radio v-for="router in available_routers" :key="router" :label="router" :value="router" />
</v-radio-group>
</v-card-text>
</v-card>
<v-divider
width="80%"
class="my-4"
/>
<template v-for="(endpoint, index) in available_endpoints">
<v-divider
v-if="index !== 0"
Expand Down Expand Up @@ -164,15 +164,15 @@ export default Vue.extend({
notifier.pushBackError('AUTOPILOT_ROUTERS_FETCH_FAIL', error, true)
})
},
async setCurrentRouter(): Promise<void> {
async setCurrentRouter(): Promise<void> {
this.updating_router = true
await back_axios({
method: 'post',
url: `${autopilot.API_URL}/preferred_router`,
timeout: 10000,
params: {
router: this.selected_router,
}
},
})
.catch((error) => {
notifier.pushBackError('AUTOPILOT_ROUTER_SET_FAIL', error, true)
Expand Down