app
1 year ago
app.tsx
1 year ago
block.json
1 year ago
edit.tsx
1 year ago
index.tsx
1 year ago
render.php
1 year ago
types.ts
1 year ago
block.json
74 lines
| 1 | { |
| 2 | "$schema": "https://json.schemastore.org/block.json", |
| 3 | "apiVersion": 2, |
| 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": [ |
| 11 | "wide", |
| 12 | "full", |
| 13 | "left", |
| 14 | "center", |
| 15 | "right" |
| 16 | ] |
| 17 | }, |
| 18 | "attributes": { |
| 19 | "layout": { |
| 20 | "type": "string", |
| 21 | "default": "full", |
| 22 | "enum": [ |
| 23 | "full", |
| 24 | "double", |
| 25 | "triple" |
| 26 | ] |
| 27 | }, |
| 28 | "showImage": { |
| 29 | "type": "boolean", |
| 30 | "default": true |
| 31 | }, |
| 32 | "showDescription": { |
| 33 | "type": "boolean", |
| 34 | "default": true |
| 35 | }, |
| 36 | "showGoal": { |
| 37 | "type": "boolean", |
| 38 | "default": true |
| 39 | }, |
| 40 | "sortBy": { |
| 41 | "type": "string", |
| 42 | "default": "date", |
| 43 | "enum": [ |
| 44 | "date" |
| 45 | ] |
| 46 | }, |
| 47 | "orderBy": { |
| 48 | "type": "string", |
| 49 | "default": "desc", |
| 50 | "enum": [ |
| 51 | "asc", |
| 52 | "desc" |
| 53 | ] |
| 54 | }, |
| 55 | "filterBy": { |
| 56 | "type": "array", |
| 57 | "default": [] |
| 58 | }, |
| 59 | "perPage": { |
| 60 | "type": "number", |
| 61 | "default": "6" |
| 62 | }, |
| 63 | "showPagination": { |
| 64 | "type": "boolean", |
| 65 | "default": true |
| 66 | } |
| 67 | }, |
| 68 | "example": {}, |
| 69 | "textdomain": "give", |
| 70 | "viewScript": "file:../../../../build/campaignGridApp.js", |
| 71 | "viewStyle": "file:../../../../build/campaignGridApp.css", |
| 72 | "render": "file:./render.php" |
| 73 | } |
| 74 |