feat(mobile): link to actions documentation
This commit is contained in:
@@ -5,7 +5,7 @@ import { ActionSetting } from "~/modules/action/action-setting"
|
||||
import { useSubViewTitle } from "~/modules/app-layout/subview/hooks"
|
||||
|
||||
export function Component() {
|
||||
const { t } = useTranslation()
|
||||
const { t } = useTranslation("common")
|
||||
|
||||
useSubViewTitle("words.actions")
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
import * as React from "react"
|
||||
import Svg, { Path } from "react-native-svg"
|
||||
|
||||
interface Book6CuteReIconProps {
|
||||
width?: number
|
||||
height?: number
|
||||
color?: string
|
||||
}
|
||||
|
||||
export const Book6CuteReIcon = ({
|
||||
width = 24,
|
||||
height = 24,
|
||||
color = "#10161F",
|
||||
}: Book6CuteReIconProps) => {
|
||||
return (
|
||||
<Svg width={width} height={height} fill="none" viewBox="0 0 24 24">
|
||||
<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={color}
|
||||
fillRule="evenodd"
|
||||
/>
|
||||
</Svg>
|
||||
)
|
||||
}
|
||||
@@ -21,9 +21,9 @@ import { SocialXCuteReIcon } from "@/src/icons/social_x_cute_re"
|
||||
|
||||
const links = [
|
||||
{
|
||||
title: "Github",
|
||||
title: "GitHub",
|
||||
icon: GithubCuteFiIcon,
|
||||
url: "https://github.com/RSSNext/follow",
|
||||
url: "https://github.com/RSSNext/Folo",
|
||||
iconBackgroundColor: "#000000",
|
||||
iconColor: "#FFFFFF",
|
||||
},
|
||||
|
||||
@@ -5,6 +5,7 @@ import { Text, View } from "react-native"
|
||||
import Animated, { LinearTransition } from "react-native-reanimated"
|
||||
import { useColors } from "react-native-uikit-colors"
|
||||
|
||||
import { Link } from "@/src/components/common/Link"
|
||||
import { SwipeableGroupProvider, SwipeableItem } from "@/src/components/common/SwipeableItem"
|
||||
import { HeaderSubmitTextButton } from "@/src/components/layouts/header/HeaderElements"
|
||||
import {
|
||||
@@ -19,6 +20,7 @@ import {
|
||||
import { PlatformActivityIndicator } from "@/src/components/ui/loading/PlatformActivityIndicator"
|
||||
import { ItemPressable } from "@/src/components/ui/pressable/ItemPressable"
|
||||
import { Switch } from "@/src/components/ui/switch/Switch"
|
||||
import { Book6CuteReIcon } from "@/src/icons/book_6_cute_re"
|
||||
import { Magic2CuteFiIcon } from "@/src/icons/magic_2_cute_fi"
|
||||
import { useNavigation } from "@/src/lib/navigation/hooks"
|
||||
import {
|
||||
@@ -29,11 +31,13 @@ import {
|
||||
} from "@/src/store/action/hooks"
|
||||
import { actionActions } from "@/src/store/action/store"
|
||||
import type { ActionRule } from "@/src/store/action/types"
|
||||
import { accentColor } from "@/src/theme/colors"
|
||||
|
||||
import { EditRuleScreen } from "./EditRule"
|
||||
|
||||
export const ActionsScreen = () => {
|
||||
const { t } = useTranslation("settings")
|
||||
const { t: tCommon } = useTranslation("common")
|
||||
const { isLoading } = usePrefetchActions()
|
||||
const rules = useActionRules()
|
||||
const isDirty = useIsActionDataDirty()
|
||||
@@ -62,7 +66,17 @@ export const ActionsScreen = () => {
|
||||
description={t("actions.info")}
|
||||
icon={<Magic2CuteFiIcon height={40} width={40} color="#fff" />}
|
||||
iconBackgroundColor="#9333EA"
|
||||
/>
|
||||
>
|
||||
<Link
|
||||
className="text-accent border-accent center mt-4 w-44 rounded-full border py-0.5"
|
||||
href="https://github.com/RSSNext/Folo/wiki/Actions"
|
||||
>
|
||||
<View className="flex w-full flex-row items-center justify-center gap-1">
|
||||
<Book6CuteReIcon color={accentColor} width={16} height={16} />
|
||||
<Text className="text-accent">{tCommon("words.documentation")}</Text>
|
||||
</View>
|
||||
</Link>
|
||||
</GroupedInformationCell>
|
||||
</GroupedInsetListCard>
|
||||
</View>
|
||||
|
||||
|
||||
@@ -395,7 +395,6 @@
|
||||
"words.browser": "Browser",
|
||||
"words.confirm": "Confirm",
|
||||
"words.discover": "Discover",
|
||||
"words.documentation": "Documentation",
|
||||
"words.email": "Email",
|
||||
"words.feeds": "Feeds",
|
||||
"words.import": "Import",
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
"words.create": "Create",
|
||||
"words.default": "Default",
|
||||
"words.delete": "Delete",
|
||||
"words.documentation": "Documentation",
|
||||
"words.download": "Download",
|
||||
"words.edit": "Edit",
|
||||
"words.entry": "Entry",
|
||||
|
||||
Reference in New Issue
Block a user