codepod-io / codepod

Codepod IDE: Scalable Interactive Coding
https://codepod.io
MIT License
75 stars 15 forks source link

[UI] Add Toc in Sidebar #458

Closed senwang86 closed 1 year ago

senwang86 commented 1 year ago

Summary

Test

yarn add @mui/lab @mui/material

toc

lihebi commented 1 year ago

Instead of showing (full) IDs, some options (ordered by priority, high to low):

  1. show pod/scope title (.name)
  2. show the title/first-line of rich text content
  3. show the function defined in code pod (I'll populate the parse result somewhere)
  4. show a shortened ID (e.g., first 8 characters)
senwang86 commented 1 year ago

Instead of showing (full) IDs, some options (ordered by priority, high to low):

  1. show pod/scope title (.name)
  2. show the title/first-line of rich text content
  3. show the function defined in code pod (I'll populate the parse result somewhere)
  4. show a shortened ID (e.g., first 8 characters)

1d71993 addresses comments.

senwang86 commented 1 year ago
  1. show a shortened ID (e.g., first 8 characters)

1d71993 addresses comments.

lihebi commented 1 year ago

Nice, thanks!