chore: formatting

This commit is contained in:
ThatOneCalculator 2023-05-25 19:47:10 -07:00
parent ceae7341d4
commit 911704d6a8
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
19 changed files with 96 additions and 49 deletions

View File

@ -1,6 +1,6 @@
{
"name": "calckey",
"version": "14.0.0-dev19",
"version": "14.0.0-dev22",
"codename": "aqua",
"repository": {
"type": "git",

View File

@ -240,7 +240,7 @@ export const NoteRepository = db.getRepository(Note).extend({
...(meId
? {
myReaction: populateMyReaction(note, meId, options?._hint_),
}
}
: {}),
...(opts.detail

View File

@ -256,7 +256,6 @@ import { useNoteCapture } from "@/scripts/use-note-capture";
import { notePage } from "@/filters/note";
import { deepClone } from "@/scripts/clone";
const router = useRouter();
const props = defineProps<{
@ -401,13 +400,15 @@ function onContextmenu(ev: MouseEvent): void {
os.pageWindow(notePage(appearNote));
},
},
notePage(appearNote) != location.pathname ? {
icon: "ph-arrows-out-simple ph-bold ph-lg",
text: i18n.ts.showInPage,
action: () => {
router.push(notePage(appearNote), "forcePage");
},
} : undefined,
notePage(appearNote) != location.pathname
? {
icon: "ph-arrows-out-simple ph-bold ph-lg",
text: i18n.ts.showInPage,
action: () => {
router.push(notePage(appearNote), "forcePage");
},
}
: undefined,
null,
{
type: "a",
@ -423,13 +424,15 @@ function onContextmenu(ev: MouseEvent): void {
copyToClipboard(`${url}${notePage(appearNote)}`);
},
},
note.user.host != null ? {
type: "a",
icon: "ph-arrow-square-up-right ph-bold ph-lg",
text: i18n.ts.showOnRemote,
href: note.url ?? note.uri ?? "",
target: "_blank",
} : undefined,
note.user.host != null
? {
type: "a",
icon: "ph-arrow-square-up-right ph-bold ph-lg",
text: i18n.ts.showOnRemote,
href: note.url ?? note.uri ?? "",
target: "_blank",
}
: undefined,
],
ev
);

View File

@ -337,7 +337,7 @@ function onContextmenu(ev: MouseEvent): void {
} else {
os.contextMenu(
[
{
{
type: "label",
text: notePage(appearNote),
},
@ -348,13 +348,15 @@ function onContextmenu(ev: MouseEvent): void {
os.pageWindow(notePage(appearNote));
},
},
notePage(appearNote) != location.pathname ? {
icon: "ph-arrows-out-simple ph-bold ph-lg",
text: i18n.ts.showInPage,
action: () => {
router.push(notePage(appearNote), "forcePage");
},
} : undefined,
notePage(appearNote) != location.pathname
? {
icon: "ph-arrows-out-simple ph-bold ph-lg",
text: i18n.ts.showInPage,
action: () => {
router.push(notePage(appearNote), "forcePage");
},
}
: undefined,
null,
{
type: "a",
@ -370,13 +372,15 @@ function onContextmenu(ev: MouseEvent): void {
copyToClipboard(`${url}${notePage(appearNote)}`);
},
},
note.user.host != null ? {
type: "a",
icon: "ph-arrow-square-up-right ph-bold ph-lg",
text: i18n.ts.showOnRemote,
href: note.url ?? note.uri ?? "",
target: "_blank",
} : undefined,
note.user.host != null
? {
type: "a",
icon: "ph-arrow-square-up-right ph-bold ph-lg",
text: i18n.ts.showOnRemote,
href: note.url ?? note.uri ?? "",
target: "_blank",
}
: undefined,
],
ev
);

View File

@ -7,7 +7,10 @@
:tabs="headerTabs"
/></template>
<MkSpacer :content-max="600" :margin-min="20">
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
<swiper
:touch-angle="25"
:threshold="10"
:centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View File

@ -7,7 +7,10 @@
:tabs="headerTabs"
/></template>
<MkSpacer :content-max="600" :margin-min="16" :margin-max="32">
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
<swiper
:touch-angle="25"
:threshold="10"
:centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View File

@ -7,7 +7,10 @@
:tabs="headerTabs"
/></template>
<MkSpacer :content-max="700">
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
<swiper
:touch-angle="25"
:threshold="10"
:centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View File

@ -8,7 +8,10 @@
/></template>
<div class="lznhrdub">
<MkSpacer :content-max="1200">
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
<swiper
:touch-angle="25"
:threshold="10"
:centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View File

@ -8,7 +8,10 @@
:display-back-button="true"
/></template>
<MkSpacer :content-max="1200">
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
<swiper
:touch-angle="25"
:threshold="10"
:centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View File

@ -12,7 +12,10 @@
:margin-min="16"
:margin-max="32"
>
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
<swiper
:touch-angle="25"
:threshold="10"
:centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View File

@ -8,7 +8,10 @@
/></template>
<div>
<MkSpacer :content-max="800">
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
<swiper
:touch-angle="25"
:threshold="10"
:centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View File

@ -162,12 +162,16 @@ definePageMetadata(
computed(() =>
note
? {
title: i18n.t("noteOf", { user: note.user.name || note.user.username }),
title: i18n.t("noteOf", {
user: note.user.name || note.user.username,
}),
subtitle: new Date(note.createdAt).toLocaleString(),
avatar: note.user,
path: `/notes/${note.id}`,
share: {
title: i18n.t("noteOf", { user: note.user.name || note.user.username }),
title: i18n.t("noteOf", {
user: note.user.name || note.user.username,
}),
text: note.text,
},
}

View File

@ -9,7 +9,10 @@
/>
</template>
<MkSpacer :content-max="800">
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
<swiper
:touch-angle="25"
:threshold="10"
:centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View File

@ -7,7 +7,10 @@
:tabs="headerTabs"
/></template>
<MkSpacer :content-max="700">
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
<swiper
:touch-angle="25"
:threshold="10"
:centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View File

@ -8,7 +8,10 @@
:display-back-button="true"
/></template>
<MkSpacer :content-max="800">
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
<swiper
:touch-angle="25"
:threshold="10"
:centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View File

@ -8,7 +8,10 @@
:display-back-button="true"
/></template>
<MkSpacer :content-max="800">
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
<swiper
:touch-angle="25"
:threshold="10"
:centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View File

@ -32,7 +32,10 @@
/>
</div> *v-else on next div* -->
<div class="tl _block">
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
<swiper
:touch-angle="25"
:threshold="10"
:centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View File

@ -461,7 +461,7 @@ console.log(mainRouter.currentRoute.value.name);
}
&:not(.isMobile) {
> .contents {
border-right: .5px solid var(--divider);
border-right: 0.5px solid var(--divider);
}
}
&.wallpaper {
@ -473,7 +473,7 @@ console.log(mainRouter.currentRoute.value.name);
&:not(.isMobile) {
--navBg: transparent;
> .contents {
border-inline: .5px solid var(--divider);
border-inline: 0.5px solid var(--divider);
margin-inline: -1px;
}
}