From 1e15c60fa3c57a7d23a5ee90f6113c9a0bf58bd5 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 21 Jul 2020 12:34:39 +0200 Subject: [PATCH] #781: click on edition title back to edition's front --- assets/css/app.scss | 22 +++++----- src/App.vue | 15 ++++++- src/components/Content/ResultItem.vue | 49 +++++++++++++--------- src/pages/Edition.vue | 59 ++++++++++++++++++--------- src/store/modules/search.js | 2 +- 5 files changed, 94 insertions(+), 53 deletions(-) diff --git a/assets/css/app.scss b/assets/css/app.scss index 0f4f151..5e1014a 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -582,24 +582,26 @@ footer[role="tools"]{ } } article.result.item{ - header{ h1{ @include title3black; font-weight: 600; } h2{ @include title3black; + text-transform: none; } - } - .preview{ - font-size: 0.882em; - margin:0; - code{ - @include fontserif; - background-color: lighten(desaturate($rouge,20%), 20%); - padding:0 0.2em; + span{ + font-size: 0.882em; } - } + // .preview{ + // font-size: 0.882em; + // margin:0; + // code{ + // @include fontserif; + // background-color: lighten(desaturate($rouge,20%), 20%); + // padding:0 0.2em; + // } + // } } } } diff --git a/src/App.vue b/src/App.vue index 02a9b26..34c6d15 100644 --- a/src/App.vue +++ b/src/App.vue @@ -33,7 +33,7 @@ import History from './components/nav/History' import Results from './components/nav/Results' import Search from './components/nav/Search' import FooterTabs from './components/nav/FooterTabs' -import { mapState } from 'vuex' +import { mapActions, mapState } from 'vuex' export default { metaInfo: { @@ -55,7 +55,18 @@ export default { }, computed: { ...mapState({ - resultsOpened: state => state.Search.opened + resultsOpened: state => state.Search.opened, + editionslist: state => state.Corpus.editionslist + }) + }, + created () { + if (!this.editionslist.length) { + this.getCorpuses() + } + }, + methods: { + ...mapActions({ + getCorpuses: 'Corpus/getCorpuses' }) } } diff --git a/src/components/Content/ResultItem.vue b/src/components/Content/ResultItem.vue index 984b352..bcf7b35 100644 --- a/src/components/Content/ResultItem.vue +++ b/src/components/Content/ResultItem.vue @@ -1,30 +1,31 @@