@saooti/octopus-sdk 37.0.5 → 37.0.7

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 (263) hide show
  1. package/README.md +2 -2
  2. package/index.html +1 -0
  3. package/index.ts +21 -21
  4. package/package.json +26 -20
  5. package/public/css/fonts/icomoon.eot +0 -0
  6. package/public/css/fonts/icomoon.svg +1 -1
  7. package/public/css/fonts/icomoon.ttf +0 -0
  8. package/public/css/fonts/icomoon.woff +0 -0
  9. package/public/css/fonts/montserrat/Montserrat-Black.ttf +0 -0
  10. package/public/css/fonts/montserrat/Montserrat-BlackItalic.ttf +0 -0
  11. package/public/css/fonts/montserrat/Montserrat-Bold.ttf +0 -0
  12. package/public/css/fonts/montserrat/Montserrat-BoldItalic.ttf +0 -0
  13. package/public/css/fonts/montserrat/Montserrat-ExtraBold.ttf +0 -0
  14. package/public/css/fonts/montserrat/Montserrat-ExtraBoldItalic.ttf +0 -0
  15. package/public/css/fonts/montserrat/Montserrat-ExtraLight.ttf +0 -0
  16. package/public/css/fonts/montserrat/Montserrat-ExtraLightItalic.ttf +0 -0
  17. package/public/css/fonts/montserrat/Montserrat-Italic.ttf +0 -0
  18. package/public/css/fonts/montserrat/Montserrat-Light.ttf +0 -0
  19. package/public/css/fonts/montserrat/Montserrat-LightItalic.ttf +0 -0
  20. package/public/css/fonts/montserrat/Montserrat-Medium.ttf +0 -0
  21. package/public/css/fonts/montserrat/Montserrat-MediumItalic.ttf +0 -0
  22. package/public/css/fonts/montserrat/Montserrat-Regular.ttf +0 -0
  23. package/public/css/fonts/montserrat/Montserrat-SemiBold.ttf +0 -0
  24. package/public/css/fonts/montserrat/Montserrat-SemiBoldItalic.ttf +0 -0
  25. package/public/css/fonts/montserrat/Montserrat-Thin.ttf +0 -0
  26. package/public/css/fonts/montserrat/Montserrat-ThinItalic.ttf +0 -0
  27. package/public/css/fonts/montserrat/style.css +28 -0
  28. package/public/css/fonts/style.css +5 -5
  29. package/src/App.vue +69 -60
  30. package/src/api/classicCrud.ts +12 -12
  31. package/src/api/initialize.ts +1 -1
  32. package/src/assets/bootstrap.scss +9 -0
  33. package/src/assets/general.scss +1 -1
  34. package/src/assets/share.scss +1 -1
  35. package/src/components/display/aggregator/RssSection.vue +3 -3
  36. package/src/components/display/categories/CategoryChooser.vue +73 -60
  37. package/src/components/display/categories/CategoryFilter.vue +134 -90
  38. package/src/components/display/categories/CategoryList.vue +76 -62
  39. package/src/components/display/comments/AddCommentModal.vue +44 -44
  40. package/src/components/display/comments/CommentBasicView.vue +38 -30
  41. package/src/components/display/comments/CommentInput.vue +122 -110
  42. package/src/components/display/comments/CommentItem.vue +144 -102
  43. package/src/components/display/comments/CommentList.vue +117 -85
  44. package/src/components/display/comments/CommentParentInfo.vue +18 -15
  45. package/src/components/display/comments/CommentPlayer.vue +39 -41
  46. package/src/components/display/comments/CommentSection.vue +68 -53
  47. package/src/components/display/edit/EditBox.vue +7 -7
  48. package/src/components/display/edit/EditBoxRadio.vue +3 -4
  49. package/src/components/display/edit/EditCommentBox.vue +34 -36
  50. package/src/components/display/emission/EmissionInlineList.vue +75 -63
  51. package/src/components/display/emission/EmissionItem.vue +47 -35
  52. package/src/components/display/emission/EmissionList.vue +111 -83
  53. package/src/components/display/emission/EmissionPlayerItem.vue +89 -89
  54. package/src/components/display/filter/AdvancedSearch.vue +81 -73
  55. package/src/components/display/filter/CategorySearchFilter.vue +27 -25
  56. package/src/components/display/filter/DateFilter.vue +38 -38
  57. package/src/components/display/filter/MonetizableFilter.vue +16 -14
  58. package/src/components/display/filter/ProductorSearch.vue +55 -47
  59. package/src/components/display/filter/RubriqueChoice.vue +42 -27
  60. package/src/components/display/filter/RubriqueFilter.vue +130 -85
  61. package/src/components/display/filter/SearchOrder.vue +16 -11
  62. package/src/components/display/list/ListPaginate.vue +72 -70
  63. package/src/components/display/list/PaginateParams.vue +29 -30
  64. package/src/components/display/list/PaginateSection.vue +210 -0
  65. package/src/components/display/list/SwiperList.vue +28 -32
  66. package/src/components/display/live/CountDown.vue +12 -14
  67. package/src/components/display/live/LiveHorizontalList.vue +60 -50
  68. package/src/components/display/live/LiveItem.vue +42 -26
  69. package/src/components/display/live/LiveList.vue +92 -65
  70. package/src/components/display/live/RadioCurrently.vue +47 -42
  71. package/src/components/display/live/RadioImage.vue +40 -42
  72. package/src/components/display/live/RadioItem.vue +15 -22
  73. package/src/components/display/live/RadioList.vue +24 -21
  74. package/src/components/display/live/RadioPlanning.vue +105 -68
  75. package/src/components/display/organisation/OrganisationChooser.vue +58 -42
  76. package/src/components/display/organisation/OrganisationChooserLight.vue +27 -19
  77. package/src/components/display/participant/ParticipantItem.vue +89 -76
  78. package/src/components/display/participant/ParticipantList.vue +90 -60
  79. package/src/components/display/playlist/PlaylistItem.vue +32 -35
  80. package/src/components/display/playlist/PlaylistList.vue +70 -52
  81. package/src/components/display/playlist/PodcastList.vue +61 -50
  82. package/src/components/display/playlist/PodcastPlaylistInlineList.vue +47 -38
  83. package/src/components/display/podcasts/AnimatorsItem.vue +17 -15
  84. package/src/components/display/podcasts/ParticipantDescription.vue +21 -22
  85. package/src/components/display/podcasts/PodcastFilterList.vue +28 -26
  86. package/src/components/display/podcasts/PodcastImage.vue +129 -138
  87. package/src/components/display/podcasts/PodcastInlineList.vue +33 -29
  88. package/src/components/display/podcasts/PodcastInlineListClassic.vue +91 -71
  89. package/src/components/display/podcasts/PodcastInlineListTemplate.vue +94 -85
  90. package/src/components/display/podcasts/PodcastItem.vue +96 -90
  91. package/src/components/display/podcasts/PodcastItemInfo.vue +63 -65
  92. package/src/components/display/podcasts/PodcastList.vue +115 -84
  93. package/src/components/display/podcasts/PodcastModuleBox.vue +95 -104
  94. package/src/components/display/podcasts/PodcastPlayBar.vue +45 -32
  95. package/src/components/display/podcasts/PodcastSwiperList.vue +65 -55
  96. package/src/components/display/podcasts/TagList.vue +33 -37
  97. package/src/components/display/rubriques/RubriqueChooser.vue +70 -51
  98. package/src/components/display/rubriques/RubriqueList.vue +117 -89
  99. package/src/components/display/sharing/PlayerParameters.vue +45 -42
  100. package/src/components/display/sharing/QrCode.vue +52 -46
  101. package/src/components/display/sharing/ShareButtons.vue +25 -27
  102. package/src/components/display/sharing/ShareButtonsIntern.vue +182 -155
  103. package/src/components/display/sharing/ShareDistribution.vue +101 -67
  104. package/src/components/display/sharing/SharePlayer.vue +207 -127
  105. package/src/components/display/sharing/SharePlayerColors.vue +15 -15
  106. package/src/components/display/sharing/SharePlayerRadio.vue +62 -39
  107. package/src/components/display/sharing/SharePlayerTypes.vue +93 -55
  108. package/src/components/display/sharing/SubscribeButtons.vue +83 -32
  109. package/src/components/display/studio/RecordingItemButton.vue +3 -3
  110. package/src/components/form/ClassicCheckbox.vue +32 -31
  111. package/src/components/form/ClassicDatePicker.vue +47 -49
  112. package/src/components/form/ClassicInputText.vue +99 -98
  113. package/src/components/form/ClassicLoading.vue +11 -14
  114. package/src/components/form/ClassicMultiselect.vue +125 -126
  115. package/src/components/form/ClassicRadio.vue +15 -18
  116. package/src/components/form/ClassicSearch.vue +17 -23
  117. package/src/components/form/ClassicSelect.vue +35 -27
  118. package/src/components/form/{Wysiwyg.vue → ClassicWysiwyg.vue} +94 -109
  119. package/src/components/misc/AcpmImage.vue +26 -0
  120. package/src/components/misc/ClassicAccordion.vue +69 -0
  121. package/src/components/misc/ClassicNav.vue +117 -0
  122. package/src/components/misc/ClassicPopover.vue +212 -0
  123. package/src/components/misc/{Spinner.vue → ClassicSpinner.vue} +14 -15
  124. package/src/components/misc/ErrorMessage.vue +9 -17
  125. package/src/components/misc/FooterSection.vue +198 -0
  126. package/src/components/misc/HomeDropdown.vue +67 -64
  127. package/src/components/misc/LeftMenu.vue +115 -79
  128. package/src/components/misc/ProgressBar.vue +36 -32
  129. package/src/components/misc/SnackBar.vue +169 -0
  130. package/src/components/misc/TopBar.vue +161 -115
  131. package/src/components/misc/modal/ClassicModal.vue +99 -103
  132. package/src/components/misc/modal/ClipboardModal.vue +21 -23
  133. package/src/components/misc/modal/MessageModal.vue +22 -28
  134. package/src/components/misc/modal/NewsletterModal.vue +139 -113
  135. package/src/components/misc/modal/QrCodeModal.vue +14 -17
  136. package/src/components/misc/modal/ShareModalPlayer.vue +44 -60
  137. package/src/components/misc/player/PlayerCompact.vue +47 -62
  138. package/src/components/misc/player/{Player.vue → PlayerComponent.vue} +54 -46
  139. package/src/components/misc/player/PlayerLarge.vue +66 -62
  140. package/src/components/misc/player/PlayerProgressBar.vue +40 -30
  141. package/src/components/misc/player/PlayerTimeline.vue +32 -36
  142. package/src/components/misc/player/radio/RadioHistory.vue +62 -59
  143. package/src/components/misc/player/radio/RadioProgressBar.vue +44 -35
  144. package/src/components/mixins/cookies.ts +11 -10
  145. package/src/components/mixins/displayMethods.ts +5 -4
  146. package/src/components/mixins/handle403.ts +9 -9
  147. package/src/components/mixins/imageProxy.ts +14 -7
  148. package/src/components/mixins/init.ts +31 -16
  149. package/src/components/mixins/orgaComputed.ts +7 -7
  150. package/src/components/mixins/organisationFilter.ts +36 -22
  151. package/src/components/mixins/player/playerComment.ts +46 -37
  152. package/src/components/mixins/player/playerDisplay.ts +122 -87
  153. package/src/components/mixins/player/playerLive.ts +65 -43
  154. package/src/components/mixins/player/playerLogic.ts +133 -88
  155. package/src/components/mixins/player/playerTranscript.ts +48 -30
  156. package/src/components/mixins/radio/fetchRadioData.ts +40 -23
  157. package/src/components/mixins/selenium.ts +2 -2
  158. package/src/components/mixins/tagOfMixins.ts +11 -11
  159. package/src/components/pages/CategoryPage.vue +43 -0
  160. package/src/components/pages/{Emission.vue → EmissionPage.vue} +98 -67
  161. package/src/components/pages/{Emissions.vue → EmissionsPage.vue} +51 -44
  162. package/src/components/pages/Error403Page.vue +20 -19
  163. package/src/components/pages/HomePage.vue +144 -0
  164. package/src/components/pages/LivesPage.vue +66 -0
  165. package/src/components/pages/PageNotFound.vue +33 -22
  166. package/src/components/pages/{Participant.vue → ParticipantPage.vue} +63 -49
  167. package/src/components/pages/{Participants.vue → ParticipantsPage.vue} +9 -9
  168. package/src/components/pages/PlaylistPage.vue +175 -0
  169. package/src/components/pages/{Playlists.vue → PlaylistsPage.vue} +16 -14
  170. package/src/components/pages/PodcastPage.vue +365 -0
  171. package/src/components/pages/PodcastsPage.vue +152 -0
  172. package/src/components/pages/RadioPage.vue +131 -0
  173. package/src/components/pages/RubriquePage.vue +45 -0
  174. package/src/components/pages/{Search.vue → SearchPage.vue} +19 -19
  175. package/src/helper/dom.ts +1 -1
  176. package/src/helper/duration.ts +10 -4
  177. package/src/helper/useEventListener.ts +7 -8
  178. package/src/i18n.ts +31 -30
  179. package/src/locale/de.ts +263 -257
  180. package/src/locale/educationen.ts +13 -13
  181. package/src/locale/educationfr.ts +1 -1
  182. package/src/locale/en.ts +323 -324
  183. package/src/locale/es.ts +325 -318
  184. package/src/locale/fr.ts +330 -324
  185. package/src/locale/it.ts +332 -328
  186. package/src/locale/messages.ts +9 -9
  187. package/src/locale/sl.ts +315 -319
  188. package/src/main.ts +28 -31
  189. package/src/router/router.ts +218 -198
  190. package/src/shims-tsx.d.ts +1 -1
  191. package/src/shims-vue.d.ts +1 -1
  192. package/src/stores/ApiStore.ts +44 -44
  193. package/src/stores/AuthStore.ts +24 -16
  194. package/src/stores/CommentStore.ts +13 -11
  195. package/src/stores/FilterStore.ts +25 -15
  196. package/src/stores/GeneralStore.ts +15 -15
  197. package/src/stores/ParamSdkStore.ts +179 -137
  198. package/src/stores/PlayerStore.ts +139 -125
  199. package/src/stores/class/adserver/adserverConfig.ts +1 -1
  200. package/src/stores/class/adserver/adserverOtherEmission.ts +9 -9
  201. package/src/stores/class/cartouchier/cartouche.ts +4 -4
  202. package/src/stores/class/cartouchier/cartouchier.ts +2 -2
  203. package/src/stores/class/conference/conference.ts +10 -9
  204. package/src/stores/class/conference/conferenceMessage.ts +2 -2
  205. package/src/stores/class/conference/conferenceParticipant.ts +1 -1
  206. package/src/stores/class/conference/studioCall.ts +6 -6
  207. package/src/stores/class/contract/contractOrganisation.ts +5 -5
  208. package/src/stores/class/ftp/ftpEmission.ts +9 -9
  209. package/src/stores/class/ftp/testFtpEmission.ts +4 -4
  210. package/src/stores/class/general/audioView.ts +19 -19
  211. package/src/stores/class/general/category.ts +1 -1
  212. package/src/stores/class/general/classicSelectType.ts +2 -3
  213. package/src/stores/class/general/customPlayer.ts +8 -8
  214. package/src/stores/class/general/emission.ts +20 -21
  215. package/src/stores/class/general/fetchParam.ts +8 -2
  216. package/src/stores/class/general/initState.ts +31 -31
  217. package/src/stores/class/general/interfacePageable.ts +13 -13
  218. package/src/stores/class/general/ituneCategory.ts +4 -4
  219. package/src/stores/class/general/listReturn.ts +12 -12
  220. package/src/stores/class/general/media.ts +7 -7
  221. package/src/stores/class/general/organisation.ts +9 -10
  222. package/src/stores/class/general/pageable.ts +10 -10
  223. package/src/stores/class/general/participant.ts +7 -7
  224. package/src/stores/class/general/player.ts +30 -28
  225. package/src/stores/class/general/playlist.ts +17 -19
  226. package/src/stores/class/general/podcast.ts +19 -19
  227. package/src/stores/class/general/sortPageable.ts +4 -4
  228. package/src/stores/class/general/soundcastCategory.ts +7 -7
  229. package/src/stores/class/ouestFrance/ofTag.ts +34 -34
  230. package/src/stores/class/ouestFrance/ofTagInfo.ts +9 -9
  231. package/src/stores/class/ouestFrance/ofTagPage.ts +7 -7
  232. package/src/stores/class/ouestFrance/ofTagSeo.ts +7 -7
  233. package/src/stores/class/ouestFrance/ofTagVente.ts +6 -6
  234. package/src/stores/class/ouestFrance/ofTagWithParents.ts +20 -20
  235. package/src/stores/class/radio/canal.ts +4 -4
  236. package/src/stores/class/radio/live.ts +6 -6
  237. package/src/stores/class/radio/mix.ts +16 -16
  238. package/src/stores/class/radio/playlistMedia.ts +7 -7
  239. package/src/stores/class/radio/recurrence.ts +54 -54
  240. package/src/stores/class/rss/rssEmission.ts +13 -13
  241. package/src/stores/class/rss/rssInfo.ts +7 -7
  242. package/src/stores/class/rubrique/rubriquage.ts +2 -2
  243. package/src/stores/class/rubrique/rubrique.ts +1 -1
  244. package/src/stores/class/stat/statArrayIncome.ts +5 -5
  245. package/src/stores/class/stat/statArrayObject.ts +26 -26
  246. package/src/stores/class/stat/statGraph.ts +6 -6
  247. package/src/stores/class/user/person.ts +4 -2
  248. package/src/stores/class/user/profile.ts +4 -2
  249. package/src/stores/class/user/userKeycloak.ts +4 -5
  250. package/src/components/display/list/Paginate.vue +0 -181
  251. package/src/components/misc/Accordion.vue +0 -78
  252. package/src/components/misc/Footer.vue +0 -165
  253. package/src/components/misc/Nav.vue +0 -119
  254. package/src/components/misc/Popover.vue +0 -193
  255. package/src/components/misc/Snackbar.vue +0 -168
  256. package/src/components/pages/Category.vue +0 -41
  257. package/src/components/pages/Home.vue +0 -125
  258. package/src/components/pages/Lives.vue +0 -64
  259. package/src/components/pages/Playlist.vue +0 -164
  260. package/src/components/pages/Podcast.vue +0 -307
  261. package/src/components/pages/Podcasts.vue +0 -146
  262. package/src/components/pages/Radio.vue +0 -122
  263. package/src/components/pages/Rubrique.vue +0 -42
package/src/main.ts CHANGED
@@ -1,39 +1,39 @@
1
- import { createApp } from 'vue';
2
- import VueLazyLoad from 'vue3-lazyload';
3
- import App from './App.vue';
4
- import {setupI18n} from './i18n';
5
- import router from '@/router/router';
6
- import { createPinia } from 'pinia';
7
- import paramStore from '@/stores/ParamSdkStore';
1
+ import { createApp } from "vue";
2
+ import VueLazyLoad from "vue3-lazyload";
3
+ import App from "./App.vue";
4
+ import { setupI18n } from "./i18n";
5
+ import router from "@/router/router";
6
+ import { createPinia } from "pinia";
7
+ import paramStore from "@/stores/ParamSdkStore";
8
8
 
9
- const nameEQ = 'octopus-language=';
10
- const ca = document.cookie.split(';');
9
+ const nameEQ = "octopus-language=";
10
+ const ca = document.cookie.split(";");
11
11
  let language = "";
12
- for (let valueCookie of ca) {
12
+ for (const valueCookie of ca) {
13
13
  let c = valueCookie;
14
- while (c.charAt(0) == ' ') c = c.substring(1, c.length);
15
- if (0 === c.indexOf(nameEQ)){
14
+ while (c.charAt(0) == " ") c = c.substring(1, c.length);
15
+ if (0 === c.indexOf(nameEQ)) {
16
16
  language = c.substring(nameEQ.length, c.length);
17
17
  break;
18
18
  }
19
19
  }
20
- if(0===language.length){
20
+ if (0 === language.length) {
21
21
  const navigatorLang = navigator.language;
22
- language = 'fr';
23
- if(navigatorLang.includes('en')){
24
- language = 'en';
25
- }else if(navigatorLang.includes('it')){
26
- language = 'it';
27
- }else if(navigatorLang.includes('sl')){
28
- language = 'sl';
29
- }else if(navigatorLang.includes('es')){
30
- language = 'es';
31
- }else if(navigatorLang.includes('de')){
32
- language = 'de';
22
+ language = "fr";
23
+ if (navigatorLang.includes("en")) {
24
+ language = "en";
25
+ } else if (navigatorLang.includes("it")) {
26
+ language = "it";
27
+ } else if (navigatorLang.includes("sl")) {
28
+ language = "sl";
29
+ } else if (navigatorLang.includes("es")) {
30
+ language = "es";
31
+ } else if (navigatorLang.includes("de")) {
32
+ language = "de";
33
33
  }
34
34
  }
35
35
 
36
- const i18n = setupI18n({locale: language}, false);
36
+ const i18n = setupI18n({ locale: language }, false);
37
37
 
38
38
  paramStore.initialize({
39
39
  generalParameters: {},
@@ -47,14 +47,11 @@ paramStore.initialize({
47
47
  player: {},
48
48
  footer: {},
49
49
  organisation: {},
50
- octopusApi: {}
50
+ octopusApi: {},
51
51
  });
52
52
 
53
53
  const pinia = createPinia();
54
54
  const app = createApp(App);
55
55
  // Initialisation store
56
- app.use(i18n)
57
- .use(pinia)
58
- .use(router)
59
- .use(VueLazyLoad);
60
- app.mount('#app');
56
+ app.use(i18n).use(pinia).use(router).use(VueLazyLoad);
57
+ app.mount("#app");
@@ -1,214 +1,234 @@
1
- import { createRouter, createWebHistory, RouteLocationNormalized, RouteRecordRaw } from 'vue-router'
1
+ import {
2
+ createRouter,
3
+ createWebHistory,
4
+ RouteLocationNormalized,
5
+ RouteRecordRaw,
6
+ } from "vue-router";
2
7
 
3
8
  /*--------------------------------------------------------------------------
4
9
  Composants publics
5
10
  --------------------------------------------------------------------------*/
6
11
 
7
- const Home = () => import('@/components/pages/Home.vue');
8
- const PodcastsPage = () => import('@/components/pages/Podcasts.vue');
9
- const EmissionPage = () => import('@/components/pages/Emission.vue');
10
- const EmissionsPage = () => import('@/components/pages/Emissions.vue');
11
- const ParticpantsPage = () => import('@/components/pages/Participants.vue');
12
- const PodcastPage = () => import('@/components/pages/Podcast.vue');
13
- const ParticipantPage = () => import('@/components/pages/Participant.vue');
14
- const SearchPage = () => import('@/components/pages/Search.vue');
15
- const CategoryPage = () => import('@/components/pages/Category.vue');
16
- const RubriquePage = () => import('@/components/pages/Rubrique.vue');
17
- const LivesPage = () => import('@/components/pages/Lives.vue');
18
- const PlaylistPage = () => import('@/components/pages/Playlist.vue');
19
- const PlaylistsPage = () => import('@/components/pages/Playlists.vue');
20
- const error403Page = () => import('@/components/pages/Error403Page.vue');
21
- const PageNotFound = () => import('@/components/pages/PageNotFound.vue');
22
- const RadioPage = () => import('@/components/pages/Radio.vue');
12
+ const Home = () => import("@/components/pages/HomePage.vue");
13
+ const PodcastsPage = () => import("@/components/pages/PodcastsPage.vue");
14
+ const EmissionPage = () => import("@/components/pages/EmissionPage.vue");
15
+ const EmissionsPage = () => import("@/components/pages/EmissionsPage.vue");
16
+ const ParticpantsPage = () => import("@/components/pages/ParticipantsPage.vue");
17
+ const PodcastPage = () => import("@/components/pages/PodcastPage.vue");
18
+ const ParticipantPage = () => import("@/components/pages/ParticipantPage.vue");
19
+ const SearchPage = () => import("@/components/pages/SearchPage.vue");
20
+ const CategoryPage = () => import("@/components/pages/CategoryPage.vue");
21
+ const RubriquePage = () => import("@/components/pages/RubriquePage.vue");
22
+ const LivesPage = () => import("@/components/pages/LivesPage.vue");
23
+ const PlaylistPage = () => import("@/components/pages/PlaylistPage.vue");
24
+ const PlaylistsPage = () => import("@/components/pages/PlaylistsPage.vue");
25
+ const error403Page = () => import("@/components/pages/Error403Page.vue");
26
+ const PageNotFound = () => import("@/components/pages/PageNotFound.vue");
27
+ const RadioPage = () => import("@/components/pages/RadioPage.vue");
23
28
 
24
29
  const routes: Array<RouteRecordRaw> = [
25
30
  /*--------------------------------------------------------------------------
26
31
  Liens publics
27
32
  --------------------------------------------------------------------------*/
28
- {
29
- path: '/',
30
- name: '',
31
- component: Home,
32
- },
33
- {
34
- path: '/main/pub/error',
35
- name: 'error',
36
- component: error403Page,
37
- },
38
- {
39
- path: '/main/pub/home:productor?:iabId?:rubriquesId?',
40
- name: 'home',
41
- component: Home,
42
- props: (route: RouteLocationNormalized) => ({
43
- productor: route.params.productor,
44
- iabId: route.params.iabId,
45
- rubriquesId: route.params.rubriquesId,
46
- }),
47
- },
48
- {
49
- path: '/main/pub/search/:query?/:productor?',
50
- name: 'search',
51
- component: SearchPage,
52
- props: (route: RouteLocationNormalized) => ({
53
- productor: route.params.productor,
54
- queryRoute: route.params.query,
55
- }),
56
- },
57
- {
58
- path: '/main/pub/podcasts/:productor?:iabId?:rubriquesId?',
59
- name: 'podcasts',
60
- component: PodcastsPage,
61
- props: (route: RouteLocationNormalized) => ({
62
- productor: route.params.productor,
63
- iabId: route.params.iabId,
64
- rubriquesId: route.params.rubriquesId,
65
- }),
66
- },
67
- {
68
- path: '/main/pub/emissions/:productor?:iabId?:rubriquesId?',
69
- name: 'emissions',
70
- component: EmissionsPage,
71
- props: (route: RouteLocationNormalized) => ({
72
- productor: route.params.productor,
73
- iabId: route.params.iabId,
74
- rubriquesId: route.params.rubriquesId,
75
- }),
76
- },
77
- {
78
- path: '/main/pub/participants/:productor?',
79
- name: 'participants',
80
- component: ParticpantsPage,
81
- props: (route: RouteLocationNormalized) => ({
82
- productor: route.params.productor,
83
- }),
84
- },
85
- {
86
- path: '/main/pub/emission/:emissionId/:productor?',
87
- name: 'emission',
88
- component: EmissionPage,
89
- props: (route: RouteLocationNormalized) => ({
90
- firstRoute: route.query.first ? parseInt(route.query.first.toString(), 10) : 0,
91
- sizeRoute: route.query.size ? parseInt(route.query.size.toString(), 10) :12,
92
- emissionId: parseInt(route.params.emissionId.toString(), 10),
93
- productor: route.params.productor,
94
- }),
95
- },
96
- {
97
- path: '/main/pub/podcast/:podcastId/:productor?',
98
- name: 'podcast',
99
- component: PodcastPage,
100
- props: (route: RouteLocationNormalized) => ({
101
- podcastId: parseInt(route.params.podcastId.toString(), 10),
102
- productor: route.params.productor,
103
- }),
104
- },
105
- {
106
- path: '/main/pub/participant/:participantId/:productor?',
107
- name: 'participant',
108
- component: ParticipantPage,
109
- props: (route: RouteLocationNormalized) => ({
110
- firstRoute: route.query.first ? parseInt(route.query.first.toString(), 10) : 0,
111
- sizeRoute: route.query.size ? parseInt(route.query.size.toString(), 10) :12,
112
- participantId: parseInt(route.params.participantId.toString(), 10),
113
- productor: route.params.productor,
114
- }),
115
- },
116
- {
117
- path: '/main/pub/category/:iabId/:productor?',
118
- name: 'category',
119
- component: CategoryPage,
120
- props: (route: RouteLocationNormalized) => ({
121
- firstRoute: route.query.first ? parseInt(route.query.first.toString(), 10) : 0,
122
- sizeRoute: route.query.size ? parseInt(route.query.size.toString(), 10) :12,
123
- iabId: parseInt(route.params.iabId.toString(), 10),
124
- productor: route.params.productor,
125
- }),
126
- },
127
- {
128
- path: '/main/pub/rubrique/:rubriqueId/:productor?',
129
- name: 'rubrique',
130
- component: RubriquePage,
131
- props: (route: RouteLocationNormalized) => ({
132
- firstRoute: route.query.first ? parseInt(route.query.first.toString(), 10) : 0,
133
- sizeRoute: route.query.size ? parseInt(route.query.size.toString(), 10) :12,
134
- rubriqueId: parseInt(route.params.rubriqueId.toString(), 10),
135
- productor: route.params.productor,
136
- }),
137
- },
138
- {
139
- path: '/main/pub/lives/:productor?',
140
- name: 'lives',
141
- component: LivesPage,
142
- props: (route: RouteLocationNormalized) => ({
143
- productor: route.params.productor,
144
- }),
145
- },
146
- {
147
- path: '/main/pub/radio/:canalId/:productor?',
148
- name: 'radio',
149
- component: RadioPage,
150
- props: (route: RouteLocationNormalized) => ({
151
- canalId: parseInt(route.params.canalId.toString(), 10),
152
- productor: route.params.productor,
153
- }),
154
- },
155
- {
156
- path: '/main/pub/home',
157
- name: 'productor',
158
- component: Home,
159
- props: () => ({
160
- productorId: 0,
161
- }),
162
- },
163
- {
164
- path: '/main/pub/home',
165
- name: 'productors',
166
- component: Home,
167
- props: () => ({
168
- productorId: 0,
169
- }),
170
- },
171
- {
172
- path: '/main/pub/playlists/:productor?',
173
- name: 'playlists',
174
- component: PlaylistsPage,
175
- props: (route: RouteLocationNormalized) => ({
176
- productor: route.params.productor,
177
- }),
178
- },
179
- {
180
- path: '/main/pub/playlist/:playlistId/:productor?',
181
- name: 'playlist',
182
- component: PlaylistPage,
183
- props: (route: RouteLocationNormalized) => ({
184
- playlistId: parseInt(route.params.playlistId.toString(), 10),
185
- productor: route.params.productor,
186
- }),
187
- },
188
- //Fake route to avoid errors
189
- {
190
- path: '/main/pub/contact',
191
- component: Home,
192
- },
193
- {
194
- path: '/main/pub/cgu',
195
- component: Home,
196
- },
197
- {
198
- path: '/main/pub/libraries',
199
- component: Home,
200
- },
201
- {
202
- path: '/main/priv/distribution/:distrib/:id',
203
- component: Home,
204
- },
205
- { path: '/:pathMatch(.*)*', component: PageNotFound }
206
-
33
+ {
34
+ path: "/",
35
+ name: "",
36
+ component: Home,
37
+ },
38
+ {
39
+ path: "/main/pub/error",
40
+ name: "error",
41
+ component: error403Page,
42
+ },
43
+ {
44
+ path: "/main/pub/home:productor?:iabId?:rubriquesId?",
45
+ name: "home",
46
+ component: Home,
47
+ props: (route: RouteLocationNormalized) => ({
48
+ productor: route.params.productor,
49
+ iabId: route.params.iabId,
50
+ rubriquesId: route.params.rubriquesId,
51
+ }),
52
+ },
53
+ {
54
+ path: "/main/pub/search/:query?/:productor?",
55
+ name: "search",
56
+ component: SearchPage,
57
+ props: (route: RouteLocationNormalized) => ({
58
+ productor: route.params.productor,
59
+ queryRoute: route.params.query,
60
+ }),
61
+ },
62
+ {
63
+ path: "/main/pub/podcasts/:productor?:iabId?:rubriquesId?",
64
+ name: "podcasts",
65
+ component: PodcastsPage,
66
+ props: (route: RouteLocationNormalized) => ({
67
+ productor: route.params.productor,
68
+ iabId: route.params.iabId,
69
+ rubriquesId: route.params.rubriquesId,
70
+ }),
71
+ },
72
+ {
73
+ path: "/main/pub/emissions/:productor?:iabId?:rubriquesId?",
74
+ name: "emissions",
75
+ component: EmissionsPage,
76
+ props: (route: RouteLocationNormalized) => ({
77
+ productor: route.params.productor,
78
+ iabId: route.params.iabId,
79
+ rubriquesId: route.params.rubriquesId,
80
+ }),
81
+ },
82
+ {
83
+ path: "/main/pub/participants/:productor?",
84
+ name: "participants",
85
+ component: ParticpantsPage,
86
+ props: (route: RouteLocationNormalized) => ({
87
+ productor: route.params.productor,
88
+ }),
89
+ },
90
+ {
91
+ path: "/main/pub/emission/:emissionId/:productor?",
92
+ name: "emission",
93
+ component: EmissionPage,
94
+ props: (route: RouteLocationNormalized) => ({
95
+ firstRoute: route.query.first
96
+ ? parseInt(route.query.first.toString(), 10)
97
+ : 0,
98
+ sizeRoute: route.query.size
99
+ ? parseInt(route.query.size.toString(), 10)
100
+ : 12,
101
+ emissionId: parseInt(route.params.emissionId.toString(), 10),
102
+ productor: route.params.productor,
103
+ }),
104
+ },
105
+ {
106
+ path: "/main/pub/podcast/:podcastId/:productor?",
107
+ name: "podcast",
108
+ component: PodcastPage,
109
+ props: (route: RouteLocationNormalized) => ({
110
+ podcastId: parseInt(route.params.podcastId.toString(), 10),
111
+ productor: route.params.productor,
112
+ }),
113
+ },
114
+ {
115
+ path: "/main/pub/participant/:participantId/:productor?",
116
+ name: "participant",
117
+ component: ParticipantPage,
118
+ props: (route: RouteLocationNormalized) => ({
119
+ firstRoute: route.query.first
120
+ ? parseInt(route.query.first.toString(), 10)
121
+ : 0,
122
+ sizeRoute: route.query.size
123
+ ? parseInt(route.query.size.toString(), 10)
124
+ : 12,
125
+ participantId: parseInt(route.params.participantId.toString(), 10),
126
+ productor: route.params.productor,
127
+ }),
128
+ },
129
+ {
130
+ path: "/main/pub/category/:iabId/:productor?",
131
+ name: "category",
132
+ component: CategoryPage,
133
+ props: (route: RouteLocationNormalized) => ({
134
+ firstRoute: route.query.first
135
+ ? parseInt(route.query.first.toString(), 10)
136
+ : 0,
137
+ sizeRoute: route.query.size
138
+ ? parseInt(route.query.size.toString(), 10)
139
+ : 12,
140
+ iabId: parseInt(route.params.iabId.toString(), 10),
141
+ productor: route.params.productor,
142
+ }),
143
+ },
144
+ {
145
+ path: "/main/pub/rubrique/:rubriqueId/:productor?",
146
+ name: "rubrique",
147
+ component: RubriquePage,
148
+ props: (route: RouteLocationNormalized) => ({
149
+ firstRoute: route.query.first
150
+ ? parseInt(route.query.first.toString(), 10)
151
+ : 0,
152
+ sizeRoute: route.query.size
153
+ ? parseInt(route.query.size.toString(), 10)
154
+ : 12,
155
+ rubriqueId: parseInt(route.params.rubriqueId.toString(), 10),
156
+ productor: route.params.productor,
157
+ }),
158
+ },
159
+ {
160
+ path: "/main/pub/lives/:productor?",
161
+ name: "lives",
162
+ component: LivesPage,
163
+ props: (route: RouteLocationNormalized) => ({
164
+ productor: route.params.productor,
165
+ }),
166
+ },
167
+ {
168
+ path: "/main/pub/radio/:canalId/:productor?",
169
+ name: "radio",
170
+ component: RadioPage,
171
+ props: (route: RouteLocationNormalized) => ({
172
+ canalId: parseInt(route.params.canalId.toString(), 10),
173
+ productor: route.params.productor,
174
+ }),
175
+ },
176
+ {
177
+ path: "/main/pub/home",
178
+ name: "productor",
179
+ component: Home,
180
+ props: () => ({
181
+ productorId: 0,
182
+ }),
183
+ },
184
+ {
185
+ path: "/main/pub/home",
186
+ name: "productors",
187
+ component: Home,
188
+ props: () => ({
189
+ productorId: 0,
190
+ }),
191
+ },
192
+ {
193
+ path: "/main/pub/playlists/:productor?",
194
+ name: "playlists",
195
+ component: PlaylistsPage,
196
+ props: (route: RouteLocationNormalized) => ({
197
+ productor: route.params.productor,
198
+ }),
199
+ },
200
+ {
201
+ path: "/main/pub/playlist/:playlistId/:productor?",
202
+ name: "playlist",
203
+ component: PlaylistPage,
204
+ props: (route: RouteLocationNormalized) => ({
205
+ playlistId: parseInt(route.params.playlistId.toString(), 10),
206
+ productor: route.params.productor,
207
+ }),
208
+ },
209
+ //Fake route to avoid errors
210
+ {
211
+ path: "/main/pub/contact",
212
+ component: Home,
213
+ },
214
+ {
215
+ path: "/main/pub/cgu",
216
+ component: Home,
217
+ },
218
+ {
219
+ path: "/main/pub/libraries",
220
+ component: Home,
221
+ },
222
+ {
223
+ path: "/main/priv/distribution/:distrib/:id",
224
+ component: Home,
225
+ },
226
+ { path: "/:pathMatch(.*)*", component: PageNotFound },
207
227
  ];
208
228
  export default createRouter({
209
229
  history: createWebHistory(),
210
230
  routes: routes,
211
- scrollBehavior(): {left: number; top: number} {
231
+ scrollBehavior(): { left: number; top: number } {
212
232
  return { left: 0, top: 0 };
213
233
  },
214
- })
234
+ });
@@ -12,4 +12,4 @@ declare global {
12
12
  }
13
13
  }
14
14
  }
15
- /* eslint-enable */
15
+ /* eslint-enable */
@@ -2,4 +2,4 @@ declare module "*.vue" {
2
2
  import { defineComponent } from "vue";
3
3
  const component: ReturnType<typeof defineComponent>;
4
4
  export default component;
5
- }
5
+ }
@@ -1,34 +1,34 @@
1
- import { defineStore } from 'pinia';
1
+ import { defineStore } from "pinia";
2
2
  interface ApiState {
3
- apiUrl: string,
4
- billingUrl:string,
5
- commentUrl: string,
6
- frontendUrl: string,
7
- hlsUrl: string,
8
- imageUrl: string,
9
- importerUrl: string,
10
- keycloakUrl: string,
11
- mediaUrl: string,
12
- miniplayerUrl:string,
13
- processorUrl: string,
14
- radioUrl: string,
15
- recoUrl:string,
16
- rtmpUrl: string,
17
- speechToTextUrl: string,
18
- textToSpeechUrl:string,
19
- studioUrl: string,
20
- videoMakerUrl: string,
21
- storageUrl: string,
3
+ apiUrl: string;
4
+ billingUrl: string;
5
+ commentUrl: string;
6
+ frontendUrl: string;
7
+ hlsUrl: string;
8
+ imageUrl: string;
9
+ importerUrl: string;
10
+ keycloakUrl: string;
11
+ mediaUrl: string;
12
+ miniplayerUrl: string;
13
+ processorUrl: string;
14
+ radioUrl: string;
15
+ recoUrl: string;
16
+ rtmpUrl: string;
17
+ speechToTextUrl: string;
18
+ textToSpeechUrl: string;
19
+ studioUrl: string;
20
+ videoMakerUrl: string;
21
+ storageUrl: string;
22
22
  }
23
- export const useApiStore = defineStore('ApiStore', {
23
+ export const useApiStore = defineStore("ApiStore", {
24
24
  state: (): ApiState => ({
25
25
  apiUrl: "",
26
- billingUrl: "",
26
+ billingUrl: "",
27
27
  commentUrl: "",
28
28
  frontendUrl: "",
29
29
  hlsUrl: "",
30
30
  imageUrl: "",
31
- importerUrl: "",
31
+ importerUrl: "",
32
32
  keycloakUrl: "",
33
33
  mediaUrl: "",
34
34
  miniplayerUrl: "",
@@ -37,7 +37,7 @@ export const useApiStore = defineStore('ApiStore', {
37
37
  recoUrl: "",
38
38
  rtmpUrl: "",
39
39
  speechToTextUrl: "",
40
- textToSpeechUrl: "",
40
+ textToSpeechUrl: "",
41
41
  studioUrl: "",
42
42
  videoMakerUrl: "",
43
43
  storageUrl: "",
@@ -45,24 +45,24 @@ export const useApiStore = defineStore('ApiStore', {
45
45
  actions: {
46
46
  initApis(initParam: ApiState) {
47
47
  this.apiUrl = initParam.apiUrl;
48
- this.billingUrl = initParam.billingUrl;
49
- this.commentUrl = initParam.commentUrl;
50
- this.frontendUrl = initParam.frontendUrl;
51
- this.hlsUrl = initParam.hlsUrl;
52
- this.imageUrl = initParam.imageUrl;
53
- this.importerUrl = initParam.importerUrl;
54
- this.keycloakUrl = initParam.keycloakUrl;
55
- this.mediaUrl = initParam.mediaUrl;
56
- this.miniplayerUrl = initParam.miniplayerUrl;
57
- this.processorUrl = initParam.processorUrl;
58
- this.radioUrl = initParam.radioUrl;
59
- this.recoUrl = initParam.recoUrl;
60
- this.rtmpUrl = initParam.rtmpUrl;
61
- this.speechToTextUrl = initParam.speechToTextUrl;
62
- this.textToSpeechUrl = initParam.textToSpeechUrl;
63
- this.studioUrl = initParam.studioUrl;
64
- this.videoMakerUrl = initParam.videoMakerUrl;
65
- this.storageUrl = initParam.storageUrl;
48
+ this.billingUrl = initParam.billingUrl;
49
+ this.commentUrl = initParam.commentUrl;
50
+ this.frontendUrl = initParam.frontendUrl;
51
+ this.hlsUrl = initParam.hlsUrl;
52
+ this.imageUrl = initParam.imageUrl;
53
+ this.importerUrl = initParam.importerUrl;
54
+ this.keycloakUrl = initParam.keycloakUrl;
55
+ this.mediaUrl = initParam.mediaUrl;
56
+ this.miniplayerUrl = initParam.miniplayerUrl;
57
+ this.processorUrl = initParam.processorUrl;
58
+ this.radioUrl = initParam.radioUrl;
59
+ this.recoUrl = initParam.recoUrl;
60
+ this.rtmpUrl = initParam.rtmpUrl;
61
+ this.speechToTextUrl = initParam.speechToTextUrl;
62
+ this.textToSpeechUrl = initParam.textToSpeechUrl;
63
+ this.studioUrl = initParam.studioUrl;
64
+ this.videoMakerUrl = initParam.videoMakerUrl;
65
+ this.storageUrl = initParam.storageUrl;
66
66
  },
67
- }
68
- })
67
+ },
68
+ });