From 5bba7109f3f40903d9b3a5ef0924123a75b34f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 24 Mar 2021 21:03:10 +0100 Subject: [PATCH] autoformat --- ui/src/App.vue | 4 +- ui/src/components/Header.vue | 6 +-- ui/src/components/Jobs.vue | 22 ++++++----- ui/src/components/SearchResult.vue | 20 +++++----- ui/src/main.ts | 2 +- ui/src/router/index.ts | 6 +-- ui/src/types/base.ts | 2 +- ui/src/views/Inspect.vue | 61 ++++++++++++++++++------------ ui/src/views/Search.vue | 6 +-- 9 files changed, 71 insertions(+), 58 deletions(-) diff --git a/ui/src/App.vue b/ui/src/App.vue index a75ea14..260c327 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -11,9 +11,9 @@ diff --git a/ui/src/components/SearchResult.vue b/ui/src/components/SearchResult.vue index bfc0541..b1b2e60 100644 --- a/ui/src/components/SearchResult.vue +++ b/ui/src/components/SearchResult.vue @@ -1,5 +1,8 @@ @@ -27,7 +29,7 @@ export default defineComponent({ .search-result { .search-result-container { box-shadow: var(--sl-shadow-medium); - margin: .5rem; + margin: 0.5rem; padding: 1rem; } @@ -37,7 +39,7 @@ export default defineComponent({ text-decoration: inherit; div { - margin: .5rem 0; + margin: 0.5rem 0; } .search-result-attribute { diff --git a/ui/src/main.ts b/ui/src/main.ts index b6f6e62..adcd822 100644 --- a/ui/src/main.ts +++ b/ui/src/main.ts @@ -1,8 +1,8 @@ +import { defineCustomElements, setAssetPath, SlInput } from "@shoelace-style/shoelace"; import * as Vue from "vue"; import { DirectiveBinding } from "vue"; import App from "./App.vue"; import router from "./router"; -import { defineCustomElements, setAssetPath, SlInput, } from "@shoelace-style/shoelace"; // TODO: Remove when UI settles! defineCustomElements(); diff --git a/ui/src/router/index.ts b/ui/src/router/index.ts index 33e5457..928e062 100644 --- a/ui/src/router/index.ts +++ b/ui/src/router/index.ts @@ -1,7 +1,7 @@ -import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router' -import Home from "../views/About.vue"; -import Search from '../views/Search.vue' import Inspect from "@/views/Inspect.vue"; +import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'; +import Home from "../views/About.vue"; +import Search from '../views/Search.vue'; const routes: Array = [ { diff --git a/ui/src/types/base.ts b/ui/src/types/base.ts index 34bea94..1de2e5d 100644 --- a/ui/src/types/base.ts +++ b/ui/src/types/base.ts @@ -4,7 +4,7 @@ export type VALUE_TYPE = "Value" | "Address" | "Invalid"; export interface IEntry { entity: Address, attribute: string, - value: {t: VALUE_TYPE, c: string} + value: { t: VALUE_TYPE, c: string } } export interface ListingResult { diff --git a/ui/src/views/Inspect.vue b/ui/src/views/Inspect.vue index 5b7b7d9..40dc9f6 100644 --- a/ui/src/views/Inspect.vue +++ b/ui/src/views/Inspect.vue @@ -1,7 +1,11 @@