chore: formatting
This commit is contained in:
parent
ceae7341d4
commit
911704d6a8
19 changed files with 96 additions and 49 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "calckey",
|
||||
"version": "14.0.0-dev19",
|
||||
"version": "14.0.0-dev22",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -240,7 +240,7 @@ export const NoteRepository = db.getRepository(Note).extend({
|
|||
...(meId
|
||||
? {
|
||||
myReaction: populateMyReaction(note, meId, options?._hint_),
|
||||
}
|
||||
}
|
||||
: {}),
|
||||
|
||||
...(opts.detail
|
||||
|
|
|
@ -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
|
||||
);
|
||||
|
|
|
@ -627,7 +627,7 @@ onUnmounted(() => {
|
|||
background: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
&.max-width_450px {
|
||||
> .reply-to:first-child {
|
||||
padding-top: 14px;
|
||||
|
|
|
@ -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
|
||||
);
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue