@saooti/octopus-sdk 30.0.28 → 30.0.32

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
@@ -525,4 +525,8 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
525
525
  * 30.0.25 Css + Accessibilité
526
526
  * 30.0.26 Css + Accessibilité
527
527
  * 30.0.27 Top bar responsive
528
- * 30.0.28 Limiter caractères des commentaires
528
+ * 30.0.28 Limiter caractères des commentaires
529
+ * 30.0.29 Pour podcastmaker sudPresse
530
+ * 30.0.30 Problème fetch participants
531
+ * 30.0.31 Amélioration interface
532
+ * 30.0.32 Amélioration interface
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.28",
3
+ "version": "30.0.32",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -120,9 +120,9 @@
120
120
 
121
121
  &.admin-button{
122
122
  padding: 0.3rem;
123
- height: 1.8rem;
124
- width: 1.8rem;
125
- font-size: 1rem;
123
+ height: 2.2rem !important;
124
+ width: 2.2rem;
125
+ font-size: 1.1rem;
126
126
  display: inline-flex;
127
127
  align-items: center;
128
128
  justify-content: center;
@@ -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 {
@@ -257,31 +257,34 @@ export default defineComponent({
257
257
  </script>
258
258
 
259
259
  <style lang="scss">
260
- .list-episode {
261
- padding: 2rem 0rem 1rem !important;
262
- @media (max-width: 450px) {
263
- padding: 0.5rem 0rem 1rem !important;
260
+ .octopus-app{
261
+ .list-episode {
262
+ padding: 2rem 0rem 1rem !important;
263
+ @media (max-width: 450px) {
264
+ padding: 0.5rem 0rem 1rem !important;
265
+ }
266
+ h2 {
267
+ margin-bottom: 1rem;
268
+ }
269
+ }
270
+ .element-list-inline.overflowScroll {
271
+ display: flex;
272
+ flex-wrap: wrap;
273
+ -webkit-overflow-scrolling: touch;
274
+ scroll-behavior: smooth;
275
+ padding-bottom: 1rem;
276
+ width: 100%;
277
+ height: 80vh;
278
+ overflow-y: auto;
279
+ grid-gap: inherit;
280
+ @media (max-width: 960px) {
281
+ overflow-x: hidden;
282
+ flex-direction: column;
283
+ flex-wrap: nowrap;
264
284
  }
265
- h2 {
266
- margin-bottom: 1rem;
285
+ .item-phone-margin {
286
+ margin: 1rem 0.5rem !important;
267
287
  }
268
- }
269
- .element-list-inline.overflowScroll {
270
- display: flex;
271
- flex-wrap: wrap;
272
- -webkit-overflow-scrolling: touch;
273
- scroll-behavior: smooth;
274
- padding-bottom: 1rem;
275
- width: 100%;
276
- height: 80vh;
277
- overflow-y: auto;
278
- @media (max-width: 960px) {
279
- overflow-x: hidden;
280
- flex-direction: column;
281
- flex-wrap: nowrap;
282
- }
283
- .item-phone-margin {
284
- margin: 1rem 0.5rem !important;
285
288
  }
286
289
  }
287
290
  </style>
@@ -168,7 +168,6 @@ export default defineComponent({
168
168
  async fetchContent(reset: boolean): Promise<void> {
169
169
  this.loading = true;
170
170
  if (reset) {
171
- this.emissions.length = 0;
172
171
  this.dfirst = 0;
173
172
  }
174
173
  const param: FetchParam = {
@@ -80,7 +80,6 @@ export default defineComponent({
80
80
  async fetchContent(reset: boolean): Promise<void> {
81
81
  this.inFetching = true;
82
82
  if (reset) {
83
- this.lives.length = 0;
84
83
  this.dfirst = 0;
85
84
  this.notEmpty = false;
86
85
  }
@@ -168,7 +168,7 @@ export default defineComponent({
168
168
  background: linear-gradient(
169
169
  to bottom,
170
170
  rgba(255, 255, 255, 0),
171
- #f3f3f3 40%
171
+ #fafafa 40%
172
172
  );
173
173
  }
174
174
  }
@@ -96,6 +96,9 @@ export default defineComponent({
96
96
  methods: {
97
97
  async fetchContent(reset: boolean): Promise<void> {
98
98
  this.loading = true;
99
+ if (reset) {
100
+ this.dfirst = 0;
101
+ }
99
102
  const data = await octopusApi.fetchParticipants({
100
103
  first: this.dfirst,
101
104
  size: this.dsize,
@@ -147,7 +147,6 @@ export default defineComponent({
147
147
  async fetchContent(reset: boolean): Promise<void> {
148
148
  this.inFetching = true;
149
149
  if (reset) {
150
- this.podcasts.length = 0;
151
150
  this.dfirst = 0;
152
151
  this.loading = true;
153
152
  this.loaded = false;
@@ -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')"