summaryrefslogtreecommitdiff
path: root/packages/client/src/components/dialog.vue
diff options
context:
space:
mode:
authorJohann150 <johann.galle@protonmail.com>2022-05-26 15:53:09 +0200
committerGitHub <noreply@github.com>2022-05-26 22:53:09 +0900
commit3dae18b93cc2a219087c4e1a8acc763ff064b71d (patch)
treeee00206569ab940f7e1af154452123567c4d92f8 /packages/client/src/components/dialog.vue
parentuse http-signature module that supports hs2019 (#8635) (diff)
downloadmisskey-3dae18b93cc2a219087c4e1a8acc763ff064b71d.tar.gz
misskey-3dae18b93cc2a219087c4e1a8acc763ff064b71d.tar.bz2
misskey-3dae18b93cc2a219087c4e1a8acc763ff064b71d.zip
fix lints (#8737)
* fix: emits use ev instead of e * fix: errors use err instead of e * fix: replace use of data where possible * fix: events use evt instead of e * fix: use strict equals * fix: use emoji instead of e * fix: vue lints
Diffstat (limited to 'packages/client/src/components/dialog.vue')
-rw-r--r--packages/client/src/components/dialog.vue16
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/client/src/components/dialog.vue b/packages/client/src/components/dialog.vue
index 3e106a4f0c..b090f3cb4e 100644
--- a/packages/client/src/components/dialog.vue
+++ b/packages/client/src/components/dialog.vue
@@ -90,8 +90,8 @@ const props = withDefaults(defineProps<{
});
const emit = defineEmits<{
- (e: 'done', v: { canceled: boolean; result: any }): void;
- (e: 'closed'): void;
+ (ev: 'done', v: { canceled: boolean; result: any }): void;
+ (ev: 'closed'): void;
}>();
const modal = ref<InstanceType<typeof MkModal>>();
@@ -122,14 +122,14 @@ function onBgClick() {
if (props.cancelableByBgClick) cancel();
}
*/
-function onKeydown(e: KeyboardEvent) {
- if (e.key === 'Escape') cancel();
+function onKeydown(evt: KeyboardEvent) {
+ if (evt.key === 'Escape') cancel();
}
-function onInputKeydown(e: KeyboardEvent) {
- if (e.key === 'Enter') {
- e.preventDefault();
- e.stopPropagation();
+function onInputKeydown(evt: KeyboardEvent) {
+ if (evt.key === 'Enter') {
+ evt.preventDefault();
+ evt.stopPropagation();
ok();
}
}