@saooti/octopus-sdk 40.1.6 → 40.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export const getSearch = () => import("./src/components/pages/SearchPage.vue");
|
|
|
12
12
|
export const getHome = () => import("./src/components/pages/HomePage.vue");
|
|
13
13
|
export const getCategory = () => import("./src/components/pages/CategoryPage.vue");
|
|
14
14
|
export const getRubrique = () => import("./src/components/pages/RubriquePage.vue");
|
|
15
|
+
export const getTag = () => import("./src/components/pages/TagPage.vue");
|
|
15
16
|
export const getError403Page = () => import("./src/components/pages/Error403Page.vue");
|
|
16
17
|
export const getRadio = () => import("./src/components/pages/RadioPage.vue");
|
|
17
18
|
export const getVideo = () => import("./src/components/pages/VideoPage.vue");
|
package/package.json
CHANGED
|
@@ -49,7 +49,7 @@ const ClassicPopover = defineAsyncComponent(
|
|
|
49
49
|
() => import("../../misc/ClassicPopover.vue"),
|
|
50
50
|
);
|
|
51
51
|
import {useTagOf} from "../../composable/useTagOf";
|
|
52
|
-
import { useFilterStore } from "
|
|
52
|
+
import { useFilterStore } from "../../../stores/FilterStore";
|
|
53
53
|
import { mapState } from "pinia";
|
|
54
54
|
export default defineComponent({
|
|
55
55
|
name: "TagList",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section class="page-box tag-page">
|
|
3
3
|
<h1>
|
|
4
|
-
{{ $t("Search for keyword", {tag:
|
|
4
|
+
{{ $t("Search for keyword", {tag:titleDisplay})}}
|
|
5
5
|
<img
|
|
6
6
|
v-if="isOf"
|
|
7
7
|
width="30"
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
</template>
|
|
29
29
|
|
|
30
30
|
<script setup lang="ts">
|
|
31
|
+
import { useI18n } from "vue-i18n";
|
|
32
|
+
import { useSeoTitleUrl } from "../composable/route/useSeoTitleUrl";
|
|
31
33
|
import { useSimplePageParam } from "../composable/route/useSimplePageParam";
|
|
32
34
|
import { useTagOf } from "../composable/useTagOf";
|
|
33
35
|
import PodcastList from "../display/podcasts/PodcastList.vue";
|
|
@@ -53,14 +55,13 @@ const {
|
|
|
53
55
|
|
|
54
56
|
const { isOuestFranceTag, formateOfTag } = useTagOf();
|
|
55
57
|
|
|
58
|
+
const { updatePathParams } = useSeoTitleUrl();
|
|
59
|
+
|
|
60
|
+
const titleDisplay = ref("");
|
|
61
|
+
const isOf = ref(false);
|
|
62
|
+
const {t} = useI18n();
|
|
63
|
+
|
|
56
64
|
const orgaArray = computed(() =>organisationId.value ? [organisationId.value] : []);
|
|
57
|
-
const tagDisplay = computed(() => {
|
|
58
|
-
const tagString = props.tag?? "";
|
|
59
|
-
return isOf.value ? formateOfTag(tagString) :tagString;
|
|
60
|
-
});
|
|
61
|
-
const isOf = computed(() => {
|
|
62
|
-
return isOuestFranceTag(props.tag?? "");
|
|
63
|
-
});
|
|
64
65
|
const sortOrder = computed(() =>{
|
|
65
66
|
if(searchMinSize.value.length){
|
|
66
67
|
return "SCORE";
|
|
@@ -68,6 +69,15 @@ const sortOrder = computed(() =>{
|
|
|
68
69
|
return undefined;
|
|
69
70
|
});
|
|
70
71
|
|
|
72
|
+
|
|
73
|
+
watch(()=>props.tag, async () => {
|
|
74
|
+
const tagString = props.tag?? "";
|
|
75
|
+
isOf.value = isOuestFranceTag(tagString);
|
|
76
|
+
titleDisplay.value= isOf.value ? formateOfTag(tagString) :tagString;
|
|
77
|
+
updatePathParams(t("Search for keyword", {tag:titleDisplay.value}));
|
|
78
|
+
}, {immediate: true});
|
|
79
|
+
|
|
80
|
+
|
|
71
81
|
</script>
|
|
72
82
|
<style lang="scss">
|
|
73
83
|
.octopus-app .tag-page{
|