From 7cd1de564ad36114c51243d2b78fa30836ce8c11 Mon Sep 17 00:00:00 2001 From: Rijk van Zanten Date: Fri, 14 Feb 2020 14:23:55 -0500 Subject: [PATCH] Add base public view (#39) * Fix build error in TS in test * Use public view in debug * Render project background in art * Add wide prop * Fix TS errors * Cleanup background styles + add tests * Add minimal readme --- src/components/v-sheet/v-sheet.test.ts | 2 +- src/components/v-sheet/v-sheet.vue | 7 +- src/routes/debug.vue | 15 +++- src/styles/lib/_tooltip.scss | 2 +- src/views/public/public-view.readme.md | 18 +++++ src/views/public/public-view.test.ts | 99 +++++++++++++++++++++++++- src/views/public/public-view.vue | 65 +++++++++-------- src/views/public/types.ts | 6 -- 8 files changed, 169 insertions(+), 45 deletions(-) delete mode 100644 src/views/public/types.ts diff --git a/src/components/v-sheet/v-sheet.test.ts b/src/components/v-sheet/v-sheet.test.ts index 9a249f749c..11d2431233 100644 --- a/src/components/v-sheet/v-sheet.test.ts +++ b/src/components/v-sheet/v-sheet.test.ts @@ -1,4 +1,4 @@ -import { mount, createLocalVue, Wrapper } from '@vue/test-utils'; +import { mount, createLocalVue } from '@vue/test-utils'; import VueCompositionAPI from '@vue/composition-api'; const localVue = createLocalVue(); diff --git a/src/components/v-sheet/v-sheet.vue b/src/components/v-sheet/v-sheet.vue index 0ddfd684c5..1a4b5ac8fe 100644 --- a/src/components/v-sheet/v-sheet.vue +++ b/src/components/v-sheet/v-sheet.vue @@ -7,7 +7,12 @@ diff --git a/src/views/public/types.ts b/src/views/public/types.ts deleted file mode 100644 index a66f99cd40..0000000000 --- a/src/views/public/types.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type ProjectArt = { - color: string; - background_image: string | null; - foreground_image: string | null; - note: string | null; -};