AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

feat: init outline plugin & basic styles

Open m1911star opened this issue 2 years ago • 7 comments

  • add basic outline plugin to page, implement https://github.com/toeverything/AFFiNE/issues/2955#issuecomment-1615955737
  • basic styles

TO BE FIXED

  • [ ] navigation scroll behavior

https://github.com/toeverything/AFFiNE/assets/4948120/2240c411-d4da-452e-aef4-f6566f27aa2a

  • [ ] editor content & mode

https://github.com/toeverything/AFFiNE/assets/4948120/2de3730b-efcf-4420-9bb0-71bb1d1a1b6d

m1911star avatar Jul 10 '23 15:07 m1911star

This branch is running in CodeSandbox. Use the links below to review this PR faster.
CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview

codesandbox[bot] avatar Jul 10 '23 15:07 codesandbox[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
affine-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2023 4:16pm
affine-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2023 4:16pm
affine-storybook 🛑 Canceled (Inspect) Jul 10, 2023 4:16pm

vercel[bot] avatar Jul 10 '23 15:07 vercel[bot]

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4f94b9c
Status: ✅  Deploy successful!
Preview URL: https://5dc26a3a.affine-dev.pages.dev
Branch Preview URL: https://m1911star-outline.affine-dev.pages.dev

View logs

affine-toeverything

Bundle main

diff ------------------- Bundle Size Diff -------------------------

@@                       EntryPoint: main                        @@
##                     master …1star/outline                 +/- ##
===================================================================
< Bundle              5.26 MB        5.27 MB    +6.04 kB(+0.11%)   
< Initial JS          2.23 MB        2.23 MB      +136 B(+0.01%)   
= Initial CSS         72.8 kB        72.8 kB                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
< Assets                   71             74                  +3   
< Chunks                   57             59                  +2   
< Packages                207            209                  +2   
= Duplicates               19             19                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Warnings ~~~~~~~~~~~~~~~~~~~~~~~~~~~#
! Deduplicate versions of libraries                                
! Separate mixed content assets files                              

@@                    EntryPoint: pages/_app                     @@
##                     master …1star/outline                 +/- ##
===================================================================
< Bundle              5.16 MB        5.16 MB    +5.96 kB(+0.12%)   
< Initial JS          2.12 MB        2.12 MB       +57 B(+0.00%)   
= Initial CSS         72.8 kB        72.8 kB                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
< Assets                   69             72                  +3   
< Chunks                   55             57                  +2   
< Packages                207            209                  +2   
= Duplicates               19             19                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Warnings ~~~~~~~~~~~~~~~~~~~~~~~~~~~#
! Deduplicate versions of libraries                                
! Separate mixed content assets files                              

@@                   EntryPoint: pages/_error                    @@
##                     master …1star/outline                 +/- ##
===================================================================
= Bundle              16.6 kB        16.6 kB                       
= Initial JS          16.6 kB        16.6 kB                       
= Initial CSS             0 B            0 B                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
= Assets                    2              2                       
= Chunks                    2              2                       
= Packages                  5              5                       
= Duplicates                0              0                       

...and more

perfsee[bot] avatar Jul 10 '23 15:07 perfsee[bot]

Codecov Report

Patch coverage: 75.67% and project coverage change: +0.04 :tada:

Comparison is base (7af3c05) 67.80% compared to head (4f94b9c) 67.85%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3135      +/-   ##
==========================================
+ Coverage   67.80%   67.85%   +0.04%     
==========================================
  Files         347      350       +3     
  Lines        8288     8325      +37     
  Branches     1071     1079       +8     
==========================================
+ Hits         5620     5649      +29     
- Misses       2381     2386       +5     
- Partials      287      290       +3     
Flag Coverage Δ
e2etest 57.13% <75.67%> (+0.13%) :arrow_up:
e2etest-macos-latest-x64 ∅ <ø> (∅)
e2etest-ubuntu-latest-x64 45.13% <75.67%> (+0.19%) :arrow_up:
e2etest-windows-latest-x64 ∅ <ø> (∅)
server-test 79.00% <ø> (ø)
unittest 56.18% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
apps/web/next.config.mjs 39.21% <ø> (ø)
apps/web/src/bootstrap/index.ts 40.00% <50.00%> (+0.37%) :arrow_up:
plugins/outline/src/index.ts 66.66% <66.66%> (ø)
plugins/outline/src/blocksuite/ui.tsx 69.56% <69.56%> (ø)
plugins/outline/src/blocksuite/index.tsx 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Jul 10 '23 15:07 codecov[bot]

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 4f94b9cce281e944e4ce28d88a06cbab0dc873bd. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

nx-cloud[bot] avatar Jul 10 '23 16:07 nx-cloud[bot]

TO BE FIXED

  • [ ] navigation scroll behavior

2023-07-10.23.36.12.mov

  • [ ] editor content & mode

2023-07-10.23.35.19.mov

Amazing Job!

tzhangchi avatar Jul 11 '23 01:07 tzhangchi

We are working on outline plugin now

See https://github.com/toeverything/AFFiNE/tree/master/plugins/outline

himself65 avatar Aug 17 '23 17:08 himself65