App template market (#2337)

* feat: add app template market (#2012)

* feat: add app template market

* fix

* fix

* i18n

* fix

* perf: template market ux

* perf: simple mode app ui

* perf: tempalte modal ui

* perf: tempalte market ui

* perf: template position

* feat: create app modal

* regiter default app

* perf: icon

* change templates position (#2331)

* change templates position

* fix

* perf: template market ux

---------

Co-authored-by: heheer <heheer@sealos.io>
This commit is contained in:
Archer
2024-08-12 16:21:21 +08:00
committed by GitHub
parent 231afc4ac5
commit 2196930005
58 changed files with 5934 additions and 3165 deletions

View File

@@ -35,7 +35,8 @@ export default function Editor({
onBlur,
value,
placeholder = '',
isFlow
isFlow,
bg = 'white'
}: {
h?: number;
maxLength?: number;
@@ -49,6 +50,7 @@ export default function Editor({
value?: string;
placeholder?: string;
isFlow?: boolean;
bg?: string;
}) {
const [key, setKey] = useState(getNanoid(6));
const [_, startSts] = useTransition();
@@ -95,6 +97,7 @@ export default function Editor({
h={`${height}px`}
cursor={'text'}
color={'myGray.700'}
bg={focus ? 'white' : bg}
>
<LexicalComposer initialConfig={initialConfig} key={key}>
<PlainTextPlugin