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

IndexedDB 1.0 #89

Merged
merged 32 commits into from
Jul 6, 2023
Merged

IndexedDB 1.0 #89

merged 32 commits into from
Jul 6, 2023

Conversation

little-starts
Copy link
Contributor

feat(block):储存键值对
feat(block):实时跨作品数据交互
feat(block):管理页

little-starts and others added 30 commits May 29, 2023 20:04
feat(ext):新拓展,键值对
feat:教程链接错误
feat:部分未翻译
更新了注释,使其和最新的代码匹配。
有一些地方没有完善,因为我真的搞不懂。

注释是为了之后方便用工具查 bug
这个修改只是因为 tsc 不能正常识别 event.target 的属性。原因未知。
(其实是因为一堆回调可读性有点不好)
注意:异步格式中,我把所有错误都用 reject 抛出,
注意直接调用的时候要 catch,或者 await 的时候用 try-catch。
把回调式函数全部写成 Promise 式,然后用 async/await 调用。
不建议修改公共类型,如果需要可以专门写一个函数。
IndexDB, 默认权限,修复 undefined 问题
fix(compile):修复了无法获取其他作品键的描述的BUG
@sylarhcn sylarhcn merged commit 5d75b4d into Gandi-IDE:main Jul 6, 2023
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants