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

⚡ LTS: Core #116

Open
wants to merge 14 commits into
base: core
Choose a base branch
from
Open

⚡ LTS: Core #116

wants to merge 14 commits into from

Conversation

1shin-7
Copy link
Collaborator

@1shin-7 1shin-7 commented Feb 2, 2023

Core分支,暂不Merge

  • 重构项目结构 模块化
  • 替换loguru为默认的logger
  • 更好的config
  • 资源管理器
    • 类定义
    • 功能
    • 下载器
  • 子模块进度
    • 黄历
    • 圣遗物收集
    • 圣遗物评分
    • 模拟抽卡
    • 材料提醒
    • 丘丘语翻译
    • 资源大地图

* 更改项目结构为软件包
* 使用PyCharm进行自动格式化及优化导入
* 重构丘丘语查询
解决README冲突
@1shin-7 1shin-7 added this to the LTS milestone Feb 2, 2023
@1shin-7 1shin-7 requested a review from H-K-Y February 2, 2023 14:57
拆分圣遗物评分
额外安装不够现实,对于hoshino(nb1)可以用nonebot.log
- 实现部分下载器功能
- 优化结构
@1shin-7 1shin-7 mentioned this pull request Feb 6, 2023
14 tasks
* 格式化代码
* 优化Import
* 拆分downloader
* 添加BuiltinIndex 未完成
!Config并不理想,直接使用Pydantic可能会更好
!氵代码 懒得想json怎么搞注释了
简单的Config实现。
* 支持使用pydantic Model & Field 作为值
* 支持在配置类中的键发生改变时同步更新toml文件
* 就像使用pydantic Model一样简单!
注意:无论是hoshino抑或是nonebot,其依赖均包含此次新增的两项依赖,实际部署时无需用户手动安装
* 下载器
    * 重写DownloadItem
    * 自动校验url可用性
    * 优化文件名获取逻辑
    * 重写部分下载逻辑
    * 添加重写本地文件参数
* 资源索引
    * 实现AssetIndex和OnlineAssetIndex
    * OnlineAssetIndex支持多个url
    * 对多个AssetIndex url使用异步下载
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.

None yet

1 participant