@saooti/octopus-sdk 35.2.0 → 35.2.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.
- package/package.json +2 -2
- package/src/App.vue +4 -4
- package/src/components/display/categories/CategoryChooser.vue +1 -1
- package/src/components/display/categories/CategoryFilter.vue +3 -3
- package/src/components/display/categories/CategoryList.vue +1 -1
- package/src/components/display/comments/CommentBasicView.vue +1 -1
- package/src/components/display/comments/CommentInput.vue +3 -3
- package/src/components/display/comments/CommentItem.vue +6 -5
- package/src/components/display/comments/CommentList.vue +4 -4
- package/src/components/display/comments/CommentParentInfo.vue +1 -1
- package/src/components/display/comments/CommentPlayer.vue +1 -1
- package/src/components/display/comments/CommentSection.vue +6 -5
- package/src/components/display/edit/EditBox.vue +1 -1
- package/src/components/display/edit/EditCommentBox.vue +1 -1
- package/src/components/display/emission/EmissionChooser.vue +1 -1
- package/src/components/display/emission/EmissionInlineList.vue +3 -3
- package/src/components/display/emission/EmissionItem.vue +2 -2
- package/src/components/display/emission/EmissionList.vue +4 -4
- package/src/components/display/emission/EmissionPlayerItem.vue +2 -2
- package/src/components/display/filter/AdvancedSearch.vue +1 -1
- package/src/components/display/filter/ProductorSearch.vue +1 -1
- package/src/components/display/filter/RubriqueChoice.vue +2 -2
- package/src/components/display/filter/RubriqueFilter.vue +2 -2
- package/src/components/display/live/LiveHorizontalList.vue +1 -1
- package/src/components/display/live/LiveItem.vue +2 -2
- package/src/components/display/live/LiveList.vue +1 -1
- package/src/components/display/organisation/OrganisationChooser.vue +1 -1
- package/src/components/display/organisation/OrganisationChooserLight.vue +1 -1
- package/src/components/display/participant/ParticipantItem.vue +2 -2
- package/src/components/display/participant/ParticipantList.vue +1 -1
- package/src/components/display/playlist/PlaylistItem.vue +1 -1
- package/src/components/display/playlist/PlaylistList.vue +1 -1
- package/src/components/display/playlist/PodcastList.vue +2 -2
- package/src/components/display/playlist/PodcastPlaylistInlineList.vue +2 -2
- package/src/components/display/podcasts/AnimatorsItem.vue +1 -1
- package/src/components/display/podcasts/ParticipantDescription.vue +1 -1
- package/src/components/display/podcasts/PodcastFilterList.vue +2 -2
- package/src/components/display/podcasts/PodcastImage.vue +2 -2
- package/src/components/display/podcasts/PodcastInlineListClassic.vue +1 -1
- package/src/components/display/podcasts/PodcastInlineListTemplate.vue +2 -2
- package/src/components/display/podcasts/PodcastItem.vue +1 -1
- package/src/components/display/podcasts/PodcastItemInfo.vue +1 -1
- package/src/components/display/podcasts/PodcastList.vue +2 -2
- package/src/components/display/podcasts/PodcastModuleBox.vue +2 -2
- package/src/components/display/podcasts/PodcastSwiperList.vue +1 -1
- package/src/components/display/rubriques/RubriqueChooser.vue +1 -1
- package/src/components/display/rubriques/RubriqueList.vue +3 -3
- package/src/components/display/sharing/ShareButtons.vue +3 -3
- package/src/components/display/sharing/ShareButtonsIntern.vue +3 -3
- package/src/components/display/sharing/ShareDistribution.vue +1 -1
- package/src/components/display/sharing/SharePlayer.vue +3 -3
- package/src/components/display/sharing/SharePlayerTypes.vue +5 -5
- package/src/components/display/sharing/SubscribeButtons.vue +1 -1
- package/src/components/misc/Footer.vue +2 -2
- package/src/components/misc/HomeDropdown.vue +1 -1
- package/src/components/misc/LeftMenu.vue +3 -3
- package/src/components/misc/TopBar.vue +2 -2
- package/src/components/misc/modal/ClipboardModal.vue +1 -1
- package/src/components/misc/modal/NewsletterModal.vue +4 -4
- package/src/components/misc/modal/ShareModalPlayer.vue +1 -1
- package/src/components/misc/player/Player.vue +1 -1
- package/src/components/misc/player/PlayerCompact.vue +1 -1
- package/src/components/misc/player/PlayerLarge.vue +1 -1
- package/src/components/misc/player/PlayerProgressBar.vue +1 -1
- package/src/components/misc/player/PlayerTimeline.vue +1 -1
- package/src/components/mixins/player/playerComment.ts +10 -13
- package/src/components/pages/Category.vue +1 -1
- package/src/components/pages/Emission.vue +1 -1
- package/src/components/pages/Emissions.vue +1 -1
- package/src/components/pages/Home.vue +4 -4
- package/src/components/pages/Lives.vue +2 -2
- package/src/components/pages/PageNotFound.vue +1 -1
- package/src/components/pages/Participant.vue +1 -1
- package/src/components/pages/Playlist.vue +1 -1
- package/src/components/pages/Podcast.vue +4 -4
- package/src/components/pages/Podcasts.vue +2 -2
- package/src/components/pages/Rubrique.vue +1 -1
- package/src/locale/educationfr.ts +3 -3
- package/src/stores/ApiStore.ts +1 -1
- package/src/stores/CommentStore.ts +40 -0
- package/src/stores/GeneralStore.ts +4 -21
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
import selenium from '../../mixins/selenium';
|
|
71
71
|
//@ts-ignore
|
|
72
72
|
import VueMultiselect from 'vue-multiselect';
|
|
73
|
-
import { Rubrique } from '@/
|
|
73
|
+
import { Rubrique } from '@/stores/class/rubrique/rubrique';
|
|
74
74
|
const getDefaultRubrique = (defaultName: string) => {
|
|
75
75
|
if ('' === defaultName){
|
|
76
76
|
return undefined;
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
|
|
59
59
|
<script lang="ts">
|
|
60
60
|
import Popover from '../../misc/Popover.vue';
|
|
61
|
-
import { Rubrique } from '@/
|
|
62
|
-
import { Rubriquage } from '@/
|
|
63
|
-
import { RubriquageFilter } from '@/
|
|
61
|
+
import { Rubrique } from '@/stores/class/rubrique/rubrique';
|
|
62
|
+
import { Rubriquage } from '@/stores/class/rubrique/rubriquage';
|
|
63
|
+
import { RubriquageFilter } from '@/stores/class/rubrique/rubriquageFilter';
|
|
64
64
|
import { useFilterStore } from '@/stores/FilterStore';
|
|
65
65
|
import { mapState, mapActions } from 'pinia';
|
|
66
66
|
import { defineComponent } from 'vue';
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
</template>
|
|
48
48
|
|
|
49
49
|
<script lang="ts">
|
|
50
|
-
import { Emission } from '@/
|
|
51
|
-
import { Podcast } from '@/
|
|
50
|
+
import { Emission } from '@/stores/class/general/emission';
|
|
51
|
+
import { Podcast } from '@/stores/class/general/podcast';
|
|
52
52
|
import { state } from '../../../stores/ParamSdkStore';
|
|
53
53
|
import displayMethods from '../../mixins/displayMethods';
|
|
54
54
|
import Popover from '../../misc/Popover.vue';
|
|
55
55
|
import ShareButtonsIntern from './ShareButtonsIntern.vue';
|
|
56
56
|
import { defineComponent } from 'vue';
|
|
57
|
-
import { Playlist } from '@/
|
|
57
|
+
import { Playlist } from '@/stores/class/general/playlist';
|
|
58
58
|
export default defineComponent({
|
|
59
59
|
components: {
|
|
60
60
|
ShareButtonsIntern,
|
|
@@ -85,13 +85,13 @@
|
|
|
85
85
|
|
|
86
86
|
<script lang="ts">
|
|
87
87
|
import octopusApi from '@saooti/octopus-api';
|
|
88
|
-
import { Emission } from '@/
|
|
89
|
-
import { Podcast } from '@/
|
|
88
|
+
import { Emission } from '@/stores/class/general/emission';
|
|
89
|
+
import { Podcast } from '@/stores/class/general/podcast';
|
|
90
90
|
import { state } from '../../../stores/ParamSdkStore';
|
|
91
91
|
import Snackbar from '../../misc/Snackbar.vue';
|
|
92
92
|
import displayMethods from '../../mixins/displayMethods';
|
|
93
93
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
94
|
-
import { Playlist } from '@/
|
|
94
|
+
import { Playlist } from '@/stores/class/general/playlist';
|
|
95
95
|
const ClipboardModal = defineAsyncComponent(() => import('../../misc/modal/ClipboardModal.vue'));
|
|
96
96
|
const NewsletterModal = defineAsyncComponent(() => import('../../misc/modal/NewsletterModal.vue'));
|
|
97
97
|
const QrCodeModal = defineAsyncComponent(() => import('../../misc/modal/QrCodeModal.vue'));
|
|
@@ -40,7 +40,7 @@ import { state } from '../../../stores/ParamSdkStore';
|
|
|
40
40
|
import octopusApi from '@saooti/octopus-api';
|
|
41
41
|
import Snackbar from '../../misc/Snackbar.vue';
|
|
42
42
|
import displayMethods from '../../mixins/displayMethods';
|
|
43
|
-
import { Emission } from '@/
|
|
43
|
+
import { Emission } from '@/stores/class/general/emission';
|
|
44
44
|
|
|
45
45
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
46
46
|
const RssSection = defineAsyncComponent(() => import('@/components/display/aggregator/RssSection.vue'));
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
import { orgaComputed } from '../../mixins/orgaComputed';
|
|
83
83
|
import { state } from '../../../stores/ParamSdkStore';
|
|
84
84
|
import octopusApi from '@saooti/octopus-api';
|
|
85
|
-
import { Podcast } from '@/
|
|
86
|
-
import { Emission } from '@/
|
|
87
|
-
import { Playlist } from '@/
|
|
85
|
+
import { Podcast } from '@/stores/class/general/podcast';
|
|
86
|
+
import { Emission } from '@/stores/class/general/emission';
|
|
87
|
+
import { Playlist } from '@/stores/class/general/playlist';
|
|
88
88
|
import { useAuthStore } from '@/stores/AuthStore';
|
|
89
89
|
import { mapState } from 'pinia';
|
|
90
90
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
<script lang="ts">
|
|
36
36
|
import { state } from '../../../stores/ParamSdkStore';
|
|
37
37
|
import octopusApi from '@saooti/octopus-api';
|
|
38
|
-
import { Podcast } from '@/
|
|
39
|
-
import { CustomPlayer } from '@/
|
|
38
|
+
import { Podcast } from '@/stores/class/general/podcast';
|
|
39
|
+
import { CustomPlayer } from '@/stores/class/general/customPlayer';
|
|
40
40
|
import { defineComponent } from 'vue';
|
|
41
|
-
import { Emission } from '@/
|
|
42
|
-
import { Playlist } from '@/
|
|
43
|
-
import { InterfacePageable } from '@/
|
|
41
|
+
import { Emission } from '@/stores/class/general/emission';
|
|
42
|
+
import { Playlist } from '@/stores/class/general/playlist';
|
|
43
|
+
import { InterfacePageable } from '@/stores/class/general/interfacePageable';
|
|
44
44
|
export default defineComponent({
|
|
45
45
|
props: {
|
|
46
46
|
podcast: { default: undefined, type: Object as ()=> Podcast},
|
|
@@ -68,8 +68,8 @@ import octopusApi from '@saooti/octopus-api';
|
|
|
68
68
|
import { useFilterStore } from '@/stores/FilterStore';
|
|
69
69
|
import { useGeneralStore } from '@/stores/GeneralStore';
|
|
70
70
|
import { mapState, mapActions } from 'pinia';
|
|
71
|
-
import { Category } from '@/
|
|
72
|
-
import { RubriquageFilter } from '@/
|
|
71
|
+
import { Category } from '@/stores/class/general/category';
|
|
72
|
+
import { RubriquageFilter } from '@/stores/class/rubrique/rubriquageFilter';
|
|
73
73
|
import { defineComponent } from 'vue'
|
|
74
74
|
export default defineComponent({
|
|
75
75
|
name: 'Footer',
|
|
@@ -91,7 +91,7 @@ import Popover from '../misc/Popover.vue';
|
|
|
91
91
|
import { useAuthStore } from '@/stores/AuthStore';
|
|
92
92
|
import { mapState } from 'pinia';
|
|
93
93
|
import { defineComponent } from 'vue';
|
|
94
|
-
import { Organisation } from '@/
|
|
94
|
+
import { Organisation } from '@/stores/class/general/organisation';
|
|
95
95
|
export default defineComponent({
|
|
96
96
|
name: 'HomeDropdown',
|
|
97
97
|
components:{
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
<script lang="ts">
|
|
49
49
|
import { state } from '../../stores/ParamSdkStore';
|
|
50
50
|
import orgaFilter from '../mixins/organisationFilter';
|
|
51
|
-
import { Category } from '@/
|
|
52
|
-
import { RubriquageFilter } from '@/
|
|
51
|
+
import { Category } from '@/stores/class/general/category';
|
|
52
|
+
import { RubriquageFilter } from '@/stores/class/rubrique/rubriquageFilter';
|
|
53
53
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
54
54
|
import { useFilterStore } from '@/stores/FilterStore';
|
|
55
55
|
import { useGeneralStore } from '@/stores/GeneralStore';
|
|
56
56
|
import { mapState } from 'pinia';
|
|
57
|
-
import { Organisation } from '@/
|
|
57
|
+
import { Organisation } from '@/stores/class/general/organisation';
|
|
58
58
|
const OrganisationChooserLight = defineAsyncComponent(() => import('../display/organisation/OrganisationChooserLight.vue'));
|
|
59
59
|
export default defineComponent({
|
|
60
60
|
name: 'LeftMenu',
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
<script lang="ts">
|
|
74
74
|
import { state } from '../../stores/ParamSdkStore';
|
|
75
75
|
import HomeDropdown from './HomeDropdown.vue';
|
|
76
|
-
import { Organisation } from '@/
|
|
76
|
+
import { Organisation } from '@/stores/class/general/organisation';
|
|
77
77
|
import orgaFilter from '../mixins/organisationFilter';
|
|
78
78
|
import imageProxy from '../mixins/imageProxy';
|
|
79
79
|
import { useFilterStore } from '@/stores/FilterStore';
|
|
80
80
|
import { mapState } from 'pinia';
|
|
81
|
-
import { RubriquageFilter } from '@/
|
|
81
|
+
import { RubriquageFilter } from '@/stores/class/rubrique/rubriquageFilter';
|
|
82
82
|
import { defineComponent,defineAsyncComponent } from 'vue';
|
|
83
83
|
const OrganisationChooserLight = defineAsyncComponent(() => import('../display/organisation/OrganisationChooserLight.vue'));
|
|
84
84
|
export default defineComponent({
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
<script lang="ts">
|
|
28
28
|
import ClassicModal from '../modal/ClassicModal.vue';
|
|
29
|
-
import { Emission } from '@/
|
|
29
|
+
import { Emission } from '@/stores/class/general/emission';
|
|
30
30
|
import displayMethods from '../../mixins/displayMethods';
|
|
31
31
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
32
32
|
import { state } from '../../../stores/ParamSdkStore';
|
|
@@ -97,15 +97,15 @@ import VSwatches from 'vue3-swatches';
|
|
|
97
97
|
// @ts-ignore
|
|
98
98
|
import humanizeDuration from 'humanize-duration';
|
|
99
99
|
import displayMethods from '../../mixins/displayMethods';
|
|
100
|
-
import { Participant } from '@/
|
|
101
|
-
import { Podcast } from '@/
|
|
100
|
+
import { Participant } from '@/stores/class/general/participant';
|
|
101
|
+
import { Podcast } from '@/stores/class/general/podcast';
|
|
102
102
|
import { state } from '../../../stores/ParamSdkStore';
|
|
103
103
|
import { defineComponent } from 'vue';
|
|
104
104
|
import { useAuthStore } from '@/stores/AuthStore';
|
|
105
105
|
import { mapState } from 'pinia';
|
|
106
106
|
import octopusApi from '@saooti/octopus-api';
|
|
107
|
-
import { Emission } from '@/
|
|
108
|
-
import { Playlist } from '@/
|
|
107
|
+
import { Emission } from '@/stores/class/general/emission';
|
|
108
|
+
import { Playlist } from '@/stores/class/general/playlist';
|
|
109
109
|
export default defineComponent({
|
|
110
110
|
name: 'NewsletterModal',
|
|
111
111
|
|
|
@@ -72,7 +72,7 @@ import ClassicModal from '../modal/ClassicModal.vue';
|
|
|
72
72
|
import Nav from '../Nav.vue';
|
|
73
73
|
import QrCode from '../../display/sharing/QrCode.vue';
|
|
74
74
|
import { defineComponent } from 'vue'
|
|
75
|
-
import { Podcast } from '@/
|
|
75
|
+
import { Podcast } from '@/stores/class/general/podcast';
|
|
76
76
|
export default defineComponent({
|
|
77
77
|
name: 'ShareModalPlayer',
|
|
78
78
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
</div>
|
|
47
47
|
</template>
|
|
48
48
|
<script lang="ts">
|
|
49
|
-
import { CommentPodcast } from '@/
|
|
49
|
+
import { CommentPodcast } from '@/stores/class/general/comment';
|
|
50
50
|
import { playerLogic } from '../../mixins/player/playerLogic';
|
|
51
51
|
import PlayerCompact from '../player/PlayerCompact.vue';
|
|
52
52
|
import PlayerLarge from '../player/PlayerLarge.vue';
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
</div>
|
|
84
84
|
</template>
|
|
85
85
|
<script lang="ts">
|
|
86
|
-
import { CommentPodcast } from '@/
|
|
86
|
+
import { CommentPodcast } from '@/stores/class/general/comment';
|
|
87
87
|
import { playerDisplay } from '../../mixins/player/playerDisplay';
|
|
88
88
|
import imageProxy from '../../mixins/imageProxy';
|
|
89
89
|
import Spinner from '../Spinner.vue';
|
|
@@ -95,7 +95,7 @@ import imageProxy from '../../mixins/imageProxy';
|
|
|
95
95
|
import PlayerProgressBar from './PlayerProgressBar.vue';
|
|
96
96
|
import PlayerTimeline from './PlayerTimeline.vue';
|
|
97
97
|
import { defineComponent } from 'vue';
|
|
98
|
-
import { CommentPodcast } from '@/
|
|
98
|
+
import { CommentPodcast } from '@/stores/class/general/comment';
|
|
99
99
|
export default defineComponent({
|
|
100
100
|
name: 'PlayerLarge',
|
|
101
101
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
<script lang="ts">
|
|
18
18
|
import ProgressBar from '../ProgressBar.vue'
|
|
19
|
-
import { CommentPodcast } from '@/
|
|
19
|
+
import { CommentPodcast } from '@/stores/class/general/comment';
|
|
20
20
|
import { usePlayerStore } from '@/stores/PlayerStore';
|
|
21
21
|
import { mapState } from 'pinia';
|
|
22
22
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<script lang="ts">
|
|
16
16
|
import { state } from '../../../stores/ParamSdkStore';
|
|
17
17
|
import { defineComponent } from 'vue';
|
|
18
|
-
import { CommentPodcast } from '@/
|
|
18
|
+
import { CommentPodcast } from '@/stores/class/general/comment';
|
|
19
19
|
export default defineComponent({
|
|
20
20
|
name: 'PlayerTimeline',
|
|
21
21
|
|
|
@@ -3,7 +3,7 @@ import octopusApi from '@saooti/octopus-api';
|
|
|
3
3
|
import { CommentPodcast } from '@/stores/class/general/comment';
|
|
4
4
|
import { defineComponent } from 'vue';
|
|
5
5
|
import { usePlayerStore } from '@/stores/PlayerStore';
|
|
6
|
-
import {
|
|
6
|
+
import { useCommentStore } from '@/stores/CommentStore';
|
|
7
7
|
import { mapState } from 'pinia';
|
|
8
8
|
import { FetchParam } from '@/stores/class/general/fetchParam';
|
|
9
9
|
import { InterfacePageable } from '@/stores/class/general/interfacePageable';
|
|
@@ -14,18 +14,15 @@ export const playerComment = defineComponent({
|
|
|
14
14
|
};
|
|
15
15
|
},
|
|
16
16
|
computed: {
|
|
17
|
-
...mapState(
|
|
17
|
+
...mapState(useCommentStore, ['commentActualPodcastId', 'commentTotalCount', 'commentLoaded']),
|
|
18
18
|
...mapState(usePlayerStore, ['playerPodcast', 'playerLive']),
|
|
19
|
-
commentsLoaded(){
|
|
20
|
-
return this.generalComments.loadedComments;
|
|
21
|
-
},
|
|
22
19
|
organisationId(): string|undefined {
|
|
23
20
|
return state.generalParameters.organisationId;
|
|
24
21
|
},
|
|
25
22
|
},
|
|
26
23
|
|
|
27
24
|
watch: {
|
|
28
|
-
|
|
25
|
+
commentLoaded(): void {
|
|
29
26
|
this.initComments(true);
|
|
30
27
|
},
|
|
31
28
|
},
|
|
@@ -36,14 +33,14 @@ export const playerComment = defineComponent({
|
|
|
36
33
|
initCommentCurrentPodcast(podcastId?: number): Array<number>{
|
|
37
34
|
if (
|
|
38
35
|
podcastId &&
|
|
39
|
-
this.
|
|
36
|
+
this.commentActualPodcastId === podcastId
|
|
40
37
|
) {
|
|
41
|
-
this.comments = this.
|
|
38
|
+
this.comments = this.commentLoaded;
|
|
42
39
|
if (
|
|
43
|
-
this.
|
|
44
|
-
this.
|
|
40
|
+
this.commentLoaded &&
|
|
41
|
+
this.commentLoaded.length < this.commentTotalCount
|
|
45
42
|
) {
|
|
46
|
-
return [this.
|
|
43
|
+
return [this.commentLoaded.length, this.commentTotalCount];
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
46
|
return [0, 0];
|
|
@@ -79,7 +76,7 @@ export const playerComment = defineComponent({
|
|
|
79
76
|
if (
|
|
80
77
|
refresh &&
|
|
81
78
|
podcastId &&
|
|
82
|
-
this.
|
|
79
|
+
this.commentActualPodcastId !== podcastId
|
|
83
80
|
) {
|
|
84
81
|
return;
|
|
85
82
|
}
|
|
@@ -88,7 +85,7 @@ export const playerComment = defineComponent({
|
|
|
88
85
|
let count = param[1];
|
|
89
86
|
if (
|
|
90
87
|
(!podcastId ||
|
|
91
|
-
this.
|
|
88
|
+
this.commentActualPodcastId === podcastId) &&
|
|
92
89
|
0 === first
|
|
93
90
|
){
|
|
94
91
|
return;
|
|
@@ -16,7 +16,7 @@ import { useFilterStore } from '@/stores/FilterStore';
|
|
|
16
16
|
import { useGeneralStore } from '@/stores/GeneralStore';
|
|
17
17
|
import { mapState } from 'pinia';
|
|
18
18
|
import { defineComponent } from 'vue'
|
|
19
|
-
import { Category } from '@/
|
|
19
|
+
import { Category } from '@/stores/class/general/category';
|
|
20
20
|
export default defineComponent({
|
|
21
21
|
components: {
|
|
22
22
|
PodcastList,
|
|
@@ -88,7 +88,7 @@ import displayMethods from '../mixins/displayMethods';
|
|
|
88
88
|
import imageProxy from '../mixins/imageProxy';
|
|
89
89
|
import { orgaComputed } from '../mixins/orgaComputed';
|
|
90
90
|
import { handle403 } from '../mixins/handle403';
|
|
91
|
-
import { Emission } from '@/
|
|
91
|
+
import { Emission } from '@/stores/class/general/emission';
|
|
92
92
|
import ClassicLoading from '../form/ClassicLoading.vue';
|
|
93
93
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
94
94
|
import { AxiosError } from 'axios';
|
|
@@ -49,7 +49,7 @@ import AdvancedSearch from '../display/filter/AdvancedSearch.vue';
|
|
|
49
49
|
import { state } from '../../stores/ParamSdkStore';
|
|
50
50
|
import { useFilterStore } from '@/stores/FilterStore';
|
|
51
51
|
import { mapState } from 'pinia';
|
|
52
|
-
import { RubriquageFilter } from '@/
|
|
52
|
+
import { RubriquageFilter } from '@/stores/class/rubrique/rubriquageFilter';
|
|
53
53
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
54
54
|
const ProductorSearch = defineAsyncComponent(() => import('../display/filter/ProductorSearch.vue'));
|
|
55
55
|
export default defineComponent({
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
<script lang="ts">
|
|
32
32
|
import PodcastInlineList from '../display/podcasts/PodcastInlineList.vue';
|
|
33
33
|
import { state } from '../../stores/ParamSdkStore';
|
|
34
|
-
import { RubriquageFilter } from '@/
|
|
35
|
-
import { Rubriquage } from '@/
|
|
36
|
-
import { Rubrique } from '@/
|
|
34
|
+
import { RubriquageFilter } from '@/stores/class/rubrique/rubriquageFilter';
|
|
35
|
+
import { Rubriquage } from '@/stores/class/rubrique/rubriquage';
|
|
36
|
+
import { Rubrique } from '@/stores/class/rubrique/rubrique';
|
|
37
37
|
import { useFilterStore } from '@/stores/FilterStore';
|
|
38
38
|
import { useGeneralStore } from '@/stores/GeneralStore';
|
|
39
39
|
import { mapState } from 'pinia';
|
|
40
40
|
import { defineComponent } from 'vue';
|
|
41
|
-
import { Category } from '@/
|
|
41
|
+
import { Category } from '@/stores/class/general/category';
|
|
42
42
|
export default defineComponent({
|
|
43
43
|
name: 'Home',
|
|
44
44
|
components: {
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
|
|
34
34
|
<script lang="ts">
|
|
35
35
|
import { state } from '../../stores/ParamSdkStore';
|
|
36
|
-
import { Organisation } from '@/
|
|
36
|
+
import { Organisation } from '@/stores/class/general/organisation';
|
|
37
37
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
38
|
-
import { Conference } from '@/
|
|
38
|
+
import { Conference } from '@/stores/class/conference/conference';
|
|
39
39
|
import { useAuthStore } from '@/stores/AuthStore';
|
|
40
40
|
import { useFilterStore } from '@/stores/FilterStore';
|
|
41
41
|
import { mapState } from 'pinia';
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
24
|
<script lang="ts">
|
|
25
|
-
import { RubriquageFilter } from '@/
|
|
25
|
+
import { RubriquageFilter } from '@/stores/class/rubrique/rubriquageFilter';
|
|
26
26
|
import { useFilterStore } from '@/stores/FilterStore';
|
|
27
27
|
import { useGeneralStore } from '@/stores/GeneralStore';
|
|
28
28
|
import { mapState } from 'pinia';
|
|
@@ -71,7 +71,7 @@ import displayMethods from '../mixins/displayMethods';
|
|
|
71
71
|
import imageProxy from '../mixins/imageProxy';
|
|
72
72
|
import { orgaComputed } from '../mixins/orgaComputed';
|
|
73
73
|
import { handle403 } from '../mixins/handle403';
|
|
74
|
-
import { Participant } from '@/
|
|
74
|
+
import { Participant } from '@/stores/class/general/participant';
|
|
75
75
|
import ClassicLoading from '../form/ClassicLoading.vue';
|
|
76
76
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
77
77
|
import { AxiosError } from 'axios';
|
|
@@ -61,7 +61,7 @@ import { state } from '../../stores/ParamSdkStore';
|
|
|
61
61
|
import displayMethods from '../mixins/displayMethods';
|
|
62
62
|
import imageProxy from '../mixins/imageProxy';
|
|
63
63
|
import { handle403 } from '../mixins/handle403';
|
|
64
|
-
import { Playlist } from '@/
|
|
64
|
+
import { Playlist } from '@/stores/class/general/playlist';
|
|
65
65
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
66
66
|
import { AxiosError } from 'axios';
|
|
67
67
|
const ShareButtons = defineAsyncComponent(() => import('../display/sharing/ShareButtons.vue'));
|
|
@@ -100,13 +100,13 @@ import octopusApi from '@saooti/octopus-api';
|
|
|
100
100
|
import crudApi from '@/api/classicCrud';
|
|
101
101
|
import { state } from '../../stores/ParamSdkStore';
|
|
102
102
|
import dayjs from 'dayjs';
|
|
103
|
-
import { Podcast } from '@/
|
|
104
|
-
import { Conference } from '@/
|
|
103
|
+
import { Podcast } from '@/stores/class/general/podcast';
|
|
104
|
+
import { Conference } from '@/stores/class/conference/conference';
|
|
105
105
|
import { handle403 } from '../mixins/handle403';
|
|
106
106
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
107
107
|
import CommentSectionVue from '../display/comments/CommentSection.vue';
|
|
108
|
-
import { CommentPodcast } from '@/
|
|
109
|
-
import { Category } from '@/
|
|
108
|
+
import { CommentPodcast } from '@/stores/class/general/comment';
|
|
109
|
+
import { Category } from '@/stores/class/general/category';
|
|
110
110
|
import { useGeneralStore } from '@/stores/GeneralStore';
|
|
111
111
|
import { mapState } from 'pinia';
|
|
112
112
|
import { AxiosError } from 'axios';
|
|
@@ -66,8 +66,8 @@ import PodcastList from '../display/podcasts/PodcastList.vue';
|
|
|
66
66
|
import { state } from '../../stores/ParamSdkStore';
|
|
67
67
|
import ProductorSearch from '../display/filter/ProductorSearch.vue';
|
|
68
68
|
import AdvancedSearch from '../display/filter/AdvancedSearch.vue';
|
|
69
|
-
import { Emission } from '@/
|
|
70
|
-
import { RubriquageFilter } from '@/
|
|
69
|
+
import { Emission } from '@/stores/class/general/emission';
|
|
70
|
+
import { RubriquageFilter } from '@/stores/class/rubrique/rubriquageFilter';
|
|
71
71
|
import { useFilterStore } from '@/stores/FilterStore';
|
|
72
72
|
import { mapState } from 'pinia';
|
|
73
73
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import octopusApi from '@saooti/octopus-api';
|
|
14
14
|
import PodcastList from '../display/podcasts/PodcastList.vue';
|
|
15
15
|
import { defineComponent } from 'vue'
|
|
16
|
-
import { Rubrique } from '@/
|
|
16
|
+
import { Rubrique } from '@/stores/class/rubrique/rubrique';
|
|
17
17
|
export default defineComponent({
|
|
18
18
|
name:"Rubrique",
|
|
19
19
|
components: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
Productors: '
|
|
3
|
-
Productor: 'Établissement',
|
|
2
|
+
Productors: 'Académies & collectivités',
|
|
3
|
+
/* Productor: 'Établissement',
|
|
4
4
|
'Number productors': '{nb} établissements',
|
|
5
5
|
'select productor': 'Choisir un établissement',
|
|
6
6
|
'Please chose a productor': 'Veuillez choisir un établissement',
|
|
@@ -9,5 +9,5 @@ export default {
|
|
|
9
9
|
'Type string to filter by organisation': 'Filtrer les établissements par nom',
|
|
10
10
|
'No organisation filter': 'Tous les établissements',
|
|
11
11
|
'Loading productors ...': 'Chargement des établissements en cours...',
|
|
12
|
-
"Productor doesn't exist": "L'établissement demandé n'existe pas",
|
|
12
|
+
"Productor doesn't exist": "L'établissement demandé n'existe pas", */
|
|
13
13
|
};
|
package/src/stores/ApiStore.ts
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineStore } from 'pinia';
|
|
2
|
+
import { CommentPodcast } from './class/general/comment';
|
|
3
|
+
interface CommentState {
|
|
4
|
+
commentInitialized: boolean;
|
|
5
|
+
commentWebsocketengine: undefined;
|
|
6
|
+
commentPodcastId?: number;
|
|
7
|
+
commentOrgaId?: string;
|
|
8
|
+
commentEventToHandle: Array<{
|
|
9
|
+
comment: CommentPodcast
|
|
10
|
+
type: string;
|
|
11
|
+
}>;
|
|
12
|
+
commentKnownIdentity: string | null;
|
|
13
|
+
commentActualPodcastId?: number;
|
|
14
|
+
commentLoaded: Array<CommentPodcast>;
|
|
15
|
+
commentTotalCount: number;
|
|
16
|
+
}
|
|
17
|
+
export const useCommentStore = defineStore('CommentStore', {
|
|
18
|
+
state: (): CommentState => ({
|
|
19
|
+
commentInitialized: false,
|
|
20
|
+
commentWebsocketengine: undefined,
|
|
21
|
+
commentPodcastId: undefined,
|
|
22
|
+
commentOrgaId: undefined,
|
|
23
|
+
commentEventToHandle: [],
|
|
24
|
+
commentKnownIdentity: null,
|
|
25
|
+
commentActualPodcastId: 0,
|
|
26
|
+
commentLoaded: [],
|
|
27
|
+
commentTotalCount: 0,
|
|
28
|
+
}),
|
|
29
|
+
getters:{
|
|
30
|
+
},
|
|
31
|
+
actions: {
|
|
32
|
+
setCommentIdentity(identity:string|null) {
|
|
33
|
+
this.commentKnownIdentity = identity;
|
|
34
|
+
},
|
|
35
|
+
setCommentLoaded(data: {podcastId?: number, comments:Array<CommentPodcast>}) {
|
|
36
|
+
this.commentActualPodcastId = data.podcastId;
|
|
37
|
+
this.commentLoaded = data.comments;
|
|
38
|
+
},
|
|
39
|
+
}
|
|
40
|
+
})
|
|
@@ -9,12 +9,6 @@ interface GeneralState{
|
|
|
9
9
|
storedCategories: Array<Category>;
|
|
10
10
|
storedCategoriesOrga: Array<Category>;
|
|
11
11
|
isBeforeLive: boolean;
|
|
12
|
-
generalComments: {
|
|
13
|
-
knownIdentity: string | null;
|
|
14
|
-
actualPodcastId?: number;
|
|
15
|
-
loadedComments: Array<CommentPodcast>;
|
|
16
|
-
totalCount: number;
|
|
17
|
-
};
|
|
18
12
|
}
|
|
19
13
|
export const useGeneralStore = defineStore('GeneralStore', {
|
|
20
14
|
state: (): GeneralState => ({
|
|
@@ -24,12 +18,6 @@ export const useGeneralStore = defineStore('GeneralStore', {
|
|
|
24
18
|
storedCategories: [],
|
|
25
19
|
storedCategoriesOrga: [],
|
|
26
20
|
isBeforeLive: true,
|
|
27
|
-
generalComments: {
|
|
28
|
-
knownIdentity: null,
|
|
29
|
-
actualPodcastId: 0,
|
|
30
|
-
loadedComments: [],
|
|
31
|
-
totalCount: 0,
|
|
32
|
-
},
|
|
33
21
|
}),
|
|
34
22
|
actions:{
|
|
35
23
|
storedUpdateCategories(categories: Array<Category>) {
|
|
@@ -41,17 +29,12 @@ export const useGeneralStore = defineStore('GeneralStore', {
|
|
|
41
29
|
isBeforeLiveUpdate(isBeforeLive: boolean) {
|
|
42
30
|
this.isBeforeLive = isBeforeLive;
|
|
43
31
|
},
|
|
44
|
-
setCommentIdentity(identity:string|null) {
|
|
45
|
-
this.generalComments.knownIdentity = identity;
|
|
46
|
-
},
|
|
47
|
-
setCommentLoaded(data: {podcastId?: number, comments:Array<CommentPodcast>}) {
|
|
48
|
-
this.generalComments.actualPodcastId = data.podcastId;
|
|
49
|
-
this.generalComments.loadedComments = data.comments;
|
|
50
|
-
},
|
|
51
32
|
platformUpdateEducation(isEducation: boolean) {
|
|
52
33
|
this.platformEducation = isEducation;
|
|
53
|
-
|
|
54
|
-
|
|
34
|
+
if(isEducation){
|
|
35
|
+
this.generalLogoUrl = '/img/logo_education.webp';
|
|
36
|
+
this.metaTitle = 'RadioEducation.org';
|
|
37
|
+
}
|
|
55
38
|
},
|
|
56
39
|
}
|
|
57
40
|
})
|