Merge branch 'Crossbell-Box:dev' into dev

This commit is contained in:
qfdk 2022-10-15 09:41:34 +02:00 committed by GitHub
commit 7e93f4079f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 42 additions and 4 deletions

View File

@ -83,7 +83,7 @@ export function MainLayout({
©{" "}
<UniLink
href={getSiteLink({
subdomain: "blog",
subdomain: "xlog",
})}
className="hover:text-accent"
>

View File

@ -539,6 +539,7 @@ export async function commentPage(
content,
external_urls: [externalUrl],
tags: ["comment"],
sources: ["xlog"],
},
pageId.split("-")[0],
pageId.split("-")[1],

View File

@ -24,6 +24,7 @@ import { nanoid } from "nanoid"
import { useQueryClient } from "@tanstack/react-query"
import { PageContent } from "~/components/common/PageContent"
import pinyin from "pinyin"
import { GITHUB_LINK } from "~/lib/env"
const getInputDatetimeValue = (date: Date | string) => {
const str = dayjs(date).format()
@ -235,7 +236,7 @@ export default function SubdomainEditor() {
<EditorToolbar view={view} toolbars={toolbars}></EditorToolbar>
<UniLink
className="ml-7 align-middle"
href="https://github.com/Crossbell-Box/xLog/wiki/xLog-Flavored-Markdown"
href={`${GITHUB_LINK}/wiki/xLog-Flavored-Markdown`}
>
Tip: xLog Flavored Markdown
</UniLink>

View File

@ -3,6 +3,8 @@ import { DashboardLayout } from "~/components/dashboard/DashboardLayout"
import { DashboardMain } from "~/components/dashboard/DashboardMain"
import { UniLink } from "~/components/ui/UniLink"
import Image from "next/image"
import { DISCORD_LINK, TWITTER_LINK, GITHUB_LINK, APP_NAME } from "~/lib/env"
import { getSiteLink } from "~/lib/helpers"
export default function SubdomainIndex() {
const router = useRouter()
@ -19,7 +21,7 @@ export default function SubdomainIndex() {
This page is quite empty for now, but we will polish it very soon!
Maybe some useful analytics!
</p>
<p>Here{`'`}re some useful links:</p>
<p>Here{`'`}re some useful links to get started:</p>
<ul>
<li>
<UniLink href={`/dashboard/${subdomain}/editor?type=post`}>
@ -32,6 +34,40 @@ export default function SubdomainIndex() {
</UniLink>
</li>
</ul>
<p>
You are not alone, join the community to meet friends or give xLog
some advice:
</p>
<ul>
<li>
<UniLink href={DISCORD_LINK}>
Join {APP_NAME}
{`'`}s Discord server
</UniLink>
</li>
<li>
<UniLink
href={getSiteLink({
subdomain: "xlog",
})}
>
Follow {APP_NAME}
{`'`}s xLog
</UniLink>
</li>
<li>
<UniLink href={GITHUB_LINK}>
View {APP_NAME}
{`'`}s source code or participate in its development
</UniLink>
</li>
<li>
<UniLink href={TWITTER_LINK}>
Follow {APP_NAME}
{`'`}s Twitter
</UniLink>
</li>
</ul>
</div>
</DashboardMain>
</DashboardLayout>

View File

@ -227,7 +227,7 @@ export default function Home({ region }: { region: string | null }) {
<li className="inline-flex h-14 align-middle items-center">
<UniLink
className="inline-block text-accent text-center"
href="https://github.com/Crossbell-Box/xLog/edit/dev/showcase.json"
href={`${GITHUB_LINK}/edit/dev/showcase.json`}
>
Submit yours
</UniLink>