Skip to content

Commit

Permalink
fix: ESLint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Molenaar <[email protected]>
  • Loading branch information
SMillerDev committed Dec 30, 2023
1 parent a8c2638 commit 75c82b2
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ import { confirmPassword } from '@nextcloud/password-confirmation'
* Debounce helper for method
* TODO: Should we remove this and use library?
*
* @param {function()} func - The callback function
* @param {Function} func - The callback function
* @param {number} wait - Time to wait in miliseconds
*/
function debounce(func, wait) {
Expand Down
4 changes: 4 additions & 0 deletions src/components/ContentTemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ watch(selectedFeedItem, (newSelectedFeedItem) => {
}
})
/**
* Unselect a list item.
*
*/
function unselectItem() {
itemStore.mutations.SET_SELECTED_ITEM(
itemStore.state,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ShareItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default Vue.extend({
/**
* Adds or removes user to selected list
*
* @param user {ShareUser} user that was clicked
* @param {ShareUser} user - User that was clicked
*/
clickUser(user: ShareUser) {
const selectedUsers = this.selected.map((val: ShareUser) => { return val.shareName })
Expand Down
2 changes: 2 additions & 0 deletions src/components/feed-display/FeedItemDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@
<img v-else :src="item.mediaThumbnail" alt="">
</div>

<!-- eslint-disable vue/no-v-html -->
<div v-if="item.mediaDescription" class="enclosure description" v-html="item.mediaDescription" />

<div class="body" :dir="item.rtl && 'rtl'" v-html="item.body" />
<!--eslint-enable-->
</div>
</div>
</template>
Expand Down
2 changes: 2 additions & 0 deletions src/components/feed-display/FeedItemRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
</div>

<div class="intro-container">
<!-- eslint-disable vue/no-v-html -->
<span class="intro" v-html="item.intro" />
<!--eslint-enable-->
</div>

<div class="date-container">
Expand Down
8 changes: 4 additions & 4 deletions src/dataservices/feed.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class FeedService {
* Attempts to add a feed to the Nextcloud News backend
* NOTE: this can fail if feed URL is not resolvable
*
* @param param0
* @param param0 Data for the feed
* @param param0.url {String} url of the feed to add
* @param param0.folderId {number} id number of folder to add feed to
* @param param0.user {String} http auth username required for accessing feed
Expand All @@ -50,7 +50,7 @@ export class FeedService {
/**
* Marks all items in feed, started with highestReadId
*
* @param param0
* @param param0 Data for the feed
* @param param0.feedId {Number} ID number of feed to mark items as read
* @param param0.highestItemId {Number} ID number of the (most recent?) feed item to mark as read (all older items will be marked as read)
* @return {AxiosResponse} Updated feed info (unreadCount = 0) stored in data.feeds[0] property
Expand All @@ -64,7 +64,7 @@ export class FeedService {
/**
* Update a feeds properties
*
* @param param0
* @param param0 Data for the feed
* @param param0.feedId {Number} ID number of feed to update
* @param param0.pinned {Boolean} should be pinned (true) or not pinned (flse)
* @param param0.ordering {FEED_ORDER} sets feed order (0 = NEWEST, 1 = OLDEST, 2 = DEFAULT)
Expand All @@ -86,7 +86,7 @@ export class FeedService {
/**
* Deletes a feed
*
* @param param0
* @param param0 Data for the feed
* @param param0.feedId {Number} ID number of feed to delete
* @return {AxiosResponse} Null value is returned on success
*/
Expand Down

0 comments on commit 75c82b2

Please sign in to comment.