Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Hermanek committed Jul 8, 2024
2 parents 3f67f56 + 36ab4a4 commit 6746fc2
Show file tree
Hide file tree
Showing 18 changed files with 81 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## [1.3.3](https://github.com/anzusystems/admin-dam/compare/1.3.2...1.3.3) (2024-03-12)

### Features
* Podcast episode extUrl, podcast extUrl

## [1.3.2](https://github.com/anzusystems/admin-dam/compare/1.3.1...1.3.2) (2024-02-29)

### Features
* changed Podcast rssUrl max length validation

## [1.3.1](https://github.com/anzusystems/admin-dam/compare/1.2.0...1.3.0) (2024-01-19)

### Features
Expand Down
1 change: 1 addition & 0 deletions src/locales/en/coreDam/podcast.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"attributes": {
"rssUrl": "RSS URL",
"extUrl": "Ext feed link",
"mode": "Mode",
"lastImportStatus": "Last import status"
},
Expand Down
2 changes: 2 additions & 0 deletions src/locales/en/coreDam/podcastEpisode.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"seasonNumber": "Season number",
"episodeNumber": "Episode number",
"extId": "Ext id",
"rssUrl": "Rss audio URL",
"extUrl": "Ext link",
"lastImportStatus": "Last import status"
},
"texts": {
Expand Down
1 change: 1 addition & 0 deletions src/locales/sk/coreDam/podcast.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"attributes": {
"rssUrl": "RSS URL",
"extUrl": "Externá URL podcastu",
"mode": "Mód",
"lastImportStatus": "Posledný stav importu"
},
Expand Down
2 changes: 2 additions & 0 deletions src/locales/sk/coreDam/podcastEpisode.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"seasonNumber": "Číslo sezóny",
"episodeNumber": "Číslo epizódy",
"extId": "Externé ID",
"rssUrl": "Rss audio URL",
"extUrl": "Externá URL epizódy",
"lastImportStatus": "Posledný stav importu"
},
"texts": {
Expand Down
2 changes: 2 additions & 0 deletions src/model/coreDam/factory/PodcastEpisodeFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export function usePodcastEpisodeFactory() {
seasonNumber: null,
episodeNumber: null,
extId: '',
rssUrl: '',
extUrl: '',
lastImportStatus: PodcastLastImportStatus.Default,
},
dates: {
Expand Down
1 change: 1 addition & 0 deletions src/model/coreDam/factory/PodcastFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export function usePodcastFactory() {
},
attributes: {
rssUrl: '',
extUrl: '',
mode: PodcastMode.Default,
lastImportStatus: PodcastLastImportStatus.Default,
},
Expand Down
1 change: 1 addition & 0 deletions src/types/coreDam/Podcast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ interface Texts {

export interface Attributes {
rssUrl: string
extUrl: string
mode: PodcastMode
lastImportStatus: PodcastLastImportStatus
}
Expand Down
2 changes: 2 additions & 0 deletions src/types/coreDam/PodcastEpisode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ interface Attributes {
seasonNumber: number | null
episodeNumber: number | null
extId: string
extUrl: string
rssUrl: string
lastImportStatus: PodcastLastImportStatus
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const loadFormData = async () => {
podcastEpisode.value.attributes.episodeNumber = res.attributes.episodeNumber
podcastEpisode.value.attributes.seasonNumber = res.attributes.seasonNumber
podcastEpisode.value.attributes.extId = res.attributes.extId
podcastEpisode.value.attributes.extUrl = res.attributes.extUrl
loadingFormData.value = false
}
Expand Down Expand Up @@ -174,6 +175,14 @@ onMounted(async () => {
data-cy="field-episode-num-podcast"
/>
</ARow>
<ARow>
<AFormTextField
v-model="podcastEpisode.attributes.extUrl"
:label="t('coreDam.podcastEpisode.model.attributes.extUrl')"
:v="v$.podcastEpisode.attributes.extUrl"
data-cy="episode-ext-url"
/>
</ARow>
</template>
</ASystemEntityScope>
</VCardText>
Expand Down
8 changes: 8 additions & 0 deletions src/views/coreDam/podcast/components/PodcastCreateButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ const { v$ } = usePodcastValidation(podcast)
data-cy="podcast-rss-url"
/>
</ARow>
<ARow>
<AFormTextField
v-model="podcast.attributes.extUrl"
:label="t('coreDam.podcast.model.attributes.extUrl')"
:v="v$.podcast.attributes.extUrl"
data-cy="podcast-ext-url"
/>
</ARow>
<ARow>
<AFormDatetimePicker
v-model="podcast.dates.importFrom"
Expand Down
4 changes: 4 additions & 0 deletions src/views/coreDam/podcast/components/PodcastDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ const altImgSrc = computed(() => {
:title="t('coreDam.podcast.model.attributes.rssUrl')"
:value="podcast.attributes.rssUrl"
/>
<ARow
:title="t('coreDam.podcast.model.attributes.extUrl')"
:value="podcast.attributes.extUrl"
/>
<ARow :title="t('coreDam.podcast.model.attributes.lastImportStatus')">
<PodcastLastImportStatusChip :status="podcast.attributes.lastImportStatus" />
</ARow>
Expand Down
8 changes: 8 additions & 0 deletions src/views/coreDam/podcast/components/PodcastEditForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ const { podcastModeOptions } = usePodcastMode()
data-cy="podcast-rss-url"
/>
</ARow>
<ARow>
<AFormTextField
v-model="podcast.attributes.extUrl"
:label="t('coreDam.podcast.model.attributes.extUrl')"
:v="v$.podcast.attributes.extUrl"
data-cy="podcast-ext-url"
/>
</ARow>
<ARow>
<AFormDatetimePicker
v-model="podcast.dates.importFrom"
Expand Down
3 changes: 3 additions & 0 deletions src/views/coreDam/podcast/composables/podcastValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export function usePodcastValidation(podcast: Ref<Podcast>) {
minLength: minLength(1),
maxLength: maxLength(2048),
},
extUrl: {
maxLength: maxLength(2048),
},
},
dates: {
importFrom: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ const create = async () => {
data-cy="episode-number"
/>
</ARow>
<ARow>
<AFormTextField
v-model="podcastEpisode.attributes.extUrl"
:label="t('coreDam.podcastEpisode.model.attributes.extUrl')"
:v="v$.podcastEpisode.attributes.extUrl"
data-cy="episode-ext-url"
/>
</ARow>
</ASystemEntityScope>
</template>
</ACreateDialog>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ const onAssetChipClick = () => {
:title="t('coreDam.podcastEpisode.model.attributes.episodeNumber')"
:value="podcastEpisode.attributes.episodeNumber"
/>
<ARow
:title="t('coreDam.podcastEpisode.model.attributes.rssUrl')"
:value="podcastEpisode.attributes.rssUrl"
/>
<ARow
:title="t('coreDam.podcastEpisode.model.attributes.extUrl')"
:value="podcastEpisode.attributes.extUrl"
/>
<ARow
:title="t('coreDam.podcastEpisode.model.attributes.extId')"
:value="podcastEpisode.attributes.extId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ const { t } = useI18n()
data-cy="episode-ext-id"
/>
</ARow>
<ARow>
<AFormTextField
v-model="podcastEpisode.attributes.extUrl"
:label="t('coreDam.podcastEpisode.model.attributes.extUrl')"
:v="v$.podcastEpisode.attributes.extUrl"
data-cy="podcast-ext-url"
/>
</ARow>
<ARow>
<AFormDatetimePicker
v-model="podcastEpisode.dates.publicationDate"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export function usePodcastEpisodeValidation(podcastEpisode: Ref<PodcastEpisode>)
minLength: minLength(1),
maxLength: maxLength(256),
},
extUrl: {
maxLength: maxLength(2048),
},
},
},
}))
Expand Down

0 comments on commit 6746fc2

Please sign in to comment.