@saooti/octopus-sdk 1.0.0 → 29.0.2

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 (230) hide show
  1. package/README.md +73 -0
  2. package/index.d.ts +4 -0
  3. package/index.ts +12 -0
  4. package/package.json +61 -39
  5. package/public/css/fonts/saooti-ui.eot +0 -0
  6. package/public/css/fonts/saooti-ui.svg +30 -19
  7. package/public/css/fonts/saooti-ui.ttf +0 -0
  8. package/public/css/fonts/saooti-ui.woff +0 -0
  9. package/public/css/fonts/style.css +48 -5
  10. package/public/img/ACPM.png +0 -0
  11. package/public/img/article.png +0 -0
  12. package/src/App.vue +97 -31
  13. package/src/api/comments.ts +3 -1
  14. package/src/api/emissions.ts +5 -2
  15. package/src/api/initialize.ts +3 -2
  16. package/src/api/podcasts.ts +5 -2
  17. package/src/api/profile.ts +4 -2
  18. package/src/api/studio.ts +12 -1
  19. package/src/assets/bootstrap-diff.scss +265 -0
  20. package/src/assets/form.scss +23 -0
  21. package/src/assets/general.scss +47 -20
  22. package/src/assets/modal.scss +9 -10
  23. package/src/assets/multiselect.scss +19 -2
  24. package/src/assets/octopus-library.scss +16 -4
  25. package/src/assets/share.scss +343 -0
  26. package/src/components/display/aggregator/RssSection.vue +4 -4
  27. package/src/components/display/categories/CategoryChooser.vue +152 -105
  28. package/src/components/display/categories/CategoryFilter.vue +108 -0
  29. package/src/components/display/categories/CategoryList.vue +138 -109
  30. package/src/components/display/comments/AddCommentModal.vue +104 -87
  31. package/src/components/display/comments/CommentInput.vue +137 -118
  32. package/src/components/display/comments/CommentItem.vue +155 -137
  33. package/src/components/display/comments/CommentList.vue +142 -120
  34. package/src/components/display/comments/CommentParentInfo.vue +39 -35
  35. package/src/components/display/comments/CommentPlayer.vue +54 -48
  36. package/src/components/display/comments/CommentSection.vue +57 -58
  37. package/src/components/display/edit/EditBox.vue +4 -4
  38. package/src/components/display/edit/EditCommentBox.vue +25 -31
  39. package/src/components/display/emission/EmissionChooser.vue +82 -80
  40. package/src/components/display/emission/EmissionInlineList.vue +118 -105
  41. package/src/components/display/emission/EmissionItem.vue +66 -167
  42. package/src/components/display/emission/EmissionList.vue +96 -122
  43. package/src/components/display/emission/EmissionPlayerItem.vue +131 -126
  44. package/src/components/display/filter/AdvancedSearch.vue +306 -372
  45. package/src/components/display/filter/CategoryFilter.vue +117 -0
  46. package/src/components/display/filter/MonetizableFilter.vue +24 -10
  47. package/src/components/display/filter/ProductorSearch.vue +131 -135
  48. package/src/components/display/filter/RubriqueChoice.vue +104 -0
  49. package/src/components/display/filter/RubriqueFilter.vue +235 -0
  50. package/src/components/display/live/CountDown.vue +30 -29
  51. package/src/components/display/live/LiveHorizontalList.vue +40 -34
  52. package/src/components/display/live/LiveItem.vue +146 -158
  53. package/src/components/display/live/LiveList.vue +167 -154
  54. package/src/components/display/organisation/OrganisationChooser.vue +125 -124
  55. package/src/components/display/organisation/OrganisationChooserLight.vue +40 -47
  56. package/src/components/display/participant/ParticipantItem.vue +92 -108
  57. package/src/components/display/participant/ParticipantList.vue +76 -69
  58. package/src/components/display/playlist/PlaylistItem.vue +45 -56
  59. package/src/components/display/playlist/PlaylistList.vue +57 -48
  60. package/src/components/display/playlist/PodcastList.vue +94 -70
  61. package/src/components/display/podcasts/AnimatorsItem.vue +26 -23
  62. package/src/components/display/podcasts/ParticipantDescription.vue +115 -0
  63. package/src/components/display/podcasts/PodcastFilterList.vue +84 -85
  64. package/src/components/display/podcasts/PodcastImage.vue +244 -208
  65. package/src/components/display/podcasts/PodcastInlineList.vue +145 -207
  66. package/src/components/display/podcasts/PodcastItem.vue +150 -132
  67. package/src/components/display/podcasts/PodcastList.vue +89 -110
  68. package/src/components/display/podcasts/TagList.vue +23 -16
  69. package/src/components/display/rubriques/RubriqueChooser.vue +137 -123
  70. package/src/components/display/rubriques/RubriqueList.vue +227 -0
  71. package/src/components/display/sharing/PlayerParameters.vue +154 -106
  72. package/src/components/display/sharing/QrCode.vue +58 -0
  73. package/src/components/display/sharing/ShareButtons.vue +214 -92
  74. package/src/components/display/sharing/ShareDistribution.vue +110 -121
  75. package/src/components/display/sharing/SharePlayer.vue +245 -190
  76. package/src/components/display/sharing/SubscribeButtons.vue +130 -66
  77. package/src/components/display/studio/RecordingItemButton.vue +4 -4
  78. package/src/components/misc/ErrorMessage.vue +21 -16
  79. package/src/components/misc/Footer.vue +131 -66
  80. package/src/components/misc/HomeDropdown.vue +166 -123
  81. package/src/components/misc/LeftMenu.vue +151 -134
  82. package/src/components/misc/Player.vue +332 -328
  83. package/src/components/misc/Snackbar.vue +27 -29
  84. package/src/components/misc/TopBar.vue +204 -174
  85. package/src/components/misc/modal/ClipboardModal.vue +46 -26
  86. package/src/components/misc/modal/MessageModal.vue +67 -51
  87. package/src/components/misc/modal/NewsletterModal.vue +179 -136
  88. package/src/components/misc/modal/QrCodeModal.vue +83 -0
  89. package/src/components/misc/modal/ShareModalPlayer.vue +133 -74
  90. package/src/components/mixins/functions.ts +21 -18
  91. package/src/components/mixins/init.ts +24 -0
  92. package/src/components/mixins/organisationFilter.ts +24 -0
  93. package/src/components/pages/Category.vue +26 -26
  94. package/src/components/pages/Emission.vue +120 -92
  95. package/src/components/pages/Emissions.vue +109 -86
  96. package/src/components/pages/Home.vue +70 -16
  97. package/src/components/pages/Lives.vue +57 -47
  98. package/src/components/pages/Participant.vue +93 -77
  99. package/src/components/pages/Participants.vue +44 -31
  100. package/src/components/pages/Playlist.vue +63 -52
  101. package/src/components/pages/Playlists.vue +41 -39
  102. package/src/components/pages/Podcast.vue +265 -251
  103. package/src/components/pages/Podcasts.vue +135 -104
  104. package/src/components/pages/Rubrique.vue +25 -19
  105. package/src/components/pages/Search.vue +71 -67
  106. package/src/helper/dom.ts +2 -2
  107. package/src/helper/duration.ts +18 -8
  108. package/src/locale/educationen.ts +14 -0
  109. package/src/locale/en.ts +299 -1
  110. package/src/locale/fr.ts +25 -10
  111. package/src/locale/messages.ts +3 -2
  112. package/src/main.ts +54 -32
  113. package/src/router/router.ts +184 -159
  114. package/src/shims-tsx.d.ts +13 -0
  115. package/src/shims-vue-recaptcha-v3.d.ts +9 -0
  116. package/src/shims-vue.d.ts +5 -6
  117. package/src/store/AppStore.ts +36 -171
  118. package/src/store/class/category.ts +8 -0
  119. package/src/store/class/comment.ts +17 -0
  120. package/src/store/class/conference.ts +27 -0
  121. package/src/store/class/customPlayer.ts +8 -0
  122. package/src/store/class/emission.ts +20 -0
  123. package/src/store/class/fetchParam.ts +16 -0
  124. package/src/store/class/media.ts +13 -0
  125. package/src/store/class/organisation.ts +19 -0
  126. package/src/store/class/participant.ts +12 -0
  127. package/src/store/class/person.ts +13 -0
  128. package/src/store/class/player.ts +12 -0
  129. package/src/store/class/playlist.ts +15 -0
  130. package/src/store/class/podcast.ts +37 -0
  131. package/src/store/class/rubriquage.ts +9 -0
  132. package/src/store/class/rubriquageFilter.ts +5 -0
  133. package/src/store/class/rubrique.ts +8 -0
  134. package/src/store/paramStore.ts +70 -29
  135. package/src/store/typeAppStore.ts +171 -237
  136. package/src/vuex-shim.d.ts +8 -0
  137. package/tsconfig.json +4 -0
  138. package/vue.config.js +14 -0
  139. package/public/img/ACPM.PNG +0 -0
  140. package/src/assets/bootstrap_scss/_alert.scss +0 -51
  141. package/src/assets/bootstrap_scss/_badge.scss +0 -54
  142. package/src/assets/bootstrap_scss/_breadcrumb.scss +0 -42
  143. package/src/assets/bootstrap_scss/_button-group.scss +0 -164
  144. package/src/assets/bootstrap_scss/_buttons.scss +0 -291
  145. package/src/assets/bootstrap_scss/_card.scss +0 -278
  146. package/src/assets/bootstrap_scss/_carousel.scss +0 -197
  147. package/src/assets/bootstrap_scss/_close.scss +0 -41
  148. package/src/assets/bootstrap_scss/_code.scss +0 -48
  149. package/src/assets/bootstrap_scss/_custom-forms.scss +0 -522
  150. package/src/assets/bootstrap_scss/_dropdown.scss +0 -201
  151. package/src/assets/bootstrap_scss/_forms.scss +0 -352
  152. package/src/assets/bootstrap_scss/_functions.scss +0 -134
  153. package/src/assets/bootstrap_scss/_grid.scss +0 -69
  154. package/src/assets/bootstrap_scss/_images.scss +0 -42
  155. package/src/assets/bootstrap_scss/_input-group.scss +0 -191
  156. package/src/assets/bootstrap_scss/_jumbotron.scss +0 -17
  157. package/src/assets/bootstrap_scss/_list-group.scss +0 -158
  158. package/src/assets/bootstrap_scss/_media.scss +0 -8
  159. package/src/assets/bootstrap_scss/_mixins.scss +0 -47
  160. package/src/assets/bootstrap_scss/_modal.scss +0 -243
  161. package/src/assets/bootstrap_scss/_nav.scss +0 -120
  162. package/src/assets/bootstrap_scss/_navbar.scss +0 -324
  163. package/src/assets/bootstrap_scss/_pagination.scss +0 -74
  164. package/src/assets/bootstrap_scss/_popover.scss +0 -170
  165. package/src/assets/bootstrap_scss/_print.scss +0 -141
  166. package/src/assets/bootstrap_scss/_progress.scss +0 -46
  167. package/src/assets/bootstrap_scss/_reboot.scss +0 -482
  168. package/src/assets/bootstrap_scss/_root.scss +0 -20
  169. package/src/assets/bootstrap_scss/_spinners.scss +0 -55
  170. package/src/assets/bootstrap_scss/_tables.scss +0 -185
  171. package/src/assets/bootstrap_scss/_toasts.scss +0 -44
  172. package/src/assets/bootstrap_scss/_tooltip.scss +0 -115
  173. package/src/assets/bootstrap_scss/_transitions.scss +0 -20
  174. package/src/assets/bootstrap_scss/_type.scss +0 -125
  175. package/src/assets/bootstrap_scss/_utilities.scss +0 -17
  176. package/src/assets/bootstrap_scss/_variables.scss +0 -1145
  177. package/src/assets/bootstrap_scss/bootstrap-grid.scss +0 -29
  178. package/src/assets/bootstrap_scss/bootstrap-reboot.scss +0 -12
  179. package/src/assets/bootstrap_scss/bootstrap.scss +0 -44
  180. package/src/assets/bootstrap_scss/mixins/_alert.scss +0 -13
  181. package/src/assets/bootstrap_scss/mixins/_background-variant.scss +0 -22
  182. package/src/assets/bootstrap_scss/mixins/_badge.scss +0 -17
  183. package/src/assets/bootstrap_scss/mixins/_border-radius.scss +0 -63
  184. package/src/assets/bootstrap_scss/mixins/_box-shadow.scss +0 -20
  185. package/src/assets/bootstrap_scss/mixins/_breakpoints.scss +0 -123
  186. package/src/assets/bootstrap_scss/mixins/_buttons.scss +0 -110
  187. package/src/assets/bootstrap_scss/mixins/_caret.scss +0 -62
  188. package/src/assets/bootstrap_scss/mixins/_clearfix.scss +0 -7
  189. package/src/assets/bootstrap_scss/mixins/_deprecate.scss +0 -10
  190. package/src/assets/bootstrap_scss/mixins/_float.scss +0 -14
  191. package/src/assets/bootstrap_scss/mixins/_forms.scss +0 -177
  192. package/src/assets/bootstrap_scss/mixins/_gradients.scss +0 -45
  193. package/src/assets/bootstrap_scss/mixins/_grid-framework.scss +0 -71
  194. package/src/assets/bootstrap_scss/mixins/_grid.scss +0 -69
  195. package/src/assets/bootstrap_scss/mixins/_hover.scss +0 -37
  196. package/src/assets/bootstrap_scss/mixins/_image.scss +0 -36
  197. package/src/assets/bootstrap_scss/mixins/_list-group.scss +0 -21
  198. package/src/assets/bootstrap_scss/mixins/_lists.scss +0 -7
  199. package/src/assets/bootstrap_scss/mixins/_nav-divider.scss +0 -11
  200. package/src/assets/bootstrap_scss/mixins/_pagination.scss +0 -22
  201. package/src/assets/bootstrap_scss/mixins/_reset-text.scss +0 -17
  202. package/src/assets/bootstrap_scss/mixins/_resize.scss +0 -6
  203. package/src/assets/bootstrap_scss/mixins/_screen-reader.scss +0 -34
  204. package/src/assets/bootstrap_scss/mixins/_size.scss +0 -7
  205. package/src/assets/bootstrap_scss/mixins/_table-row.scss +0 -39
  206. package/src/assets/bootstrap_scss/mixins/_text-emphasis.scss +0 -17
  207. package/src/assets/bootstrap_scss/mixins/_text-hide.scss +0 -11
  208. package/src/assets/bootstrap_scss/mixins/_text-truncate.scss +0 -8
  209. package/src/assets/bootstrap_scss/mixins/_transition.scss +0 -16
  210. package/src/assets/bootstrap_scss/mixins/_visibility.scss +0 -8
  211. package/src/assets/bootstrap_scss/utilities/_align.scss +0 -8
  212. package/src/assets/bootstrap_scss/utilities/_background.scss +0 -19
  213. package/src/assets/bootstrap_scss/utilities/_borders.scss +0 -75
  214. package/src/assets/bootstrap_scss/utilities/_clearfix.scss +0 -3
  215. package/src/assets/bootstrap_scss/utilities/_display.scss +0 -26
  216. package/src/assets/bootstrap_scss/utilities/_embed.scss +0 -39
  217. package/src/assets/bootstrap_scss/utilities/_flex.scss +0 -51
  218. package/src/assets/bootstrap_scss/utilities/_float.scss +0 -11
  219. package/src/assets/bootstrap_scss/utilities/_overflow.scss +0 -5
  220. package/src/assets/bootstrap_scss/utilities/_position.scss +0 -32
  221. package/src/assets/bootstrap_scss/utilities/_screenreaders.scss +0 -11
  222. package/src/assets/bootstrap_scss/utilities/_shadows.scss +0 -6
  223. package/src/assets/bootstrap_scss/utilities/_sizing.scss +0 -20
  224. package/src/assets/bootstrap_scss/utilities/_spacing.scss +0 -73
  225. package/src/assets/bootstrap_scss/utilities/_stretched-link.scss +0 -19
  226. package/src/assets/bootstrap_scss/utilities/_text.scss +0 -72
  227. package/src/assets/bootstrap_scss/utilities/_visibility.scss +0 -13
  228. package/src/assets/bootstrap_scss/vendor/_rfs.scss +0 -204
  229. package/src/shims-vuex.d.ts +0 -7
  230. package/src/views/Home.vue +0 -18
@@ -1,239 +1,177 @@
1
- export interface Emission{
2
- emissionId: number|undefined,
3
- name: string | undefined,
4
- description: string | undefined,
5
- imageUrl: string | undefined,
6
- iabIds: any,
7
- orga: Organisation,
8
- rubriqueIds: any,
9
- monetisable: string,
10
- annotations?:any
11
- }
12
- export interface Organisation {
13
- id: string | undefined,
14
- name?: string | undefined,
15
- imageUrl?: string | undefined,
16
- description?: string | undefined,
17
- monetisable?: string | undefined,
18
- location?: any,
19
- comments?: string | undefined,
20
- attributes?: any,
21
- SOUNDCAST_IDENTIFIER?: string | undefined,
22
- SEPA?: string | undefined,
23
- SIRET?: string | undefined,
24
- }
25
- export interface Podcast{
26
- podcastId:number,
27
- audioUrl: string | undefined,
28
- imageUrl: string | undefined,
29
- animators: any,
30
- guests: any,
31
- emission: Emission,
32
- title: string | undefined,
33
- description: string |undefined,
34
- tags: any,
35
- availability: any,
36
- email: string | undefined,
37
- processorId: string | undefined,
38
- monetisable: string,
39
- comments: string,
40
- organisation: Organisation,
41
- saveOrganisationRubriquage: any,
42
- pubDate: string | undefined,
43
- conferenceId: number,
44
- duration: number,
45
- annotations: any,
46
- createdAt?: any,
47
- rubriqueIds?:any,
1
+ import { Category } from "./class/category"
2
+ import { CommentPodcast } from "./class/comment"
3
+ import { Emission } from "./class/emission"
4
+ import { Media } from "./class/media"
5
+ import { Organisation } from "./class/organisation"
6
+ import { Player } from "./class/player"
7
+ import { Podcast } from "./class/podcast"
8
+ import { Rubriquage } from "./class/rubriquage"
9
+ import { RubriquageFilter } from "./class/rubriquageFilter"
10
+ import { Rubrique } from "./class/rubrique"
11
+ export function emptyEmissionData(): Emission{
12
+ return {
13
+ emissionId: 0 ,
14
+ name: '' ,
15
+ description: '' ,
16
+ imageUrl: '' ,
17
+ iabIds: undefined ,
18
+ orga: {
19
+ id: '',
20
+ name: '',
21
+ imageUrl: ''
22
+ },
23
+ rubriqueIds: [] ,
24
+ monetisable: 'UNDEFINED',
25
+ }
48
26
  }
27
+
49
28
  export function emptyPodcastData(): Podcast{
50
29
  return {
51
30
  podcastId:0,
52
- audioUrl: undefined as any,
53
- imageUrl: undefined as any,
54
- animators: [] as any,
55
- guests: [] as any,
56
- emission: {
57
- emissionId: undefined as any,
58
- name: undefined as any,
59
- description: undefined as any,
60
- imageUrl: undefined as any,
61
- iabIds: undefined as any,
62
- orga: {
63
- id: undefined as any,
64
- },
65
- rubriqueIds: [] as any,
66
- monetisable: 'UNDEFINED',
67
- },
68
- title: undefined as any,
69
- description: undefined as any,
70
- tags: [] as any,
31
+ audioUrl: '' ,
32
+ audioStorageUrl: '' ,
33
+ imageUrl: '' ,
34
+ animators: [] ,
35
+ guests: [] ,
36
+ emission: emptyEmissionData(),
37
+ title: '' ,
38
+ description: undefined ,
39
+ tags: [] ,
71
40
  availability: {
72
- visibility: true,
73
- date: undefined as any,
41
+ visibility: true,
42
+ date: undefined ,
74
43
  },
75
- email: undefined as any,
76
- processorId: undefined as any,
77
44
  monetisable: 'UNDEFINED',
78
45
  comments: 'inherit',
79
46
  organisation: {
80
- id: undefined as any,
47
+ id: '' ,
48
+ name: '',
49
+ imageUrl: '',
81
50
  },
82
- saveOrganisationRubriquage: undefined as any,
83
- pubDate: undefined as any,
51
+ pubDate: undefined ,
84
52
  conferenceId: 0,
85
53
  duration: 0,
86
54
  annotations: {},
87
55
  }
88
56
  }
89
57
 
90
- export function emptyEmissionData(): Emission{
91
- return {
92
- emissionId: undefined as any,
93
- name: undefined as any,
94
- description: undefined as any,
95
- imageUrl: undefined as any,
96
- iabIds: undefined as any,
97
- orga: {
98
- id: undefined as any,
99
- },
100
- rubriqueIds: [] as any,
101
- monetisable: 'UNDEFINED',
102
- }
103
- }
58
+
104
59
  export interface General {
105
- metaTitle: string,
106
- education: Boolean,
107
- logoUrl: string,
108
- }
109
-
110
- export interface Player{
111
- status: string, //STOPPED, LOADING, PLAYING, PAUSED
112
- podcast: any,
113
- volume?: number, //From 0 to 1
114
- elapsed?: number, //From 0 to 1
115
- total?: number,
116
- media: any,
117
- live: any,
118
- stop?: any,
60
+ metaTitle: string;
61
+ education: boolean;
62
+ logoUrl: string;
119
63
  }
120
64
 
121
65
  export interface Authentication{
122
- isAuthenticated: Boolean,
123
- name: string,
124
- organisationId: string | undefined,
125
- organisationName: string | undefined,
126
- role: Array<string>,
127
- }
128
- export interface Media{
129
- file: any,
130
- organisationId: string | undefined,
131
- titre: string | undefined,
132
- annee: string | undefined,
133
- type: string | undefined,
134
- artiste: string | undefined,
135
- album: string | undefined,
66
+ isAuthenticated: boolean;
67
+ name: string;
68
+ organisationId: string | undefined;
69
+ organisationName: string | undefined;
70
+ role: Array<string>;
136
71
  }
137
72
 
138
73
  export interface Filter{
139
- organisationId: string | undefined,
140
- imgUrl: string | undefined,
141
- typeMedia: string | undefined,
142
- sortOrder: string | undefined,
143
- sortField: string | undefined,
144
- live: any,
74
+ organisationId: string | undefined;
75
+ imgUrl: string | undefined;
76
+ rubriquageArray: Array<Rubriquage>;
77
+ rubriqueFilter: Array<RubriquageFilter>;
78
+ rubriqueDisplay: Array<Rubrique>;
79
+ typeMedia: string | undefined;
80
+ sortOrder: string | undefined;
81
+ sortField: string | undefined;
82
+ live: any;
83
+ iab: Category |undefined;
145
84
  }
146
85
 
147
86
  export interface StoreState{
148
- general: General,
87
+ general: General;
149
88
  ui: {
150
- displayLeftMenu: boolean,
151
- },
89
+ displayLeftMenu: boolean;
90
+ };
152
91
  storage: {
153
- uri: string | undefined,
154
- },
92
+ uri: string | undefined;
93
+ };
155
94
  miniplayer: {
156
- uri: string | undefined,
157
- },
158
- player: Player,
95
+ uri: string | undefined;
96
+ };
97
+ player: Player;
159
98
 
160
99
  navigator: {
161
- isIE11: Boolean | undefined,
162
- isES6: Boolean,
163
- },
100
+ isES6: boolean;
101
+ };
164
102
 
165
103
  api: {
166
- uri: string | undefined,
167
- },
104
+ uri: string | undefined;
105
+ };
168
106
 
169
107
  RssApi: {
170
- uri: string | undefined,
171
- },
108
+ uri: string | undefined;
109
+ };
172
110
  MediaApi: {
173
- uri: string | undefined,
174
- },
111
+ uri: string | undefined;
112
+ };
175
113
  CommentApi: {
176
- uri: string | undefined,
177
- },
114
+ uri: string | undefined;
115
+ };
178
116
  studioApi: {
179
- uri: string | undefined,
180
- },
117
+ uri: string | undefined;
118
+ };
181
119
  processor: {
182
- uri: string | undefined,
183
- },
120
+ uri: string | undefined;
121
+ };
184
122
  rtmp: {
185
- uri: string | undefined,
186
- },
123
+ uri: string | undefined;
124
+ };
187
125
  frontend: {
188
- uri: string | undefined,
189
- },
190
- keycloakApi:{
191
- uri:string | undefined,
192
- },
126
+ uri: string | undefined;
127
+ };
128
+ keycloakApi: {
129
+ uri: string | undefined;
130
+ };
193
131
 
194
132
  hlsApi: {
195
- uri: string | undefined,
196
- },
133
+ uri: string | undefined;
134
+ };
197
135
 
198
- authentication: Authentication,
136
+ authentication: Authentication;
199
137
 
200
138
  oAuthParam: {
201
- accessToken: string | undefined,
202
- refreshToken: string | undefined,
203
- accessTokenUri: string | undefined,
204
- clientId: string | undefined,
205
- expiration:any,
206
- },
207
- media: Media,
139
+ accessToken: string | undefined;
140
+ refreshToken: string | undefined;
141
+ accessTokenUri: string | undefined;
142
+ clientId: string | undefined;
143
+ expiration: any;
144
+ };
145
+ media: Media;
208
146
 
209
147
  profile: {
210
- firstname: any,
211
- lastname: any,
212
- email: any,
213
- userId: any,
214
- imageUrl: any,
215
- description: any,
216
- attributes:any,
217
- },
148
+ firstname: any;
149
+ lastname: any;
150
+ email: any;
151
+ userId: any;
152
+ imageUrl: any;
153
+ description: any;
154
+ attributes: any;
155
+ };
218
156
 
219
- organisation: Organisation,
220
- categories: any,
221
- categoriesOrga: any,
157
+ organisation: Organisation;
158
+ categories: any;
159
+ categoriesOrga: any;
222
160
 
223
- filter: Filter,
161
+ filter: Filter;
224
162
 
225
163
  liveUpdate: {
226
- isBeforeLive: Boolean,
227
- },
164
+ isBeforeLive: boolean;
165
+ };
228
166
 
229
- uploadPodcastData: Podcast,
167
+ uploadPodcastData: Podcast;
230
168
 
231
169
  comments: {
232
- knownIdentity: any,
233
- actualPodcastId: number | undefined,
234
- loadedComments: any,
235
- totalCount: any,
236
- },
170
+ knownIdentity: string|null;
171
+ actualPodcastId: number;
172
+ loadedComments: Array<CommentPodcast>;
173
+ totalCount: number;
174
+ };
237
175
  }
238
176
 
239
177
  export function AppStoreData(): StoreState{
@@ -248,122 +186,118 @@ export function emptyPodcastData(): Podcast{
248
186
  displayLeftMenu: false,
249
187
  },
250
188
  storage: {
251
- uri: undefined as any,
189
+ uri: undefined ,
252
190
  },
253
191
  miniplayer: {
254
- uri: undefined as any,
192
+ uri: undefined ,
255
193
  },
256
194
  player: {
257
195
  status: 'STOPPED', //STOPPED, LOADING, PLAYING, PAUSED
258
- podcast: undefined as any,
196
+ podcast: undefined ,
259
197
  volume: 1, //From 0 to 1
260
198
  elapsed: 0, //From 0 to 1
261
199
  total: 0,
262
- media: undefined as any,
263
- live: undefined as any,
264
- stop: undefined as any,
200
+ media: undefined ,
201
+ live: undefined ,
202
+ stop: undefined ,
265
203
  },
266
204
 
267
205
  navigator: {
268
- isIE11: undefined as any,
269
206
  isES6: true,
270
207
  },
271
208
 
272
209
  api: {
273
- uri: undefined as any,
210
+ uri: undefined ,
274
211
  },
275
212
 
276
213
  RssApi: {
277
- uri: undefined as any,
214
+ uri: undefined ,
278
215
  },
279
216
  MediaApi: {
280
- uri: undefined as any,
217
+ uri: undefined ,
281
218
  },
282
219
  CommentApi: {
283
- uri: undefined as any,
220
+ uri: undefined ,
284
221
  },
285
222
  studioApi: {
286
- uri: undefined as any,
223
+ uri: undefined ,
287
224
  },
288
225
  processor: {
289
- uri: undefined as any,
226
+ uri: undefined ,
290
227
  },
291
228
  rtmp: {
292
- uri: undefined as any,
229
+ uri: undefined ,
293
230
  },
294
231
  frontend: {
295
- uri: undefined as any,
232
+ uri: undefined ,
296
233
  },
297
234
  keycloakApi:{
298
235
  uri:undefined,
299
236
  },
300
237
 
301
238
  hlsApi: {
302
- uri: undefined as any,
239
+ uri: undefined ,
303
240
  },
304
241
 
305
242
  authentication: {
306
243
  isAuthenticated: false,
307
244
  name: "",
308
- organisationId: undefined as any,
309
- organisationName: undefined as any,
245
+ organisationId: undefined ,
246
+ organisationName: undefined ,
310
247
  role: [""],
311
248
  },
312
249
 
313
250
  oAuthParam: {
314
- accessToken: undefined as any,
315
- refreshToken: undefined as any,
316
- accessTokenUri: undefined as any,
317
- clientId: undefined as any,
251
+ accessToken: undefined ,
252
+ refreshToken: undefined ,
253
+ accessTokenUri: undefined ,
254
+ clientId: undefined ,
318
255
  expiration:undefined
319
256
  },
320
257
  media: {
321
- file: undefined as any,
322
- organisationId: undefined as any,
323
- titre: undefined as any,
324
- annee: undefined as any,
325
- type: undefined as any,
326
- artiste: undefined as any,
327
- album: undefined as any,
258
+ mediaId: 0,
259
+ organisationId: '',
260
+ title: '',
328
261
  },
329
262
 
330
263
  profile: {
331
- firstname: undefined as any,
332
- lastname: undefined as any,
333
- email: undefined as any,
334
- userId: undefined as any,
335
- imageUrl: undefined as any,
336
- description: undefined as any,
264
+ firstname: undefined ,
265
+ lastname: undefined ,
266
+ email: undefined ,
267
+ userId: undefined ,
268
+ imageUrl: undefined ,
269
+ description: undefined ,
337
270
  attributes:undefined,
338
271
  },
339
272
 
340
273
  organisation: {
341
- id:undefined,
342
- name: undefined as any,
343
- imageUrl: undefined as any,
344
- description: undefined as any,
345
- monetisable: undefined as any,
346
- location: undefined as any,
347
- comments: undefined as any,
274
+ id:'',
275
+ name: '' ,
276
+ imageUrl: '' ,
277
+ description: undefined ,
278
+ monetisable: undefined ,
279
+ location: undefined ,
280
+ comments: undefined ,
348
281
  attributes: {
349
- RSS_CONTACT: undefined as any,
282
+ RSS_CONTACT: undefined ,
350
283
  },
351
- SOUNDCAST_IDENTIFIER: undefined as any,
352
- SEPA: undefined as any,
353
- SIRET: undefined as any,
354
284
  },
355
285
 
356
- categories: [] as any,
286
+ categories: [] ,
357
287
 
358
- categoriesOrga: [] as any,
288
+ categoriesOrga: [] ,
359
289
 
360
290
  filter: {
361
- organisationId: undefined as any,
362
- imgUrl: undefined as any,
363
- typeMedia: undefined as any,
364
- sortOrder: undefined as any,
365
- sortField: undefined as any,
291
+ organisationId: undefined ,
292
+ imgUrl: undefined ,
293
+ rubriquageArray: [],
294
+ rubriqueFilter: [],
295
+ rubriqueDisplay:[],
296
+ typeMedia: undefined ,
297
+ sortOrder: undefined ,
298
+ sortField: undefined ,
366
299
  live: false,
300
+ iab: undefined,
367
301
  },
368
302
 
369
303
  liveUpdate: {
@@ -374,9 +308,9 @@ export function emptyPodcastData(): Podcast{
374
308
 
375
309
  comments: {
376
310
  knownIdentity: null,
377
- actualPodcastId: undefined as any,
378
- loadedComments: [] as any,
379
- totalCount:undefined as any,
311
+ actualPodcastId: 0 ,
312
+ loadedComments: [] ,
313
+ totalCount:0 ,
380
314
  },
381
315
  }
382
316
  }
@@ -0,0 +1,8 @@
1
+ //import { ComponentCustomProperties } from 'vue';
2
+ import { Store } from 'vuex';
3
+ import { StoreState } from './typeAppStore';
4
+ declare module '@vue/runtime-core' {
5
+ interface ComponentCustomProperties {
6
+ $store: Store<StoreState>;
7
+ }
8
+ }
package/tsconfig.json CHANGED
@@ -36,5 +36,9 @@
36
36
  ],
37
37
  "exclude": [
38
38
  "node_modules"
39
+ ],
40
+ "files": [
41
+ "src/shims-vue.d.ts",
42
+ "src/vuex-shim.d.ts"
39
43
  ]
40
44
  }
package/vue.config.js ADDED
@@ -0,0 +1,14 @@
1
+ const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
2
+
3
+ module.exports = {
4
+ configureWebpack: {
5
+ output: {
6
+ globalObject: 'this',
7
+ },
8
+ plugins:[
9
+ new MomentLocalesPlugin({
10
+ localesToKeep: ['fr'],
11
+ }),
12
+ ],
13
+ },
14
+ };
Binary file
@@ -1,51 +0,0 @@
1
- //
2
- // Base styles
3
- //
4
-
5
- .alert {
6
- position: relative;
7
- padding: $alert-padding-y $alert-padding-x;
8
- margin-bottom: $alert-margin-bottom;
9
- border: $alert-border-width solid transparent;
10
- @include border-radius($alert-border-radius);
11
- }
12
-
13
- // Headings for larger alerts
14
- .alert-heading {
15
- // Specified to prevent conflicts of changing $headings-color
16
- color: inherit;
17
- }
18
-
19
- // Provide class for links that match alerts
20
- .alert-link {
21
- font-weight: $alert-link-font-weight;
22
- }
23
-
24
-
25
- // Dismissible alerts
26
- //
27
- // Expand the right padding and account for the close button's positioning.
28
-
29
- .alert-dismissible {
30
- padding-right: $close-font-size + $alert-padding-x * 2;
31
-
32
- // Adjust close link position
33
- .close {
34
- position: absolute;
35
- top: 0;
36
- right: 0;
37
- padding: $alert-padding-y $alert-padding-x;
38
- color: inherit;
39
- }
40
- }
41
-
42
-
43
- // Alternate styles
44
- //
45
- // Generate contextual modifier classes for colorizing the alert.
46
-
47
- @each $color, $value in $theme-colors {
48
- .alert-#{$color} {
49
- @include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), theme-color-level($color, $alert-color-level));
50
- }
51
- }
@@ -1,54 +0,0 @@
1
- // Base class
2
- //
3
- // Requires one of the contextual, color modifier classes for `color` and
4
- // `background-color`.
5
-
6
- .badge {
7
- display: inline-block;
8
- padding: $badge-padding-y $badge-padding-x;
9
- @include font-size($badge-font-size);
10
- font-weight: $badge-font-weight;
11
- line-height: 1;
12
- text-align: center;
13
- white-space: nowrap;
14
- vertical-align: baseline;
15
- @include border-radius($badge-border-radius);
16
- @include transition($badge-transition);
17
-
18
- @at-root a#{&} {
19
- @include hover-focus() {
20
- text-decoration: none;
21
- }
22
- }
23
-
24
- // Empty badges collapse automatically
25
- &:empty {
26
- display: none;
27
- }
28
- }
29
-
30
- // Quick fix for badges in buttons
31
- .btn .badge {
32
- position: relative;
33
- top: -1px;
34
- }
35
-
36
- // Pill badges
37
- //
38
- // Make them extra rounded with a modifier to replace v3's badges.
39
-
40
- .badge-pill {
41
- padding-right: $badge-pill-padding-x;
42
- padding-left: $badge-pill-padding-x;
43
- @include border-radius($badge-pill-border-radius);
44
- }
45
-
46
- // Colors
47
- //
48
- // Contextual variations (linked badges get darker on :hover).
49
-
50
- @each $color, $value in $theme-colors {
51
- .badge-#{$color} {
52
- @include badge-variant($value);
53
- }
54
- }