feat(desktop): add doc links
This commit is contained in:
parent
e5047246b1
commit
acdca33aaf
|
|
@ -7,7 +7,7 @@
|
||||||
"author": "Folo Team",
|
"author": "Folo Team",
|
||||||
"homepage": "https://github.com/RSSNext",
|
"homepage": "https://github.com/RSSNext",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "https://github.com/RSSNext/follow",
|
"url": "https://github.com/RSSNext/Folo",
|
||||||
"type": "git"
|
"type": "git"
|
||||||
},
|
},
|
||||||
"main": "./dist/main/index.js",
|
"main": "./dist/main/index.js",
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ import { Input } from "@follow/components/ui/input/index.js"
|
||||||
import { ResponsiveSelect } from "@follow/components/ui/select/responsive.js"
|
import { ResponsiveSelect } from "@follow/components/ui/select/responsive.js"
|
||||||
import { getBackgroundGradient } from "@follow/utils/color"
|
import { getBackgroundGradient } from "@follow/utils/color"
|
||||||
import { zodResolver } from "@hookform/resolvers/zod"
|
import { zodResolver } from "@hookform/resolvers/zod"
|
||||||
|
import { repository } from "@pkg"
|
||||||
import { useMutation } from "@tanstack/react-query"
|
import { useMutation } from "@tanstack/react-query"
|
||||||
import { m } from "framer-motion"
|
import { m } from "framer-motion"
|
||||||
import { produce } from "immer"
|
import { produce } from "immer"
|
||||||
|
|
@ -50,6 +51,7 @@ const info: Record<
|
||||||
prefix?: string[]
|
prefix?: string[]
|
||||||
showModal?: boolean
|
showModal?: boolean
|
||||||
default?: string
|
default?: string
|
||||||
|
bottom?: React.ReactNode
|
||||||
}
|
}
|
||||||
> = {
|
> = {
|
||||||
search: {
|
search: {
|
||||||
|
|
@ -60,12 +62,34 @@ const info: Record<
|
||||||
default: "https://",
|
default: "https://",
|
||||||
prefix: ["https://", "http://"],
|
prefix: ["https://", "http://"],
|
||||||
showModal: true,
|
showModal: true,
|
||||||
|
bottom: (
|
||||||
|
<a
|
||||||
|
href={`${repository.url}/wiki/Folo-Flavored-Feed-Spec`}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
className="text-accent border-accent inline-flex w-auto items-center gap-2 rounded-full border px-3 py-0.5 text-sm"
|
||||||
|
>
|
||||||
|
<i className="i-mgc-book-6-cute-re" />
|
||||||
|
<span>Folo Flavored Feed Spec</span>
|
||||||
|
</a>
|
||||||
|
),
|
||||||
},
|
},
|
||||||
rsshub: {
|
rsshub: {
|
||||||
label: "discover.rss_hub_route",
|
label: "discover.rss_hub_route",
|
||||||
prefix: ["rsshub://"],
|
prefix: ["rsshub://"],
|
||||||
default: "rsshub://",
|
default: "rsshub://",
|
||||||
showModal: true,
|
showModal: true,
|
||||||
|
bottom: (
|
||||||
|
<a
|
||||||
|
href="https://docs.rsshub.app/"
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
className="text-accent border-accent inline-flex w-auto items-center gap-2 rounded-full border px-3 py-0.5 text-sm"
|
||||||
|
>
|
||||||
|
<i className="i-mgc-book-6-cute-re" />
|
||||||
|
<span>RSSHub Docs</span>
|
||||||
|
</a>
|
||||||
|
),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -304,6 +328,7 @@ export function DiscoverForm({ type = "search" }: { type?: string }) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
<div className="mt-8">{info[type]?.bottom}</div>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { repository } from "@pkg"
|
||||||
import { useTranslation } from "react-i18next"
|
import { useTranslation } from "react-i18next"
|
||||||
|
|
||||||
import { ActionSetting } from "~/modules/action/action-setting"
|
import { ActionSetting } from "~/modules/action/action-setting"
|
||||||
|
|
@ -11,6 +12,15 @@ export function Component() {
|
||||||
return (
|
return (
|
||||||
<div className="relative flex w-full flex-col items-center gap-8 px-4 pb-8 lg:pb-4">
|
<div className="relative flex w-full flex-col items-center gap-8 px-4 pb-8 lg:pb-4">
|
||||||
<div className="text-2xl font-bold">{t("words.actions")}</div>
|
<div className="text-2xl font-bold">{t("words.actions")}</div>
|
||||||
|
<a
|
||||||
|
href={`${repository.url}/wiki/Actions`}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
className="text-accent border-accent flex items-center gap-2 rounded-full border px-2 py-0.5 text-sm"
|
||||||
|
>
|
||||||
|
<i className="i-mgc-book-6-cute-re" />
|
||||||
|
<span>{t("words.documentation")}</span>
|
||||||
|
</a>
|
||||||
<ActionSetting />
|
<ActionSetting />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M6.545 2.565c-.64.083-1.615.332-2.182.559-.611.245-1.226.757-1.632 1.36-.465.689-.624 1.191-.691 2.172-.053.777-.052 9.7.001 10.219.137 1.331.622 2.052 1.599 2.379.583.195.906.226 2.4.227 2.205.001 2.561.053 4.097.598 1.244.441 1.453.497 1.863.497.41 0 .619-.056 1.863-.497 1.536-.545 1.892-.597 4.097-.598 1.494-.001 1.817-.032 2.4-.227.972-.325 1.459-1.049 1.599-2.374.052-.502.053-9.466 0-10.238-.08-1.177-.429-1.992-1.175-2.741-.501-.504-.967-.758-1.871-1.019-.91-.263-1.572-.362-2.42-.362-1.401 0-2.823.378-4.164 1.105l-.33.18-.29-.159c-.979-.538-2.15-.93-3.181-1.066-.49-.065-1.532-.072-1.983-.015m2.077 2.058c.617.121 1.181.316 1.848.64l.53.257v6.36c0 3.636-.015 6.36-.035 6.36-.02 0-.267-.082-.55-.183a10.972 10.972 0 0 0-1.635-.445c-.231-.042-.834-.067-2.16-.09-1.519-.027-1.891-.044-2.134-.101-.521-.123-.495.204-.478-5.921.015-5.526.001-5.205.25-5.695.125-.247.464-.62.677-.744.091-.053.374-.159.63-.236 1.164-.352 2.012-.408 3.057-.202m8.801-.04c.444.067 1.283.303 1.564.44.245.118.611.498.754.78.25.492.236.169.251 5.697.017 6.125.043 5.798-.478 5.921-.244.057-.609.075-2.134.101-1.33.023-1.929.048-2.16.09a10.94 10.94 0 0 0-1.635.445c-.283.101-.53.183-.55.183-.02 0-.035-2.725-.035-6.363V5.515l.533-.257c1.407-.676 2.565-.877 3.89-.675" fill="#10161F" fill-rule="evenodd"/></svg>
|
||||||
|
After Width: | Height: | Size: 1.4 KiB |
|
|
@ -395,6 +395,7 @@
|
||||||
"words.browser": "Browser",
|
"words.browser": "Browser",
|
||||||
"words.confirm": "Confirm",
|
"words.confirm": "Confirm",
|
||||||
"words.discover": "Discover",
|
"words.discover": "Discover",
|
||||||
|
"words.documentation": "Documentation",
|
||||||
"words.email": "Email",
|
"words.email": "Email",
|
||||||
"words.feeds": "Feeds",
|
"words.feeds": "Feeds",
|
||||||
"words.import": "Import",
|
"words.import": "Import",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue