chore: formatting
This commit is contained in:
parent
9d6172757c
commit
c6aa87cc9c
|
@ -1,9 +1,7 @@
|
||||||
import * as Post from "@/misc/post.js";
|
import * as Post from "@/misc/post.js";
|
||||||
import create from "@/services/note/create.js";
|
import create from "@/services/note/create.js";
|
||||||
import { Users } from "@/models/index.js";
|
import { Users } from "@/models/index.js";
|
||||||
import type {
|
import type { DbUserImportMastoPostJobData } from "@/queue/types.js";
|
||||||
DbUserImportMastoPostJobData,
|
|
||||||
} from "@/queue/types.js";
|
|
||||||
import { queueLogger } from "../../logger.js";
|
import { queueLogger } from "../../logger.js";
|
||||||
import type Bull from "bull";
|
import type Bull from "bull";
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
import create from "@/services/note/create.js";
|
import create from "@/services/note/create.js";
|
||||||
import { Users } from "@/models/index.js";
|
import { Users } from "@/models/index.js";
|
||||||
import type {
|
import type { DbUserImportMastoPostJobData } from "@/queue/types.js";
|
||||||
DbUserImportMastoPostJobData,
|
|
||||||
} from "@/queue/types.js";
|
|
||||||
import { queueLogger } from "../../logger.js";
|
import { queueLogger } from "../../logger.js";
|
||||||
import type Bull from "bull";
|
import type Bull from "bull";
|
||||||
import { htmlToMfm } from "@/remote/activitypub/misc/html-to-mfm.js";
|
import { htmlToMfm } from "@/remote/activitypub/misc/html-to-mfm.js";
|
||||||
|
|
|
@ -3,7 +3,10 @@ import { Users, DriveFiles } from "@/models/index.js";
|
||||||
import type { DbUserImportPostsJobData } from "@/queue/types.js";
|
import type { DbUserImportPostsJobData } from "@/queue/types.js";
|
||||||
import { queueLogger } from "../../logger.js";
|
import { queueLogger } from "../../logger.js";
|
||||||
import type Bull from "bull";
|
import type Bull from "bull";
|
||||||
import { createImportCkPostJob, createImportMastoPostJob } from "@/queue/index.js";
|
import {
|
||||||
|
createImportCkPostJob,
|
||||||
|
createImportMastoPostJob,
|
||||||
|
} from "@/queue/index.js";
|
||||||
|
|
||||||
const logger = queueLogger.createSubLogger("import-posts");
|
const logger = queueLogger.createSubLogger("import-posts");
|
||||||
|
|
||||||
|
|
|
@ -341,7 +341,7 @@ function focusFooter(ev) {
|
||||||
> :deep(button) {
|
> :deep(button) {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-right: .4rem;
|
margin-right: 0.4rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -57,7 +57,10 @@
|
||||||
{{ i18n.ts._mfm.warn }}
|
{{ i18n.ts._mfm.warn }}
|
||||||
</template>
|
</template>
|
||||||
</FormSwitch> -->
|
</FormSwitch> -->
|
||||||
<FormSwitch v-model="reduceAnimation" class="_formBlock">
|
<FormSwitch
|
||||||
|
v-model="reduceAnimation"
|
||||||
|
class="_formBlock"
|
||||||
|
>
|
||||||
{{ i18n.ts.reduceUiAnimation }}
|
{{ i18n.ts.reduceUiAnimation }}
|
||||||
</FormSwitch>
|
</FormSwitch>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -16,9 +16,7 @@
|
||||||
<template #label>
|
<template #label>
|
||||||
<i class="ph-pencil-line ph-bold ph-lg"></i>
|
<i class="ph-pencil-line ph-bold ph-lg"></i>
|
||||||
{{ i18n.ts._experiments.enablePostEditing }}
|
{{ i18n.ts._experiments.enablePostEditing }}
|
||||||
<span class="_beta">
|
<span class="_beta"> {{ i18n.ts.beta }}</span>
|
||||||
{{ i18n.ts.beta }}</span
|
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
<template #caption>{{
|
<template #caption>{{
|
||||||
i18n.ts._experiments.postEditingCaption
|
i18n.ts._experiments.postEditingCaption
|
||||||
|
|
|
@ -99,7 +99,7 @@ const keymap = {
|
||||||
t: focus,
|
t: focus,
|
||||||
};
|
};
|
||||||
|
|
||||||
let timelines = ['home'];
|
let timelines = ["home"];
|
||||||
|
|
||||||
if (isLocalTimelineAvailable) {
|
if (isLocalTimelineAvailable) {
|
||||||
timelines.push("local");
|
timelines.push("local");
|
||||||
|
@ -108,7 +108,7 @@ if (isRecommendedTimelineAvailable) {
|
||||||
timelines.push("recommended");
|
timelines.push("recommended");
|
||||||
}
|
}
|
||||||
if (isLocalTimelineAvailable) {
|
if (isLocalTimelineAvailable) {
|
||||||
timelines.push('social');
|
timelines.push("social");
|
||||||
}
|
}
|
||||||
if (isGlobalTimelineAvailable) {
|
if (isGlobalTimelineAvailable) {
|
||||||
timelines.push("global");
|
timelines.push("global");
|
||||||
|
@ -235,9 +235,9 @@ const headerActions = $computed(() => [
|
||||||
|
|
||||||
const headerTabs = $computed(() => [
|
const headerTabs = $computed(() => [
|
||||||
{
|
{
|
||||||
key: 'home',
|
key: "home",
|
||||||
title: i18n.ts._timelines.home,
|
title: i18n.ts._timelines.home,
|
||||||
icon: 'ph-house ph-bold ph-lg',
|
icon: "ph-house ph-bold ph-lg",
|
||||||
iconOnly: true,
|
iconOnly: true,
|
||||||
},
|
},
|
||||||
...(isLocalTimelineAvailable
|
...(isLocalTimelineAvailable
|
||||||
|
@ -262,13 +262,13 @@ const headerTabs = $computed(() => [
|
||||||
: []),
|
: []),
|
||||||
...(isLocalTimelineAvailable
|
...(isLocalTimelineAvailable
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
key: 'social',
|
key: "social",
|
||||||
title: i18n.ts._timelines.social,
|
title: i18n.ts._timelines.social,
|
||||||
icon: 'ph-handshake ph-bold ph-lg',
|
icon: "ph-handshake ph-bold ph-lg",
|
||||||
iconOnly: true,
|
iconOnly: true,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
...(isGlobalTimelineAvailable
|
...(isGlobalTimelineAvailable
|
||||||
? [
|
? [
|
||||||
|
@ -286,16 +286,16 @@ definePageMetadata(
|
||||||
computed(() => ({
|
computed(() => ({
|
||||||
title: i18n.ts.timeline,
|
title: i18n.ts.timeline,
|
||||||
icon:
|
icon:
|
||||||
src === 'local'
|
src === "local"
|
||||||
? 'ph-users ph-bold ph-lg'
|
? "ph-users ph-bold ph-lg"
|
||||||
: src === 'social'
|
: src === "social"
|
||||||
? 'ph-handshake ph-bold ph-lg'
|
? "ph-handshake ph-bold ph-lg"
|
||||||
: src === 'recommended'
|
: src === "recommended"
|
||||||
? 'ph-thumbs-up ph-bold ph-lg'
|
? "ph-thumbs-up ph-bold ph-lg"
|
||||||
: src === 'global'
|
: src === "global"
|
||||||
? 'ph-planet ph-bold ph-lg'
|
? "ph-planet ph-bold ph-lg"
|
||||||
: 'ph-house ph-bold ph-lg',
|
: "ph-house ph-bold ph-lg",
|
||||||
})),
|
}))
|
||||||
);
|
);
|
||||||
|
|
||||||
let swiperRef: any = null;
|
let swiperRef: any = null;
|
||||||
|
|
Loading…
Reference in New Issue