From 78b74d5b15784a133e1a27d1e213c687461f22fa Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Wed, 28 Jun 2023 00:52:42 +0800 Subject: [PATCH] feat(docs): update document (#2877) --- apps/docs/src/app.tsx | 4 ++-- apps/docs/src/pages/binary | Bin 8249 -> 6715 bytes apps/web/next.config.mjs | 9 +++++++++ packages/component/package.json | 3 +++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/apps/docs/src/app.tsx b/apps/docs/src/app.tsx index e6c746f480..84cfe597fc 100644 --- a/apps/docs/src/app.tsx +++ b/apps/docs/src/app.tsx @@ -25,11 +25,11 @@ const AppCreator = (pathname: string) => const buffer = [...readFileSync(path)]; return ( -
+
-
+
pzbTYTk1r#}A9a%uO!fA_)t+OFji+D!#lpgr_=1?mGq zGX}v`D+dSD!vlK1IcH{ad9$E{ezi-|TTnwZlZ(w1wXL(kb%Ws@-H8m68WySVDw1$( z-C%ma7cGvbM&>r5H4gtO+I8HPv*9j4_uh6;OGFkw~PoW^X(_myVl- zR_5S}no%s3&cq95R+7*n^&3WyqWhkF|ClDhcqfvO0GdqBY6tkx#WS7Y=}^l}VT73%Pu+WmYU1gJ`WQlq;JB zGp_HZYx`vQ?LzR|jp28FGY7zYRP!b(D+vt zGrAuMN`;n1v>!P+ZDO3pa&eOpw;wt9lo-qV(Q-;?#>gg1M$+Uw??*PGIXyo@jHjO< zgn;}9kg|vJaS(kWmMfTfBQ~R(StFV;wJH#>h!B{ZKuty=tCQd@Ba;!qj*iT1?e-bL zEt`3;CvCwBEerPKMZsR~0G)J3%p*H#kBqTUm(`Ah#AACNDMx5*XAmmOsSXI|NgmEi zs3B|_1&bZKR}qFV-#}`jkeg-VKcdFN)X8Zii31QAOqt$o)6out8~~X1Hfk)!3WgO+ zak>jc2LOIb05la-W+p>S(s}DSMmhaCgplSCe2TuBvaEcux4k`?wo;{NTP!!*ZskZ0 zDpajhI-6|oqiLy)s2wvuLnsMRzKjrPj>vS8&yXu^>9I^MYd%8-k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d..314d42f23e 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -180,6 +180,7 @@ const baseDir = process.env.LOCAL_BLOCK_SUITE ?? '/'; const withDebugLocal = debugLocal( { '@blocksuite/editor': path.resolve(baseDir, 'packages', 'editor'), + '@blocksuite/block-std': path.resolve(baseDir, 'packages', 'block-std'), '@blocksuite/blocks/models': path.resolve( baseDir, 'packages', @@ -203,6 +204,14 @@ const withDebugLocal = debugLocal( ), '@blocksuite/blocks': path.resolve(baseDir, 'packages', 'blocks'), '@blocksuite/store': path.resolve(baseDir, 'packages', 'store'), + '@blocksuite/store/providers/broadcast-channel': path.resolve( + baseDir, + 'packages', + 'store', + 'src', + 'providers', + 'broadcast-channel' + ), }, { enable: enableDebugLocal, diff --git a/packages/component/package.json b/packages/component/package.json index 818cb74c28..2e4b71b4d8 100644 --- a/packages/component/package.json +++ b/packages/component/package.json @@ -7,6 +7,9 @@ "./theme/*": "./src/theme/*", "./*": "./src/components/*/index.tsx" }, + "scripts": { + "build": "yarn workspace @affine/i18n build" + }, "peerDependencies": { "@blocksuite/blocks": "*", "@blocksuite/editor": "*",