a
This commit is contained in:
parent
c0015adad4
commit
dc7c65ff93
5 changed files with 50 additions and 37 deletions
|
@ -27,6 +27,7 @@ otherSettings: "Other Settings"
|
|||
openInWindow: "Open in window"
|
||||
profile: "Profile"
|
||||
timeline: "Timeline"
|
||||
timelines: "Timelines"
|
||||
noAccountDescription: "This user has not written their bio yet."
|
||||
login: "Sign In"
|
||||
loggingIn: "Signing In"
|
||||
|
@ -87,6 +88,7 @@ lists: "Lists"
|
|||
listsDesc: "Lists let you create timelines with specified users. They can be accessed from the timelines page."
|
||||
noLists: "You don't have any lists"
|
||||
note: "Post"
|
||||
characterLimit: "Character limit"
|
||||
notes: "Posts"
|
||||
following: "Following"
|
||||
followers: "Followers"
|
||||
|
@ -1687,8 +1689,8 @@ _instanceCharts:
|
|||
_timelines:
|
||||
home: "Home"
|
||||
local: "Local"
|
||||
recommended: "Recommended"
|
||||
social: "Social"
|
||||
recommended: "Recommended"
|
||||
global: "Global"
|
||||
_pages:
|
||||
newPage: "Create a new Page"
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
<template>
|
||||
<div class="ffcbddfc" :class="{ inline, naked }">
|
||||
<a v-if="external" class="main _button" :href="to" target="_blank">
|
||||
<div class="ffcbddfc linkBoxed" :class="{ inline, naked }">
|
||||
<span v-if="!to" class="main">
|
||||
<span class="icon"><slot name="icon"></slot></span>
|
||||
<span class="text"><slot></slot></span>
|
||||
<span class="right">
|
||||
<span class="text"><slot name="suffix"></slot></span>
|
||||
</span>
|
||||
</span>
|
||||
<a v-else-if="external" class="main _button" :href="to" target="_blank">
|
||||
<span class="icon"><slot name="icon"></slot></span>
|
||||
<span class="text"><slot></slot></span>
|
||||
<span class="right">
|
||||
|
@ -29,7 +36,7 @@
|
|||
import {} from "vue";
|
||||
|
||||
const props = defineProps<{
|
||||
to: string;
|
||||
to?: string;
|
||||
active?: boolean;
|
||||
external?: boolean;
|
||||
behavior?: null | "window" | "browser" | "modalWindow";
|
||||
|
@ -57,7 +64,7 @@ const props = defineProps<{
|
|||
font-size: 0.9em;
|
||||
transition: background .2s;
|
||||
|
||||
&:hover {
|
||||
&._button:hover {
|
||||
text-decoration: none;
|
||||
background: var(--buttonHoverBg);
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
<FormInput
|
||||
v-model="maintainerName"
|
||||
class="_formBlock"
|
||||
:placeholder="'@user'"
|
||||
>
|
||||
<template #label>{{
|
||||
i18n.ts.maintainerName
|
||||
|
|
|
@ -481,7 +481,7 @@ hr {
|
|||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
> ._button {
|
||||
> ._button, > .linkBoxed {
|
||||
flex-basis: 34%;
|
||||
flex-grow: 1;
|
||||
min-width: max-content !important;
|
||||
|
|
|
@ -123,14 +123,14 @@
|
|||
</FormLink>
|
||||
</FormSection>
|
||||
|
||||
<FormSection>
|
||||
<FormSection v-if="meta.maintainerName || meta.maintainerEmail">
|
||||
<div class="_formLinksGrid">
|
||||
<MkKeyValue :text="meta.maintainerName">
|
||||
<MkKeyValue v-if="meta.maintainerName" :text="meta.maintainerName">
|
||||
<template #key>{{
|
||||
i18n.ts.administrator
|
||||
}}</template>
|
||||
</MkKeyValue>
|
||||
<MkKeyValue>
|
||||
<MkKeyValue v-if="meta.maintainerEmail">
|
||||
<template #key>{{
|
||||
i18n.ts.contact
|
||||
}}</template>
|
||||
|
@ -143,15 +143,16 @@
|
|||
</div>
|
||||
</FormSection>
|
||||
|
||||
<FormSection>
|
||||
<FormSection v-if="meta.tosUrl">
|
||||
<div class="_formLinksGrid">
|
||||
<FormLink v-if="meta?.tosUrl" :to="meta.tosUrl"
|
||||
<FormLink v-if="meta.tosUrl" :to="meta.tosUrl"
|
||||
><template #icon
|
||||
><i
|
||||
class="ph-scroll ph-bold ph-lg"
|
||||
></i></template
|
||||
>{{ i18n.ts.tos }}
|
||||
</FormLink>
|
||||
<!-- TODO: Blocked servers list -->
|
||||
<!-- <FormLink v-if="meta?.tosUrl" :to="meta.tosUrl"
|
||||
><template #icon
|
||||
><i
|
||||
|
@ -161,33 +162,35 @@
|
|||
</FormLink> -->
|
||||
</div>
|
||||
</FormSection>
|
||||
<FormSection>
|
||||
<div class="_formLinksGridFlex">
|
||||
<FormLink>
|
||||
{{ i18n.ts.timelines }}
|
||||
<template #suffix>
|
||||
{{
|
||||
`${ i18n.ts._timelines.home },` +
|
||||
meta.disableLocalTimeline ? null : `${ i18n.ts._timelines.local },` +
|
||||
meta.disableLocalTimeline ? null : `${ i18n.ts._timelines.social },` +
|
||||
meta.disableRecommendedTimeline ? null : `${ i18n.ts._timelines.recommended },` +
|
||||
meta.disableGlobalTimeline ? null : `${ i18n.ts._timelines.global }`
|
||||
}}
|
||||
</template>
|
||||
</FormLink>
|
||||
<FormLink>
|
||||
{{ i18n.ts.driveCapacityPerLocalAccount }}
|
||||
<template #suffix>
|
||||
{{ meta.driveCapacityPerLocalUserMb }}MB
|
||||
</template>
|
||||
</FormLink>
|
||||
<FormLink>
|
||||
{{ i18n.ts.characterLimit }}
|
||||
<template #suffix>
|
||||
{{ i18n.t("_cw.chars", { count: meta.maxNoteTextLength }) }}
|
||||
</template>
|
||||
</FormLink>
|
||||
</div>
|
||||
</FormSection>
|
||||
</footer>
|
||||
<!-- <FormSection class="announcements">
|
||||
<h4>{{ i18n.ts.announcements }}</h4>
|
||||
<MkPagination
|
||||
v-slot="{ items }"
|
||||
:pagination="announcements"
|
||||
class="list"
|
||||
>
|
||||
<article
|
||||
v-for="announcement in items"
|
||||
:key="announcement.id"
|
||||
class="item _card"
|
||||
>
|
||||
<h4 class="_title">
|
||||
{{ announcement.title }}
|
||||
</h4>
|
||||
<div class="_content">
|
||||
<Mfm :text="announcement.text" />
|
||||
<img
|
||||
v-if="announcement.imageUrl"
|
||||
:src="announcement.imageUrl"
|
||||
alt="announcement image"
|
||||
/>
|
||||
</div>
|
||||
</article>
|
||||
</MkPagination>
|
||||
</FormSection> -->
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue