initial state
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"apiVersion": 3,
|
||||
"name": "swi-foot/context",
|
||||
"title": "Swiss Football Context (container)",
|
||||
"category": "widgets",
|
||||
"icon": "admin-site",
|
||||
"description": "Provides a team/season/match context to child blocks. Children will inherit these settings unless they override them.",
|
||||
"providesContext": {
|
||||
"swi-foot/context": "swi_foot_context"
|
||||
},
|
||||
"attributes": {
|
||||
"swi_foot_context": {
|
||||
"type": "object",
|
||||
"default": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"apiVersion": 3,
|
||||
"name": "swi-foot/match-events",
|
||||
"title": "Swiss Football Match Events",
|
||||
"category": "widgets",
|
||||
"icon": "list-view",
|
||||
"description": "Live match events with optional auto-refresh.",
|
||||
"attributes": {
|
||||
"selectedTeam": { "type": "string", "default": "" },
|
||||
"selectedMatch": { "type": "string", "default": "" },
|
||||
"refreshInterval": { "type": "number", "default": 30 },
|
||||
"eventOrder": { "type": "string", "default": "dynamic" }
|
||||
}
|
||||
,
|
||||
"usesContext": ["swi-foot/context"]
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"apiVersion": 3,
|
||||
"name": "swi-foot/match-roster",
|
||||
"title": "Swiss Football Match Roster",
|
||||
"category": "widgets",
|
||||
"icon": "groups",
|
||||
"description": "Display match roster for a selected match and side.",
|
||||
"attributes": {
|
||||
"selectedTeam": { "type": "string", "default": "" },
|
||||
"selectedMatch": { "type": "string", "default": "" },
|
||||
"side": { "type": "string", "default": "home" },
|
||||
"withBench": { "type": "boolean", "default": false }
|
||||
}
|
||||
,
|
||||
"usesContext": ["swi-foot/context"]
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"apiVersion": 3,
|
||||
"name": "swi-foot/schedule",
|
||||
"title": "Swiss Football Schedule",
|
||||
"category": "widgets",
|
||||
"icon": "schedule",
|
||||
"description": "Display upcoming matches for a team.",
|
||||
"attributes": {
|
||||
"teamId": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"limit": {
|
||||
"type": "number",
|
||||
"default": 5
|
||||
}
|
||||
}
|
||||
,
|
||||
"usesContext": ["swi-foot/context"]
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"apiVersion": 3,
|
||||
"name": "swi-foot/shortcode-inserter",
|
||||
"title": "SWI Football Shortcode Inserter",
|
||||
"category": "widgets",
|
||||
"icon": "editor-code",
|
||||
"description": "Insert shortcode-based match or team displays.",
|
||||
"attributes": {
|
||||
"shortcodeType": {
|
||||
"type": "string",
|
||||
"default": "match"
|
||||
},
|
||||
"matchId": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"teamId": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"showNext": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"format": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"separator": {
|
||||
"type": "string",
|
||||
"default": ":"
|
||||
}
|
||||
},
|
||||
"usesContext": ["swi-foot/context"]
|
||||
,"supports": { "html": false }
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"apiVersion": 3,
|
||||
"name": "swi-foot/standings",
|
||||
"title": "Swiss Football Standings",
|
||||
"category": "widgets",
|
||||
"icon": "analytics",
|
||||
"description": "Display current standings for a team.",
|
||||
"attributes": {
|
||||
"teamId": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
}
|
||||
}
|
||||
,
|
||||
"usesContext": ["swi-foot/context"]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"apiVersion": 3,
|
||||
"name": "swi-foot/team-data",
|
||||
"title": "Swiss Football Team Data",
|
||||
"category": "widgets",
|
||||
"icon": "universal-access-alt",
|
||||
"description": "Guided team selector to insert shortcodes for various match/team displays.",
|
||||
"attributes": {
|
||||
"selectedTeam": { "type": "string", "default": "" },
|
||||
"dataType": { "type": "string", "default": "" },
|
||||
"selectedMatch": { "type": "string", "default": "" },
|
||||
"shortcodeType": { "type": "string", "default": "match" },
|
||||
"format": { "type": "string", "default": "" },
|
||||
"separator": { "type": "string", "default": ":" }
|
||||
}
|
||||
,
|
||||
"usesContext": ["swi-foot/context"]
|
||||
}
|
||||
Reference in New Issue
Block a user