{
  "id": "grocery-list",
  "name": "采购清单",
  "version": "1.0.0",
  "kind": "utility",
  "description": "按分类整理待买商品，到店逐项勾选。",
  "branding": {
    "icon": "assets/icon.png"
  },
  "categories": [
    "shopping",
    "food"
  ],
  "tags": [
    "shopping",
    "food"
  ],
  "localizations": {
    "zh-CN": {
      "displayName": "采购清单",
      "description": "按分类整理待买商品，到店逐项勾选。"
    },
    "en": {
      "displayName": "Grocery List",
      "description": "Group groceries by aisle and check them off while shopping."
    }
  },
  "ui": {
    "main": "ui/index.html",
    "permissions": [
      "theme",
      "storage"
    ],
    "collections": [
      {
        "name": "groceries",
        "title": "采购清单",
        "fields": [
          {
            "key": "title",
            "type": "string",
            "required": true
          },
          {
            "key": "quantity",
            "type": "string"
          },
          {
            "key": "category",
            "type": "enum",
            "values": [
              "蔬果",
              "肉蛋奶",
              "主食",
              "零食饮品",
              "清洁与日用",
              "其他"
            ]
          },
          {
            "key": "note",
            "type": "string"
          },
          {
            "key": "status",
            "type": "enum",
            "values": [
              "待买",
              "已买"
            ],
            "default": "待买"
          }
        ]
      }
    ]
  },
  "engines": {
    "xopc": ">=0.0.106 <1.0.0"
  }
}
