diff --git a/src/renderer/src/pages/home/Tabs/components/shared.tsx b/src/renderer/src/pages/home/Tabs/components/shared.tsx deleted file mode 100644 index 2ef0278984..0000000000 --- a/src/renderer/src/pages/home/Tabs/components/shared.tsx +++ /dev/null @@ -1,131 +0,0 @@ -import { cn } from '@heroui/react' -import type { ComponentPropsWithoutRef, ComponentPropsWithRef } from 'react' -import { useMemo } from 'react' -import styled from 'styled-components' - -export const ListItem = ({ children, className, ...props }: ComponentPropsWithoutRef<'div'>) => { - return ( -
- {children} -
- ) -} -export const ListItemNameContainer = ({ children, className, ...props }: ComponentPropsWithoutRef<'div'>) => { - return ( -
- {children} -
- ) -} - -// This component involves complex animations and will not be migrated for now. -export const ListItemName = styled.div` - display: -webkit-box; - -webkit-line-clamp: 1; - -webkit-box-orient: vertical; - overflow: hidden; - font-size: 14px; - position: relative; - will-change: background-position, width; - - --color-shimmer-mid: var(--color-text-1); - --color-shimmer-end: color-mix(in srgb, var(--color-text-1) 25%, transparent); - - &.shimmer { - background: linear-gradient(to left, var(--color-shimmer-end), var(--color-shimmer-mid), var(--color-shimmer-end)); - background-size: 200% 100%; - background-clip: text; - color: transparent; - animation: shimmer 3s linear infinite; - } - - &.typing { - display: block; - -webkit-line-clamp: unset; - -webkit-box-orient: unset; - white-space: nowrap; - overflow: hidden; - animation: typewriter 0.5s steps(40, end); - } - - @keyframes shimmer { - 0% { - background-position: 200% 0; - } - 100% { - background-position: -200% 0; - } - } - - @keyframes typewriter { - from { - width: 0; - } - to { - width: 100%; - } - } -` - -export const ListItemEditInput = ({ className, ...props }: ComponentPropsWithRef<'input'>) => { - return ( - - ) -} - -export const ListContainer = ({ children, className, ...props }: ComponentPropsWithoutRef<'div'>) => { - return ( -
- {children} -
- ) -} - -export const MenuButton = ({ children, className, ...props }: ComponentPropsWithoutRef<'div'>) => { - return ( -
- {children} -
- ) -} - -export const StatusIndicator = ({ variant }: { variant: 'pending' | 'fulfilled' }) => { - const colors = useMemo(() => { - switch (variant) { - case 'pending': - return { - wave: 'bg-warning-400', - back: 'bg-warning-500' - } - case 'fulfilled': - return { - wave: 'bg-success-400', - back: 'bg-success-500' - } - } - }, [variant]) - return ( -
- - -
- ) -} diff --git a/src/renderer/src/store/runtime.ts b/src/renderer/src/store/runtime.ts index 22a6f4c4cc..fcb87905f3 100644 --- a/src/renderer/src/store/runtime.ts +++ b/src/renderer/src/store/runtime.ts @@ -97,8 +97,7 @@ const initialState: RuntimeState = { }, websearch: { activeSearches: {} - }, - iknow: {} + } } const runtimeSlice = createSlice({