Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Folder #501

Open
bravekingzhang opened this issue Dec 30, 2024 · 3 comments
Open

support Folder #501

bravekingzhang opened this issue Dec 30, 2024 · 3 comments
Assignees

Comments

@bravekingzhang
Copy link
Contributor

image

Just like uploading photos, I have tried, but failed because there is so much to change. And I have no idea how to build a good user experience (UX) here. Could you help me?

@bravekingzhang
Copy link
Contributor Author

image I think the data structure should have changed like this so that it can support folder mode.

@yanglbme yanglbme assigned yanglbme and YangFong and unassigned yanglbme Jan 6, 2025
@YangFong
Copy link
Member

一种方案,采取 Notion 一类的设计,即没有显式的文件夹,文件与文件可以存在层级关系,数据结构修改为:

interface Post {
  id: string
  title: string
  content: string
  parentId?: string
}

层级调整使用拖拽来完成。

@bravekingzhang
Copy link
Contributor Author

bravekingzhang commented Jan 13, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants