From 29fef2cbea2595ad82e7381dab60090d810af1ec Mon Sep 17 00:00:00 2001 From: aB0t Date: Tue, 20 Aug 2024 22:34:47 +0200 Subject: [PATCH] Release of v5.0.3-alpha1 Add push option to powers area. --- CHANGELOG.md | 4 + ComponentbuilderInstallerScript.php | 4 +- README.md | 14 +- admin/README.txt | 14 +- admin/access.xml | 1 + admin/compiler/joomla_3/AdminModel.php | 2 +- admin/forms/repository.xml | 45 + .../en-GB/en-GB.com_componentbuilder.ini | 18 + .../en-GB/en-GB.com_componentbuilder.sys.ini | 2 + .../repository/placeholders_fullwidth.php | 45 + admin/sql/install.mysql.utf8.sql | 5 +- admin/sql/updates/mysql/5.0.2.sql | 1 + .../src/Controller/Joomla_powerController.php | 4 +- .../Controller/Joomla_powersController.php | 6 +- admin/src/Controller/PowerController.php | 75 ++ admin/src/Controller/PowersController.php | 79 ++ admin/src/Model/RepositoryModel.php | 27 + admin/src/View/Power/HtmlView.php | 5 + admin/src/View/Powers/HtmlView.php | 5 + admin/tmpl/repository/default.php | 10 + componentbuilder.xml | 6 +- componentbuilder_update_server.xml | 20 +- .../VDM.Joomla/src/Abstraction/Remote/Set.php | 159 ++-- .../src/Componentbuilder/Power/Grep.php | 54 ++ .../src/Componentbuilder/Power/Remote/Set.php | 794 ++++++++++++++++++ .../Componentbuilder/Power/Service/Power.php | 78 ++ .../VDM.Joomla/src/Componentbuilder/Table.php | 16 + .../Componentbuilder/Utilities/RepoHelper.php | 33 + .../VDM.Joomla/src/Utilities/ObjectHelper.php | 60 +- 29 files changed, 1480 insertions(+), 106 deletions(-) create mode 100644 admin/layouts/repository/placeholders_fullwidth.php create mode 100644 admin/sql/updates/mysql/5.0.2.sql create mode 100644 libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Power/Remote/Set.php diff --git a/CHANGELOG.md b/CHANGELOG.md index a1418004d..172585f23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# v5.0.3-alpha1 + +- Add push option to powers area + # v5.0.2 - Fix site view form missing classes in J4+ diff --git a/ComponentbuilderInstallerScript.php b/ComponentbuilderInstallerScript.php index 52480e958..0d3575743 100644 --- a/ComponentbuilderInstallerScript.php +++ b/ComponentbuilderInstallerScript.php @@ -1514,7 +1514,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface // Fix the assets table rules column size. - $this->setDatabaseAssetsRulesFix(95040, "MEDIUMTEXT"); + $this->setDatabaseAssetsRulesFix(95200, "MEDIUMTEXT"); // Install the global extension params. $this->setExtensionsParams( '{"autorName":"Llewellyn van der Merwe","autorEmail":"joomla@vdm.io","subform_layouts":"default","editor":"none","manage_jcb_package_directories":"2","set_browser_storage":"1","storage_time_to_live":"global","super_powers_documentation":"0","powers_repository":"0","super_powers_repositories":"0","builder_gif_size":"480-272","compiler_plugin":["componentbuilderactionlogcompiler","componentbuilderfieldorderingcompiler","componentbuilderheaderscompiler","componentbuilderpowersautoloadercompiler","componentbuilderprivacycompiler"],"add_menu_prefix":"1","menu_prefix":"ยป","namespace_prefix":"JCB","minify":"0","language":"en-GB","percentagelanguageadd":"30","assets_table_fix":"2","compiler_field_builder_type":"2","field_name_builder":"1","type_name_builder":"1","import_guid_only":"1","export_language_strings":"1","cronjob_backup_type":"1","cronjob_backup_server":"0","backup_package_name":"JCB_Backup_[YEAR]_[MONTH]_[DAY]","export_company":"Vast Development Method","export_owner":"Llewellyn van der Merwe","export_email":"joomla@vdm.io","export_website":"https://dev.vdm.io/","export_license":"GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html","export_copyright":"Copyright (C) 2015. All Rights Reserved","check_in":"-1 day","save_history":"1","history_limit":"10","add_jquery_framework":"1","uikit_load":"1","uikit_min":"","uikit_style":""}' @@ -3270,7 +3270,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface echo '
-

Upgrade to Version 5.0.2 Was Successful! Let us know if anything is not working as expected.

'; +

Upgrade to Version 5.0.3-alpha1 Was Successful! Let us know if anything is not working as expected.

'; // Add/Update component in the action logs extensions table. $this->setActionLogsExtensions(); diff --git a/README.md b/README.md index beae2fc3f..d4715ddd7 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,13 @@ This is a [Joomla 5.x](https://extensions.joomla.org/extension/component-builder/) component. [__See In Action__](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) - ![Component Builder image](https://git.vdm.dev/joomla/Component-Builder/raw/branch/master/admin/assets/images/jcb-banner.jpg "The Component Builder") + ![Component Builder image](https://git.vdm.dev/joomla/Component-Builder/raw/branch/5.x/admin/assets/images/jcb-banner.jpg "The Component Builder") The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time. Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (5.0.2) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (5.0.3-alpha1) with **ALL** its features and **ALL** concepts totally open-source and free! > Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -144,13 +144,13 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 16th August, 2024 -+ *Version*: 5.0.2 ++ *Last Build*: 20th August, 2024 ++ *Version*: 5.0.3-alpha1 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **826768** -+ *Field count*: **2100** -+ *File count*: **5753** ++ *Line count*: **830565** ++ *Field count*: **2104** ++ *File count*: **5760** + *Folder count*: **618** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com). diff --git a/admin/README.txt b/admin/README.txt index beae2fc3f..d4715ddd7 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -3,13 +3,13 @@ This is a [Joomla 5.x](https://extensions.joomla.org/extension/component-builder/) component. [__See In Action__](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) - ![Component Builder image](https://git.vdm.dev/joomla/Component-Builder/raw/branch/master/admin/assets/images/jcb-banner.jpg "The Component Builder") + ![Component Builder image](https://git.vdm.dev/joomla/Component-Builder/raw/branch/5.x/admin/assets/images/jcb-banner.jpg "The Component Builder") The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time. Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (5.0.2) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (5.0.3-alpha1) with **ALL** its features and **ALL** concepts totally open-source and free! > Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -144,13 +144,13 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 16th August, 2024 -+ *Version*: 5.0.2 ++ *Last Build*: 20th August, 2024 ++ *Version*: 5.0.3-alpha1 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **826768** -+ *Field count*: **2100** -+ *File count*: **5753** ++ *Line count*: **830565** ++ *Field count*: **2104** ++ *File count*: **5760** + *Folder count*: **618** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com). diff --git a/admin/access.xml b/admin/access.xml index 5293d84df..b9c62d874 100644 --- a/admin/access.xml +++ b/admin/access.xml @@ -465,6 +465,7 @@ + diff --git a/admin/compiler/joomla_3/AdminModel.php b/admin/compiler/joomla_3/AdminModel.php index a41ce196a..5800af979 100644 --- a/admin/compiler/joomla_3/AdminModel.php +++ b/admin/compiler/joomla_3/AdminModel.php @@ -426,7 +426,7 @@ class ###Component###Model###View### extends AdminModel * * @since 3.0 */ - protected function generateUnique($field,$value) + protected function generateUnique($field, $value) { // set field value unique $table = $this->getTable(); diff --git a/admin/forms/repository.xml b/admin/forms/repository.xml index 1669a90ca..60b9b123c 100644 --- a/admin/forms/repository.xml +++ b/admin/forms/repository.xml @@ -210,6 +210,51 @@ validate="guid" hint="COM_COMPONENTBUILDER_REPOSITORY_GUID_HINT" /> + + +