lint
This commit is contained in:
parent
ac8d0f133e
commit
1fce71a7d7
|
@ -274,7 +274,7 @@ const maxTextLength = computed((): number => {
|
||||||
|
|
||||||
const canPost = computed((): boolean => {
|
const canPost = computed((): boolean => {
|
||||||
return !props.mock && !posting.value && !posted.value &&
|
return !props.mock && !posting.value && !posted.value &&
|
||||||
(1 <= textLength.value || 1 <= files.value.length || !!poll.value || !!props.renote || !!event) &&
|
(1 <= textLength.value || 1 <= files.value.length || !!poll.value || !!props.renote || !!event.value) &&
|
||||||
(textLength.value <= maxTextLength.value) &&
|
(textLength.value <= maxTextLength.value) &&
|
||||||
(!poll.value || poll.value.choices.length >= 2);
|
(!poll.value || poll.value.choices.length >= 2);
|
||||||
});
|
});
|
||||||
|
@ -425,10 +425,10 @@ function togglePoll() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleEvent() {
|
function toggleEvent() {
|
||||||
if (event) {
|
if (event.value) {
|
||||||
event = null;
|
event.value = null;
|
||||||
} else {
|
} else {
|
||||||
event = {
|
event.value = {
|
||||||
title: '',
|
title: '',
|
||||||
start: (new Date()).toString(),
|
start: (new Date()).toString(),
|
||||||
end: null,
|
end: null,
|
||||||
|
@ -1031,7 +1031,7 @@ onMounted(() => {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (init.event) {
|
if (init.event) {
|
||||||
event = {
|
event.value = {
|
||||||
title: init.event.title,
|
title: init.event.title,
|
||||||
start: init.event.start,
|
start: init.event.start,
|
||||||
end: init.event.end,
|
end: init.event.end,
|
||||||
|
|
|
@ -92,7 +92,7 @@ const prepend = note => {
|
||||||
|
|
||||||
const prependFilterdMedia = note => {
|
const prependFilterdMedia = note => {
|
||||||
if (note.files !== null && note.files.length > 0) {
|
if (note.files !== null && note.files.length > 0) {
|
||||||
tlComponent.pagingComponent?.prepend(note);
|
tlComponent.value.pagingComponent?.prepend(note);
|
||||||
}
|
}
|
||||||
|
|
||||||
emit('note');
|
emit('note');
|
||||||
|
|
|
@ -108,8 +108,8 @@ const search = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const searchLocal = () => {
|
const searchLocal = () => {
|
||||||
if (username === '') {
|
if (username.value === '') {
|
||||||
users = [];
|
users.value = [];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
os.api('users/search', {
|
os.api('users/search', {
|
||||||
|
@ -118,7 +118,7 @@ const searchLocal = () => {
|
||||||
limit: 10,
|
limit: 10,
|
||||||
detail: false,
|
detail: false,
|
||||||
}).then(_users => {
|
}).then(_users => {
|
||||||
users = _users;
|
users.value = _users;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -175,7 +175,7 @@ function deleteResolver(id: string): void {
|
||||||
os.apiWithDialog('admin/abuse-report-resolver/delete', {
|
os.apiWithDialog('admin/abuse-report-resolver/delete', {
|
||||||
resolverId: id,
|
resolverId: id,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
resolverPagingComponent?.value.reload();
|
resolverPagingComponent.value.reload();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,8 +188,8 @@ function create(): void {
|
||||||
expiresAt: newResolver.value.expiresAt,
|
expiresAt: newResolver.value.expiresAt,
|
||||||
forward: newResolver.value.forward,
|
forward: newResolver.value.forward,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
folderComponent?.value.toggle();
|
folderComponent.value.toggle();
|
||||||
resolverPagingComponent?.value.reload();
|
resolverPagingComponent.value.reload();
|
||||||
newResolver.value.name = '';
|
newResolver.value.name = '';
|
||||||
newResolver.value.targetUserPattern = '';
|
newResolver.value.targetUserPattern = '';
|
||||||
newResolver.value.reporterPattern = '';
|
newResolver.value.reporterPattern = '';
|
||||||
|
|
|
@ -49,7 +49,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import {computed} from 'vue';
|
import { computed } from 'vue';
|
||||||
import * as mfm from 'cherrypick-mfm-js';
|
import * as mfm from 'cherrypick-mfm-js';
|
||||||
import * as Misskey from 'cherrypick-js';
|
import * as Misskey from 'cherrypick-js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
|
|
|
@ -259,7 +259,7 @@ provideMetadataReceiver((info) => {
|
||||||
childInfo.value = null;
|
childInfo.value = null;
|
||||||
} else {
|
} else {
|
||||||
childInfo.value = info;
|
childInfo.value = info;
|
||||||
INFO.value.needWideArea = info.value?.needWideArea ?? undefined;
|
INFO.value.needWideArea = info.value.needWideArea ?? undefined;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -153,9 +153,9 @@ function save() {
|
||||||
volume: volume.value,
|
volume: volume.value,
|
||||||
});
|
});
|
||||||
|
|
||||||
saved = true;
|
saved.value = true;
|
||||||
window.setTimeout(() => {
|
window.setTimeout(() => {
|
||||||
saved = false;
|
saved.value = false;
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
// os.success();
|
// os.success();
|
||||||
|
|
|
@ -52,12 +52,12 @@ function showMenu(ev: MouseEvent) {
|
||||||
}, {
|
}, {
|
||||||
text: i18n.ts.following,
|
text: i18n.ts.following,
|
||||||
action: () => {
|
action: () => {
|
||||||
chartSrc = 'per-user-following';
|
chartSrc.value = 'per-user-following';
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
text: i18n.ts.followers,
|
text: i18n.ts.followers,
|
||||||
action: () => {
|
action: () => {
|
||||||
chartSrc = 'per-user-followers';
|
chartSrc.value = 'per-user-followers';
|
||||||
},
|
},
|
||||||
}], ev.currentTarget ?? ev.target);
|
}], ev.currentTarget ?? ev.target);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue