Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Nov 6, 2023
1 parent b45b833 commit 824cf8d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/frontend/src/components/MkMediaImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ const url = $computed(() => (props.raw || defaultStore.state.loadRawImages)
);

let clickToShowMessage = $computed(() =>
defaultStore.state.nsfwOpenBehavior === 'click' ? i18n.ts.clickToShow
: defaultStore.state.nsfwOpenBehavior === 'doubleClick' ? i18n.ts.doubleClickToShow
: ''
defaultStore.state.nsfwOpenBehavior === 'click' ? i18n.ts.clickToShow
: defaultStore.state.nsfwOpenBehavior === 'doubleClick' ? i18n.ts.doubleClickToShow
: '',
);

function onClick(ev: MouseEvent) {
Expand Down
6 changes: 3 additions & 3 deletions packages/frontend/src/components/MkMediaVideo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ const props = defineProps<{
const hide = ref((defaultStore.state.nsfw === 'force' || defaultStore.state.enableDataSaverMode) ? true : (props.video.isSensitive && defaultStore.state.nsfw !== 'ignore'));

let clickToShowMessage = $computed(() =>
defaultStore.state.nsfwOpenBehavior === 'click' ? i18n.ts.clickToShow
: defaultStore.state.nsfwOpenBehavior === 'doubleClick' ? i18n.ts.doubleClickToShow
: ''
defaultStore.state.nsfwOpenBehavior === 'click' ? i18n.ts.clickToShow
: defaultStore.state.nsfwOpenBehavior === 'doubleClick' ? i18n.ts.doubleClickToShow
: '',
);

function onClick(ev: MouseEvent) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ SPDX-License-Identifier: AGPL-3.0-only

<script lang="ts" setup>
import { Ref, computed, ref, watch } from 'vue';
import * as os from '@/os.js';
import XSound from './sounds.sound.vue';
import * as os from '@/os.js';
import MkRange from '@/components/MkRange.vue';
import MkButton from '@/components/MkButton.vue';
import FormSection from '@/components/form/section.vue';
Expand Down

0 comments on commit 824cf8d

Please sign in to comment.