From 7e0e108d1d5d9a86a33322432c3d7e8218961121 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Mon, 11 May 2020 22:42:20 +0200 Subject: viewer: item information (raw implementation) --- viewer/src/assets/scss/global.scss | 4 ++++ viewer/src/components/LdInformation.vue | 41 +++++++++++++++++++++++++++++++++ viewer/src/plugins/buefy.ts | 6 +++++ viewer/src/plugins/fontawesome-icons.ts | 2 ++ viewer/src/views/PanelLeft.vue | 15 +++++++++++- 5 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 viewer/src/components/LdInformation.vue (limited to 'viewer/src') diff --git a/viewer/src/assets/scss/global.scss b/viewer/src/assets/scss/global.scss index 1c1000c..4d6c707 100644 --- a/viewer/src/assets/scss/global.scss +++ b/viewer/src/assets/scss/global.scss @@ -59,6 +59,10 @@ button svg + span { height: 100%; } +.flex-grow-1 { + flex-grow: 1; +} + /** * Class for containers that centers its content vertically and horizontally, * preferably sticking to the container start if the container is smaller than the content. diff --git a/viewer/src/components/LdInformation.vue b/viewer/src/components/LdInformation.vue new file mode 100644 index 0000000..ac526d5 --- /dev/null +++ b/viewer/src/components/LdInformation.vue @@ -0,0 +1,41 @@ + + + + + + + diff --git a/viewer/src/plugins/buefy.ts b/viewer/src/plugins/buefy.ts index 0f8e16b..6cca8e7 100644 --- a/viewer/src/plugins/buefy.ts +++ b/viewer/src/plugins/buefy.ts @@ -27,6 +27,10 @@ import Loading from "buefy/src/components/loading"; import Button from "buefy/src/components/button"; // @ts-ignore import SnackBar from "buefy/src/components/snackbar"; +// @ts-ignore +import Collapse from "buefy/src/components/collapse"; +// @ts-ignore +import Tag from "buefy/src/components/tag"; import "@/assets/scss/buefy.scss"; @@ -34,6 +38,8 @@ Vue.use(Taginput); Vue.use(Loading); Vue.use(Button); Vue.use(SnackBar); +Vue.use(Collapse); +Vue.use(Tag); declare module "vue/types/vue" { interface Vue { diff --git a/viewer/src/plugins/fontawesome-icons.ts b/viewer/src/plugins/fontawesome-icons.ts index 51eda7e..9dca208 100644 --- a/viewer/src/plugins/fontawesome-icons.ts +++ b/viewer/src/plugins/fontawesome-icons.ts @@ -36,4 +36,6 @@ export { faFileVideo, faFileAudio, faFileDownload, + faCaretUp, + faCaretDown, } from "@fortawesome/free-solid-svg-icons"; diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue index 9dc76a0..6341beb 100644 --- a/viewer/src/views/PanelLeft.vue +++ b/viewer/src/views/PanelLeft.vue @@ -26,7 +26,7 @@ />

{{ $t("panelLeft.propositions") }}

-
+
+ +

+ Informations + +

+ +
@@ -49,6 +56,7 @@ import IndexFactory from "@/services/indexfactory"; @Component export default class PanelLeft extends Vue { searchFilters: Tag.Search[] = []; + infoOpen: boolean = true; mounted() { this.restoreSearchFilters(this.$route); @@ -93,6 +101,11 @@ export default class PanelLeft extends Vue { padding: 0.2em 0.5em; margin: 0 0 1px 0; font-variant: small-caps; + justify-content: space-between; + user-select: none; + > svg { + color: $link; + } } } -- cgit v1.2.3