-
Notifications
You must be signed in to change notification settings - Fork 64
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
IndexedDB 1.0 #89
Merged
Merged
IndexedDB 1.0 #89
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feat(ext):新拓展,键值对
feat:教程链接错误 feat:部分未翻译
更新了注释,使其和最新的代码匹配。 有一些地方没有完善,因为我真的搞不懂。 注释是为了之后方便用工具查 bug
这个修改只是因为 tsc 不能正常识别 event.target 的属性。原因未知。
(其实是因为一堆回调可读性有点不好) 注意:异步格式中,我把所有错误都用 reject 抛出, 注意直接调用的时候要 catch,或者 await 的时候用 try-catch。
把回调式函数全部写成 Promise 式,然后用 async/await 调用。
不建议修改公共类型,如果需要可以专门写一个函数。
IndexedDB 修改预览
IndexDB, 默认权限,修复 undefined 问题
fix(compile):修复了无法获取其他作品键的描述的BUG
MoreBugOfDog
pushed a commit
to MoreBugOfDog/custom-extension
that referenced
this pull request
Mar 24, 2024
* IndexedDB 0.5 新拓展 feat(ext):新拓展,键值对 * IndexDB 1.0 feat:教程链接错误 feat:部分未翻译 * Update IndexedDB.js * IndexDB 1.0 删除末尾空格 * IndexDB 1.0 JSDoc 注释 更新了注释,使其和最新的代码匹配。 有一些地方没有完善,因为我真的搞不懂。 注释是为了之后方便用工具查 bug * IndexDB 1.0 event.target 改成 reader 这个修改只是因为 tsc 不能正常识别 event.target 的属性。原因未知。 * IndexDB 1.0 把打开数据库的动作做成Promise * IndexDB 1.0 作品页判断机制修改 * IndexDB 1.0 把函数写成异步格式。 (其实是因为一堆回调可读性有点不好) 注意:异步格式中,我把所有错误都用 reject 抛出, 注意直接调用的时候要 catch,或者 await 的时候用 try-catch。 * IndexDB 1.0 解决回调地狱问题 把回调式函数全部写成 Promise 式,然后用 async/await 调用。 * IndexDB 1.0 拖动的时候对事件进行 preventDefault,防止拖动时选择内容造成卡顿。 * IndexDB 1.0 删除多余字符 * IndexDB 1.0 删除无用属性添加 不建议修改公共类型,如果需要可以专门写一个函数。 * indexDB 1.0 删除自己之前的错误标注 * IndexDB 1.0 补充注释 * IndexDB 1.0 细节处理(类型转换,防 null,删除无用变量,删除已经被换掉的老函数) * IndexDB 1.0 继续完善注释 * IndexDB 1.0 少量调整(1) * IndexDB 1.0 let变const * IndexDB 1.0 修改变量名 * IndexDB 1.0 upload 改 load * IndexDB 1.0 管理页面注入问题修复 * IndexDB 1.0 回退一个错误的替换 * IndexDB 1.0 所有内容折叠进类 * IndexDB 1.0 完全修改数据库格式,注意没有缓冲 * IndexDB 1.0 修改一些细节 * IndexDB 1.0 修复键不能正常创建的问题 * IndexDB 1.0 修复 null 和 undefined 混用问题 * IndexDB 1.0 删除针对作品的权限 * IndexedDB 1.0 修复 fix(compile):修复了无法获取其他作品键的描述的BUG --------- Co-authored-by: 9-2-1 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat(block):储存键值对
feat(block):实时跨作品数据交互
feat(block):管理页