Giter Site home page Giter Site logo

Comments (1)

bietiaop avatar bietiaop commented on September 18, 2024

你好,
为了减少插件维护成本,我们直接使用了格式化后的 API 数据①,但是由于 Avocado API 与 Mihomo API 开发者不同,二者对于 raw_data 的格式化结构不同②。对此的直接解决办法就是使用原始数据(raw_data)进行解析,这可能需要重构面板功能。但是由于目前开发者处于非活跃状态,许多功能缺乏维护,对于面板的重构这种大工程实施的可能性就更小了。
如果你有意向解决此问题,欢迎进行 pr :)

注:
①我们使用 StarRailData 等仓库里的游戏数据对 raw_data 进行解析,使 API 数据可读性增加。考虑到这些仓库文件错综复杂,我们将解析工作放到了服务器上,因此当游戏数据进行更新时,我们仅需更新服务器中的仓库即可,若将这些文件放到插件中,维护起来更加麻烦,也会增加插件的更新频率,使用难度提升。
②对于 Avocado 于 Mihomo,都有一套自己的解析数据结构,在前期并没有统一规范,导致了二者结构差异很大。详见 Avocado API 格式Mihomo API 格式。但是我们的 API 都提供了原始数据:Mihomo APIAvocado API。这是未经处理的原始数据,数据结构是一致的。

from starrail-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.