From c0df1699276b6a922792a1d971ab6e596a5524e3 Mon Sep 17 00:00:00 2001 From: Gervwyk <gervwyk@gmail.com> Date: Wed, 20 Apr 2022 09:49:39 +0200 Subject: [PATCH] fix(blocks-antd): remove onEnter and onInit events from schema descriptions. --- .../src/blocks/PageHCF/schema.json | 22 ------------------- .../src/blocks/PageHCSF/schema.json | 16 -------------- .../src/blocks/PageHSCF/schema.json | 16 -------------- .../src/blocks/PageHeaderMenu/schema.json | 16 -------------- .../src/blocks/PageSHCF/schema.json | 16 -------------- .../src/blocks/PageSiderMenu/schema.json | 16 -------------- 6 files changed, 102 deletions(-) diff --git a/packages/plugins/blocks/blocks-antd/src/blocks/PageHCF/schema.json b/packages/plugins/blocks/blocks-antd/src/blocks/PageHCF/schema.json index 8bbe5416d..6fcd73a20 100644 --- a/packages/plugins/blocks/blocks-antd/src/blocks/PageHCF/schema.json +++ b/packages/plugins/blocks/blocks-antd/src/blocks/PageHCF/schema.json @@ -67,27 +67,5 @@ } } } - }, - "events": { - "type": "object", - "additionalProperties": false, - "properties": { - "onEnter": { - "type": "array", - "description": "Trigger actions every time a context is mounted and keep the page in loading until all actions have finished." - }, - "onEnterAsync": { - "type": "array", - "description": "Trigger actions every time a context is mounted and do not keep the page in loading." - }, - "onInit": { - "type": "array", - "description": "Trigger actions the first time a context is mounted and keep the page in loading until all actions have finished." - }, - "onInitAsync": { - "type": "array", - "description": "Trigger actions the first time a context is mounted and do not keep the page in loading." - } - } } } diff --git a/packages/plugins/blocks/blocks-antd/src/blocks/PageHCSF/schema.json b/packages/plugins/blocks/blocks-antd/src/blocks/PageHCSF/schema.json index bd59665e8..3715089be 100644 --- a/packages/plugins/blocks/blocks-antd/src/blocks/PageHCSF/schema.json +++ b/packages/plugins/blocks/blocks-antd/src/blocks/PageHCSF/schema.json @@ -149,22 +149,6 @@ "type": "array", "description": "Trigger actions when sider breakpoint id crossed." }, - "onEnter": { - "type": "array", - "description": "Trigger actions every time a context is mounted and keep the page in loading until all actions have finished." - }, - "onEnterAsync": { - "type": "array", - "description": "Trigger actions every time a context is mounted and do not keep the page in loading." - }, - "onInit": { - "type": "array", - "description": "Trigger actions the first time a context is mounted and keep the page in loading until all actions have finished." - }, - "onInitAsync": { - "type": "array", - "description": "Trigger actions the first time a context is mounted and do not keep the page in loading." - }, "onSiderClose": { "type": "array", "description": "Trigger actions when sider is closed." diff --git a/packages/plugins/blocks/blocks-antd/src/blocks/PageHSCF/schema.json b/packages/plugins/blocks/blocks-antd/src/blocks/PageHSCF/schema.json index da383bd0d..1db8c7d1b 100644 --- a/packages/plugins/blocks/blocks-antd/src/blocks/PageHSCF/schema.json +++ b/packages/plugins/blocks/blocks-antd/src/blocks/PageHSCF/schema.json @@ -148,22 +148,6 @@ "onBreakpoint": { "type": "array" }, - "onEnter": { - "type": "array", - "description": "Trigger actions every time a context is mounted and keep the page in loading until all actions have finished." - }, - "onEnterAsync": { - "type": "array", - "description": "Trigger actions every time a context is mounted and do not keep the page in loading." - }, - "onInit": { - "type": "array", - "description": "Trigger actions the first time a context is mounted and keep the page in loading until all actions have finished." - }, - "onInitAsync": { - "type": "array", - "description": "Trigger actions the first time a context is mounted and do not keep the page in loading." - }, "onSiderClose": { "type": "array", "description": "Trigger actions when sider is closed." diff --git a/packages/plugins/blocks/blocks-antd/src/blocks/PageHeaderMenu/schema.json b/packages/plugins/blocks/blocks-antd/src/blocks/PageHeaderMenu/schema.json index ca9d067f1..e74428012 100644 --- a/packages/plugins/blocks/blocks-antd/src/blocks/PageHeaderMenu/schema.json +++ b/packages/plugins/blocks/blocks-antd/src/blocks/PageHeaderMenu/schema.json @@ -197,22 +197,6 @@ "type": "array", "description": "Trigger action when mobile menu is closed." }, - "onEnter": { - "type": "array", - "description": "Trigger actions every time a context is mounted and keep the page in loading until all actions have finished." - }, - "onEnterAsync": { - "type": "array", - "description": "Trigger actions every time a context is mounted and do not keep the page in loading." - }, - "onInit": { - "type": "array", - "description": "Trigger actions the first time a context is mounted and keep the page in loading until all actions have finished." - }, - "onInitAsync": { - "type": "array", - "description": "Trigger actions the first time a context is mounted and do not keep the page in loading." - }, "onMenuItemClick": { "type": "array", "description": "Trigger action when menu item is clicked." diff --git a/packages/plugins/blocks/blocks-antd/src/blocks/PageSHCF/schema.json b/packages/plugins/blocks/blocks-antd/src/blocks/PageSHCF/schema.json index 21d3ad765..c2640aa5f 100644 --- a/packages/plugins/blocks/blocks-antd/src/blocks/PageSHCF/schema.json +++ b/packages/plugins/blocks/blocks-antd/src/blocks/PageSHCF/schema.json @@ -149,22 +149,6 @@ "type": "array", "description": "Trigger actions when sider breakpoint id crossed." }, - "onEnter": { - "type": "array", - "description": "Trigger actions every time a context is mounted and keep the page in loading until all actions have finished." - }, - "onEnterAsync": { - "type": "array", - "description": "Trigger actions every time a context is mounted and do not keep the page in loading." - }, - "onInit": { - "type": "array", - "description": "Trigger actions the first time a context is mounted and keep the page in loading until all actions have finished." - }, - "onInitAsync": { - "type": "array", - "description": "Trigger actions the first time a context is mounted and do not keep the page in loading." - }, "onSiderClose": { "type": "array", "description": "Trigger actions when sider is closed." diff --git a/packages/plugins/blocks/blocks-antd/src/blocks/PageSiderMenu/schema.json b/packages/plugins/blocks/blocks-antd/src/blocks/PageSiderMenu/schema.json index f78a707b5..cab7e9ec3 100644 --- a/packages/plugins/blocks/blocks-antd/src/blocks/PageSiderMenu/schema.json +++ b/packages/plugins/blocks/blocks-antd/src/blocks/PageSiderMenu/schema.json @@ -272,22 +272,6 @@ "type": "array", "description": "Trigger action when menu is closed." }, - "onEnter": { - "type": "array", - "description": "Trigger actions every time a context is mounted and keep the page in loading until all actions have finished." - }, - "onEnterAsync": { - "type": "array", - "description": "Trigger actions every time a context is mounted and do not keep the page in loading." - }, - "onInit": { - "type": "array", - "description": "Trigger actions the first time a context is mounted and keep the page in loading until all actions have finished." - }, - "onInitAsync": { - "type": "array", - "description": "Trigger actions the first time a context is mounted and do not keep the page in loading." - }, "onMenuItemSelect": { "type": "array", "description": "Trigger action when menu item is selected."