Skip to content

Commit

Permalink
fixed linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gibahjoe committed Feb 18, 2023
1 parent 4ef6343 commit 2607054
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 18 deletions.
10 changes: 5 additions & 5 deletions frontend/components/Buttons/PlayButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
</template>

<script lang="ts">
import {BaseItemDto} from '@jellyfin/client-axios';
import { BaseItemDto } from '@jellyfin/client-axios';
import Vue from 'vue';
import {mapStores} from 'pinia';
import {playbackManagerStore} from '~/store';
import {canPlay, canResume} from '~/utils/items';
import {ticksToMs} from '~/utils/time';
import { mapStores } from 'pinia';
import { playbackManagerStore } from '~/store';
import { canPlay, canResume } from '~/utils/items';
import { ticksToMs } from '~/utils/time';
export default Vue.extend({
props: {
Expand Down
17 changes: 11 additions & 6 deletions frontend/components/Item/Card/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div
v-focus="link"
:class="{ 'card-margin': margin }"
@keyup.enter="cardClicked($event)"
@keyup.enter="cardClicked()"
>
<component
:is="link ? 'nuxt-link' : 'div'"
Expand Down Expand Up @@ -88,10 +88,15 @@

<script lang="ts">
import Vue from 'vue';
import {mapStores} from 'pinia';
import {BaseItemDto, ImageType} from '@jellyfin/client-axios';
import {canPlay, CardShapes, getItemDetailsLink, getShapeFromItemType} from '~/utils/items';
import {taskManagerStore} from '~/store';
import { mapStores } from 'pinia';
import { BaseItemDto, ImageType } from '@jellyfin/client-axios';
import {
canPlay,
CardShapes,
getItemDetailsLink,
getShapeFromItemType
} from '~/utils/items';
import { taskManagerStore } from '~/store';
export default Vue.extend({
props: {
Expand Down Expand Up @@ -249,7 +254,7 @@ export default Vue.extend({
isFinePointer(): boolean {
return window.matchMedia('(pointer:fine)').matches;
},
cardClicked(e: Event) {
cardClicked() {
if (this.link) {
const itemLink = getItemDetailsLink(this.item);
Expand Down
6 changes: 3 additions & 3 deletions frontend/components/Item/SeasonTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
</template>

<script lang="ts">
import {BaseItemDto, ItemFields} from '@jellyfin/client-axios';
import { BaseItemDto, ItemFields } from '@jellyfin/client-axios';
import Vue from 'vue';
import {authStore} from '~/store';
import {getItemDetailsLink} from '~/utils/items';
import { authStore } from '~/store';
import { getItemDetailsLink } from '~/utils/items';
interface TvShowItem {
/**
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Players/PlayerManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export default Vue.extend({
// Adds support for remote
// Some keys are 'Unidentified' on LGtv.
const key = e.key == 'Unidentified' ? `${e.keyCode}` : e.key;
const key = e.key === 'Unidentified' ? `${e.keyCode}` : e.key;
if (e.key === 'Spacebar' || e.key === ' ') {
spaceEnabled =
Expand Down
4 changes: 2 additions & 2 deletions frontend/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

<script lang="ts">
import Vue from 'vue';
import {mapStores} from 'pinia';
import {pageStore} from '~/store';
import { mapStores } from 'pinia';
import { pageStore } from '~/store';
export default Vue.extend({
computed: {
Expand Down
4 changes: 3 additions & 1 deletion frontend/plugins/nuxt/browserDetectionPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ export class BrowserDetector {
isChrome(): boolean {
// The Edge user agent will also contain the "Chrome" keyword, so we need
// to make sure this is not Edge. Same happens for webos.
return this.userAgentContains('Chrome') && !this.isEdge() && !this.isWebOS();
return (
this.userAgentContains('Chrome') && !this.isEdge() && !this.isWebOS()
);
}

/**
Expand Down

0 comments on commit 2607054

Please sign in to comment.