@saooti/octopus-sdk 30.0.50 → 30.0.53

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
@@ -546,4 +546,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
546
546
  * 30.0.47 Live error
547
547
  * 30.0.48 Podcastmaker ScrollOverflow PodcastInlineList
548
548
  * 30.0.49 Podcastmaker ProgressBar
549
- * 30.0.50 Commentaires live
549
+ * 30.0.50 Commentaires live
550
+ * 30.0.51 Commentaires live
551
+ * 30.0.52 Ajout rubriqueIdFilter
552
+ * 30.0.53 Commentaires live
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.50",
3
+ "version": "30.0.53",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -15,7 +15,7 @@
15
15
  "main": "./dist/octopus.common.js",
16
16
  "dependencies": {
17
17
  "@popperjs/core": "^2.11.0",
18
- "@saooti/octopus-api": "^0.30.3",
18
+ "@saooti/octopus-api": "^0.30.4",
19
19
  "@vue/cli": "^5.0.0-rc.1",
20
20
  "@vue/compat": "^3.2.26",
21
21
  "axios": "^0.24.0",
@@ -80,7 +80,7 @@
80
80
  "no-debugger": "off",
81
81
  "@typescript-eslint/ban-ts-ignore": "off",
82
82
  "@typescript-eslint/ban-ts-comment": "off",
83
- "no-async-promise-executor":"off"
83
+ "no-async-promise-executor": "off"
84
84
  },
85
85
  "parserOptions": {
86
86
  "parser": "@typescript-eslint/parser"
@@ -14,7 +14,7 @@
14
14
  comment.name
15
15
  }}</b>
16
16
  <Popover
17
- v-if="!editRight && !isValid"
17
+ :disable="editRight || isValid"
18
18
  :target="'popover-comment' + comment.comId"
19
19
  >
20
20
  {{ $t('Comment waiting') }}
@@ -89,6 +89,9 @@ export default defineComponent({
89
89
 
90
90
  methods: {
91
91
  addKeyboardControl(event: KeyboardEvent): void{
92
+ if(!event || null ===event){return;}
93
+ const element = event.target as HTMLElement;
94
+ if (!element || 'INPUT' == element.tagName.toUpperCase() || 'TEXTAREA' == element.tagName.toUpperCase()){return;}
92
95
  if (' ' === event.key || 'Spacebar' === event.key) {
93
96
  event.preventDefault();
94
97
  this.switchPausePlay();
package/src/main.ts CHANGED
@@ -6,6 +6,7 @@ import I18nResources from './locale/messages';
6
6
  import router from '@/router/router';
7
7
  import moment from 'moment';
8
8
  import store from '@/store/AppStore';
9
+ import paramStore from '@/store/paramStore';
9
10
  import { LocaleMessage } from '@intlify/core-base';
10
11
  /* import 'popper.js/dist/popper.min.js'; */
11
12
  /* import 'jquery/src/jquery.js'; */
@@ -32,6 +33,22 @@ const i18n = createI18n({
32
33
  });
33
34
  moment.locale(language);
34
35
 
36
+
37
+ paramStore.initialize({
38
+ generalParameters: {},
39
+ podcastPage: {},
40
+ podcastsPage: {},
41
+ emissionsPage: {},
42
+ emissionPage: {},
43
+ intervenantPage: {},
44
+ intervenantsPage: {},
45
+ searchPage: {},
46
+ player: {},
47
+ footer: {},
48
+ organisation: {},
49
+ octopusApi: {}
50
+ });
51
+
35
52
  // Initialisation store
36
53
  createApp(App)
37
54
  .use(i18n)
@@ -89,6 +89,7 @@ const state:paramStore = {
89
89
  studioUrl: 'http://studio.dev2.saooti.org/',
90
90
  playerUrl: 'https://playerbeta.dev2.saooti.org/',
91
91
  organisationId: undefined,
92
+ rubriqueIdFilter: undefined,
92
93
  },
93
94
  };
94
95
  export interface GeneralParameters{
@@ -184,7 +185,8 @@ export interface OctopusApi{
184
185
  accessTokenUri: string,
185
186
  expiration: string,
186
187
  clientId: string,
187
- }
188
+ },
189
+ rubriqueIdFilter?: Array<number>,
188
190
  }
189
191
  export interface paramStore{
190
192
  generalParameters:GeneralParameters,