RSS Manager code

This commit is contained in:
mfcar 2023-10-03 12:32:39 +01:00
parent 2ada293e8a
commit aefcc4490f
No known key found for this signature in database
7 changed files with 508 additions and 233 deletions

View file

@ -10,7 +10,15 @@
</div>
</div>
<ui-text-input-with-label ref="feedUrlInput" v-model="details.feedUrl" :label="$strings.LabelRSSFeedURL" class="mt-2" />
<div class="flex mt-2">
<div class="w-full relative">
<ui-text-input-with-label ref="feedUrlInput" v-model="details.feedUrl" :label="$strings.LabelRSSFeedURL" class="mt-2" />
<div v-if="details.feedHealthy != null" class="material-icons absolute right-2 bottom-1 p-0.5">
<widgets-feed-healthy-indicator :value="details.feedHealthy"></widgets-feed-healthy-indicator>
</div>
</div>
</div>
<p v-if="details.lastSuccessfulFetchAt" class="text-xs ml-1 text-white text-opacity-60">{{ $strings.LabelFeedLastSuccessfulCheck }}: {{$dateDistanceFromNow(details.lastSuccessfulFetchAt)}}</p>
<ui-textarea-with-label ref="descriptionInput" v-model="details.description" :rows="3" :label="$strings.LabelDescription" class="mt-2" />
@ -71,7 +79,9 @@ export default {
itunesArtistId: null,
explicit: false,
language: null,
type: null
type: null,
feedHealthy: false,
lastSuccessfulFetchAt: null
},
newTags: []
}
@ -229,6 +239,8 @@ export default {
this.details.language = this.mediaMetadata.language || ''
this.details.explicit = !!this.mediaMetadata.explicit
this.details.type = this.mediaMetadata.type || 'episodic'
this.details.feedHealthy = !!this.mediaMetadata.feedHealthy
this.details.lastSuccessfulFetchAt = this.mediaMetadata.lastSuccessfulFetchAt || null
this.newTags = [...(this.media.tags || [])]
},