fix(ssr): jsx transformer error
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
parent
c7db884615
commit
49ef017af5
|
|
@ -1,3 +1,4 @@
|
|||
import * as React from "react"
|
||||
import { Outlet } from "react-router"
|
||||
|
||||
import { RootProviders } from "./providers/root-providers"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import { Button } from "@follow/components/ui/button/index.jsx"
|
|||
import { useSyncThemeWebApp, useTitle } from "@follow/hooks"
|
||||
import { m, useAnimationControls } from "motion/react"
|
||||
import { Fragment, useEffect, useState } from "react"
|
||||
import * as React from "react"
|
||||
|
||||
const NotFoundContent = () => {
|
||||
const [glitchText, setGlitchText] = useState("404")
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { SocialMediaLinks } from "@follow/constants"
|
||||
import { cn } from "@follow/utils/utils"
|
||||
import * as React from "react"
|
||||
|
||||
export const PoweredByFooter: Component = ({ className }) => (
|
||||
<footer className={cn("border-border/40 bg-background/60 border-t backdrop-blur-sm", className)}>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { TitleMarquee } from "@follow/components/ui/marquee/index.jsx"
|
|||
import type { ParsedEntry } from "@follow-app/client-sdk"
|
||||
import dayjs from "dayjs"
|
||||
import type { FC } from "react"
|
||||
import * as React from "react"
|
||||
|
||||
import { FeedIcon } from "../ui/feed-icon"
|
||||
import { LazyImage } from "../ui/image"
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import { FeedViewType } from "@follow/constants"
|
|||
import type { ParsedEntry } from "@follow-app/client-sdk"
|
||||
import type { FC } from "react"
|
||||
import { useMemo } from "react"
|
||||
import * as React from "react"
|
||||
|
||||
const viewsRenderType = {
|
||||
Normal: [
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typogra
|
|||
import { cn } from "@follow/utils/utils"
|
||||
import type { FeedSchema, ParsedEntry } from "@follow-app/client-sdk"
|
||||
import { memo } from "react"
|
||||
import * as React from "react"
|
||||
|
||||
import { FeedIcon } from "../ui/feed-icon"
|
||||
import { LazyImage } from "../ui/image"
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import type { RenderComponentProps } from "masonic"
|
|||
import { AnimatePresence, m } from "motion/react"
|
||||
import type { FC, PropsWithChildren } from "react"
|
||||
import { memo, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react"
|
||||
import * as React from "react"
|
||||
import { PhotoProvider, PhotoView } from "react-photo-view"
|
||||
import inlineStyle from "react-photo-view/dist/react-photo-view.css?raw"
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import {
|
|||
} from "@follow/components/ui/tooltip/index.jsx"
|
||||
import { cn } from "@follow/utils/utils"
|
||||
import type { FeedSchema } from "@follow-app/client-sdk"
|
||||
import * as React from "react"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
export const FeedCertification = ({
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import type { MediaModel } from "@folo-services/drizzle"
|
|||
import { m } from "motion/react"
|
||||
import type { ReactNode } from "react"
|
||||
import { useMemo } from "react"
|
||||
import * as React from "react"
|
||||
|
||||
const getFeedIconSrc = ({
|
||||
src,
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { cn } from "@follow/utils/utils"
|
|||
import * as Avatar from "@radix-ui/react-avatar"
|
||||
import type { MouseEvent, PropsWithChildren } from "react"
|
||||
import { useMemo } from "react"
|
||||
import * as React from "react"
|
||||
import { Blurhash } from "react-blurhash"
|
||||
|
||||
type LazyImageProps = PropsWithChildren<{
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import { UserRole } from "@follow/constants"
|
|||
import { getBackgroundGradient } from "@follow/utils/color"
|
||||
import { cn } from "@follow/utils/utils"
|
||||
import { useMemo } from "react"
|
||||
import * as React from "react"
|
||||
|
||||
export const UserAvatar = ({ className }: { className?: string }) => {
|
||||
let user = useWhoami()
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ import { cn } from "@follow/utils/utils"
|
|||
import HCaptcha from "@hcaptcha/react-hcaptcha"
|
||||
import { zodResolver } from "@hookform/resolvers/zod"
|
||||
import { useCallback, useEffect, useMemo, useRef, useState } from "react"
|
||||
import * as React from "react"
|
||||
import { useForm } from "react-hook-form"
|
||||
import { Trans, useTranslation } from "react-i18next"
|
||||
import { Link, useLocation, useNavigate } from "react-router"
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ import { cn } from "@follow/utils/utils"
|
|||
import { zodResolver } from "@hookform/resolvers/zod"
|
||||
import { useQuery } from "@tanstack/react-query"
|
||||
import { useEffect } from "react"
|
||||
import * as React from "react"
|
||||
import { useForm } from "react-hook-form"
|
||||
import { useTranslation } from "react-i18next"
|
||||
import { z } from "zod"
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import HCaptcha from "@hcaptcha/react-hcaptcha"
|
|||
import { zodResolver } from "@hookform/resolvers/zod"
|
||||
import { useMutation } from "@tanstack/react-query"
|
||||
import { useRef } from "react"
|
||||
import * as React from "react"
|
||||
import { useForm } from "react-hook-form"
|
||||
import { useTranslation } from "react-i18next"
|
||||
import { useNavigate } from "react-router"
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { setIntegrationIdentify } from "@client/initialize/helper"
|
|||
import { useSession } from "@client/query/auth"
|
||||
import type { AuthUser } from "@follow-app/client-sdk"
|
||||
import { useEffect } from "react"
|
||||
import * as React from "react"
|
||||
import { Outlet } from "react-router"
|
||||
|
||||
export function Component() {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { Login } from "@client/modules/login"
|
||||
import * as React from "react"
|
||||
|
||||
export function Component() {
|
||||
return <Login />
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import { cn } from "@follow/utils/utils"
|
|||
import HCaptcha from "@hcaptcha/react-hcaptcha"
|
||||
import { zodResolver } from "@hookform/resolvers/zod"
|
||||
import { useRef, useState } from "react"
|
||||
import * as React from "react"
|
||||
import { useForm } from "react-hook-form"
|
||||
import { Trans, useTranslation } from "react-i18next"
|
||||
import { useNavigate } from "react-router"
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ import {
|
|||
import { Input } from "@follow/components/ui/input/index.js"
|
||||
import { zodResolver } from "@hookform/resolvers/zod"
|
||||
import { useMutation } from "@tanstack/react-query"
|
||||
import * as React from "react"
|
||||
import { useForm } from "react-hook-form"
|
||||
import { useTranslation } from "react-i18next"
|
||||
import { useNavigate } from "react-router"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import * as React from "react"
|
||||
|
||||
export const Component = () => {
|
||||
return <div>(*‘ v`*) Hello, Folo</div>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { NotFound } from "@client/components/common/404"
|
||||
import * as React from "react"
|
||||
import { Outlet } from "react-router"
|
||||
|
||||
export const Component = () => {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import { useTitle } from "@follow/hooks"
|
|||
import { cn } from "@follow/utils/utils"
|
||||
import type { FeedSchema } from "@follow-app/client-sdk"
|
||||
import { Fragment } from "react"
|
||||
import * as React from "react"
|
||||
import { useTranslation } from "react-i18next"
|
||||
import { useParams, useSearchParams } from "react-router"
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import { useTitle } from "@follow/hooks"
|
|||
import { cn, formatNumber } from "@follow/utils/utils"
|
||||
import type { FeedSchema } from "@follow-app/client-sdk"
|
||||
import { Fragment, memo } from "react"
|
||||
import * as React from "react"
|
||||
import { useTranslation } from "react-i18next"
|
||||
import { useParams } from "react-router"
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import { LoadingCircle } from "@follow/components/ui/loading/index.jsx"
|
|||
import { useTitle } from "@follow/hooks"
|
||||
import { cn } from "@follow/utils/utils"
|
||||
import type { SubscriptionWithFeed, UserProfile } from "@follow-app/client-sdk"
|
||||
import * as React from "react"
|
||||
import { Fragment, memo, useState } from "react"
|
||||
import { useParams } from "react-router"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import { PoweredByFooter } from "@client/components/common/PoweredByFooter"
|
||||
import { Header } from "@client/components/layout/header"
|
||||
import { MemoedDangerousHTMLStyle } from "@follow/components/common/MemoedDangerousHTMLStyle.jsx"
|
||||
import * as React from "react"
|
||||
import { Outlet } from "react-router"
|
||||
|
||||
export const Component = () => {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import { QueryClientProvider } from "@tanstack/react-query"
|
|||
import { Provider } from "jotai"
|
||||
import { ModalStackContainer } from "rc-modal-sheet/m"
|
||||
import type { FC, PropsWithChildren } from "react"
|
||||
import * as React from "react"
|
||||
|
||||
import { queryClient } from "../lib/query-client"
|
||||
import { jotaiStore } from "../lib/store"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { wrapCreateBrowserRouterV7 } from "@sentry/react"
|
||||
import * as React from "react"
|
||||
import { createBrowserRouter, createHashRouter } from "react-router"
|
||||
|
||||
import { NotFound } from "./components/common/404"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import type { FC } from "react"
|
||||
import { memo, useMemo } from "react"
|
||||
import * as React from "react"
|
||||
|
||||
export const MemoedDangerousHTMLStyle: FC<
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { domMax, LazyMotion, MotionConfig } from "motion/react"
|
||||
import * as React from "react"
|
||||
|
||||
export const MotionProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import * as React from "react"
|
||||
|
||||
export const FollowIcon: Component = (props) => (
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
|
||||
<path
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import * as React from "react"
|
||||
|
||||
export const Folo = ({
|
||||
ref,
|
||||
...props
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import * as React from "react"
|
||||
|
||||
export const Logo = ({
|
||||
ref,
|
||||
...props
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import { stopPropagation } from "@follow/utils/dom"
|
||||
import dayjs from "dayjs"
|
||||
import type { FC } from "react"
|
||||
import * as React from "react"
|
||||
import { useEffect, useRef, useState } from "react"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { cn } from "@follow/utils/utils"
|
||||
import type { DetailedHTMLProps, FC, HTMLAttributes } from "react"
|
||||
import * as React from "react"
|
||||
|
||||
export const Divider: FC<DetailedHTMLProps<HTMLAttributes<HTMLHRElement>, HTMLHRElement>> = (
|
||||
props,
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import { cn } from "@follow/utils/utils"
|
|||
import { useDatePicker } from "@rehookify/datepicker"
|
||||
import dayjs from "dayjs"
|
||||
import { memo, useMemo, useState } from "react"
|
||||
import * as React from "react"
|
||||
|
||||
import { Button } from "../button"
|
||||
import { Popover, PopoverContent, PopoverTrigger } from "../popover"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { useInputComposition } from "@follow/hooks"
|
|||
import { stopPropagation } from "@follow/utils/dom"
|
||||
import { cn } from "@follow/utils/utils"
|
||||
import type { DetailedHTMLProps, InputHTMLAttributes } from "react"
|
||||
|
||||
import * as React from "react"
|
||||
// This composition handler is not perfect
|
||||
// @see https://foxact.skk.moe/use-composition-input
|
||||
export const Input = ({
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import { useInputComposition } from "@follow/hooks"
|
|||
import { cn, stopPropagation } from "@follow/utils"
|
||||
import type { DetailedHTMLProps, InputHTMLAttributes, ReactNode } from "react"
|
||||
import { useState } from "react"
|
||||
import * as React from "react"
|
||||
|
||||
export const InputV2 = ({
|
||||
ref,
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import clsx from "clsx"
|
|||
import { useMotionValue } from "motion/react"
|
||||
import type { DetailedHTMLProps, PropsWithChildren, TextareaHTMLAttributes } from "react"
|
||||
import { useCallback, useState } from "react"
|
||||
import * as React from "react"
|
||||
|
||||
const roundedMap = {
|
||||
sm: "rounded-sm",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { cn } from "@follow/utils/utils"
|
||||
import { memo, useMemo } from "react"
|
||||
import * as React from "react"
|
||||
|
||||
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../select"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import type { PropsWithChildren } from "react"
|
||||
import * as React from "react"
|
||||
import { useCallback, useRef, useState } from "react"
|
||||
import type { MarqueeProps } from "react-fast-marquee"
|
||||
import Marquee from "react-fast-marquee"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import * as LinkParsers from "@follow/utils/link-parser"
|
|||
import { cn } from "@follow/utils/utils"
|
||||
import { Slot } from "@radix-ui/react-slot"
|
||||
import type { FC } from "react"
|
||||
import * as React from "react"
|
||||
|
||||
import { getSupportedPlatformIconName } from "./utils"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { useIsDark } from "@follow/hooks"
|
||||
import * as React from "react"
|
||||
import { Toaster as Sonner } from "sonner"
|
||||
|
||||
import { ZIndexProvider } from "../z-index"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { cn } from "@follow/utils/utils"
|
||||
import type { PropsWithChildren } from "react"
|
||||
import * as React from "react"
|
||||
import { useEffect, useState } from "react"
|
||||
|
||||
import { Tooltip, TooltipContent, TooltipPortal, TooltipTrigger } from "../tooltip"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import * as React from "react"
|
||||
|
||||
import { ZIndexContext } from "./ctx"
|
||||
|
||||
export const ZIndexProvider: Component<{
|
||||
|
|
|
|||
Loading…
Reference in New Issue