mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
chore: merge blocksuite source code (#9213)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Edgeless+Edgeless Multiple-Editors Example</title>
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: var(--affine-white-90);
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script type="module" src="./main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,23 @@
|
||||
import '../../../style.css';
|
||||
|
||||
import { createEmptyDoc, EdgelessEditor } from '@blocksuite/presets';
|
||||
|
||||
const container = document.createElement('div');
|
||||
container.style.display = 'flex';
|
||||
container.style.height = '100%';
|
||||
container.style.width = '100%';
|
||||
document.body.append(container);
|
||||
|
||||
const doc1 = createEmptyDoc().init();
|
||||
const editor1 = new EdgelessEditor();
|
||||
editor1.doc = doc1;
|
||||
editor1.style.flex = '1';
|
||||
editor1.style.borderRight = '1px solid #ccc';
|
||||
container.append(editor1);
|
||||
|
||||
const doc2 = createEmptyDoc().init();
|
||||
const editor2 = new EdgelessEditor();
|
||||
editor2.doc = doc2;
|
||||
editor2.style.flex = '1';
|
||||
editor2.style.borderLeft = '1px solid #ccc';
|
||||
container.append(editor2);
|
||||
@@ -0,0 +1,23 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Doc+Edgeless Multiple-Editors Example</title>
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: var(--affine-white-90);
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script type="module" src="./main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,27 @@
|
||||
import '../../../style.css';
|
||||
|
||||
import {
|
||||
createEmptyDoc,
|
||||
EdgelessEditor,
|
||||
PageEditor,
|
||||
} from '@blocksuite/presets';
|
||||
|
||||
const container = document.createElement('div');
|
||||
container.style.display = 'flex';
|
||||
container.style.height = '100%';
|
||||
container.style.width = '100%';
|
||||
document.body.append(container);
|
||||
|
||||
const doc1 = createEmptyDoc().init();
|
||||
const editor1 = new PageEditor();
|
||||
editor1.doc = doc1;
|
||||
editor1.style.flex = '2';
|
||||
editor1.style.borderRight = '1px solid #ccc';
|
||||
container.append(editor1);
|
||||
|
||||
const doc2 = createEmptyDoc().init();
|
||||
const editor2 = new EdgelessEditor();
|
||||
editor2.doc = doc2;
|
||||
editor2.style.flex = '3';
|
||||
editor2.style.borderLeft = '1px solid #ccc';
|
||||
container.append(editor2);
|
||||
@@ -0,0 +1,23 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Doc+Doc Multiple-Editors Example</title>
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: var(--affine-white-90);
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script type="module" src="./main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,23 @@
|
||||
import '../../../style.css';
|
||||
|
||||
import { createEmptyDoc, PageEditor } from '@blocksuite/presets';
|
||||
|
||||
const container = document.createElement('div');
|
||||
container.style.display = 'flex';
|
||||
container.style.height = '100%';
|
||||
container.style.width = '100%';
|
||||
document.body.append(container);
|
||||
|
||||
const doc1 = createEmptyDoc().init();
|
||||
const editor1 = new PageEditor();
|
||||
editor1.doc = doc1;
|
||||
editor1.style.flex = '1';
|
||||
editor1.style.borderRight = '1px solid #ccc';
|
||||
container.append(editor1);
|
||||
|
||||
const doc2 = createEmptyDoc().init();
|
||||
const editor2 = new PageEditor();
|
||||
editor2.doc = doc2;
|
||||
editor2.style.flex = '1';
|
||||
editor2.style.borderLeft = '1px solid #ccc';
|
||||
container.append(editor2);
|
||||
Reference in New Issue
Block a user