Fixed changelog direction so newest changes is listed at top of the file. Finished the init function of super powers. Adds rest function inside super power. Adds super powers to all templates. Updates many helper class methods to now use the utility classes. Adds the method to the component entry file (as-well). Moved most methods from the compiler fields class to powers. #955 Refactored many new builder classes from the registry class. Converted the Content class to two builder classes. Adds option to add additional templates to a module. Resolves #1002 by adding STRING instead of WORD. Ported the FOF encryption class into Powers. https://git.vdm.dev/joomla/fof Changed all CSS and JS to use instead of in compiler code. Adds option to turn jQuery off if UIKIT 3 is added. Adds option to auto write injection boilerplate code in Powers area. Adds option to auto write service provider boilerplate code in the Powers area. Improved the method and all banner locations to fetch from https://git.vdm.dev/joomla/jcb-external/ instead. Major stability improvements all over the new powers complier classes. New [base Registry class](https://git.vdm.dev/joomla/super-powers/src/branch/master/src/7e822c03-1b20-41d1-9427-f5b8d5836af7) has been created specially for JCB. Remember to update all plug-ins with this version update (use the package).

This commit is contained in:
2023-10-18 09:26:30 +02:00
parent a77eac9adf
commit e99899f6f1
632 changed files with 30604 additions and 16888 deletions

View File

@@ -27,7 +27,7 @@ use VDM\Joomla\Utilities\ArrayHelper;
*
* @since 3.2.0
*/
class Dashboard
final class Dashboard
{
/**
* The compiler registry
@@ -207,7 +207,6 @@ class Dashboard
$this->component->remove('php_dashboard_methods');
}
}
}
}
}

View File

@@ -45,7 +45,7 @@ use VDM\Joomla\Utilities\GetHelper;
*
* @since 3.2.0
*/
class Data
final class Data
{
/**
* Compiler Config

View File

@@ -28,7 +28,7 @@ use VDM\Joomla\Componentbuilder\Compiler\Interfaces\Component\PlaceholderInterfa
*
* @since 3.2.0
*/
class Placeholder implements PlaceholderInterface
final class Placeholder implements PlaceholderInterface
{
/**
* Placeholders
@@ -139,7 +139,6 @@ class Placeholder implements PlaceholderInterface
$this->placeholders = $bucket;
return $bucket;
}
}
}

View File

@@ -31,7 +31,7 @@ use VDM\Joomla\Utilities\StringHelper;
*
* @since 3.2.0
*/
class Settings
final class Settings
{
/**
* The standard folders

View File

@@ -24,7 +24,7 @@ use VDM\Joomla\Utilities\ObjectHelper;
*
* @since 3.2.0
*/
class Structure
final class Structure
{
/**
* Compiler Component Joomla Version Settings
@@ -112,7 +112,6 @@ class Structure
$this->folders($sub_folders, $new_path);
}
}
}
}
}

View File

@@ -29,7 +29,7 @@ use VDM\Joomla\Componentbuilder\Compiler\Utilities\Placefix;
*
* @since 3.2.0
*/
class Structuremultiple
final class Structuremultiple
{
/**
* Compiler Config
@@ -349,7 +349,6 @@ class Structuremultiple
$view_type = ($view['settings']->main_get->gettype == 1) ? 'single' : 'list';
$this->structure->build($target, $view_type, false, $config);
}
}
}

View File

@@ -17,12 +17,11 @@ use Joomla\CMS\Application\CMSApplication;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Filesystem\Folder;
use Joomla\CMS\Filesystem\File;
use VDM\Joomla\Componentbuilder\Compiler\Factory as Compiler;
use VDM\Joomla\Componentbuilder\Compiler\Component\Settings;
use VDM\Joomla\Componentbuilder\Compiler\Content;
use VDM\Joomla\Componentbuilder\Compiler\Config;
use VDM\Joomla\Componentbuilder\Compiler\Registry;
use VDM\Joomla\Componentbuilder\Compiler\Component\Settings;
use VDM\Joomla\Componentbuilder\Compiler\Component;
use VDM\Joomla\Componentbuilder\Compiler\Builder\ContentOne as Content;
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Counter;
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Paths;
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Files;
@@ -35,7 +34,7 @@ use VDM\Joomla\Componentbuilder\Compiler\Utilities\Indent;
*
* @since 3.2.0
*/
class Structuresingle
final class Structuresingle
{
/**
* The new name
@@ -70,65 +69,65 @@ class Structuresingle
protected string $zipFullPath;
/**
* Compiler Config
* The Config Class.
*
* @var Config
* @var Config
* @since 3.2.0
*/
protected Config $config;
/**
* The compiler registry
* The Registry Class.
*
* @var Registry
* @var Registry
* @since 3.2.0
*/
protected Registry $registry;
/**
* Compiler Component Joomla Version Settings
* The Settings Class.
*
* @var Settings
* @var Settings
* @since 3.2.0
*/
protected Settings $settings;
/**
* Compiler Component
* The Component Class.
*
* @var Component
* @var Component
* @since 3.2.0
**/
*/
protected Component $component;
/**
* Compiler Content
* The ContentOne Class.
*
* @var Content
* @var Content
* @since 3.2.0
**/
*/
protected Content $content;
/**
* Compiler Counter
* The Counter Class.
*
* @var Counter
* @var Counter
* @since 3.2.0
*/
protected Counter $counter;
/**
* Compiler Paths
* The Paths Class.
*
* @var Paths
* @var Paths
* @since 3.2.0
*/
protected Paths $paths;
/**
* Compiler Utilities Files
* The Files Class.
*
* @var Files
* @var Files
* @since 3.2.0
*/
protected Files $files;
@@ -142,34 +141,32 @@ class Structuresingle
protected CMSApplication $app;
/**
* Constructor
* Constructor.
*
* @param Config|null $config The compiler config object.
* @param Registry|null $registry The compiler registry object.
* @param Settings|null $settings The compiler component Joomla version settings object.
* @param Component|null $component The component class.
* @param Content|null $content The compiler content object.
* @param Counter|null $counter The compiler counter object.
* @param Paths|null $paths The compiler paths object.
* @param Files|null $files The compiler files object.
* @param CMSApplication|null $app The CMS Application object.
* @param Config $config The Config Class.
* @param Registry $registry The Registry Class.
* @param Settings $settings The Settings Class.
* @param Component $component The Component Class.
* @param Content $content The ContentOne Class.
* @param Counter $counter The Counter Class.
* @param Paths $paths The Paths Class.
* @param Files $files The Files Class.
* @param CMSApplication|null $app The CMS Application object.
*
* @throws \Exception
* @since 3.2.0
*/
public function __construct(?Config $config = null, ?Registry $registry = null,
?Settings $settings = null, ?Component $component = null,
?Content $content = null, ?Counter $counter = null, ?Paths $paths = null,
?Files $files = null, ?CMSApplication $app = null)
public function __construct(Config $config, Registry $registry, Settings $settings,
Component $component, Content $content, Counter $counter,
Paths $paths, Files $files, ?CMSApplication $app = null)
{
$this->config = $config ?: Compiler::_('Config');
$this->registry = $registry ?: Compiler::_('Registry');
$this->settings = $settings ?: Compiler::_('Component.Settings');
$this->component = $component ?: Compiler::_('Component');
$this->content = $content ?: Compiler::_('Content');
$this->counter = $counter ?: Compiler::_('Utilities.Counter');
$this->paths = $paths ?: Compiler::_('Utilities.Paths');
$this->files = $files ?: Compiler::_('Utilities.Files');
$this->config = $config;
$this->registry = $registry;
$this->settings = $settings;
$this->component = $component;
$this->content = $content;
$this->counter = $counter;
$this->paths = $paths;
$this->files = $files;
$this->app = $app ?: Factory::getApplication();
}
@@ -256,7 +253,7 @@ class Structuresingle
) !== false
&& (strpos($licenseChecker, 'gpl') !== false
|| strpos(
$licenseChecker, 'General public license'
$licenseChecker, 'general public license'
) !== false))
{
return true;
@@ -618,7 +615,6 @@ class Structuresingle
'Notice'
);
}
}
}
}