summaryrefslogtreecommitdiff
path: root/packages/client/src/widgets/slideshow.vue
diff options
context:
space:
mode:
authorAndreas Nedbal <github-bf215181b5140522137b3d4f6b73544a@desu.email>2022-05-25 09:43:12 +0200
committerGitHub <noreply@github.com>2022-05-25 16:43:12 +0900
commitb049633db7bc39b3fc75f30990d0e8d17f077ec5 (patch)
tree2b538c5e42363beb42081fe4510f82328ce5f7eb /packages/client/src/widgets/slideshow.vue
parentrefactor(client): refactor admin/other-settings to use Composition API (#8667) (diff)
downloadmisskey-b049633db7bc39b3fc75f30990d0e8d17f077ec5.tar.gz
misskey-b049633db7bc39b3fc75f30990d0e8d17f077ec5.tar.bz2
misskey-b049633db7bc39b3fc75f30990d0e8d17f077ec5.zip
Refactor widgets and fix lint issues (#8719)
* fix(client): refactor widgets and fix lint issues * Apply review suggestions from @Johann150 Co-authored-by: Johann150 <johann@qwertqwefsday.eu> Co-authored-by: Johann150 <johann@qwertqwefsday.eu>
Diffstat (limited to 'packages/client/src/widgets/slideshow.vue')
-rw-r--r--packages/client/src/widgets/slideshow.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/client/src/widgets/slideshow.vue b/packages/client/src/widgets/slideshow.vue
index 7b2e539685..1b6c2d766d 100644
--- a/packages/client/src/widgets/slideshow.vue
+++ b/packages/client/src/widgets/slideshow.vue
@@ -37,7 +37,7 @@ type WidgetProps = GetFormResultType<typeof widgetPropsDef>;
//const props = defineProps<WidgetComponentProps<WidgetProps>>();
//const emit = defineEmits<WidgetComponentEmits<WidgetProps>>();
const props = defineProps<{ widget?: Widget<WidgetProps>; }>();
-const emit = defineEmits<{ (e: 'updateProps', props: WidgetProps); }>();
+const emit = defineEmits<{ (ev: 'updateProps', props: WidgetProps); }>();
const { widgetProps, configure, save } = useWidgetPropsManager(name,
widgetPropsDef,
@@ -51,7 +51,7 @@ const slideA = ref<HTMLElement>();
const slideB = ref<HTMLElement>();
const change = () => {
- if (images.value.length == 0) return;
+ if (images.value.length === 0) return;
const index = Math.floor(Math.random() * images.value.length);
const img = `url(${ images.value[index].url })`;