@saooti/octopus-sdk 31.0.37 → 31.0.38

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
@@ -586,6 +586,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
586
586
  * 30.0.87 Podcastmaker newest (swiper list)
587
587
  * 30.0.88 Podcastmaker newest (swiper list)
588
588
  * 30.0.89 Podcastmaker newest (swiper list)
589
+ * 30.0.90 Podcastmaker newest (swiper list)
589
590
 
590
591
  * 31.0.0 Passage en 31
591
592
  * 31.0.1 Ajout pocket casts
@@ -625,4 +626,5 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
625
626
  * 31.0.35 Il faut croire que c'est SDK Day...
626
627
  * 31.0.36 Améliorations multiples (pagination, modales, pages d'erreurs...)
627
628
  * 31.0.37 Continuation améliorations
629
+ * 31.0.38 Changement reponsive topbar
628
630
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "31.0.37",
3
+ "version": "31.0.38",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -2,7 +2,18 @@
2
2
  <div
3
3
  class="d-flex flex-column p-3"
4
4
  >
5
- <h2>{{ title }}</h2>
5
+ <div class="d-flex align-items-center mb-2">
6
+ <h2 class="mb-0">
7
+ {{ title }}
8
+ </h2>
9
+ <router-link
10
+ v-if="isButtonNextTitle"
11
+ class="btn admin-button m-1 fw-bold saooti-right"
12
+ :title="buttonText"
13
+ :to="refTo"
14
+ @click="handleSeeMoreButton"
15
+ />
16
+ </div>
6
17
  <div class="d-flex justify-content-between">
7
18
  <div class="d-flex">
8
19
  <button
@@ -44,7 +55,8 @@
44
55
  </div>
45
56
  <slot name="list-inline" />
46
57
  <router-link
47
- class="btn btn-primary align-self-center width-fit-content m-4"
58
+ v-if="!isButtonNextTitle"
59
+ class="btn btn-link align-self-center width-fit-content m-4"
48
60
  :to="refTo"
49
61
  @click="handleSeeMoreButton"
50
62
  >
@@ -80,6 +92,7 @@ export default defineComponent({
80
92
  iabId: { default: undefined, type: Number},
81
93
  rubriqueId: { default: () => [], type: Array as ()=> Array<number> },
82
94
  noRubriquageId: { default: () => [], type: Array as ()=> Array<number> },
95
+ isButtonNextTitle: {default: false, type:Boolean}
83
96
  },
84
97
  emits:['sortChrono','sortPopular', 'displayPrevious', 'displayNext'],
85
98
  data() {
@@ -10,6 +10,7 @@
10
10
  :iab-id="iabId"
11
11
  :rubrique-id="rubriqueId"
12
12
  :no-rubriquage-id="noRubriquageId"
13
+ :is-button-next-title="true"
13
14
  @sortChrono="sortChrono"
14
15
  @sortPopular="sortPopular"
15
16
  >
@@ -18,10 +19,10 @@
18
19
  :loading-text="loading?$t('Loading podcasts ...'):undefined"
19
20
  />
20
21
  <swiper
21
- v-show="loaded"
22
+ v-if="!loading"
22
23
  :slides-per-view="numberItem"
23
24
  :space-between="10"
24
- :loop="true"
25
+ :loop="allPodcasts.length>=numberItem"
25
26
  :navigation="true"
26
27
  :modules="modules"
27
28
  >
@@ -83,7 +84,6 @@ export default defineComponent({
83
84
  data() {
84
85
  return {
85
86
  loading: true as boolean,
86
- loaded: true as boolean,
87
87
  popularSort: false as boolean,
88
88
  allPodcasts: [] as Array<Podcast>,
89
89
  modules: [Navigation],
@@ -151,11 +151,10 @@ export default defineComponent({
151
151
  sort: this.popularSort ? 'POPULARITY' : 'DATE',
152
152
  query: this.query,
153
153
  });
154
- this.loading = false;
155
- this.loaded = true;
156
154
  this.allPodcasts = this.allPodcasts.concat(
157
155
  data.result.filter((pod: Podcast|null) => null !== pod)
158
156
  );
157
+ this.loading = false;
159
158
  },
160
159
  sortPopular(): void {
161
160
  if (this.popularSort) return;
@@ -171,7 +170,6 @@ export default defineComponent({
171
170
  },
172
171
  reset(): void {
173
172
  this.loading = true;
174
- this.loaded = true;
175
173
  this.allPodcasts.length = 0;
176
174
  },
177
175
  },
@@ -49,22 +49,16 @@
49
49
  </template>
50
50
  <template v-if="!isEducation">
51
51
  <hr class="dropdown-divider">
52
- <a
53
- href="https://help.octopus.saooti.com/Aide/"
54
- class="dropdown-item"
55
- rel="noopener"
56
- target="_blank"
57
- >
58
- {{ $t('Help') }}
59
- </a>
60
- <a
61
- href="https://help.octopus.saooti.com/"
62
- class="dropdown-item"
63
- rel="noopener"
64
- target="_blank"
65
- >
66
- {{ $t('TutoMag') }}
67
- </a>
52
+ <template v-for="helpLink in helpLinks" :key="helpLink.title">
53
+ <a
54
+ :href="helpLink.href"
55
+ class="dropdown-item"
56
+ rel="noopener"
57
+ target="_blank"
58
+ >
59
+ {{ helpLink.title }}
60
+ </a>
61
+ </template>
68
62
  </template>
69
63
  <hr class="dropdown-divider">
70
64
  <a
@@ -95,17 +89,17 @@ export default defineComponent({
95
89
  isEducation: { default: false, type: Boolean},
96
90
  },
97
91
  computed: {
98
- /* helpLink(){
92
+ helpLinks(){
99
93
  return [
100
94
  {title:this.$t('Help'), href:'https://help.octopus.saooti.com/Aide/'},
101
95
  {title:this.$t('TutoMag'),href:"https://help.octopus.saooti.com/"}];
102
- }, */
96
+ },
103
97
  routerBackoffice(){
104
98
  return [
105
- {title:this.$t('Upload'),class:"btn btn-primary w-100", path:'/main/priv/upload', condition: this.isContribution},
99
+ {title:this.$t('Upload'),class:"btn btn-primary w-100", path:'/main/priv/upload', condition: (state.generalParameters.isContribution as boolean)},
106
100
  {title:this.$t('My space'),class:"show-phone dropdown-item", path:'/main/priv/backoffice', condition: true},
107
101
  {title:this.$t('Edit my profile'),class:"dropdown-item", path:'/main/priv/edit/profile', condition: true},
108
- {title:this.$t('Edit my organisation'),class:"dropdown-item", path:'/main/priv/edit/organisation', condition: this.isOrganisation}];
102
+ {title:this.$t('Edit my organisation'),class:"dropdown-item", path:'/main/priv/edit/organisation', condition: (state.generalParameters.isOrganisation as boolean)}];
109
103
  },
110
104
 
111
105
  isPodcastmaker(): boolean {
@@ -114,12 +108,6 @@ export default defineComponent({
114
108
  authenticated(): boolean {
115
109
  return this.$store.state.authentication.isAuthenticated;
116
110
  },
117
- isOrganisation(): boolean {
118
- return (state.generalParameters.isOrganisation as boolean);
119
- },
120
- isContribution(): boolean {
121
- return (state.generalParameters.isContribution as boolean);
122
- },
123
111
  },
124
112
 
125
113
  methods: {
@@ -261,7 +261,7 @@ export default defineComponent({
261
261
  }
262
262
  }
263
263
  /** PHONES*/
264
- @media (max-width: 1200px) {
264
+ @media (max-width: 1470px) {
265
265
  height: 3.5rem;
266
266
  .default-multiselect-width, .hosted-by, .link-hover {
267
267
  display: none;