{
  "id": "pantry-tracker",
  "name": "食材保质期",
  "version": "1.0.0",
  "kind": "utility",
  "description": "记录库存和保质期，优先用掉快到期的食材。",
  "branding": {
    "icon": "assets/icon.png"
  },
  "categories": [
    "food",
    "home"
  ],
  "tags": [
    "food",
    "home"
  ],
  "localizations": {
    "zh-CN": {
      "displayName": "食材保质期",
      "description": "记录库存和保质期，优先用掉快到期的食材。"
    },
    "en": {
      "displayName": "Pantry Tracker",
      "description": "Track pantry stock and use ingredients with the closest expiry first."
    }
  },
  "ui": {
    "main": "ui/index.html",
    "permissions": [
      "theme",
      "storage"
    ],
    "collections": [
      {
        "name": "pantry_items",
        "title": "食材保质期",
        "fields": [
          {
            "key": "title",
            "type": "string",
            "required": true
          },
          {
            "key": "quantity",
            "type": "string"
          },
          {
            "key": "expiry",
            "type": "date"
          },
          {
            "key": "location",
            "type": "enum",
            "values": [
              "冷藏",
              "冷冻",
              "常温"
            ]
          },
          {
            "key": "note",
            "type": "string"
          },
          {
            "key": "status",
            "type": "enum",
            "values": [
              "在库",
              "已用完"
            ],
            "default": "在库"
          }
        ]
      }
    ]
  },
  "engines": {
    "xopc": ">=0.0.106 <1.0.0"
  }
}
