@saooti/octopus-sdk 30.0.20 → 30.0.21

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
@@ -517,4 +517,5 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
517
517
  * 30.0.17 Oups
518
518
  * 30.0.18 Responsive select
519
519
  * 30.0.19 Mise à jour Api
520
- * 30.0.20 Petit refacto commentaires
520
+ * 30.0.20 Petit refacto commentaires
521
+ * 30.0.21 #10701 & #10698
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.20",
3
+ "version": "30.0.21",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -39,7 +39,7 @@
39
39
  "vue-router": "^4.0.12",
40
40
  "vue3-swatches": "^1.0.5",
41
41
  "vuex": "^4.0.2",
42
- "webpack": "^5.62.1"
42
+ "webpack": "^5.66.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/bootstrap": "^5.1.8",
@@ -8,7 +8,7 @@ body{
8
8
  font-family: Montserrat,sans-serif,Helvetica Neue;
9
9
  font-size: 0.8rem;
10
10
  overflow-x: hidden;
11
- background: #fff;
11
+ background: #fafafa;
12
12
  min-height: 100%;
13
13
  overscroll-behavior-y: contain;
14
14
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-if="isDisplay">
2
+ <div class="mt-3" v-if="isDisplay">
3
3
  <nav
4
4
  v-if="categoryFilter || rubriqueFilter.length"
5
5
  title="breadcrumb"
@@ -1,105 +1,97 @@
1
1
  <template>
2
2
  <div
3
- class="top-bar-dropdown"
3
+ class="d-flex align-items-center"
4
4
  >
5
- <div
5
+ <button
6
6
  v-if="authenticated"
7
- class="dropdown split-dropdown btn-group"
7
+ class="btn btn-primary m-1"
8
+ @click="goToUrl('/main/priv/backoffice')"
9
+ >
10
+ {{ $t('My space') }}
11
+ </button>
12
+ <div
13
+ class="dropdown btn-group"
8
14
  >
9
15
  <button
10
- class="btn btn-primary main-button-dropdown"
11
- @click="goToUrl('/main/priv/backoffice')"
12
- >
13
- {{ $t('My space') }}
14
- </button>
15
- <button
16
- class="btn dropdown-toggle btn-primary data-selenium-dropdown-topbar dropdown-toggle-split"
16
+ class="btn dropdown-toggle m-1 admin-button dropdown-toggle-no-caret saooti-user-octopus"
17
17
  data-bs-toggle="dropdown"
18
18
  aria-expanded="false"
19
+ :title="$t('User menu')"
19
20
  />
20
21
  <div class="dropdown-menu dropdown-menu-right px-4">
21
- <router-link
22
- v-if="isContribution && !isPodcastmaker"
23
- class="btn btn-primary w-100"
24
- to="/main/priv/upload"
25
- >
26
- {{ $t('Upload') }}
27
- </router-link>
28
- <template v-if="!isPodcastmaker">
29
- <router-link
30
- to="/main/priv/backoffice"
31
- class="show-phone dropdown-item"
32
- >
33
- {{ $t('My space') }}
34
- </router-link>
35
- <router-link
22
+ <template v-if="!authenticated">
23
+ <a
36
24
  class="dropdown-item"
37
- to="/main/priv/edit/profile"
25
+ href="/sso/login"
38
26
  >
39
- {{ $t('Edit my profile') }}
40
- </router-link>
27
+ {{ $t('Login') }}
28
+ </a>
41
29
  <router-link
42
- v-if="isOrganisation"
30
+ v-if="!isPodcastmaker"
43
31
  class="dropdown-item"
44
- to="/main/priv/edit/organisation"
32
+ to="/main/pub/create"
45
33
  >
46
- {{ $t('Edit my organisation') }}
34
+ {{ $t('Create an account') }}
47
35
  </router-link>
48
36
  </template>
49
- <template v-if="!isEducation">
50
- <hr class="dropdown-divider">
51
- <a
52
- href="https://help.octopus.saooti.com/Aide/"
53
- class="dropdown-item"
54
- rel="noopener"
55
- target="_blank"
56
- >
57
- {{ $t('Help') }}
58
- </a>
59
- <a
60
- href="https://help.octopus.saooti.com/"
61
- class="dropdown-item"
62
- rel="noopener"
63
- target="_blank"
64
- >
65
- {{ $t('TutoMag') }}
66
- </a>
67
- <hr class="dropdown-divider">
68
- <a
69
- class="dropdown-item"
70
- href="/sso/logout"
37
+ <template v-else>
38
+ <router-link
39
+ v-if="isContribution && !isPodcastmaker"
40
+ class="btn btn-primary w-100"
41
+ to="/main/priv/upload"
71
42
  >
72
- {{ $t('Logout') }}
73
- </a>
43
+ {{ $t('Upload') }}
44
+ </router-link>
45
+ <template v-if="!isPodcastmaker">
46
+ <router-link
47
+ to="/main/priv/backoffice"
48
+ class="show-phone dropdown-item"
49
+ >
50
+ {{ $t('My space') }}
51
+ </router-link>
52
+ <router-link
53
+ class="dropdown-item"
54
+ to="/main/priv/edit/profile"
55
+ >
56
+ {{ $t('Edit my profile') }}
57
+ </router-link>
58
+ <router-link
59
+ v-if="isOrganisation"
60
+ class="dropdown-item"
61
+ to="/main/priv/edit/organisation"
62
+ >
63
+ {{ $t('Edit my organisation') }}
64
+ </router-link>
65
+ </template>
66
+ <template v-if="!isEducation">
67
+ <hr class="dropdown-divider">
68
+ <a
69
+ href="https://help.octopus.saooti.com/Aide/"
70
+ class="dropdown-item"
71
+ rel="noopener"
72
+ target="_blank"
73
+ >
74
+ {{ $t('Help') }}
75
+ </a>
76
+ <a
77
+ href="https://help.octopus.saooti.com/"
78
+ class="dropdown-item"
79
+ rel="noopener"
80
+ target="_blank"
81
+ >
82
+ {{ $t('TutoMag') }}
83
+ </a>
84
+ <hr class="dropdown-divider">
85
+ <a
86
+ class="dropdown-item"
87
+ href="/sso/logout"
88
+ >
89
+ {{ $t('Logout') }}
90
+ </a>
91
+ </template>
74
92
  </template>
75
93
  </div>
76
94
  </div>
77
- <div
78
- v-else
79
- class="dropdown btn-group"
80
- >
81
- <button
82
- class="btn dropdown-toggle m-1 admin-button dropdown-toggle-no-caret saooti-user-octopus"
83
- data-bs-toggle="dropdown"
84
- aria-expanded="false"
85
- title="Profile"
86
- />
87
- <div class="dropdown-menu dropdown-menu-right px-4">
88
- <a
89
- class="dropdown-item"
90
- href="/sso/login"
91
- >
92
- {{ $t('Login') }}
93
- </a>
94
- <router-link
95
- v-if="!isPodcastmaker"
96
- class="dropdown-item"
97
- to="/main/pub/create"
98
- >
99
- {{ $t('Create an account') }}
100
- </router-link>
101
- </div>
102
- </div>
103
95
  </div>
104
96
  </template>
105
97
 
@@ -136,37 +128,4 @@ export default defineComponent({
136
128
  },
137
129
  },
138
130
  })
139
- </script>
140
-
141
- <style lang="scss">
142
- .top-bar-dropdown {
143
- display: flex;
144
- align-items: center;
145
-
146
- .main-button-dropdown {
147
- padding-bottom: 0.4rem;
148
- width: 140px;
149
- text-align: left;
150
- padding-left: 15px;
151
- margin-right: 30px;
152
- @media (max-width: 650px) {
153
- display: none;
154
- }
155
- }
156
- .btn-group .dropdown-toggle-split {
157
- align-items: center;
158
- border-radius: 50%;
159
- width: 40px !important;
160
- height: 40px !important;
161
- justify-content: center;
162
- position: absolute;
163
- right: 5px;
164
- border: 4px solid white !important;
165
- z-index: 2;
166
- @media (max-width: 650px) {
167
- position: relative;
168
- right: auto;
169
- }
170
- }
171
- }
172
- </style>
131
+ </script>
@@ -23,7 +23,7 @@
23
23
  />
24
24
  </div>
25
25
  <div
26
- v-if="(isPlaying || isPaused) && (media || isStop)"
26
+ v-if="isPlaying || isPaused"
27
27
  class="play-button-box primary-bg text-light"
28
28
  @click="stopPlayer"
29
29
  >
@@ -61,9 +61,6 @@ export default defineComponent({
61
61
  if (this.$store.state.player.podcast) return this.$store.state.player.podcast.imageUrl;
62
62
  return '';
63
63
  },
64
- isStop(): boolean{
65
- return this.$store.state.player.stop;
66
- },
67
64
  media(): undefined|Media{
68
65
  return this.$store.state.player.media;
69
66
  },
@@ -34,7 +34,7 @@
34
34
  :reset="reset"
35
35
  @selected="onOrganisationSelected"
36
36
  />
37
- <div class="d-flex justify-content-center flex-grow-1">
37
+ <div class="d-flex justify-content-end flex-grow-1">
38
38
  <router-link
39
39
  v-if="
40
40
  isLiveTab &&
@@ -233,12 +233,8 @@ export default defineComponent({
233
233
  this.$emit('emissionTitle', this.name);
234
234
  this.loaded = true;
235
235
  if (!this.emission.annotations) return;
236
- if (this.emission.annotations.RSS) {
237
- this.rssEmission = true;
238
- }
239
- if (this.emission.annotations.FTP) {
240
- this.ftpEmission = true;
241
- }
236
+ this.rssEmission = this.emission.annotations.RSS? true: false;
237
+ this.ftpEmission = this.emission.annotations.FTP? true: false;
242
238
  if (this.emission.annotations.exclusive) {
243
239
  this.exclusive =
244
240
  'true' === this.emission.annotations.exclusive ? true : false;
package/src/locale/en.ts CHANGED
@@ -295,4 +295,5 @@ export default{
295
295
  "Download":"Download",
296
296
  "Download started": 'Download started',
297
297
  'From RSS': "From an RSS feed",
298
+ "User menu":"User menu",
298
299
  };
package/src/locale/fr.ts CHANGED
@@ -295,4 +295,5 @@ export default{
295
295
  "Download":"Télécharger",
296
296
  "Download started": 'Téléchargement lancé',
297
297
  'From RSS': "Issu d'un flux RSS",
298
+ "User menu":"Menu utilisateur",
298
299
  };
@@ -17,9 +17,6 @@ export default createStore({
17
17
  };
18
18
  return;
19
19
  }
20
- if (podcast.isStop) {
21
- state.player.stop = true;
22
- }
23
20
  if (
24
21
  (state.player.podcast &&
25
22
  state.player.podcast.podcastId === podcast.podcastId) ||
@@ -199,7 +199,6 @@ export function emptyPodcastData(): Podcast{
199
199
  total: 0,
200
200
  media: undefined ,
201
201
  live: undefined ,
202
- stop: undefined ,
203
202
  },
204
203
 
205
204
  navigator: {