mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-11 18:56:18 +09:00
block.json refinements
This commit is contained in:
@@ -118,6 +118,10 @@ On the WP-Strava settings page you cannot currently remove and add another athle
|
||||
|
||||
== Changelog ==
|
||||
|
||||
|
||||
= Unreleased =
|
||||
Revised `block.json` based on feedback from https://wordpress.org/plugins/developers/block-plugin-validator/
|
||||
|
||||
= 2.7.0 =
|
||||
Add setting to choose API cache interval (1 hour / 15 minutes) https://wordpress.org/support/topic/decrease-update-time-for-group-recent-activities/
|
||||
Move block type metadata to `block.json` for future discoverability.
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"apiVersion": 2,
|
||||
"name": "wp-strava/activity",
|
||||
"title": "Strava Activity",
|
||||
"category": "embed",
|
||||
@@ -25,7 +24,7 @@
|
||||
"default": null
|
||||
}
|
||||
},
|
||||
"editorScript": "wp-strava-block",
|
||||
"editorStyle": "wp-strava-block-editor",
|
||||
"style": "wp-strava-block"
|
||||
"editorScript": "file:../../../build/index.js",
|
||||
"editorStyle": "file:../../../build/editor.css",
|
||||
"style": "file:../../../build/style.css"
|
||||
}
|
||||
|
||||
@@ -6,7 +6,4 @@ import metadata from './block.json';
|
||||
metadata.edit = edit;
|
||||
metadata.save = () => null;
|
||||
|
||||
// Leaving this in place causes problems with the toolbar.
|
||||
delete metadata.apiVersion;
|
||||
|
||||
registerBlockType( metadata.name, metadata );
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"apiVersion": 2,
|
||||
"name": "wp-strava/route",
|
||||
"title": "Strava Route",
|
||||
"category": "embed",
|
||||
@@ -25,7 +24,7 @@
|
||||
"default": null
|
||||
}
|
||||
},
|
||||
"editorScript": "wp-strava-block",
|
||||
"editorStyle": "wp-strava-block-editor",
|
||||
"style": "wp-strava-block"
|
||||
"editorScript": "file:../../../build/index.js",
|
||||
"editorStyle": "file:../../../build/editor.css",
|
||||
"style": "file:../../../build/style.css"
|
||||
}
|
||||
|
||||
@@ -6,7 +6,4 @@ import metadata from './block.json';
|
||||
metadata.edit = edit;
|
||||
metadata.save = () => null;
|
||||
|
||||
// Leaving this in place causes problems with the toolbar.
|
||||
delete metadata.apiVersion;
|
||||
|
||||
registerBlockType( metadata.name, metadata );
|
||||
|
||||
Reference in New Issue
Block a user