Code Monkey home page Code Monkey logo

xin_data's Introduction

莘应用(自定义数据源指南)

这是制作莘应用自定义数据源的官方指导文档。

莘应用下载官网

缘由

打造一款支持高度自定义、强稳定性的手表应用商店!

自莘应用1.4起开始支持自定义数据源!

快速创建

欢迎你来帮助我们依据如下数据格式标准制作一款编辑前端!

制作很简单,你可以结合参考本仓库的三个json文件,根据以下说明进行制作。

示例的话请看本仓库的3个文件。

使用示例

在1.4及以上版本客户端的自定义数据源功能中添加如下内容:

Screenshot_2024-04-04-23-00-34-042_com genouka rarestoret

这将使用本仓库的test.json文件作为索引。

索引是一个数据源最核心的东西,它是一个数据源的灵魂。

数据格式

概要

大致格式如下:

索引文件(json)
+ 应用列表文件(json)
+ 分类文件(json)

分类不是必须的,如果你想让用户有更好的体验的话最好还是加上。没有分类时请给索引的categorylistUrl字符串留空。

索引json

命名随意,放在github上或者你的网站上或者别的什么地方。

查看实例

applistUrl填应用列表的json的url,categorylistUrl填分类的json的url

{
  "source":{
    "applistUrl":"https:\/\/raw.githubusercontent.com\/Genouka\/xin_data\/main\/applist.json",
    "categorylistUrl":"https:\/\/raw.githubusercontent.com\/Genouka\/xin_data\/main\/category.json"
  }
}

分类表json

category.json

以下是示例数据,应该一看就懂,不解释了:

{
  "categorylist": [
    {
      "name": "工具",
      "category": 1
    },
    {
      "name": "游戏",
      "category": 2
    }
  ]
}

应用列表json

applist.json

以下是示例数据格式,应该一看就懂,不解释了:

{
  "applist": [
     {
      "name": "坚果天气",
      "url": "https://fel.forxhr.top:2022/down.php/b676a21d4d041b8b0e40ad1c9b767362.apk",
      "icon": "https://fel.forxhr.top:2022/view.php/ffc9bc9a46fa3d9a8d9df427463a153d.png",
      "version": "2.6",
      "author": "老豆荚团队",
      "description": "是由老豆荚应用分享团队开发的锤子天气第三方客户端原锤子天气官方外发版本现已停止服务为了让其他安卓用户能够继续体验到锤子天气我们开发了这款客户端",
      "cutphoto": "https://fel.forxhr.top:2022/view.php/aa05b2a24b189b469e107eb42e33cac3.png",
      "category": 6
    },
     {
      "name": "密匣",
      "url": "https://fel.forxhr.top:2022/down.php/0422180a72227a079b45cd1e1ffae54d.apk",
      "icon": "https://fel.forxhr.top:2022/view.php/ad58e5bcaea84a342bc784464ed8776c.jpg",
      "version": "1.0",
      "author": "小趣团队",
      "description": "通过悬浮窗权限覆盖手表UI退出锁定模式需要连续数次长按屏幕可用特定页面覆盖手表UI使手表无法进行操作从而应付各种场景",
      "cutphoto": "https://fel.forxhr.top:2022/view.php/2920ef46a7c8e4e4fcae0ed6f2772ed4.jpg",
      "category": 1
    },
    ...
  ]
}

高级指南

使用一个json囊括索引和分类表和应用列表

符合下列格式即可:

{
  "source":{ ... },
  "categorylist": [ ... ],
  "applist": [ ... ]
}

很简单,对吧。这个特性有利于你方便的发布单文件数据源!

xin_data's People

Contributors

genouka avatar

Stargazers

Yuan123 avatar  avatar

Watchers

 avatar

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.