From 5332d2faf0d3ba4de381c6b87acaee95de1f1a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Tue, 21 Dec 2021 14:32:47 +0100 Subject: [PATCH] search view --- ui/package.json | 2 ++ ui/src/App.svelte | 5 +++++ ui/src/layout/Header.svelte | 14 ++++++++++---- ui/src/lib/entity.ts | 3 +-- ui/src/views/Search.svelte | 31 +++++++++++++++++++++++++++++++ ui/yarn.lock | 20 ++++++++++++++++++-- yarn.lock | 8 ++++++++ 7 files changed, 75 insertions(+), 8 deletions(-) create mode 100644 ui/src/views/Search.svelte create mode 100644 yarn.lock diff --git a/ui/package.json b/ui/package.json index b0fce95..f26a50d 100644 --- a/ui/package.json +++ b/ui/package.json @@ -15,6 +15,7 @@ "@rollup/plugin-typescript": "^8.3.0", "@tsconfig/svelte": "^2.0.0", "@types/history": "^4.7.9", + "@types/lodash": "^4.14.178", "@types/lru-cache": "^5.1.1", "@yarnpkg/fslib": "^2.6.0", "@yarnpkg/libzip": "^2.2.2", @@ -37,6 +38,7 @@ "date-fns": "^2.25.0", "filesize": "^8.0.6", "history": "^5.1.0", + "lodash": "^4.17.21", "lru-cache": "^6.0.0", "normalize.css": "^8.0.1", "sass": "^1.43.4", diff --git a/ui/src/App.svelte b/ui/src/App.svelte index d2721a0..027b753 100644 --- a/ui/src/App.svelte +++ b/ui/src/App.svelte @@ -9,6 +9,7 @@ import "@shoelace-style/shoelace/dist/components/spinner/spinner.js"; import "@shoelace-style/shoelace/dist/components/card/card.js"; import Browse from "./views/Browse.svelte"; + import Search from "./views/Search.svelte"; setBasePath("/vendor/shoelace"); @@ -31,6 +32,10 @@ + + + +