app
1 year ago
app.tsx
1 year ago
block.json
6 months ago
edit.tsx
1 year ago
index.tsx
1 year ago
render.php
1 year ago
types.ts
10 months ago
block.json
59 lines
| 1 | { |
| 2 | "$schema": "https://json.schemastore.org/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "givewp/campaign-grid", |
| 5 | "version": "1.0.0", |
| 6 | "title": "Campaign Grid", |
| 7 | "category": "give", |
| 8 | "description": "Insert an existing campaign into the page.", |
| 9 | "supports": { |
| 10 | "align": ["wide", "full", "left", "center", "right"] |
| 11 | }, |
| 12 | "attributes": { |
| 13 | "layout": { |
| 14 | "type": "string", |
| 15 | "default": "full", |
| 16 | "enum": ["full", "double", "triple"] |
| 17 | }, |
| 18 | "showImage": { |
| 19 | "type": "boolean", |
| 20 | "default": true |
| 21 | }, |
| 22 | "showDescription": { |
| 23 | "type": "boolean", |
| 24 | "default": true |
| 25 | }, |
| 26 | "showGoal": { |
| 27 | "type": "boolean", |
| 28 | "default": true |
| 29 | }, |
| 30 | "sortBy": { |
| 31 | "type": "string", |
| 32 | "default": "date", |
| 33 | "enum": ["date", "amount", "donations", "donors"] |
| 34 | }, |
| 35 | "orderBy": { |
| 36 | "type": "string", |
| 37 | "default": "desc", |
| 38 | "enum": ["asc", "desc"] |
| 39 | }, |
| 40 | "filterBy": { |
| 41 | "type": "array", |
| 42 | "default": [] |
| 43 | }, |
| 44 | "perPage": { |
| 45 | "type": "number", |
| 46 | "default": "6" |
| 47 | }, |
| 48 | "showPagination": { |
| 49 | "type": "boolean", |
| 50 | "default": true |
| 51 | } |
| 52 | }, |
| 53 | "example": {}, |
| 54 | "textdomain": "give", |
| 55 | "viewScript": "file:../../../../build/campaignGridApp.js", |
| 56 | "viewStyle": "file:../../../../build/campaignGridApp.css", |
| 57 | "render": "file:./render.php" |
| 58 | } |
| 59 |