Skip to content

Commit

Permalink
IndexedDB 1.0 (#89)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
little-starts and 9-2-1 authored Jul 6, 2023
1 parent 078edf0 commit 5d75b4d
Showing 1 changed file with 1,675 additions and 0 deletions.
Loading

0 comments on commit 5d75b4d

Please sign in to comment.