@saooti/octopus-sdk 30.0.30 → 30.0.31

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/README.md CHANGED
@@ -527,4 +527,5 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
527
527
  * 30.0.27 Top bar responsive
528
528
  * 30.0.28 Limiter caractères des commentaires
529
529
  * 30.0.29 Pour podcastmaker sudPresse
530
- * 30.0.30 Problème fetch participants
530
+ * 30.0.30 Problème fetch participants
531
+ * 30.0.31 Amélioration interface
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.30",
3
+ "version": "30.0.31",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -13,9 +13,11 @@ body{
13
13
  overscroll-behavior-y: contain;
14
14
  }
15
15
  .octopus-app{
16
+ h1{
17
+ margin-bottom: 2rem;
18
+ }
16
19
  h1,h2,h3,h4,h5,h6{
17
20
  font-weight: 600;
18
- margin-bottom: 0.25rem;
19
21
  margin-top: 0;
20
22
  @media (max-width: 500px){
21
23
  margin: 0.2rem;
@@ -35,6 +37,10 @@ body{
35
37
  font-size: 1rem;
36
38
  }
37
39
  }
40
+ hr{
41
+ height: 0.01rem;
42
+ color: #999;
43
+ }
38
44
 
39
45
  .small-text{
40
46
  font-size: 0.6rem;
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- v-if="isDisplay"
3
+ v-show="isDisplay"
4
4
  class="mt-3"
5
5
  >
6
6
  <nav
@@ -54,12 +54,17 @@
54
54
  <CategoryList
55
55
  v-if="!categoryFilter && !rubriquageFilter.length"
56
56
  :is-filter="true"
57
+ @categoriesLength="checkIfCategories"
57
58
  />
58
59
  <RubriqueList
59
60
  v-else-if="rubriquageFilter.length !== rubriqueFilter.length"
60
61
  :rubriquages="rubriquageFilter"
61
62
  />
62
63
  </div>
64
+ <div
65
+ v-if="!isDisplay"
66
+ class="categary-filter-no-filter"
67
+ />
63
68
  </template>
64
69
 
65
70
  <script lang="ts">
@@ -79,6 +84,11 @@ export default defineComponent({
79
84
  RubriqueList,
80
85
  RubriqueChooser
81
86
  },
87
+ data() {
88
+ return {
89
+ isCategories: false as boolean,
90
+ };
91
+ },
82
92
  computed: {
83
93
  categoryFilter(): Category|undefined{
84
94
  return this.$store.state.filter.iab;
@@ -87,16 +97,20 @@ export default defineComponent({
87
97
  return this.$store.state.filter.rubriqueFilter;
88
98
  },
89
99
  isDisplay(): boolean {
90
- return "homePriv" === this.$route.name ||"home" === this.$route.name ||"podcasts" === this.$route.name||"emissions" === this.$route.name;
100
+ return ("homePriv" === this.$route.name ||"home" === this.$route.name ||"podcasts" === this.$route.name||"emissions" === this.$route.name)
101
+ && (this.isCategories || undefined!==this.categoryFilter || 0!==this.rubriqueFilter.length || 0!==this.rubriquageFilter.length);
91
102
  },
92
103
  rubriquageFilter(): Array<Rubriquage>{
93
104
  if(this.$store.state.filter.organisationId){
94
105
  return this.$store.state.filter.rubriquageArray;
95
106
  }
96
107
  return [];
97
- }
108
+ },
98
109
  },
99
110
  methods:{
111
+ checkIfCategories(length: number): void{
112
+ this.isCategories = 0!==length;
113
+ },
100
114
  onRubriqueSelected(index: number, rubrique: Rubrique): void {
101
115
  if(!rubrique ||this.rubriqueFilter[index].rubriqueId === rubrique.rubriqueId){
102
116
  return;
@@ -145,4 +159,15 @@ export default defineComponent({
145
159
  }
146
160
  }
147
161
  })
148
- </script>
162
+ </script>
163
+ <style lang="scss">
164
+ .categary-filter-no-filter{
165
+ position: absolute;
166
+ top: 0;
167
+ bottom: 0;
168
+ right: 0;
169
+ left: 0;
170
+ background: white;
171
+ z-index: -1;
172
+ }
173
+ </style>
@@ -1,5 +1,8 @@
1
1
  <template>
2
- <div class="d-inline-flex w-100 mb-3 ps-3 pe-3 hide-phone category-list">
2
+ <div
3
+ v-if="categories.length"
4
+ class="d-inline-flex w-100 mb-3 ps-3 pe-3 hide-phone category-list"
5
+ >
3
6
  <div
4
7
  id="category-list-container"
5
8
  class="category-list-container"
@@ -50,6 +53,7 @@ export default defineComponent({
50
53
  props: {
51
54
  isFilter: { default: false, type: Boolean },
52
55
  },
56
+ emits:['categoriesLength'],
53
57
 
54
58
  data() {
55
59
  return {
@@ -65,15 +69,19 @@ export default defineComponent({
65
69
  return this.$store.state.categories;
66
70
  },
67
71
  categories(): Array<Category> {
72
+ let arrayCategories: Array<Category> = [];
68
73
  if (this.filterOrga) {
69
- return this.$store.state.categoriesOrga.filter((c: Category) => {
74
+ arrayCategories = this.$store.state.categoriesOrga.filter((c: Category) => {
70
75
  return c.podcastOrganisationCount;
71
76
  });
77
+ }else{
78
+ arrayCategories = this.$store.state.categories.filter((c: Category) => {
79
+ if (this.isPodcastmaker) return c.podcastOrganisationCount;
80
+ return c.podcastCount;
81
+ });
72
82
  }
73
- return this.$store.state.categories.filter((c: Category) => {
74
- if (this.isPodcastmaker) return c.podcastOrganisationCount;
75
- return c.podcastCount;
76
- });
83
+ this.$emit('categoriesLength', arrayCategories.length);
84
+ return arrayCategories;
77
85
  },
78
86
  filterOrga(): string {
79
87
  return this.$store.state.filter.organisationId;
@@ -83,9 +91,9 @@ export default defineComponent({
83
91
  categories: {
84
92
  deep: true,
85
93
  handler(){
86
- this.$nextTick(() => {
87
- this.resizeWindow();
88
- });
94
+ this.$nextTick(() => {
95
+ this.resizeWindow();
96
+ });
89
97
  }
90
98
  },
91
99
  filterOrga(): void {
@@ -12,7 +12,7 @@
12
12
  </template>
13
13
  </h1>
14
14
  <div
15
- class="d-flex flex-column align-items-center"
15
+ class="d-flex flex-column align-items-center mb-3"
16
16
  >
17
17
  <div
18
18
  class="img-box-circle mb-3"
@@ -43,7 +43,7 @@
43
43
  <div class="saooti-rss-bounty" />
44
44
  </a>
45
45
  </div>
46
- <div class="d-flex">
46
+ <div class="d-flex mt-3">
47
47
  <EditBox
48
48
  v-if="editRight && isEditBox"
49
49
  :participant="participant"
@@ -68,6 +68,7 @@
68
68
  :fetch-conference="fetchConference"
69
69
  />
70
70
  <PodcastInlineList
71
+ class="mt-4"
71
72
  :emission-id="podcast.emission.emissionId"
72
73
  :href="'/main/pub/emission/' + podcast.emission.emissionId"
73
74
  :title="$t('More episodes of this emission')"