From de1b6dec3cada6162b708ce1be4e1027076b7bbd Mon Sep 17 00:00:00 2001 From: Falko Joseph Date: Wed, 21 Feb 2024 09:43:13 +0100 Subject: [PATCH] feat: update WP SweepBright --- .gitignore | 4 + .nvmrc | 2 +- README.md | 6 +- admin/.DS_Store | Bin 6148 -> 0 bytes admin/partials/settings.php | 11 + admin/vue-components/.DS_Store | Bin 6148 -> 0 bytes .../Editor/Fields/FieldTextArea.vue | 46 + .../Components/Editor/Fields/Renderer.vue | 12 +- admin/vue-components/Properties/Edit.vue | 331 +- api/class-controller-pages.php | 16 +- api/class-controller-property.php | 25 +- api/class-controller-wrapper.php | 2 + blocks/banner/banner-image/banner-image.json | 150 + blocks/banner/banner-image/default/info.json | 4 + .../banner/banner-image/default/template.php | 48 + blocks/data/team/default/template.php | 8 +- blocks/forms/contact/default/template.php | 2 +- .../layout/navigation/default/assets/main.css | 4 + .../layout/navigation/default/dist/main.css | 2 +- blocks/layout/navigation/default/dist/main.js | 2 +- .../navigation/default/package-lock.json | 14150 +++++------- blocks/media/gallery/default/assets/main.js | 6 +- blocks/media/gallery/default/dist/main.css | 79 +- blocks/media/gallery/default/dist/main.js | 15065 +----------- blocks/sweepbright/_shared/WPSweepBright.js | 16 +- blocks/sweepbright/_shared/bus.js | 10 +- .../default/assets/components/Search.vue | 2 +- .../banner/default/assets/tags.css | 26 +- .../sweepbright/banner/default/dist/main.css | 2 +- .../sweepbright/banner/default/dist/main.js | 2 +- .../estate-agence/default/.eslintrc.js | 62 + .../estate-agence/default/assets/main.js | 10 + .../estate-agence/default/dist/main.js | 12 + .../estate-agence/default/info.json | 4 + .../estate-agence/default/package.json | 30 + .../estate-agence/default/template.php | 112 + .../estate-agence/default/yarn.lock | 7384 ++++++ .../estate-agence/estate-agence.json | 142 + .../estate-agent/default/template.php | 28 + .../estate-agent/estate-agent.json | 22 + .../estate-energy/default/template.php | 13 + .../estate-energy/estate-energy.json | 15 +- .../estate-heading/default/template.php | 37 +- .../estate-heading/estate-heading.json | 12 +- .../estate-price/default/template.php | 172 +- .../estate-price/estate-price.json | 33 +- .../estate-regulations/default/template.php | 105 +- .../estate-regulations.json | 51 +- .../estate-virtual-tour/default/template.php | 11 +- .../default/assets/components/MultiSearch.vue | 4 +- .../filter/default/assets/tags.css | 36 +- .../sweepbright/filter/default/dist/main.css | 2 +- .../sweepbright/filter/default/dist/main.js | 2 +- .../properties/default/.eslintrc.js | 140 +- .../default/assets/components/Card.vue | 154 +- .../default/assets/components/Dropdown.vue | 33 +- .../default/assets/components/List.vue | 6 +- .../properties/default/assets/main.js | 38 +- .../properties/default/dist/main.css | 2 +- .../properties/default/dist/main.js | 31 +- .../properties/default/package.json | 63 +- .../properties/default/template.php | 1 + .../sweepbright/properties/default/yarn.lock | 1422 +- blocks/sweepbright/properties/properties.json | 21 +- blocks/text/paragraph/default/template.php | 8 +- blocks/widgets/html/default/info.json | 4 + blocks/widgets/html/default/template.php | 1 + blocks/widgets/html/html.json | 15 + .../widgets/pricehubble/default/template.php | 14 +- .../assets/components/QuickContact.vue | 32 +- .../quick-contact/default/dist/main.js | 2 +- .../widgets/quick-contact/quick-contact.json | 19 +- dist/wp-sweepbright-admin.css | 4 +- dist/wp-sweepbright-admin.js | 117 +- dist/wp-sweepbright-public.js | 4 +- dist/wp-sweepbright-public.js.map | 2 +- modules/class-wp-sweepbright-cache.php | 13 +- modules/class-wp-sweepbright-helpers.php | 3 + modules/class-wp-sweepbright-query.php | 19 +- modules/fields/class-estate.php | 1 + modules/update/class-property-update.php | 14 +- package-lock.json | 18991 +++------------- wp-sweepbright.php | 4 +- yarn.lock | 8103 +++++++ 84 files changed, 27270 insertions(+), 40343 deletions(-) delete mode 100644 admin/.DS_Store delete mode 100644 admin/vue-components/.DS_Store create mode 100644 admin/vue-components/Pages/Components/Editor/Fields/FieldTextArea.vue create mode 100644 blocks/banner/banner-image/banner-image.json create mode 100644 blocks/banner/banner-image/default/info.json create mode 100644 blocks/banner/banner-image/default/template.php create mode 100644 blocks/sweepbright/estate-agence/default/.eslintrc.js create mode 100644 blocks/sweepbright/estate-agence/default/assets/main.js create mode 100644 blocks/sweepbright/estate-agence/default/dist/main.js create mode 100644 blocks/sweepbright/estate-agence/default/info.json create mode 100644 blocks/sweepbright/estate-agence/default/package.json create mode 100644 blocks/sweepbright/estate-agence/default/template.php create mode 100644 blocks/sweepbright/estate-agence/default/yarn.lock create mode 100644 blocks/sweepbright/estate-agence/estate-agence.json create mode 100644 blocks/widgets/html/default/info.json create mode 100644 blocks/widgets/html/default/template.php create mode 100644 blocks/widgets/html/html.json create mode 100644 yarn.lock diff --git a/.gitignore b/.gitignore index 4caedb29..f9fc77c9 100644 --- a/.gitignore +++ b/.gitignore @@ -78,3 +78,7 @@ error_log .cache **/.cache **/.cache/* + +/db/ +/db/* +!/db/.keep diff --git a/.nvmrc b/.nvmrc index 2f5ee741..62df50f1 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -14.15.1 +14.17.0 diff --git a/README.md b/README.md index 3dc615bb..0033b7f5 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ - PHP 7.3+ - Dedicated, managed or fast WordPress hosting (ability to resize & crop large image files 10MB+) - [Advanced Custom Fields PRO](https://www.advancedcustomfields.com/pro/) -- Yearly license (€99,00 annually, per website). +- Yearly license ([contact sales](mailto:info@compagnon.agency)) ### 1.2. Features @@ -42,7 +42,7 @@ SweepBright uses a [webhook](https://website.sweepbright.com/docs/#header-1.-publish-a-property-to-the-custom-website) for publishing properties to your website. The webhook on your website should be responsible for retrieving and storing all of the property's information whenever a publication occurs in SweepBright. -However, if you have a lot of publications scheduled at the same time it could take up a lot of processing resources. +However, if you have a lot of publications scheduled at the same time it could take up a lot of processing resources. Potentially leading to unpredictable or unreliable behavior. We've solved this by creating our own webhook server which acts as a "man in the middle" between SweepBright and your website. @@ -57,7 +57,7 @@ Whenever a publication is scheduled in SweepBright it will first connect to our ### 2.3. What's the price / additional costs? -> €99,00 annually, per website. +> The plugin comes with a yearly subscription, dependent on the usage of our webhook server. Additional costs may occur depending on your usage of our webhook server. For regular use or less than 15 publications per day on average, there are no additional costs. diff --git a/admin/.DS_Store b/admin/.DS_Store deleted file mode 100644 index 7c6c34b0d66ba3a4a61b48e18b1b40b2be10ec61..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}&BV5S|qfkZ5|)gkux07*U8n@zNl^fHithgRLdlSau05a3CZ->kIiLK94iI zO9JB0%^288X1>|koi_6&`!fK*8iU{fzyg2*Dq(g5%@;!Rqzkg9BUwZyzY+VRxaUX0 zUs!7bh5^IC|6_pmZVr0jK?m9}yMN#OUKGYjwffH1GTGdE9;KAOcb~+_O}u0fH@yBW zjjn`<{HgEx*I|3qvbN6!PrQ(~`!XR6+PLKICggz_HN=1ivCMVVL=mNBmB-_g!)nE@ z)sH6?dwfcMy>>L26bn1M`)8M}=cvoYiz1QXi6doG;}l-enW<>#_IV_D2cwj+1w$BM zrF-xQ0=iha0FGl0$`I)X<{)|Kj`pe?G~K3 + + + + + + + + diff --git a/admin/vue-components/.DS_Store b/admin/vue-components/.DS_Store deleted file mode 100644 index edc68820c06047229f8e109f77b76b772fb75d2b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}T>S5T5OiZ7o6$3OxqA7Ob}TgO?ENU5w~Kr6wfQV9b^zHHT8jSzpK}@p+ut z-AZfgRmASV>^D0*lQ3Vx?hXJjd+hH67ywX5B`h^?SRu4dx+Ep#sUR}(jMU51kr#1q zDONlFCIj^Cs&D}=3?YE|@AvMFqA<-moex$jSE?H|lxFSTdE~j1x!E|i-Q<>LSDZ)Q z%yzx&FvthS_8E^eH;jWsB!qr|A$K=n?DO2_n~9PxOFUdq_SS`*+f!fF%9 zApA#FudMA`{WF#{Y6dg|>&<}LLF>)+ra@P)8PE)@V1V`q6P3_XSV$CG2M(eIK%{G= z5VWb6pd3@7rLd5QD=18+BFa>zS_~%B(Qm3aOJN~VrUO&W2UBlmszYJo?f86CgaflA z>QOVG8CYbXET;yY|K~sV|BFd_rWw!-{3`}nrSJ4@EJ>ZMOU2PyYob1&l2BYB@hb%l iaTH@L9mOqFA?P>BK(rJV648UAF9L!FJ!l4gm4Qz<42zur diff --git a/admin/vue-components/Pages/Components/Editor/Fields/FieldTextArea.vue b/admin/vue-components/Pages/Components/Editor/Fields/FieldTextArea.vue new file mode 100644 index 00000000..cdf35f4d --- /dev/null +++ b/admin/vue-components/Pages/Components/Editor/Fields/FieldTextArea.vue @@ -0,0 +1,46 @@ + + + diff --git a/admin/vue-components/Pages/Components/Editor/Fields/Renderer.vue b/admin/vue-components/Pages/Components/Editor/Fields/Renderer.vue index c206a941..52c48e8b 100644 --- a/admin/vue-components/Pages/Components/Editor/Fields/Renderer.vue +++ b/admin/vue-components/Pages/Components/Editor/Fields/Renderer.vue @@ -14,7 +14,7 @@