Skip to content

Commit

Permalink
Merge pull request #356 from juzaweb/v4-beta
Browse files Browse the repository at this point in the history
V4 beta
  • Loading branch information
juzaweb authored Nov 11, 2023
2 parents afb7c2a + 6c45851 commit e0c18ba
Show file tree
Hide file tree
Showing 1,956 changed files with 3,906 additions and 288,270 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,8 @@ jobs:
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Execute tests Install
run: php artisan test modules/Tests/InstallTest.php
run: php artisan test vendor/juzaweb/modules/modules/Tests/InstallTest.php
- name: Install example plugin to test
run: composer require juzaweb/example
- name: Execute tests (Unit and Feature tests)
run: php artisan test
- name: Execute tests disabled frontend
run:
php artisan test modules/Tests/Feature/Auth
php artisan test modules/Tests/Feature/Backend
env:
JW_FRONTEND_ENABLE: false
- name: Execute tests Update
run: php artisan test modules/Tests/UpdateTest.php
- name: Execute tests after Update
run: php artisan test
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ yarn-error.log
/.vscode
/.php-cs-fixer.cache
/.deploy.yml
/public/jw-styles/juzaweb/build
4 changes: 4 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,9 @@
'method_argument_space' => ['ensure_fully_multiline' => false],
'no_break_comment' => false,
'blank_line_before_statement' => true,
'function_declaration' => [
'closure_fn_spacing' => 'none',
'closure_function_spacing' => 'one',
],
])
->setFinder($finder);
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ JUZACMS - Laravel CMS for Your Project

## About
![https://buymeacoffee.com/juzaweb](https://i.imgur.com/toObY8s.png)
[![Total Downloads](https://img.shields.io/packagist/dt/juzaweb/juzacms.svg?style=social)](https://packagist.org/packages/juzaweb/cms)
[![Total Downloads](https://img.shields.io/packagist/dt/juzaweb/cms.svg?style=social)](https://packagist.org/packages/juzaweb/cms)
[![GitHub Repo stars](https://img.shields.io/github/stars/juzaweb/cms?style=social)](https://github.com/juzaweb/cms)
[![GitHub followers](https://img.shields.io/github/followers/juzaweb?style=social)](https://github.com/juzaweb)
[![YouTube Channel Subscribers](https://img.shields.io/youtube/channel/subscribers/UCo6Dz9HjjBOJpgWsxkln0-A?style=social)](https://www.youtube.com/@juzaweb)
Expand Down Expand Up @@ -90,7 +90,6 @@ View all [JuzaWeb CMS documentation](https://juzaweb.com/documentation/plugin/cm
- [ ] Media api

## Plugins
* [E-Commerce](https://github.com/juzaweb/ecommerce) (developing)
* [Notification](https://github.com/juzaweb/notification)
* [Movie](https://github.com/juzaweb/movie)
* [Image Slider](https://github.com/juzaweb/image-slider)
Expand Down
202 changes: 1 addition & 201 deletions _ide_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -15639,206 +15639,6 @@ public static function flushMacros()
}
}

/**
*
*
* @see \Illuminate\Validation\Factory
*/
class Validator
{
/**
* Create a new Validator instance.
*
* @param array $data
* @param array $rules
* @param array $messages
* @param array $customAttributes
* @return \Illuminate\Validation\Validator
* @static
*/
public static function make($data, $rules, $messages = [], $customAttributes = [])
{
/** @var \Illuminate\Validation\Factory $instance */
return $instance->make($data, $rules, $messages, $customAttributes);
}

/**
* Validate the given data against the provided rules.
*
* @param array $data
* @param array $rules
* @param array $messages
* @param array $customAttributes
* @return array
* @throws \Illuminate\Validation\ValidationException
* @static
*/
public static function validate($data, $rules, $messages = [], $customAttributes = [])
{
/** @var \Illuminate\Validation\Factory $instance */
return $instance->validate($data, $rules, $messages, $customAttributes);
}

/**
* Register a custom validator extension.
*
* @param string $rule
* @param \Closure|string $extension
* @param string|null $message
* @return void
* @static
*/
public static function extend($rule, $extension, $message = null)
{
/** @var \Illuminate\Validation\Factory $instance */
$instance->extend($rule, $extension, $message);
}

/**
* Register a custom implicit validator extension.
*
* @param string $rule
* @param \Closure|string $extension
* @param string|null $message
* @return void
* @static
*/
public static function extendImplicit($rule, $extension, $message = null)
{
/** @var \Illuminate\Validation\Factory $instance */
$instance->extendImplicit($rule, $extension, $message);
}

/**
* Register a custom dependent validator extension.
*
* @param string $rule
* @param \Closure|string $extension
* @param string|null $message
* @return void
* @static
*/
public static function extendDependent($rule, $extension, $message = null)
{
/** @var \Illuminate\Validation\Factory $instance */
$instance->extendDependent($rule, $extension, $message);
}

/**
* Register a custom validator message replacer.
*
* @param string $rule
* @param \Closure|string $replacer
* @return void
* @static
*/
public static function replacer($rule, $replacer)
{
/** @var \Illuminate\Validation\Factory $instance */
$instance->replacer($rule, $replacer);
}

/**
* Indicate that unvalidated array keys should be included in validated data when the parent array is validated.
*
* @return void
* @static
*/
public static function includeUnvalidatedArrayKeys()
{
/** @var \Illuminate\Validation\Factory $instance */
$instance->includeUnvalidatedArrayKeys();
}

/**
* Indicate that unvalidated array keys should be excluded from the validated data, even if the parent array
* was validated.
*
* @return void
* @static
*/
public static function excludeUnvalidatedArrayKeys()
{
/** @var \Illuminate\Validation\Factory $instance */
$instance->excludeUnvalidatedArrayKeys();
}

/**
* Set the Validator instance resolver.
*
* @param \Closure $resolver
* @return void
* @static
*/
public static function resolver($resolver)
{
/** @var \Illuminate\Validation\Factory $instance */
$instance->resolver($resolver);
}

/**
* Get the Translator implementation.
*
* @return \Illuminate\Contracts\Translation\Translator
* @static
*/
public static function getTranslator()
{
/** @var \Illuminate\Validation\Factory $instance */
return $instance->getTranslator();
}

/**
* Get the Presence Verifier implementation.
*
* @return \Illuminate\Validation\PresenceVerifierInterface
* @static
*/
public static function getPresenceVerifier()
{
/** @var \Illuminate\Validation\Factory $instance */
return $instance->getPresenceVerifier();
}

/**
* Set the Presence Verifier implementation.
*
* @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
* @return void
* @static
*/
public static function setPresenceVerifier($presenceVerifier)
{
/** @var \Illuminate\Validation\Factory $instance */
$instance->setPresenceVerifier($presenceVerifier);
}

/**
* Get the container instance used by the validation factory.
*
* @return \Illuminate\Contracts\Container\Container|null
* @static
*/
public static function getContainer()
{
/** @var \Illuminate\Validation\Factory $instance */
return $instance->getContainer();
}

/**
* Set the container instance used by the validation factory.
*
* @param \Illuminate\Contracts\Container\Container $container
* @return \Illuminate\Validation\Factory
* @static
*/
public static function setContainer($container)
{
/** @var \Illuminate\Validation\Factory $instance */
return $instance->setContainer($container);
}
}

/**
*
*
Expand Down Expand Up @@ -21993,7 +21793,7 @@ class Lang extends \Illuminate\Support\Facades\Lang
}

/**
* @method static jwResource(string $uri, string $controller)
* @method static jwResource(string $uri, string $controller, array $ontions = [])
*/
class Route extends \Illuminate\Support\Facades\Route
{
Expand Down
2 changes: 1 addition & 1 deletion artisan
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ define('LARAVEL_START', microtime(true));
|
*/

require __DIR__.'/modules/autoload.php';
require __DIR__.'/vendor/juzaweb/modules/autoload.php';

$app = require_once __DIR__.'/bootstrap/app.php';

Expand Down
6 changes: 3 additions & 3 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of Laravel, and is
| the IoC container for the system binding all of the various parts.
| the IoC container for the system binding all the various parts.
|
*/

$app = new \Juzaweb\CMS\Support\Application(
$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
);

$app->useAppPath('modules/Backend');
$app->useAppPath('vendor/juzaweb/modules/Backend');

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -49,7 +49,7 @@
|--------------------------------------------------------------------------
|
| This script returns the application instance. The instance is given to
| the calling script so we can separate the building of the instances
| the calling script, so we can separate the building of the instances
| from the actual running of the application and sending responses.
|
*/
Expand Down
Loading

0 comments on commit e0c18ba

Please sign in to comment.