chore: 🎨 format

This commit is contained in:
ThatOneCalculator 2023-08-26 16:30:30 -07:00
parent c51e6ad3ae
commit 031170c56a
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
6 changed files with 79 additions and 17 deletions

View File

@ -106,6 +106,8 @@ async function performOneActivity(
} else if (isMove(activity)) {
await move(actor, activity);
} else {
apLogger.warn(`Unrecognized activity type: ${(activity as IActivity).type}`);
apLogger.warn(
`Unrecognized activity type: ${(activity as IActivity).type}`,
);
}
}

View File

@ -59,7 +59,18 @@
</template>
<script lang="ts" setup>
import { defineAsyncComponent, inject, nextTick, onMounted, onUnmounted, onActivated, provide, watch, ref, computed } from 'vue';
import {
defineAsyncComponent,
inject,
nextTick,
onMounted,
onUnmounted,
onActivated,
provide,
watch,
ref,
computed,
} from "vue";
import { i18n } from "@/i18n";
import MkSuperMenu from "@/components/MkSuperMenu.vue";
import MkInfo from "@/components/MkInfo.vue";
@ -231,27 +242,31 @@ const menuDef = computed(() => [
icon: "ph-gear-six ph-bold ph-lg",
text: i18n.ts.general,
to: "/admin/settings",
active: currentPage.value?.route.name === "settings",
active:
currentPage.value?.route.name === "settings",
},
{
icon: "ph-envelope-simple-open ph-bold ph-lg",
text: i18n.ts.emailServer,
to: "/admin/email-settings",
active:
currentPage.value?.route.name === "email-settings",
currentPage.value?.route.name ===
"email-settings",
},
{
icon: "ph-cloud ph-bold ph-lg",
text: i18n.ts.objectStorage,
to: "/admin/object-storage",
active:
currentPage.value?.route.name === "object-storage",
currentPage.value?.route.name ===
"object-storage",
},
{
icon: "ph-lock ph-bold ph-lg",
text: i18n.ts.security,
to: "/admin/security",
active: currentPage.value?.route.name === "security",
active:
currentPage.value?.route.name === "security",
},
{
icon: "ph-arrows-merge ph-bold ph-lg",
@ -263,38 +278,46 @@ const menuDef = computed(() => [
icon: "ph-plug ph-bold ph-lg",
text: i18n.ts.integration,
to: "/admin/integrations",
active: currentPage.value?.route.name === "integrations",
active:
currentPage.value?.route.name ===
"integrations",
},
{
icon: "ph-prohibit ph-bold ph-lg",
text: i18n.ts.instanceBlocking,
to: "/admin/instance-block",
active:
currentPage.value?.route.name === "instance-block",
currentPage.value?.route.name ===
"instance-block",
},
{
icon: "ph-hash ph-bold ph-lg",
text: i18n.ts.hiddenTags,
to: "/admin/hashtags",
active: currentPage.value?.route.name === "hashtags",
active:
currentPage.value?.route.name === "hashtags",
},
{
icon: "ph-ghost ph-bold ph-lg",
text: i18n.ts.proxyAccount,
to: "/admin/proxy-account",
active: currentPage.value?.route.name === "proxy-account",
active:
currentPage.value?.route.name ===
"proxy-account",
},
{
icon: "ph-database ph-bold ph-lg",
text: i18n.ts.database,
to: "/admin/database",
active: currentPage.value?.route.name === "database",
active:
currentPage.value?.route.name === "database",
},
{
icon: "ph-flask ph-bold ph-lg",
text: i18n.ts._experiments.title,
to: "/admin/experiments",
active: currentPage.value?.route.name === "experiments",
active:
currentPage.value?.route.name === "experiments",
},
],
},
@ -330,7 +353,11 @@ onUnmounted(() => {
});
watch(router.currentRef, (to) => {
if (to.route.path === "/admin" && to.child?.route.name == null && !narrow.value) {
if (
to.route.path === "/admin" &&
to.child?.route.name == null &&
!narrow.value
) {
router.replace("/admin/overview");
}
});

View File

@ -8,7 +8,15 @@
</template>
<script lang="ts" setup>
import { markRaw, version as vueVersion, onMounted, onBeforeUnmount, nextTick, shallowRef, ref } from 'vue';
import {
markRaw,
version as vueVersion,
onMounted,
onBeforeUnmount,
nextTick,
shallowRef,
ref,
} from "vue";
import { Chart } from "chart.js";
import tinycolor from "tinycolor2";
import gradient from "chartjs-plugin-gradient";

View File

@ -60,7 +60,16 @@
</template>
<script lang="ts" setup>
import { markRaw, version as vueVersion, onMounted, onBeforeUnmount, nextTick, shallowRef, ref, computed } from 'vue';
import {
markRaw,
version as vueVersion,
onMounted,
onBeforeUnmount,
nextTick,
shallowRef,
ref,
computed,
} from "vue";
import XFederation from "./overview.federation.vue";
import XInstances from "./overview.instances.vue";
import XQueue from "./overview.queue.vue";

View File

@ -16,7 +16,15 @@
</template>
<script lang="ts" setup>
import { defineAsyncComponent, computed, inject, onMounted, onUnmounted, watch, ref } from 'vue';
import {
defineAsyncComponent,
computed,
inject,
onMounted,
onUnmounted,
watch,
ref,
} from "vue";
import * as Acct from "firefish-js/built/acct";
import * as misskey from "firefish-js";
import XFollowList from "./follow-list.vue";

View File

@ -16,7 +16,15 @@
</template>
<script lang="ts" setup>
import { defineAsyncComponent, computed, inject, onMounted, onUnmounted, watch, ref } from 'vue';
import {
defineAsyncComponent,
computed,
inject,
onMounted,
onUnmounted,
watch,
ref,
} from "vue";
import * as Acct from "firefish-js/built/acct";
import * as misskey from "firefish-js";
import XFollowList from "./follow-list.vue";