fix some lint errors

This commit is contained in:
Simone Gotti 2019-04-02 18:27:28 +02:00
parent 19fdb1d08f
commit 62ff8321f1
10 changed files with 6 additions and 26 deletions

View File

@ -76,16 +76,11 @@ export default {
} else {
path += "&step=" + this.step;
}
let res = await fetch(apiurl(path))
.then(r => {
if (r.status == 200) {
return r.text();
}
return "";
})
.then(data => {
let res = await fetch(apiurl(path));
if (res.status == 200) {
let data = await res.text();
this.items.push(this.formatter.ansi_to_html(data));
});
}
}
},
watch: {

View File

@ -32,8 +32,6 @@
<script>
import { apiurl, loginurl, fetch } from "@/util/auth";
export default {
name: "LoginForm",
props: {

View File

@ -10,7 +10,6 @@
</template>
<script>
import { apiurl, fetch } from "@/util/auth";
import vars from "@/components/vars";
export default {

View File

@ -21,8 +21,6 @@
<script>
import { apiurl, loginurl, fetch } from "@/util/auth";
export default {
name: "RegisterForm",
props: {

View File

@ -25,7 +25,6 @@
</template>
<script>
import { apiurl, fetch } from "@/util/auth";
import { fetchRun, fetchTask } from "@/util/data.js";
import Collapse from "@/components/collapse.vue";

View File

@ -72,8 +72,6 @@
</template>
<script>
import { apiurl, fetch } from "@/util/auth";
export default {
components: {},
name: "vars",

View File

@ -10,8 +10,6 @@ import { getUser } from "@/util/auth";
Vue.use(Vue2Filters);
const USER = 'user';
// TODO(sgotti) use vuex for login/logout
new Vue({
router,

View File

@ -1,5 +1,3 @@
<template></template>
<script>
import { logout } from "@/util/auth";

View File

@ -25,11 +25,9 @@
<script>
import { ownerLink, ownerProjectsLink } from "@/util/link.js";
import projects from "@/components/projects.vue";
export default {
name: "Org",
components: { projects },
components: {},
props: {
orgname: String
},

View File

@ -59,7 +59,6 @@
<script>
import { apiurl, fetch } from "@/util/auth";
import {
ownerLink,
ownerProjectsLink,