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 { } else {
path += "&step=" + this.step; path += "&step=" + this.step;
} }
let res = await fetch(apiurl(path)) let res = await fetch(apiurl(path));
.then(r => { if (res.status == 200) {
if (r.status == 200) { let data = await res.text();
return r.text(); this.items.push(this.formatter.ansi_to_html(data));
} }
return "";
})
.then(data => {
this.items.push(this.formatter.ansi_to_html(data));
});
} }
}, },
watch: { watch: {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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