Skip to content

Releases: bedita/web-tools

Release 1.4.1

05 Jun 07:55
9118e6b
Compare
Choose a tag to compare

Backport of fix in 3.1.1 version

Release 2.4.0

04 Jun 13:30
5cff5be
Compare
Choose a tag to compare

Backport of ApiProxyTrait to 2.x branch. See Release 3.1.0

Release 1.4.0

04 Jun 13:29
89d120e
Compare
Choose a tag to compare

Backport of ApiProxyTrait to 1.x branch. See Release 3.1.0

Release 3.1.0

03 Jun 13:41
b787be0
Compare
Choose a tag to compare

Main changes are:

  • introduction of ApiProxyTrait to easily proxy requests to BEdita4 API in a controller. Only GET request are supported for now.
    To enable it create a controller as

    use BEdita\WebTools\Controller\ApiProxyTrait;
    use App\Controller\AppController;
    
    class ApiController extends AppController
    {
        use ApiProxyTrait;
    }

    and define the routing rule

    $routes->scope('/api', ['_namePrefix' => 'api:'], function (RouteBuilder $routes) {
        $routes->get('/**', ['controller' => 'Api', 'action' => 'get'], 'get');
    });

    Then you can do requests to /api/* route (for example via GET /api/users) obtaining the raw json response from the API. In the response the URL of the API will be masked with the app URL.

Release 3.0.1

19 May 15:48
cc6c53d
Compare
Choose a tag to compare

Main changes are:

  • ability to setup Twig environment via Twig.environment configuration key
  • default of strict_variables set to false

Release 3.0.0

06 May 10:56
4ffa37f
Compare
Choose a tag to compare

Main changes are:

  • code cleanup and removing of BaseApplication class replaced by Plugin
  • leave to the application level the task of adding DebugKit, Bake plugins and the application middleware stack
  • replace legacy TwigView view the new TwigView plugin

Release 2.3.0

06 Apr 10:09
53d2c5c
Compare
Choose a tag to compare

Add a more flexible way to load assets through specific stategies.

To load a strategy you should define in your app which strategy to use

use BEdita\WebTools\Utility\AssetRevisions;
use BEdita\WebTools\Utility\Asset\Strategy\EntrypointsStrategy;

AssetsRevisions::setStrategy(new EntrypointsStrategy());

There are two strategies at the moment:

  • RevManifestStrategy based on rev-manifest.json file generated by gulp-rev
  • EntrypointsStrategy based on the entrypoints.json file generated by Webpack Encore

But you can easily implements your custom strategy.

To load the proper assets you can use \BEdita\WebTools\View\Helper\HtmlHelper and its methods script(), css() and assets().

Release 2.2.0

25 Mar 16:13
07703fb
Compare
Choose a tag to compare

New ApiIdentifier to use with Authentication plugin.

Release 2.1.0

03 Mar 17:22
621f788
Compare
Choose a tag to compare

New WebComponentHelper to setup Custom Elements

Release 2.0.0

19 Feb 11:38
ec08fd7
Compare
Choose a tag to compare
  • Compatible with CakePHP 4.0