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"
|
openInWindow: "Open in window"
|
||||||
profile: "Profile"
|
profile: "Profile"
|
||||||
timeline: "Timeline"
|
timeline: "Timeline"
|
||||||
|
timelines: "Timelines"
|
||||||
noAccountDescription: "This user has not written their bio yet."
|
noAccountDescription: "This user has not written their bio yet."
|
||||||
login: "Sign In"
|
login: "Sign In"
|
||||||
loggingIn: "Signing 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."
|
listsDesc: "Lists let you create timelines with specified users. They can be accessed from the timelines page."
|
||||||
noLists: "You don't have any lists"
|
noLists: "You don't have any lists"
|
||||||
note: "Post"
|
note: "Post"
|
||||||
|
characterLimit: "Character limit"
|
||||||
notes: "Posts"
|
notes: "Posts"
|
||||||
following: "Following"
|
following: "Following"
|
||||||
followers: "Followers"
|
followers: "Followers"
|
||||||
|
@ -1687,8 +1689,8 @@ _instanceCharts:
|
||||||
_timelines:
|
_timelines:
|
||||||
home: "Home"
|
home: "Home"
|
||||||
local: "Local"
|
local: "Local"
|
||||||
recommended: "Recommended"
|
|
||||||
social: "Social"
|
social: "Social"
|
||||||
|
recommended: "Recommended"
|
||||||
global: "Global"
|
global: "Global"
|
||||||
_pages:
|
_pages:
|
||||||
newPage: "Create a new Page"
|
newPage: "Create a new Page"
|
||||||
|
|
|
@ -1,6 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="ffcbddfc" :class="{ inline, naked }">
|
<div class="ffcbddfc linkBoxed" :class="{ inline, naked }">
|
||||||
<a v-if="external" class="main _button" :href="to" target="_blank">
|
<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="icon"><slot name="icon"></slot></span>
|
||||||
<span class="text"><slot></slot></span>
|
<span class="text"><slot></slot></span>
|
||||||
<span class="right">
|
<span class="right">
|
||||||
|
@ -29,7 +36,7 @@
|
||||||
import {} from "vue";
|
import {} from "vue";
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
to: string;
|
to?: string;
|
||||||
active?: boolean;
|
active?: boolean;
|
||||||
external?: boolean;
|
external?: boolean;
|
||||||
behavior?: null | "window" | "browser" | "modalWindow";
|
behavior?: null | "window" | "browser" | "modalWindow";
|
||||||
|
@ -57,7 +64,7 @@ const props = defineProps<{
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
transition: background .2s;
|
transition: background .2s;
|
||||||
|
|
||||||
&:hover {
|
&._button:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background: var(--buttonHoverBg);
|
background: var(--buttonHoverBg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
<FormInput
|
<FormInput
|
||||||
v-model="maintainerName"
|
v-model="maintainerName"
|
||||||
class="_formBlock"
|
class="_formBlock"
|
||||||
|
:placeholder="'@user'"
|
||||||
>
|
>
|
||||||
<template #label>{{
|
<template #label>{{
|
||||||
i18n.ts.maintainerName
|
i18n.ts.maintainerName
|
||||||
|
|
|
@ -481,7 +481,7 @@ hr {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
> ._button {
|
> ._button, > .linkBoxed {
|
||||||
flex-basis: 34%;
|
flex-basis: 34%;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
min-width: max-content !important;
|
min-width: max-content !important;
|
||||||
|
|
|
@ -123,14 +123,14 @@
|
||||||
</FormLink>
|
</FormLink>
|
||||||
</FormSection>
|
</FormSection>
|
||||||
|
|
||||||
<FormSection>
|
<FormSection v-if="meta.maintainerName || meta.maintainerEmail">
|
||||||
<div class="_formLinksGrid">
|
<div class="_formLinksGrid">
|
||||||
<MkKeyValue :text="meta.maintainerName">
|
<MkKeyValue v-if="meta.maintainerName" :text="meta.maintainerName">
|
||||||
<template #key>{{
|
<template #key>{{
|
||||||
i18n.ts.administrator
|
i18n.ts.administrator
|
||||||
}}</template>
|
}}</template>
|
||||||
</MkKeyValue>
|
</MkKeyValue>
|
||||||
<MkKeyValue>
|
<MkKeyValue v-if="meta.maintainerEmail">
|
||||||
<template #key>{{
|
<template #key>{{
|
||||||
i18n.ts.contact
|
i18n.ts.contact
|
||||||
}}</template>
|
}}</template>
|
||||||
|
@ -143,15 +143,16 @@
|
||||||
</div>
|
</div>
|
||||||
</FormSection>
|
</FormSection>
|
||||||
|
|
||||||
<FormSection>
|
<FormSection v-if="meta.tosUrl">
|
||||||
<div class="_formLinksGrid">
|
<div class="_formLinksGrid">
|
||||||
<FormLink v-if="meta?.tosUrl" :to="meta.tosUrl"
|
<FormLink v-if="meta.tosUrl" :to="meta.tosUrl"
|
||||||
><template #icon
|
><template #icon
|
||||||
><i
|
><i
|
||||||
class="ph-scroll ph-bold ph-lg"
|
class="ph-scroll ph-bold ph-lg"
|
||||||
></i></template
|
></i></template
|
||||||
>{{ i18n.ts.tos }}
|
>{{ i18n.ts.tos }}
|
||||||
</FormLink>
|
</FormLink>
|
||||||
|
<!-- TODO: Blocked servers list -->
|
||||||
<!-- <FormLink v-if="meta?.tosUrl" :to="meta.tosUrl"
|
<!-- <FormLink v-if="meta?.tosUrl" :to="meta.tosUrl"
|
||||||
><template #icon
|
><template #icon
|
||||||
><i
|
><i
|
||||||
|
@ -161,33 +162,35 @@
|
||||||
</FormLink> -->
|
</FormLink> -->
|
||||||
</div>
|
</div>
|
||||||
</FormSection>
|
</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>
|
</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>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue