This commit is contained in:
Freeplay 2023-06-15 17:28:50 -04:00
parent c0015adad4
commit dc7c65ff93
5 changed files with 50 additions and 37 deletions

View file

@ -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"

View file

@ -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);
} }

View file

@ -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

View file

@ -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;

View file

@ -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>
</footer> <FormSection>
<!-- <FormSection class="announcements"> <div class="_formLinksGridFlex">
<h4>{{ i18n.ts.announcements }}</h4> <FormLink>
<MkPagination {{ i18n.ts.timelines }}
v-slot="{ items }" <template #suffix>
:pagination="announcements" {{
class="list" `${ i18n.ts._timelines.home },` +
> meta.disableLocalTimeline ? null : `${ i18n.ts._timelines.local },` +
<article meta.disableLocalTimeline ? null : `${ i18n.ts._timelines.social },` +
v-for="announcement in items" meta.disableRecommendedTimeline ? null : `${ i18n.ts._timelines.recommended },` +
:key="announcement.id" meta.disableGlobalTimeline ? null : `${ i18n.ts._timelines.global }`
class="item _card" }}
> </template>
<h4 class="_title"> </FormLink>
{{ announcement.title }} <FormLink>
</h4> {{ i18n.ts.driveCapacityPerLocalAccount }}
<div class="_content"> <template #suffix>
<Mfm :text="announcement.text" /> {{ meta.driveCapacityPerLocalUserMb }}MB
<img </template>
v-if="announcement.imageUrl" </FormLink>
:src="announcement.imageUrl" <FormLink>
alt="announcement image" {{ i18n.ts.characterLimit }}
/> <template #suffix>
{{ i18n.t("_cw.chars", { count: meta.maxNoteTextLength }) }}
</template>
</FormLink>
</div> </div>
</article> </FormSection>
</MkPagination> </footer>
</FormSection> -->
</div> </div>
</header> </header>
</div> </div>