mirror of
https://github.com/misskey-dev/misskey
synced 2024-11-29 07:18:52 +09:00
chore: fix lint errors (#8981)
This commit is contained in:
parent
bbe4824955
commit
9107de63b4
@ -8,7 +8,7 @@ import { queueLogger } from '../../logger.js';
|
|||||||
import { addFile } from '@/services/drive/add-file.js';
|
import { addFile } from '@/services/drive/add-file.js';
|
||||||
import { format as dateFormat } from 'date-fns';
|
import { format as dateFormat } from 'date-fns';
|
||||||
import { Users, Emojis } from '@/models/index.js';
|
import { Users, Emojis } from '@/models/index.js';
|
||||||
import { } from '@/queue/types.js';
|
import { } from '@/queue/types.js';
|
||||||
import { createTemp, createTempDir } from '@/misc/create-temp.js';
|
import { createTemp, createTempDir } from '@/misc/create-temp.js';
|
||||||
import { downloadUrl } from '@/misc/download-url.js';
|
import { downloadUrl } from '@/misc/download-url.js';
|
||||||
import config from '@/config/index.js';
|
import config from '@/config/index.js';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import config from '@/config/index.js';
|
import config from '@/config/index.js';
|
||||||
import Resolver from '../resolver.js';
|
import Resolver from '../resolver.js';
|
||||||
import { IObject, IQuestion, isQuestion } from '../type.js';
|
import { IObject, IQuestion, isQuestion } from '../type.js';
|
||||||
import { apLogger } from '../logger.js';
|
import { apLogger } from '../logger.js';
|
||||||
import { Notes, Polls } from '@/models/index.js';
|
import { Notes, Polls } from '@/models/index.js';
|
||||||
import { IPoll } from '@/models/entities/poll.js';
|
import { IPoll } from '@/models/entities/poll.js';
|
||||||
|
@ -8,7 +8,7 @@ import renderEmoji from './emoji.js';
|
|||||||
export const renderLike = async (noteReaction: NoteReaction, note: Note) => {
|
export const renderLike = async (noteReaction: NoteReaction, note: Note) => {
|
||||||
const reaction = noteReaction.reaction;
|
const reaction = noteReaction.reaction;
|
||||||
|
|
||||||
const object = {
|
const object = {
|
||||||
type: 'Like',
|
type: 'Like',
|
||||||
id: `${config.url}/likes/${noteReaction.id}`,
|
id: `${config.url}/likes/${noteReaction.id}`,
|
||||||
actor: `${config.url}/users/${noteReaction.userId}`,
|
actor: `${config.url}/users/${noteReaction.userId}`,
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { } from 'vue';
|
import { } from 'vue';
|
||||||
import * as Misskey from 'misskey-js';
|
import * as Misskey from 'misskey-js';
|
||||||
import XDrive from './drive.vue';
|
import XDrive from './drive.vue';
|
||||||
import XWindow from '@/components/ui/window.vue';
|
import XWindow from '@/components/ui/window.vue';
|
||||||
|
@ -27,8 +27,8 @@ function getClassOrder(width: number, queue: Value): ClassOrder {
|
|||||||
...(queue.min ? queue.min.filter(v => width >= v).map(getMinClass) : []),
|
...(queue.min ? queue.min.filter(v => width >= v).map(getMinClass) : []),
|
||||||
],
|
],
|
||||||
remove: [
|
remove: [
|
||||||
...(queue.max ? queue.max.filter(v => width > v).map(getMaxClass) : []),
|
...(queue.max ? queue.max.filter(v => width > v).map(getMaxClass) : []),
|
||||||
...(queue.min ? queue.min.filter(v => width < v).map(getMinClass) : []),
|
...(queue.min ? queue.min.filter(v => width < v).map(getMinClass) : []),
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ export type TextValue = ExprBase & {
|
|||||||
value: string;
|
value: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MultiLineTextValue = ExprBase & {
|
export type MultiLineTextValue = ExprBase & {
|
||||||
type: 'multiLineText';
|
type: 'multiLineText';
|
||||||
value: string;
|
value: string;
|
||||||
};
|
};
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { } from 'vue';
|
import { } from 'vue';
|
||||||
import XColumn from './column.vue';
|
import XColumn from './column.vue';
|
||||||
import XTimeline from '@/components/timeline.vue';
|
import XTimeline from '@/components/timeline.vue';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
|
@ -39,15 +39,15 @@ let pointsRenote: any = $ref(null);
|
|||||||
let pointsTotal: any = $ref(null);
|
let pointsTotal: any = $ref(null);
|
||||||
|
|
||||||
function dragListen(fn) {
|
function dragListen(fn) {
|
||||||
window.addEventListener('mousemove', fn);
|
window.addEventListener('mousemove', fn);
|
||||||
window.addEventListener('mouseleave', dragClear.bind(null, fn));
|
window.addEventListener('mouseleave', dragClear.bind(null, fn));
|
||||||
window.addEventListener('mouseup', dragClear.bind(null, fn));
|
window.addEventListener('mouseup', dragClear.bind(null, fn));
|
||||||
}
|
}
|
||||||
|
|
||||||
function dragClear(fn) {
|
function dragClear(fn) {
|
||||||
window.removeEventListener('mousemove', fn);
|
window.removeEventListener('mousemove', fn);
|
||||||
window.removeEventListener('mouseleave', dragClear);
|
window.removeEventListener('mouseleave', dragClear);
|
||||||
window.removeEventListener('mouseup', dragClear);
|
window.removeEventListener('mouseup', dragClear);
|
||||||
}
|
}
|
||||||
|
|
||||||
function onMousedown(ev) {
|
function onMousedown(ev) {
|
||||||
|
Loading…
Reference in New Issue
Block a user