From caaf07f3b293b002ef704c04d0f2f3208bd35aeb Mon Sep 17 00:00:00 2001 From: Michiel Gerritsen Date: Tue, 7 Nov 2023 08:58:57 +0100 Subject: [PATCH] Feature: Support Magewire in the backend --- src/etc/di.xml | 58 +++++++++++++++ src/etc/events.xml | 18 +++++ src/etc/frontend/di.xml | 62 ---------------- src/etc/frontend/events.xml | 14 ---- src/view/base/layout/default.xml | 72 +++++++++++++++++++ .../{frontend => base}/web/js/livewire.js | 0 .../{frontend => base}/web/js/livewire.js.map | 0 7 files changed, 148 insertions(+), 76 deletions(-) create mode 100644 src/etc/events.xml delete mode 100644 src/etc/frontend/di.xml create mode 100644 src/view/base/layout/default.xml rename src/view/{frontend => base}/web/js/livewire.js (100%) rename src/view/{frontend => base}/web/js/livewire.js.map (100%) diff --git a/src/etc/di.xml b/src/etc/di.xml index 2040378..c436b5c 100644 --- a/src/etc/di.xml +++ b/src/etc/di.xml @@ -14,4 +14,62 @@ + + + + + Magewirephp\Magewire\Model\Action\CallMethod + Magewirephp\Magewire\Model\Action\FireEvent + Magewirephp\Magewire\Model\Action\SyncInput + + + + + + + + + + + + + mount + hydrate + dehydrate + updating + updated + + + getParent + setParent + getPublicProperties + __call + + + setRequest + getRequest + setResponse + getResponse + getEventQueue + getUncallables + + + renderPagination + + fill + reset + + + validate + + + + + + + + diff --git a/src/etc/events.xml b/src/etc/events.xml new file mode 100644 index 0000000..1bb68ac --- /dev/null +++ b/src/etc/events.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/src/etc/frontend/di.xml b/src/etc/frontend/di.xml deleted file mode 100644 index 3de8a43..0000000 --- a/src/etc/frontend/di.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - Magewirephp\Magewire\Model\Action\CallMethod - Magewirephp\Magewire\Model\Action\FireEvent - Magewirephp\Magewire\Model\Action\SyncInput - - - - - - - - - - - - - mount - hydrate - dehydrate - updating - updated - - - getParent - setParent - getPublicProperties - __call - - - setRequest - getRequest - setResponse - getResponse - getEventQueue - getUncallables - - - renderPagination - - fill - reset - - - validate - - - - - - - - - diff --git a/src/etc/frontend/events.xml b/src/etc/frontend/events.xml index 4addec5..b336bff 100644 --- a/src/etc/frontend/events.xml +++ b/src/etc/frontend/events.xml @@ -2,20 +2,6 @@ - - - - - - - - - - diff --git a/src/view/base/layout/default.xml b/src/view/base/layout/default.xml new file mode 100644 index 0000000..3f56318 --- /dev/null +++ b/src/view/base/layout/default.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/view/frontend/web/js/livewire.js b/src/view/base/web/js/livewire.js similarity index 100% rename from src/view/frontend/web/js/livewire.js rename to src/view/base/web/js/livewire.js diff --git a/src/view/frontend/web/js/livewire.js.map b/src/view/base/web/js/livewire.js.map similarity index 100% rename from src/view/frontend/web/js/livewire.js.map rename to src/view/base/web/js/livewire.js.map