APP 中心

这里登记了所有基于 Canbox 开发的应用

  1. 准备应用信息

    确保你的应用已经开发完成并上传到 GitHub 或 Gitee。

  2. 编辑数据文件

    data/apps-authors/ 目录下创建新文件 apps-你的用户名.js(如 apps-alice.js)。文件内容如下:

    // 作者:你的用户名
    const yourapp = {
        name: '应用名称',
        id: 'com.github.username.appname',
        description: '应用描述',
        description_en: 'App description in English',
        author: '你的用户名',
        category: 'development',
        tags: ['tag1', 'tag2'],
        repo: 'https://github.com/username/repo',
        logo: 'https://github.com/username/repo/raw/master/logo.png',
        license: 'MIT',
        version: '0.0.1',
        downloads: '10+',
        homepage: 'https://github.com/username/repo'
    };
    
    // 可以继续添加更多应用...
    const yourapp2 = {
        // ... 另一个应用
    };
    
    export default [yourapp, yourapp2];
  3. 更新总索引

    data/apps.js 文件中添加 import 和数组元素:

    // 在文件顶部添加 import
    import appsYourusername from './apps-authors/apps-yourusername.js';
    
    // 在 apps 数组中添加
    const apps = [
        ...appsLizl6,
        ...appsRexlevin,
        ...appsYourusername  // 新增这一行
    ];
  4. 提交 PR

    将修改推送到你的 fork,然后提交 Pull Request 到原仓库。

注意事项

  • 请确保 logo 图片可以直接访问
  • description 和 description_en 都需要填写
  • category 必须是以下之一:development, utility, office, network, audio, video, game, graphics, education
  • version 使用语义化版本号,如 1.0.0