@saooti/octopus-sdk 30.0.7 → 30.0.11

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 (87) hide show
  1. package/README.md +5 -1
  2. package/index.ts +13 -2
  3. package/package.json +1 -1
  4. package/src/assets/bootstrap-diff.scss +17 -25
  5. package/src/assets/form.scss +7 -37
  6. package/src/assets/general.scss +62 -171
  7. package/src/assets/live.scss +39 -0
  8. package/src/assets/modal.scss +14 -18
  9. package/src/assets/multiselect.scss +4 -85
  10. package/src/assets/octopus-library.scss +1 -0
  11. package/src/assets/share.scss +149 -267
  12. package/src/assets/transition.scss +95 -1
  13. package/src/components/display/categories/CategoryChooser.vue +1 -1
  14. package/src/components/display/categories/CategoryList.vue +2 -4
  15. package/src/components/display/comments/CommentInput.vue +2 -2
  16. package/src/components/display/comments/CommentItem.vue +6 -6
  17. package/src/components/display/comments/CommentParentInfo.vue +1 -1
  18. package/src/components/display/comments/CommentPlayer.vue +1 -1
  19. package/src/components/display/edit/EditCommentBox.vue +8 -16
  20. package/src/components/display/emission/EmissionChooser.vue +1 -3
  21. package/src/components/display/emission/EmissionInlineList.vue +12 -3
  22. package/src/components/display/emission/EmissionItem.vue +22 -64
  23. package/src/components/display/emission/EmissionList.vue +59 -68
  24. package/src/components/display/emission/EmissionPlayerItem.vue +10 -9
  25. package/src/components/display/filter/AdvancedSearch.vue +50 -146
  26. package/src/components/display/filter/CategoryFilter.vue +9 -13
  27. package/src/components/display/filter/MonetizableFilter.vue +2 -4
  28. package/src/components/display/filter/ProductorSearch.vue +20 -40
  29. package/src/components/display/filter/RubriqueChoice.vue +5 -7
  30. package/src/components/display/filter/RubriqueFilter.vue +8 -13
  31. package/src/components/display/live/CountDown.vue +4 -2
  32. package/src/components/display/live/LiveHorizontalList.vue +1 -1
  33. package/src/components/display/live/LiveItem.vue +4 -4
  34. package/src/components/display/live/LiveList.vue +84 -214
  35. package/src/components/display/organisation/OrganisationChooser.vue +5 -26
  36. package/src/components/display/organisation/OrganisationChooserLight.vue +7 -1
  37. package/src/components/display/participant/ParticipantItem.vue +7 -19
  38. package/src/components/display/participant/ParticipantList.vue +39 -52
  39. package/src/components/display/playlist/PlaylistItem.vue +2 -2
  40. package/src/components/display/playlist/PlaylistList.vue +8 -14
  41. package/src/components/display/playlist/PodcastList.vue +21 -40
  42. package/src/components/display/podcasts/AnimatorsItem.vue +0 -1
  43. package/src/components/display/podcasts/ParticipantDescription.vue +4 -16
  44. package/src/components/display/podcasts/PodcastFilterList.vue +20 -63
  45. package/src/components/display/podcasts/PodcastImage.vue +27 -84
  46. package/src/components/display/podcasts/PodcastInlineList.vue +14 -36
  47. package/src/components/display/podcasts/PodcastItem.vue +5 -5
  48. package/src/components/display/podcasts/PodcastList.vue +7 -14
  49. package/src/components/display/podcasts/PodcastModuleBox.vue +9 -28
  50. package/src/components/display/podcasts/TagList.vue +2 -3
  51. package/src/components/display/rubriques/RubriqueChooser.vue +2 -2
  52. package/src/components/display/rubriques/RubriqueList.vue +5 -25
  53. package/src/components/display/sharing/PlayerParameters.vue +30 -71
  54. package/src/components/display/sharing/ShareButtons.vue +21 -45
  55. package/src/components/display/sharing/ShareDistribution.vue +1 -7
  56. package/src/components/display/sharing/SharePlayer.vue +10 -19
  57. package/src/components/display/sharing/SharePlayerColors.vue +4 -8
  58. package/src/components/display/sharing/SharePlayerTypes.vue +1 -2
  59. package/src/components/display/sharing/SubscribeButtons.vue +2 -4
  60. package/src/components/form/ClassicCheckbox.vue +61 -0
  61. package/src/components/form/ClassicLoading.vue +28 -0
  62. package/src/components/form/ClassicRadio.vue +61 -0
  63. package/src/components/form/ClassicSearch.vue +82 -0
  64. package/src/components/misc/ErrorMessage.vue +4 -1
  65. package/src/components/misc/Footer.vue +26 -35
  66. package/src/components/misc/HomeDropdown.vue +42 -91
  67. package/src/components/misc/LeftMenu.vue +107 -141
  68. package/src/components/misc/Player.vue +15 -29
  69. package/src/components/misc/PlayerButtons.vue +14 -37
  70. package/src/components/misc/PlayerClockAndTimeline.vue +1 -1
  71. package/src/components/misc/PlayerProgressBar.vue +15 -50
  72. package/src/components/misc/TopBar.vue +139 -222
  73. package/src/components/misc/modal/NewsletterModal.vue +13 -27
  74. package/src/components/pages/Category.vue +3 -8
  75. package/src/components/pages/Emission.vue +12 -24
  76. package/src/components/pages/Emissions.vue +8 -17
  77. package/src/components/pages/Home.vue +1 -3
  78. package/src/components/pages/Lives.vue +1 -4
  79. package/src/components/pages/Participant.vue +19 -27
  80. package/src/components/pages/Participants.vue +7 -15
  81. package/src/components/pages/Playlist.vue +16 -29
  82. package/src/components/pages/Playlists.vue +1 -11
  83. package/src/components/pages/Podcast.vue +16 -30
  84. package/src/components/pages/Podcasts.vue +9 -23
  85. package/src/components/pages/Search.vue +26 -64
  86. package/src/sass/_variables.scss +0 -1
  87. package/src/store/class/general/media.ts +1 -1
@@ -6,17 +6,13 @@
6
6
  isEmissionChooser ? 'justify-content-between' : 'justify-content-center'
7
7
  "
8
8
  >
9
- <h1
10
- v-if="undefined === titlePage"
11
- class="flex-shrink"
12
- >
13
- {{ $t('All podcasts') }}
14
- </h1>
15
- <h1
16
- v-else
17
- class="flex-shrink"
18
- >
19
- {{ titlePage }}
9
+ <h1 class="flex-shrink-0">
10
+ <template v-if="undefined === titlePage">
11
+ {{ $t('All podcasts') }}
12
+ </template>
13
+ <template v-else>
14
+ {{ titlePage }}
15
+ </template>
20
16
  </h1>
21
17
  <EmissionChooser
22
18
  v-if="isEmissionChooser"
@@ -92,8 +88,6 @@ export default defineComponent({
92
88
  },
93
89
 
94
90
  props: {
95
- firstRoute: { default: 0, type: Number},
96
- sizeRoute: { default: 12, type: Number},
97
91
  productor: { default: undefined, type: String},
98
92
  isEducation: { default: false, type: Boolean},
99
93
  },
@@ -101,7 +95,7 @@ export default defineComponent({
101
95
  data() {
102
96
  return {
103
97
  first: 0 as number,
104
- size: 49 as number,
98
+ size: 12 as number,
105
99
  searchPattern: '' as string,
106
100
  organisationId: undefined as string|undefined,
107
101
  monetization: 'UNDEFINED' as string, // UNDEFINED, YES, NO
@@ -160,12 +154,6 @@ export default defineComponent({
160
154
  },
161
155
 
162
156
  created() {
163
- if (this.firstRoute) {
164
- this.first = this.firstRoute;
165
- }
166
- if (this.sizeRoute) {
167
- this.size = this.sizeRoute;
168
- }
169
157
  if (this.productor) {
170
158
  this.organisationId = this.productor;
171
159
  } else if (this.$store.state.filter.organisationId) {
@@ -247,6 +235,4 @@ export default defineComponent({
247
235
  },
248
236
  },
249
237
  })
250
- </script>
251
-
252
- <style lang="scss"></style>
238
+ </script>
@@ -1,43 +1,23 @@
1
1
  <template>
2
2
  <div class="page-box">
3
- <h1 v-if="!hideBar">
4
- {{ $t('Podcast search') }}
3
+ <h1>
4
+ <template v-if="!hideBar">
5
+ {{ $t('Podcast search') }}
6
+ </template>
7
+ <template v-else-if="!noResult">
8
+ {{ $t('Search results', { query: rawQuery }) }}
9
+ </template>
10
+ <template v-else>
11
+ {{ $t('Search - no results', { query: rawQuery }) }}
12
+ </template>
5
13
  </h1>
6
- <h1 v-else-if="!noResult">
7
- {{ $t('Search results', { query: rawQuery }) }}
8
- </h1>
9
- <h1 v-else>
10
- {{ $t('Search - no results', { query: rawQuery }) }}
11
- </h1>
12
- <div
14
+ <ClassicSearch
13
15
  v-if="!hideBar"
14
- class="position-relative champs-searchPage w-75"
15
- >
16
- <input
17
- id="search"
18
- ref="search"
19
- v-model="rawQuery"
20
- type="text"
21
- class="search-input border-primary w-100 p-2 input-no-outline"
22
- :placeholder="$t('Please type at least three characters')"
23
- autofocus
24
- @change="onSearchBegin"
25
- >
26
- <label
27
- for="search"
28
- class="d-inline"
29
- :aria-label="$t('Search')"
30
- />
31
- <div
32
- v-if="!rawQuery"
33
- class="saooti-search-bounty search-icon-container"
34
- />
35
- <div
36
- v-else
37
- class="saooti-cross search-icon-container c-hand"
38
- @click="rawQuery = ''"
39
- />
40
- </div>
16
+ v-model:textInit="rawQuery"
17
+ :autofocus="true"
18
+ id-checkbox="search-page-input"
19
+ :label="$t('Please type at least three characters')"
20
+ />
41
21
  <PodcastList
42
22
  v-if="!!query"
43
23
  :query="query"
@@ -50,6 +30,7 @@
50
30
 
51
31
  <script lang="ts">
52
32
  import { state } from '../../store/paramStore';
33
+ import ClassicSearch from '../form/ClassicSearch.vue';
53
34
  import PodcastList from '../display/podcasts/PodcastList.vue';
54
35
  import { defineComponent } from 'vue';
55
36
  export default defineComponent({
@@ -57,6 +38,7 @@ export default defineComponent({
57
38
 
58
39
  components: {
59
40
  PodcastList,
41
+ ClassicSearch
60
42
  },
61
43
 
62
44
  props: {
@@ -81,12 +63,13 @@ export default defineComponent({
81
63
  },
82
64
 
83
65
  watch: {
84
- query: {
85
- handler(search: string): void {
86
- this.rawQuery = search;
87
- },
88
- deep: true,
89
- immediate: true,
66
+ rawQuery(): void{
67
+ if (this.hideBar) {
68
+ this.noResult = false;
69
+ }
70
+ },
71
+ query(): void{
72
+ this.rawQuery = this.query;
90
73
  },
91
74
  queryRoute(): void{
92
75
  this.rawQuery = this.queryRoute;
@@ -97,9 +80,6 @@ export default defineComponent({
97
80
  if (this.queryRoute) {
98
81
  this.rawQuery = this.queryRoute;
99
82
  }
100
- if (this.$refs.search) {
101
- (this.$refs.search as HTMLElement).focus();
102
- }
103
83
  },
104
84
 
105
85
  methods: {
@@ -108,24 +88,6 @@ export default defineComponent({
108
88
  this.noResult = true;
109
89
  }
110
90
  },
111
- onSearchBegin(): void {
112
- if (this.hideBar) {
113
- this.noResult = false;
114
- }
115
- },
116
91
  },
117
92
  })
118
- </script>
119
-
120
- <style lang="scss">
121
- .champs-searchPage {
122
- margin: 0 auto;
123
- input {
124
- margin: 1rem 0 !important;
125
- padding-right: 40px !important;
126
- }
127
- .search-icon-container {
128
- margin: 0 1em 0 0;
129
- }
130
- }
131
- </style>
93
+ </script>
@@ -26,7 +26,6 @@ $octopus-primary-color: #40a372;
26
26
  $octopus-secondary-color : #ddd;
27
27
  $octopus-light-secondary-color: #eee;
28
28
  $octopus-third-color: rgba(214,217,31,1);
29
- $octopus-alert-text: darkred;
30
29
  $octopus-primary-dark : #48a879;
31
30
  $primaryColorReallyTransparent : #a2f3c993;
32
31
 
@@ -10,5 +10,5 @@ export interface Media {
10
10
  creation?: string;
11
11
  duration?: number;
12
12
  filePath?: string;
13
- audioUrl: string;
13
+ audioUrl?: string;
14
14
  }