mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix: preloading page (#2876)
Co-authored-by: Mirone <Saul-Mirone@outlook.com>
This commit is contained in:
@@ -54,12 +54,12 @@
|
||||
"rxjs": "^7.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blocksuite/blocks": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/icons": "^2.1.21",
|
||||
"@blocksuite/lit": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@types/react": "^18.2.14",
|
||||
"@types/react-datepicker": "^4.11.2",
|
||||
"@types/react-dnd": "^3.0.2",
|
||||
|
||||
2
packages/env/package.json
vendored
2
packages/env/package.json
vendored
@@ -4,7 +4,7 @@
|
||||
"main": "./src/index.ts",
|
||||
"module": "./src/index.ts",
|
||||
"devDependencies": {
|
||||
"@blocksuite/global": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"next": "=13.4.2",
|
||||
"react": "18.3.0-canary-8ec962d82-20230623",
|
||||
"react-dom": "18.3.0-canary-8ec962d82-20230623",
|
||||
|
||||
10
packages/env/src/blocksuite/index.ts
vendored
10
packages/env/src/blocksuite/index.ts
vendored
@@ -1,12 +1,10 @@
|
||||
import type { Page } from '@blocksuite/store';
|
||||
|
||||
export async function initPageWithPreloading(page: Page) {
|
||||
return initEmptyPage(page);
|
||||
// fixme(Mirone): preloading page has broken
|
||||
// const workspace = page.workspace;
|
||||
// const { data } = await import('@affine/templates/preloading.json');
|
||||
// await page.waitForLoaded();
|
||||
// await workspace.importPageSnapshot(data['space:hello-world'], page.id);
|
||||
const workspace = page.workspace;
|
||||
const { data } = await import('@affine/templates/preloading.json');
|
||||
await page.waitForLoaded();
|
||||
await workspace.importPageSnapshot(data['space:hello-world'], page.id);
|
||||
}
|
||||
|
||||
export async function initEmptyPage(page: Page) {
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
"jotai": "^2.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blocksuite/blocks": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"lottie-web": "^5.12.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@blocksuite/blocks": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"jotai": "^2.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -30,13 +30,13 @@
|
||||
"wait-on": "^7.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blocksuite/block-std": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/block-std": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/icons": "^2.1.21",
|
||||
"@blocksuite/lit": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"react": "18.3.0-canary-8ec962d82-20230623",
|
||||
"react-dom": "18.3.0-canary-8ec962d82-20230623"
|
||||
},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -36,8 +36,8 @@
|
||||
"idb": "^7.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blocksuite/blocks": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230626181619-90507cfc-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230627165830-836e6fd1-nightly",
|
||||
"vite": "^4.3.9",
|
||||
"vite-plugin-dts": "2.3.0",
|
||||
"y-indexeddb": "^9.0.11"
|
||||
|
||||
Reference in New Issue
Block a user