Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Jan 2, 2024
1 parent ed1cebd commit 4b6e2f6
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/backend/src/server/api/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/

import type { Schema } from '@/misc/json-schema.js';
import { permissions } from 'cherrypick-js';
import type { Schema } from '@/misc/json-schema.js';
import { RolePolicies } from '@/core/RoleService.js';

import * as ep___admin_meta from './endpoints/admin/meta.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/server/api/endpoints/i.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const meta = {
tags: ['account'],

requireCredential: true,
kind: "read:account",
kind: 'read:account',

res: {
type: 'object',
Expand Down
8 changes: 4 additions & 4 deletions packages/backend/src/server/api/endpoints/users/reactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { QueryService } from '@/core/QueryService.js';
import { NoteReactionEntityService } from '@/core/entities/NoteReactionEntityService.js';
import { DI } from '@/di-symbols.js';
import { MiNoteReaction } from '@/models/_.js';
import { ApiError } from '../../error.js';
import { MiNoteReaction } from "@/models/_.js";

export const meta = {
tags: ['users', 'reactions'],
Expand Down Expand Up @@ -79,10 +79,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
qb
.from(this.noteReactionsRepository.metadata.targetName, 'reaction')
.where('"reaction"."userId" = :userId', { userId: ps.userId }),
ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate
ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate,
),
'reaction',
'"reaction"."noteId" = note.id'
'reaction',
'"reaction"."noteId" = note.id',
);

this.queryService.generateVisibilityQuery(query, me);
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/server/api/stream/channels/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import type { Packed } from '@/misc/json-schema.js';
import { NoteEntityService } from '@/core/entities/NoteEntityService.js';
import { UserEntityService } from '@/core/entities/UserEntityService.js';
import { bindThis } from '@/decorators.js';
import Channel, { type MiChannelService } from '../channel.js';
import type { GlobalEvents } from '@/core/GlobalEventService.js';
import Channel, { type MiChannelService } from '../channel.js';

class ChannelChannel extends Channel {
public readonly chName = 'channel';
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkMigrated.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import { i18n } from '@/i18n.js';
import { confetti } from '@/scripts/confetti.js';
import * as os from '@/os.js';
import { clearCache } from '@/scripts/clear-cache.js';
import {miLocalStorage} from "@/local-storage.js";
import { miLocalStorage } from '@/local-storage.js';

const showChangelog = ref(false);

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkPageWindow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { PageMetadata, provideMetadataReceiver } from '@/scripts/page-metadata.j
import { openingWindowsCount } from '@/os.js';
import { claimAchievement } from '@/scripts/achievements.js';
import { getScrollContainer } from '@/scripts/scroll.js';
import * as os from "@/os.js";
import * as os from '@/os.js';

const props = defineProps<{
initialPath: string;
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/scripts/mfm-function-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export function mfmFunctionPicker(src: any, textArea: HTMLInputElement | HTMLTex
os.popupMenu([{
type: 'label',
}, ...getHTMLFunctionList(textArea, textRef)
, { type: 'divider' }
, ...getMFMFunctionList(textArea, textRef)], src);
, { type: 'divider' }
, ...getMFMFunctionList(textArea, textRef)], src);
});
}

Expand Down

0 comments on commit 4b6e2f6

Please sign in to comment.