From c37f1cb0c84053d4eb1a230b693f6a8fd69e605d Mon Sep 17 00:00:00 2001
From: DIYgod
Date: Fri, 4 Aug 2023 23:44:18 +0100
Subject: [PATCH] feat: portfolio editor list
---
src/components/dashboard/PagesManager.tsx | 113 +++++++++++++++-------
src/lib/i18n/locales/zh/dashboard.json | 1 +
2 files changed, 81 insertions(+), 33 deletions(-)
diff --git a/src/components/dashboard/PagesManager.tsx b/src/components/dashboard/PagesManager.tsx
index ab182759..99091ba1 100644
--- a/src/components/dashboard/PagesManager.tsx
+++ b/src/components/dashboard/PagesManager.tsx
@@ -14,6 +14,7 @@ import { Menu } from "@headlessui/react"
import { useQueryClient } from "@tanstack/react-query"
import PostCover from "~/components/home/PostCover"
+import { Image } from "~/components/ui/Image"
import { useDate } from "~/hooks/useDate"
import { Trans, useTranslation } from "~/lib/i18n/client"
import { getPageVisibility } from "~/lib/page-helpers"
@@ -24,6 +25,7 @@ import { cn } from "~/lib/utils"
import { useGetPagesBySite, usePinnedPage } from "~/queries/page"
import { useGetSite } from "~/queries/site"
+import { PlatformsSyncMap } from "../site/Platform"
import { Button } from "../ui/Button"
import { EmptyState } from "../ui/EmptyState"
import { TabItem, Tabs } from "../ui/Tabs"
@@ -187,7 +189,18 @@ export const PagesManager = ({ type }: { type: NoteType }) => {
)
break
case "portfolio": // TODO
- description = <>>
+ description = (
+ <>
+
+
+ The portfolio is a collection of works outside of xLog, such as
+ your YouTube videos and GitHub projects. They will be displayed in
+ the list on the homepage like posts. The difference is that the
+ portfolio directly links to external URLs.
+
+