Single Source of Truth
提交之后需要一个动画。可能最简单的方式就是把 submit 按钮区域换成动画,如果提交成功,就继续 load new list of articles,如果没有提交成功,那么切换回 submit 按钮并在右侧显示错误信息。
- Sending anim for new/edit post
每次操作完成之后,无论是 new 还是 edit,可以考虑把影响到的那个 item 在列表里闪一下。
有时候,在 Edit Post 内容提交完之后,会有一个时间长度可疑的延迟。
需要怀疑的部分是:
- API 里涉及 New Post 和 Edit Post 的保存过程
- API 服务器跑在了哪个线程上?似乎 API 服务会被堵塞?
但是在 127.0.0.1 的 API 服务器就完全没有这个问题?似乎是 VPN 上的问题?
似乎是解决了?
Fuck perfection, do it yourself!
Copilot is awesome!
应该不是 API Server 的问题。
Test on Windows? Seems VPN too.
- Try HTTP2/3 transport
Demo with Kai.
貌似不会在 SSH tunnel 里发生?
其实在 SSH Tunnel 里也会超过 1 秒?
New Post
- Preview of local images to be uploaded.
Edit Post
- Preview of local images to be uploaded.
- What is already uploaded
- Click to insert image code
Probably too complicated to manage.
- 记住最后选中的 Planet
- Open Planet in a new Window
- Edit a Post
- Check and fix publish via API
- Cache buster when loading a list of articles or planets
- 类似 Robinhood Desktop Web 的左右滚动逻辑
- TextArea font
- TextArea autocomplete for Markdown
- Cache buster for article link
- More modern JS for all the page logic
- Edit should not reset post date (API issue)
Other Nice Things to Have
- Peers info
- Planet server version
- IPFS info
Probably?
- Vapor TLS support https://docs.vapor.codes/advanced/server/
What would be the best way to distribute this?
- Download the latest zip from GitHub and overwrite the local folder
- If the local folder has
.git
, do not overwrite
理想情况是,我每次 git push 之后,就会自动在 GitHub 上生成一个 zip 包,可能可以用 commit number 作为文件名。
如果 commit number 大于本地的,那么 Planet App 就更新。
This will be the next.
Next Things
- Warn if there are unsaved changes when new/edit
- Test and fix handling of attachments
- Test and fix its dark mode
- Fix transparent background
Can reuse colors from Writer's simple preview templates.
需要检查 API 创建新内容之后的 IPFS publish 流程
- Testing a fix for some nasty code in
DraftModel.saveToArticle
Raspberry Pi computer is a very good platform for testing the performance of the web version of Planet.
Will there be a Pi 500 computer?
- Search and pick
- 提交 IPNS / ENS / SOL / FURL 地址加入
- Hub 定期抓取
- Hub 之间互相 gossip 告知其他 Planet 网站的存在
Tipping via WalletConnect and Base:
- USDC on Base
- HIGHER on Base
- ? on Base
LogSnag is probably too heavy for tracking. What else should I use to track the new names in furl.pro and sol.build?
66KP7KX9MX