@saooti/octopus-sdk 33.0.8 → 33.1.0

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.
Files changed (50) hide show
  1. package/README.md +1 -0
  2. package/package.json +1 -1
  3. package/src/App.vue +4 -3
  4. package/src/api/classicCrud.ts +1 -1
  5. package/src/assets/form.scss +11 -0
  6. package/src/assets/general.scss +2 -2
  7. package/src/assets/multiselect.scss +0 -1
  8. package/src/assets/share.scss +0 -1
  9. package/src/assets/transition.scss +0 -3
  10. package/src/components/display/categories/CategoryList.vue +1 -1
  11. package/src/components/display/comments/AddCommentModal.vue +1 -1
  12. package/src/components/display/comments/CommentInput.vue +2 -2
  13. package/src/components/display/emission/EmissionList.vue +1 -2
  14. package/src/components/display/emission/EmissionPlayerItem.vue +4 -4
  15. package/src/components/display/filter/ProductorSearch.vue +1 -1
  16. package/src/components/display/list/Paginate.vue +1 -1
  17. package/src/components/display/live/LiveHorizontalList.vue +1 -2
  18. package/src/components/display/organisation/OrganisationChooser.vue +1 -1
  19. package/src/components/display/participant/ParticipantList.vue +1 -2
  20. package/src/components/display/playlist/PlaylistList.vue +1 -2
  21. package/src/components/display/podcasts/PodcastImage.vue +4 -4
  22. package/src/components/display/podcasts/PodcastList.vue +2 -3
  23. package/src/components/display/podcasts/PodcastSwiperList.vue +1 -1
  24. package/src/components/display/sharing/QrCode.vue +2 -2
  25. package/src/components/display/sharing/SharePlayer.vue +3 -3
  26. package/src/components/misc/HomeDropdown.vue +2 -2
  27. package/src/components/misc/LeftMenu.vue +2 -4
  28. package/src/components/misc/TopBar.vue +1 -1
  29. package/src/components/misc/modal/ClipboardModal.vue +2 -1
  30. package/src/components/misc/modal/NewsletterModal.vue +2 -2
  31. package/src/components/misc/player/Player.vue +43 -48
  32. package/src/components/misc/player/PlayerCompact.vue +2 -2
  33. package/src/components/misc/player/PlayerTimeline.vue +1 -1
  34. package/src/components/mixins/handle403.ts +1 -1
  35. package/src/components/mixins/player/playerComment.ts +1 -1
  36. package/src/components/mixins/player/playerDisplay.ts +2 -2
  37. package/src/components/mixins/player/playerLive.ts +5 -5
  38. package/src/components/mixins/player/playerLogic.ts +27 -24
  39. package/src/components/pages/Lives.vue +1 -1
  40. package/src/store/AppStore.ts +33 -88
  41. package/src/store/PlayerStore.ts +77 -0
  42. package/src/store/class/general/emission.ts +17 -0
  43. package/src/store/class/general/participant.ts +7 -0
  44. package/src/store/class/general/playlist.ts +13 -0
  45. package/src/store/class/general/podcast.ts +30 -1
  46. package/src/store/classStore/typeAppStore.ts +79 -0
  47. package/src/store/classStore/typeAuthStore.ts +44 -0
  48. package/src/store/classStore/typePlayerStore.ts +14 -0
  49. package/vite.config.js +1 -0
  50. package/src/store/typeAppStore.ts +0 -339
@@ -1,339 +0,0 @@
1
- import { Category } from "./class/general/category"
2
- import { CommentPodcast } from "./class/general/comment"
3
- import { Emission } from "./class/general/emission"
4
- import { Media } from "./class/general/media"
5
- import { Organisation } from "./class/general/organisation"
6
- import { Participant } from "./class/general/participant"
7
- import { Player } from "./class/general/player"
8
- import { Playlist } from "./class/general/playlist"
9
- import { Podcast } from "./class/general/podcast"
10
- import { Rubriquage } from "./class/rubrique/rubriquage"
11
- import { RubriquageFilter } from "./class/rubrique/rubriquageFilter"
12
- import { Rubrique } from "./class/rubrique/rubrique"
13
- export function emptyPlaylistData(): Playlist{
14
- return {
15
- description: '',
16
- playlistId: 0,
17
- podcasts: [],
18
- score: 0,
19
- title: '',
20
- }
21
- }
22
- export function emptyParticipantData(): Participant{
23
- return {
24
- firstName: '',
25
- lastName: '',
26
- participantId:0
27
- }
28
- }
29
- export function emptyEmissionData(): Emission{
30
- return {
31
- emissionId: 0,
32
- name: '' ,
33
- description: '' ,
34
- imageUrl: '' ,
35
- iabIds: undefined ,
36
- orga: {
37
- id: '',
38
- name: '',
39
- imageUrl: ''
40
- },
41
- rubriqueIds: [] ,
42
- monetisable: 'UNDEFINED',
43
- }
44
- }
45
-
46
- export function emptyPodcastData(): Podcast{
47
- return {
48
- podcastId:0,
49
- audioUrl: '' ,
50
- audioStorageUrl: '' ,
51
- imageUrl: '' ,
52
- animators: [] ,
53
- guests: [] ,
54
- emission: emptyEmissionData(),
55
- title: '' ,
56
- description: undefined ,
57
- tags: [] ,
58
- availability: {
59
- visibility: true,
60
- date: undefined ,
61
- },
62
- monetisable: 'UNDEFINED',
63
- comments: 'inherit',
64
- organisation: {
65
- id: '' ,
66
- name: '',
67
- imageUrl: '',
68
- },
69
- pubDate: undefined ,
70
- conferenceId: 0,
71
- duration: 0,
72
- annotations: {},
73
- }
74
- }
75
-
76
-
77
- export interface General {
78
- metaTitle: string;
79
- education: boolean;
80
- logoUrl: string;
81
- }
82
-
83
- export interface Authentication{
84
- isAuthenticated: boolean;
85
- name: string;
86
- organisationId: string | undefined;
87
- organisationName: string | undefined;
88
- role: Array<string>;
89
- }
90
-
91
- export interface Filter{
92
- organisationId: string | undefined;
93
- imgUrl: string | undefined;
94
- name: string | undefined;
95
- rubriquageArray: Array<Rubriquage>;
96
- rubriqueFilter: Array<RubriquageFilter>;
97
- rubriqueDisplay: Array<Rubrique>;
98
- typeMedia: string | undefined;
99
- sortOrder: string | undefined;
100
- sortField: string | undefined;
101
- live: boolean|undefined;
102
- iab: Category |undefined;
103
- }
104
-
105
- export interface StoreState{
106
- general: General;
107
- ui: {
108
- displayLeftMenu: boolean;
109
- };
110
- storage: {
111
- uri: string | undefined;
112
- };
113
- miniplayer: {
114
- uri: string | undefined;
115
- };
116
- player: Player;
117
-
118
- navigator: {
119
- isES6: boolean;
120
- };
121
-
122
- api: {
123
- uri: string | undefined;
124
- };
125
-
126
- RssApi: {
127
- uri: string | undefined;
128
- };
129
- MediaApi: {
130
- uri: string | undefined;
131
- };
132
- CommentApi: {
133
- uri: string | undefined;
134
- };
135
- imageApi: {
136
- uri: string | undefined;
137
- };
138
- studioApi: {
139
- uri: string | undefined;
140
- };
141
- processor: {
142
- uri: string | undefined;
143
- };
144
- rtmp: {
145
- uri: string | undefined;
146
- };
147
- frontend: {
148
- uri: string | undefined;
149
- };
150
- keycloakApi: {
151
- uri: string | undefined;
152
- };
153
-
154
- hlsApi: {
155
- uri: string | undefined;
156
- };
157
-
158
- authentication: Authentication;
159
-
160
- oAuthParam: {
161
- accessToken: string | undefined;
162
- refreshToken: string | undefined;
163
- expiration: number | undefined;
164
- };
165
- media: Media;
166
-
167
- profile: {
168
- firstname: string | undefined;
169
- lastname: string | undefined;
170
- email: string | undefined;
171
- userId: string | undefined;
172
- imageUrl: string | undefined;
173
- description: string | undefined;
174
- attributes: {[key: string]:string|number|boolean|undefined}|undefined;
175
- };
176
-
177
- organisation: Organisation;
178
- categories: Array<Category>;
179
- categoriesOrga: Array<Category>;
180
-
181
- filter: Filter;
182
-
183
- liveUpdate: {
184
- isBeforeLive: boolean;
185
- };
186
-
187
- uploadPodcastData: Podcast;
188
-
189
- comments: {
190
- knownIdentity: string|null;
191
- actualPodcastId: number;
192
- loadedComments: Array<CommentPodcast>;
193
- totalCount: number;
194
- };
195
- }
196
-
197
- export function AppStoreData(): StoreState{
198
- return {
199
- general: {
200
- metaTitle: 'Octopus by Saooti',
201
- education: false,
202
- logoUrl: '/img/logo_octopus.png',
203
- },
204
-
205
- ui: {
206
- displayLeftMenu: false,
207
- },
208
- storage: {
209
- uri: undefined ,
210
- },
211
- miniplayer: {
212
- uri: undefined ,
213
- },
214
- player: {
215
- status: 'STOPPED', //STOPPED, LOADING, PLAYING, PAUSED
216
- podcast: undefined ,
217
- volume: 1, //From 0 to 1
218
- elapsed: 0, //From 0 to 1
219
- total: 0,
220
- media: undefined ,
221
- live: undefined ,
222
- seekTime:0,
223
- },
224
-
225
- navigator: {
226
- isES6: true,
227
- },
228
-
229
- api: {
230
- uri: undefined ,
231
- },
232
-
233
- RssApi: {
234
- uri: undefined ,
235
- },
236
- MediaApi: {
237
- uri: undefined ,
238
- },
239
- CommentApi: {
240
- uri: undefined ,
241
- },
242
- imageApi: {
243
- uri:undefined,
244
- },
245
- studioApi: {
246
- uri: undefined ,
247
- },
248
- processor: {
249
- uri: undefined ,
250
- },
251
- rtmp: {
252
- uri: undefined ,
253
- },
254
- frontend: {
255
- uri: undefined ,
256
- },
257
- keycloakApi:{
258
- uri:undefined,
259
- },
260
-
261
- hlsApi: {
262
- uri: undefined ,
263
- },
264
-
265
- authentication: {
266
- isAuthenticated: false,
267
- name: "",
268
- organisationId: undefined ,
269
- organisationName: undefined ,
270
- role: [""],
271
- },
272
-
273
- oAuthParam: {
274
- accessToken: undefined ,
275
- refreshToken: undefined ,
276
- expiration:undefined
277
- },
278
- media: {
279
- mediaId: 0,
280
- organisationId: '',
281
- title: '',
282
- audioUrl: ''
283
- },
284
-
285
- profile: {
286
- firstname: undefined ,
287
- lastname: undefined ,
288
- email: undefined ,
289
- userId: undefined ,
290
- imageUrl: undefined ,
291
- description: undefined ,
292
- attributes:undefined,
293
- },
294
-
295
- organisation: {
296
- id:'',
297
- name: '' ,
298
- imageUrl: '' ,
299
- description: undefined ,
300
- monetisable: undefined ,
301
- location: undefined ,
302
- comments: undefined ,
303
- attributes: {
304
- RSS_CONTACT: undefined ,
305
- },
306
- },
307
-
308
- categories: [] ,
309
-
310
- categoriesOrga: [] ,
311
-
312
- filter: {
313
- organisationId: undefined ,
314
- imgUrl: undefined,
315
- name:undefined,
316
- rubriquageArray: [],
317
- rubriqueFilter: [],
318
- rubriqueDisplay:[],
319
- typeMedia: undefined ,
320
- sortOrder: undefined ,
321
- sortField: undefined ,
322
- live: false,
323
- iab: undefined,
324
- },
325
-
326
- liveUpdate: {
327
- isBeforeLive: true,
328
- },
329
-
330
- uploadPodcastData: emptyPodcastData(),
331
-
332
- comments: {
333
- knownIdentity: null,
334
- actualPodcastId: 0 ,
335
- loadedComments: [] ,
336
- totalCount:0 ,
337
- },
338
- }
339
- }