@saooti/octopus-sdk 39.2.5 → 39.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "39.2.5",
3
+ "version": "39.2.7",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -2,26 +2,24 @@
2
2
  <div class="page-box">
3
3
  <h1>{{ $t("Site map") }}</h1>
4
4
  <div class="d-flex flex-column align-items-center">
5
- <div>
6
- <template v-for="linkItem in siteMap" :key="linkItem.title">
7
- <ul v-if="linkItem.condition" class="my-1">
8
- <li class="my-1">
9
- <router-link class="text-dark" :to="linkItem.href">{{
10
- linkItem.title
11
- }}</router-link>
12
- <template v-for="subLink in linkItem.links" :key="subLink.title">
13
- <ul v-if="subLink.condition">
14
- <li class="my-1">
15
- <router-link class="text-dark" :to="subLink.href">{{
16
- subLink.title
17
- }}</router-link>
18
- </li>
19
- </ul>
5
+ <ul class="my-1">
6
+ <template v-for="linkItem in siteMap" :key="linkItem.id">
7
+ <li :id="linkItem.id" v-if="linkItem.condition" class="my-1">
8
+ <router-link class="text-dark" :to="linkItem.href">{{
9
+ linkItem.title
10
+ }}</router-link>
11
+ <ul v-if="linkItem.links">
12
+ <template v-for="subLink in linkItem.links" :key="subLink.id">
13
+ <li :id="subLink.id" class="my-1" v-if="subLink.condition">
14
+ <router-link class="text-dark" :to="subLink.href">{{
15
+ subLink.title
16
+ }}</router-link>
17
+ </li>
20
18
  </template>
21
- </li>
22
- </ul>
19
+ </ul>
20
+ </li>
23
21
  </template>
24
- </div>
22
+ </ul>
25
23
  </div>
26
24
  </div>
27
25
  </template>
@@ -34,9 +32,22 @@ import { useGeneralStore } from "../../stores/GeneralStore";
34
32
  import { state } from "../../stores/ParamSdkStore";
35
33
  import { defineComponent } from "vue";
36
34
  import { Organisation } from "@/stores/class/general/organisation";
35
+ interface LinkMapSite {
36
+ id: string;
37
+ title: string;
38
+ href: string;
39
+ condition: boolean;
40
+ links: Array<{
41
+ id: string;
42
+ title: string;
43
+ href: string;
44
+ condition: boolean;
45
+ }>;
46
+ }
37
47
  export default defineComponent({
38
48
  props: {
39
49
  isEducation: { default: false, type: Boolean },
50
+ externLinks: { default: ()=>[], type: Array as () => Array<LinkMapSite> },
40
51
  },
41
52
 
42
53
  data() {
@@ -82,8 +93,9 @@ export default defineComponent({
82
93
  siteMap() {
83
94
  return [
84
95
  ...this.contentSection,
96
+ ...this.externLinks,
85
97
  ...this.userLinks,
86
- this.adminSection,
98
+ ...this.adminSection,
87
99
  ...this.footerLinks,
88
100
  ];
89
101
  },
@@ -91,31 +103,37 @@ export default defineComponent({
91
103
  return [
92
104
  {
93
105
  title: this.$t("Radio & Live"),
106
+ id:"link-page-lives",
94
107
  href: "/main/pub/lives",
95
108
  condition: true,
96
109
  },
97
110
  {
98
111
  title: this.$t("Podcasts"),
112
+ id:"link-page-podcasts",
99
113
  href: "/main/pub/podcasts",
100
114
  condition: true,
101
115
  },
102
116
  {
103
117
  title: this.$t("Emissions"),
118
+ id:"link-page-emissions",
104
119
  href: "/main/pub/emissions",
105
120
  condition: true,
106
121
  },
107
122
  {
108
123
  title: this.$t("Speakers"),
124
+ id:"link-page-participants",
109
125
  href: "/main/pub/participants",
110
126
  condition: true,
111
127
  },
112
128
  {
113
129
  title: this.$t("Playlists"),
130
+ id:"link-page-playlists",
114
131
  href: "/main/pub/playlists",
115
132
  condition: true,
116
133
  },
117
134
  {
118
135
  title: this.$t("Productors"),
136
+ id:"link-page-productors",
119
137
  href: "/main/pub/productors",
120
138
  condition:
121
139
  !this.isPodcastmaker && (!this.filterOrgaId || this.isEducation),
@@ -127,11 +145,13 @@ export default defineComponent({
127
145
  {
128
146
  title: this.$t("Edit my profile"),
129
147
  href: "/main/priv/edit/profile",
148
+ id:"link-page-profile",
130
149
  condition: !this.isPodcastmaker && this.isAuthenticated,
131
150
  },
132
151
  {
133
152
  title: this.$t("Edit my organisation"),
134
153
  href: "/main/priv/edit/organisation",
154
+ id:"link-page-organisation",
135
155
  condition:
136
156
  !this.isPodcastmaker &&
137
157
  this.isAuthenticated &&
@@ -147,111 +167,131 @@ export default defineComponent({
147
167
  {
148
168
  title: this.$t("Contact"),
149
169
  href: "/main/pub/contact",
170
+ id:"link-page-contact",
150
171
  condition: true,
151
172
  },
152
173
  {
153
174
  title: this.$t("Term of use"),
154
175
  href: "/main/pub/cgu",
176
+ id:"link-page-cgu",
155
177
  condition: true,
156
178
  },
157
179
  {
158
180
  title: this.$t("Used libraries"),
159
181
  href: "/main/pub/libraries",
182
+ id:"link-page-libraries",
160
183
  condition: true,
161
184
  },
162
185
  ];
163
186
  },
164
187
  adminSection() {
165
188
  if (this.isPodcastmaker) {
166
- return;
189
+ return [];
167
190
  }
168
- return {
191
+ return [{
169
192
  title: this.$t("Welcome in the Backoffice"),
170
193
  href: "/main/priv/backoffice",
194
+ id:"link-page-backoffice",
171
195
  condition: this.isAuthenticated,
172
196
  links: [
173
197
  {
174
198
  title: this.$t("Upload"),
175
199
  href: "/main/priv/upload",
200
+ id:"link-page-upload",
176
201
  condition: this.isRoleContribution,
177
202
  },
178
203
  {
179
204
  title: this.$t("Media library"),
180
205
  href: "/main/priv/media",
206
+ id:"link-page-media",
181
207
  condition: this.isStudioAuth,
182
208
  },
183
209
  {
184
210
  title: this.$t("Studio"),
185
211
  href: "/main/priv/records",
212
+ id:"link-page-records",
186
213
  condition: this.isStudioAuth,
187
214
  },
188
215
  {
189
216
  title: this.$t("Radio planning"),
190
217
  href: "/main/priv/radio/",
218
+ id:"link-page-radio",
191
219
  condition: this.isRoleRadio && this.radioAuthorized,
192
220
  },
193
221
  {
194
222
  title: this.$t("Edit / Delete episodes"),
195
223
  href: "/main/pub/podcasts",
224
+ id:"link-page-edit-podcast",
196
225
  condition: true,
197
226
  },
198
227
  {
199
228
  title: this.$t("Handle my players"),
200
229
  href: "/main/priv/players",
230
+ id:"link-page-players",
201
231
  condition: this.isRoleEditor,
202
232
  },
203
233
  {
204
234
  title: this.$t("Monetization"),
205
235
  href: "/main/priv/edit/adserv",
236
+ id:"link-page-adserv",
206
237
  condition: this.isRoleAdvertising && !this.platformEducation,
207
238
  },
208
239
  {
209
240
  title: this.$t("Handle FTP"),
210
241
  href: "/main/priv/edit/ftp",
242
+ id:"link-page-ftp",
211
243
  condition: this.isRoleEditor,
212
244
  },
213
245
  {
214
246
  title: this.$t("Rubrics and topics"),
215
247
  href: "/main/priv/edit/rubrics",
248
+ id:"link-page-rubrics",
216
249
  condition: this.isRoleEditor,
217
250
  },
218
251
  {
219
252
  title: this.$t("Handle RSS"),
220
253
  href: "/main/priv/edit/rss",
254
+ id:"link-page-rss",
221
255
  condition: this.isRoleEditor,
222
256
  },
223
257
  {
224
258
  title: this.$t("Handle my participants"),
225
259
  href: "/main/priv/participants/handle",
260
+ id:"link-page-edit-participants",
226
261
  condition: this.isRoleEditor,
227
262
  },
228
263
  {
229
264
  title: this.$t("Handle comments"),
230
265
  href: "/main/priv/comments",
266
+ id:"link-page-comments",
231
267
  condition: this.isRoleComments,
232
268
  },
233
269
  {
234
270
  title: this.$t("See my statistics"),
235
271
  href: "/main/priv/show/stats",
272
+ id:"link-page-stats",
236
273
  condition: this.isRoleAnalytics,
237
274
  },
238
275
  {
239
276
  title: this.$t("Organisations management"),
240
277
  href: "/main/priv/edit/contract",
278
+ id:"link-page-contract",
241
279
  condition: this.isRoleAdmin,
242
280
  },
243
281
  {
244
282
  title: this.$t("My account"),
245
283
  href: "/main/priv/account",
284
+ id:"link-page-account",
246
285
  condition: true,
247
286
  },
248
287
  {
249
288
  title: this.$t("Handle my users"),
250
289
  href: "/main/priv/user/handle",
290
+ id:"link-page-users",
251
291
  condition: this.isRoleUsers,
252
292
  },
253
293
  ],
254
- };
294
+ }];
255
295
  },
256
296
  },
257
297
  created() {