Skip to content

Commit

Permalink
style: automatic eslint fix
Browse files Browse the repository at this point in the history
Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
  • Loading branch information
ferferga committed Jan 25, 2025
1 parent 459dd01 commit df5b7a8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion frontend/src/components/Item/ItemGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
:class="useResponsiveClasses('card-grid-container')">
<ItemCard
:item="item"
margin

link
margin
text
overlay />
</JVirtual>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,15 @@ const generalProperties = computed(() => {
const p = new Map<string, string | number | boolean | null | undefined>();
const formats
= isArray(selectedMediaSource.value.Formats)
&& selectedMediaSource.value.Formats.length
&& selectedMediaSource.value.Formats.length
? selectedMediaSource.value.Formats.join(',')
: undefined;
const fileSize = isNumber(selectedMediaSource.value.Size)
? formatFileSize(selectedMediaSource.value.Size)
: undefined;
const bitrate
= isNumber(selectedMediaSource.value.Bitrate)
&& selectedMediaSource.value.Bitrate > 0
&& selectedMediaSource.value.Bitrate > 0
? formatBitRate(selectedMediaSource.value.Bitrate)
: undefined;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Item/Metadata/MetadataEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ async function getData(): Promise<void> {
}).filter((r): r is ContentOption => !isNil(r)) ?? [];
contentOption.value
= contentOptions.value.find(r => r.value === options.ContentType)
?? contentOptions.value[0];
?? contentOptions.value[0];
contentType.value = options.ContentType ?? contentOption.value.value;
metadata.value = itemInfo;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/item/[itemId].vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
class="text-h6 font-weight-heavy"
:class="{'text-center': !$vuetify.display.mdAndUp }">
<RouterLink
class="link pa-0 text-truncate font-weight-medium mt-1 d-block"
class="link pa-0 text-truncate font-weight-medium d-block mt-1"
:to="getItemDetailsLink(currentSeries)">
{{ currentSeries.Name }}
</RouterLink>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/settings/devices.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ async function deleteAllDevices(): Promise<void> {
devices.value
= (await remote.sdk.newUserApi(getDevicesApi).getDevices()).data.Items
?? [];
?? [];
} catch (error) {
useSnackbar(t('deleteAllDevicesError'), 'error');
console.error(error);
Expand All @@ -174,7 +174,7 @@ async function deleteDevice(deviceId: string): Promise<void> {
devices.value
= (await remote.sdk.newUserApi(getDevicesApi).getDevices()).data.Items
?? [];
?? [];
} catch (error) {
useSnackbar(t('deleteDeviceError'), 'error');
console.error(error);
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/store/playback-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -843,10 +843,10 @@ class PlaybackManagerStore extends CommonStore<PlaybackManagerState> {
async (newValue, oldValue) => {
const remove
= newValue === PlaybackStatus.Error
|| newValue === PlaybackStatus.Stopped;
|| newValue === PlaybackStatus.Stopped;
const add
= oldValue === PlaybackStatus.Error
|| oldValue === PlaybackStatus.Stopped;
|| oldValue === PlaybackStatus.Stopped;

if (remove || add) {
const actionHandlers: Partial<Record<MediaSessionAction, MediaSessionActionHandler>> = {
Expand Down Expand Up @@ -883,7 +883,7 @@ class PlaybackManagerStore extends CommonStore<PlaybackManagerState> {
watchEffect(() => {
const remove
= this.status.value === PlaybackStatus.Error
|| this.status.value === PlaybackStatus.Stopped;
|| this.status.value === PlaybackStatus.Stopped;

if (this.currentTime.value <= this.currentItemRuntime.value) {
const duration = this.currentItemRuntime.value / 1000;
Expand Down

0 comments on commit df5b7a8

Please sign in to comment.