@saooti/octopus-sdk 30.0.2 → 30.0.3

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/README.md CHANGED
@@ -498,3 +498,4 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
498
498
 
499
499
  * 30.0.1 Nouveau sprint
500
500
  * 30.0.2 Correction css
501
+ * 30.0.3 Ajout tag page podcast
package/index.ts CHANGED
@@ -55,6 +55,7 @@ import {cookies} from "./src/components/mixins/functions";
55
55
  import {displayMethods} from "./src/components/mixins/functions";
56
56
  import {orgaFilter} from "./src/components/mixins/organisationFilter";
57
57
  import {initSDK} from "./src/components/mixins/init";
58
+ import {tagOfMixins} from "./src/components/mixins/tagOfMixins";
58
59
 
59
60
  const components = {
60
61
  Lives,
@@ -97,7 +98,8 @@ const components = {
97
98
  CategoryFilter,
98
99
  orgaFilter,
99
100
  initSDK,
100
- Popover
101
+ Popover,
102
+ tagOfMixins
101
103
  }
102
104
 
103
105
  export default components;
@@ -143,5 +145,6 @@ export {
143
145
  CategoryFilter,
144
146
  orgaFilter,
145
147
  initSDK,
146
- Popover
148
+ Popover,
149
+ tagOfMixins
147
150
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.2",
3
+ "version": "30.0.3",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 25.2.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 41.1 41.2" style="enable-background:new 0 0 41.1 41.2;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#E2001A;}
7
+ </style>
8
+ <g>
9
+ <path class="st0" d="M28.1,1.5v13.3H12.7v-2h13.4v-12C15.1-2.3,3.8,4.1,0.7,15.1c-2.8,10,2.3,20.6,12,24.6V26.5h15.4v2H14.7v11.9
10
+ c10.9,3.2,22.4-3,25.6-13.9C43.3,16.3,38,5.4,28.1,1.5z"/>
11
+ </g>
12
+ </svg>
@@ -146,7 +146,6 @@
146
146
  </div>
147
147
  </div>
148
148
  <TagList
149
- v-if="isTagList"
150
149
  :tag-list="podcast.tags"
151
150
  />
152
151
  </div>
@@ -155,6 +154,7 @@
155
154
  <script lang="ts">
156
155
  import PodcastImage from './PodcastImage.vue';
157
156
  import ParticipantDescription from './ParticipantDescription.vue';
157
+ import TagList from './TagList.vue';
158
158
  import { state } from '../../../store/paramStore';
159
159
  import moment from 'moment';
160
160
  // @ts-ignore
@@ -165,7 +165,6 @@ import { Conference } from '@/store/class/conference';
165
165
 
166
166
  import { defineComponent, defineAsyncComponent } from 'vue';
167
167
  const ShareButtons = defineAsyncComponent(() => import('../sharing/ShareButtons.vue'));
168
- const TagList = defineAsyncComponent(() => import('./TagList.vue'));
169
168
  const ErrorMessage = defineAsyncComponent(() => import('../../misc/ErrorMessage.vue'));
170
169
  export default defineComponent({
171
170
  name: "PodcastModuleBox",
@@ -205,9 +204,6 @@ export default defineComponent({
205
204
  isOuestFrance(): boolean {
206
205
  return (state.podcastPage.ouestFranceStyle as boolean);
207
206
  },
208
- isTagList(): boolean {
209
- return (state.podcastPage.tagList as boolean);
210
- },
211
207
  isDownloadButton(): boolean {
212
208
  return (state.podcastPage.downloadButton as boolean);
213
209
  },
@@ -1,55 +1,67 @@
1
1
  <template>
2
- <div v-if="undefined !== tagList">
3
- <ul class="d-flex flex-wrap">
4
- <li
5
- v-for="tag in tagList"
6
- :key="tag"
7
- class="tagListElement"
2
+ <div
3
+ v-if="undefined !== tagList"
4
+ class="tag-list-component d-flex flex-wrap"
5
+ >
6
+ <div
7
+ v-for="(tag, index) in tagList"
8
+ :key="tag"
9
+ class="tagListElement"
10
+ >
11
+ <div
12
+ :id="'tag-list-from-podcast-page'+index"
13
+ class="tagListLink"
8
14
  >
9
- <router-link
10
- :to="{
11
- name: 'search',
12
- query: {
13
- query: tag,
14
- productor: $store.state.filter.organisationId,
15
- },
16
- }"
17
- class="tagListLink"
15
+ <img
16
+ v-if="isOuestFranceTag(tag)"
17
+ class="ouest-france-logo"
18
+ src="/img/ouest_france_logo.svg"
18
19
  >
19
- {{ tag }}
20
- </router-link>
21
- </li>
22
- </ul>
20
+ {{ formateOfTag(tag) }}
21
+ </div>
22
+ <Popover
23
+ v-if="isOuestFranceTag(tag)"
24
+ :target="'tag-list-from-podcast-page'+index"
25
+ triggers="hover"
26
+ :content="tag.substring(4,tag.length)"
27
+ placement="bottom"
28
+ />
29
+ </div>
23
30
  </div>
24
31
  </template>
25
32
 
26
33
  <script lang="ts">
34
+ import Popover from '../../misc/Popover.vue';
35
+ import { tagOfMixins } from '../../mixins/tagOfMixins';
27
36
  import { defineComponent } from 'vue'
28
37
  export default defineComponent({
29
38
  name: 'TagList',
30
- components: {},
39
+ components: {
40
+ Popover
41
+ },
31
42
  props: {
32
43
  tagList: { default: () => [], type: Array as ()=>Array<string>},
33
44
  },
45
+ mixins:[tagOfMixins],
34
46
 
35
- methods: {},
47
+ methods: {
48
+ },
36
49
  })
37
50
  </script>
38
51
 
39
52
  <style lang="scss">
40
- .tagListElement {
41
- display: flex;
42
- margin: 0.4rem;
43
- padding: 0.8rem;
44
- border: 1px solid #999;
45
- cursor: pointer;
46
- }
47
- .tagListLink {
48
- font-weight: 700;
49
- font-size: 1.2rem;
50
- color: #666;
51
- &:hover {
52
- color: #666;
53
+ .tag-list-component{
54
+ .ouest-france-logo{
55
+ width: 20px;
56
+ height: 20px;
57
+ margin-right: 5px;
58
+ }
59
+ .tagListElement {
60
+ display: flex;
61
+ margin: 0.4rem;
62
+ padding: 0.2rem;
63
+ border: 1px solid #999;
64
+ border-radius: 0.5rem;
53
65
  }
54
66
  }
55
67
  </style>
@@ -0,0 +1,19 @@
1
+ import {defineComponent } from 'vue';
2
+ export const tagOfMixins = defineComponent({
3
+ name: 'TagOfMixins',
4
+ methods:{
5
+ isOuestFranceTag(tag: string): boolean{
6
+ return "[of]"===tag.substring(0,4);
7
+ },
8
+ formateOfTag(tag: string): string{
9
+ if(!this.isOuestFranceTag(tag)){
10
+ return tag;
11
+ }
12
+ const lastSlash = tag.lastIndexOf('/');
13
+ if(-1!==lastSlash){
14
+ return tag.substring(lastSlash + 1, tag.length);
15
+ }
16
+ return tag.substring(4, tag.length);
17
+ },
18
+ }
19
+ });
@@ -12,7 +12,7 @@ const state:paramStore = {
12
12
  isPlaylist: false,
13
13
  isProduction: true,
14
14
  isContribution: true,
15
- ApiUri: 'https://api.staging.saooti.org/',
15
+ ApiUri: 'https://api.dev2.saooti.org/',
16
16
  podcastmaker: false,
17
17
  buttonPlus: true,
18
18
  allCategories: [],
@@ -24,12 +24,11 @@ const state:paramStore = {
24
24
  SharePlayer: true,
25
25
  ShareButtons: true,
26
26
  ShareDistribution: true,
27
- MiniplayerUri: 'https://player.staging.saooti.org/',
28
- MiniplayerBetaUri: 'https://playerbeta.staging.saooti.org/',
27
+ MiniplayerUri: 'https://player.dev2.saooti.org/',
28
+ MiniplayerBetaUri: 'https://playerbeta.dev2.saooti.org/',
29
29
  ouestFranceStyle: false,
30
- tagList: false,
31
30
  downloadButton: false,
32
- hlsUri: 'https://hls.staging.saooti.org/',
31
+ hlsUri: 'https://hls.dev2.saooti.org/',
33
32
  mainRubrique: 0,
34
33
  resourceUrl: undefined
35
34
  },
@@ -82,10 +81,10 @@ const state:paramStore = {
82
81
  userName: '',
83
82
  },
84
83
  octopusApi: {
85
- url: 'http://api.staging.saooti.org/',
86
- commentsUrl: 'http://comments.staging.saooti.org/',
87
- studioUrl: 'http://studio.staging.saooti.org/',
88
- playerUrl: 'https://playerbeta.staging.saooti.org/',
84
+ url: 'http://api.dev2.saooti.org/',
85
+ commentsUrl: 'http://comments.dev2.saooti.org/',
86
+ studioUrl: 'http://studio.dev2.saooti.org/',
87
+ playerUrl: 'https://playerbeta.dev2.saooti.org/',
89
88
  organisationId: undefined,
90
89
  },
91
90
  };
@@ -114,7 +113,6 @@ export interface PodcastPage{
114
113
  MiniplayerUri?: string,
115
114
  MiniplayerBetaUri?: string,
116
115
  ouestFranceStyle?: boolean,
117
- tagList?: boolean,
118
116
  downloadButton?: boolean,
119
117
  hlsUri?: string,
120
118
  mainRubrique?: number,