Merge branch 'feat/filesystem_and_search' of github.com:toeverything/AFFiNE into feat/filesystem_and_search

This commit is contained in:
alt0
2022-12-19 15:44:23 +08:00
5 changed files with 27 additions and 6 deletions
+13
View File
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
max_line_length = off
trim_trailing_whitespace = false
@@ -1,4 +1,5 @@
import { styled } from '@/styles';
import { Button } from '@/ui/button';
export const StyledModalWrapper = styled('div')(({ theme }) => {
return {
@@ -53,3 +54,10 @@ export const StyledButtonContent = styled('div')(({ theme }) => {
margin: '0px 0 32px 0',
};
});
export const StyledButton = styled(Button)(({ theme }) => {
return {
width: '260px',
justifyContent: 'center',
};
});
@@ -8,6 +8,7 @@ import {
StyledModalWrapper,
StyledInputContent,
StyledButtonContent,
StyledButton,
} from './style';
import { useState } from 'react';
import { ModalCloseButton } from '@/ui/modal';
@@ -26,7 +27,7 @@ export const WorkspaceCreate = ({ open, onClose }: WorkspaceCreateProps) => {
return (
<Modal open={open} onClose={onClose}>
<StyledModalWrapper>
<ModalCloseButton />
<ModalCloseButton onClick={onClose} />
<StyledModalHeader>Create new Workspace</StyledModalHeader>
<StyledTextContent>
Workspaces are shared environments where teams can collaborate. After
@@ -40,15 +41,14 @@ export const WorkspaceCreate = ({ open, onClose }: WorkspaceCreateProps) => {
></Input>
</StyledInputContent>
<StyledButtonContent>
<Button
<StyledButton
disabled={!workspaceName.length}
style={{ width: '260px' }}
onClick={() => {
createWorkspace({ name: workspaceName, avatar: '' });
}}
>
Create
</Button>
</StyledButton>
</StyledButtonContent>
</StyledModalWrapper>
</Modal>
+1 -1
View File
@@ -103,7 +103,7 @@ const config: PlaywrightTestConfig = {
/* Run your local dev server before starting the tests */
webServer: {
command: 'npm run dev',
port: 3000,
port: 8080,
},
};
+1 -1
View File
@@ -2,7 +2,7 @@ import { test } from '@playwright/test';
export function loadPage() {
test.beforeEach(async ({ page }) => {
await page.goto('http://localhost:3000');
await page.goto('http://localhost:8080');
// waiting for page loading end
await page.waitForTimeout(1000);
});