feat(core): desktop multiple server support (#8979)

This commit is contained in:
EYHN
2024-12-03 05:51:09 +00:00
parent af81c95b85
commit 8963826463
137 changed files with 2052 additions and 1694 deletions

View File

@@ -1,4 +1,5 @@
import clsx from 'clsx';
import type { ReactNode } from 'react';
import type { InputProps } from '../../ui/input';
import { Input } from '../../ui/input';
@@ -6,7 +7,7 @@ import * as styles from './share.css';
export type AuthInputProps = InputProps & {
label?: string;
error?: boolean;
errorHint?: string;
errorHint?: ReactNode;
withoutHint?: boolean;
onEnter?: () => void;
};

View File

@@ -5,7 +5,6 @@ export * from './back-button';
export * from './change-email-page';
export * from './change-password-page';
export * from './count-down-render';
export * from './modal';
export * from './modal-header';
export * from './onboarding-page';
export * from './password-input';

View File

@@ -4,12 +4,12 @@ import type { FC } from 'react';
import { modalHeaderWrapper } from './share.css';
export const ModalHeader: FC<{
title: string;
subTitle: string;
subTitle?: string;
}> = ({ title, subTitle }) => {
return (
<div className={modalHeaderWrapper}>
<p>
<Logo1Icon className="logo" />
{title === 'AFFiNE Cloud' && <Logo1Icon className="logo" />}
{title}
</p>
<p>{subTitle}</p>

View File

@@ -1,29 +0,0 @@
import type { FC, PropsWithChildren } from 'react';
import { Modal } from '../../ui/modal';
export type AuthModalProps = {
open: boolean;
setOpen: (value: boolean) => void;
};
export const AuthModal: FC<PropsWithChildren<AuthModalProps>> = ({
children,
open,
setOpen,
}) => {
return (
<Modal
open={open}
onOpenChange={setOpen}
width={400}
minHeight={500}
contentOptions={{
['data-testid' as string]: 'auth-modal',
style: { padding: '44px 40px 0' },
}}
>
{children}
</Modal>
);
};

View File

@@ -42,6 +42,7 @@ export const formHint = style({
fontSize: cssVar('fontSm'),
position: 'absolute',
bottom: '4px',
height: '22px',
left: 0,
lineHeight: '22px',
selectors: {