Changed namespacing so the fix is usable as long as the fix is not merged
This commit is contained in:
parent
d57ea0bd46
commit
d333fad49c
18
.upgrade.yml
18
.upgrade.yml
|
@ -1,10 +1,10 @@
|
|||
mappings:
|
||||
GridFieldBulkActionDeleteHandler: Colymba\BulkManager\BulkAction\DeleteHandler
|
||||
GridFieldBulkActionEditHandler: Colymba\BulkManager\BulkAction\EditHandler
|
||||
GridFieldBulkActionHandler: Colymba\BulkManager\BulkAction\Handler
|
||||
GridFieldBulkActionUnlinkHandler: Colymba\BulkManager\BulkAction\UnlinkHandler
|
||||
GridFieldBulkManager: Colymba\BulkManager\BulkManager
|
||||
BulkUploadField: Colymba\BulkUpload\BulkUploadField
|
||||
GridFieldBulkImageUpload: Colymba\BulkUpload\GridFieldBulkImageUpload
|
||||
GridFieldBulkUpload: Colymba\BulkUpload\BulkUploader
|
||||
GridFieldBulkUpload_Request: Colymba\BulkUpload\BulkUploadHandler
|
||||
GridFieldBulkActionDeleteHandler: Violet88\BulkManager\BulkAction\DeleteHandler
|
||||
GridFieldBulkActionEditHandler: Violet88\BulkManager\BulkAction\EditHandler
|
||||
GridFieldBulkActionHandler: Violet88\BulkManager\BulkAction\Handler
|
||||
GridFieldBulkActionUnlinkHandler: Violet88\BulkManager\BulkAction\UnlinkHandler
|
||||
GridFieldBulkManager: Violet88\BulkManager\BulkManager
|
||||
BulkUploadField: Violet88\BulkUpload\BulkUploadField
|
||||
GridFieldBulkImageUpload: Violet88\BulkUpload\GridFieldBulkImageUpload
|
||||
GridFieldBulkUpload: Violet88\BulkUpload\BulkUploader
|
||||
GridFieldBulkUpload_Request: Violet88\BulkUpload\BulkUploadHandler
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
SilverStripe\Admin\LeftAndMain:
|
||||
extra_requirements_javascript:
|
||||
- 'colymba/gridfield-bulk-editing-tools: client/dist/js/main.js'
|
||||
- 'violet88/gridfield-bulk-editing-tools: client/dist/js/main.js'
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import jQuery from 'jquery';
|
||||
import i18n from 'i18n';
|
||||
|
||||
jQuery.entwine('colymba', ($) => {
|
||||
jQuery.entwine('violet88', ($) => {
|
||||
/**
|
||||
* Makes sure the component is above the headers
|
||||
*/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* global window */
|
||||
import jQuery from 'jquery';
|
||||
|
||||
jQuery.entwine('colymba', ($) => {
|
||||
jQuery.entwine('violet88', ($) => {
|
||||
/**
|
||||
* Toggle all accordion forms
|
||||
* open or closed
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "colymba/gridfield-bulk-editing-tools",
|
||||
"name": "violet88/gridfield-bulk-editing-tools",
|
||||
"type": "silverstripe-vendormodule",
|
||||
"description": "SilverStripe GridField component to upload images/files and edit records in bulk",
|
||||
"homepage": "https://github.com/colymba/GridFieldBulkEditingTools",
|
||||
|
@ -30,9 +30,9 @@
|
|||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Colymba\\BulkTools\\": "src/BulkTools/",
|
||||
"Colymba\\BulkManager\\": "src/BulkManager/",
|
||||
"Colymba\\BulkUpload\\": "src/BulkUploader/"
|
||||
"Violet88\\BulkTools\\": "src/BulkTools/",
|
||||
"Violet88\\BulkManager\\": "src/BulkManager/",
|
||||
"Violet88\\BulkUpload\\": "src/BulkUploader/"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ $config->addComponent(new \Colymba\BulkManager\BulkManager());
|
|||
The component's options can be configurated individually or in bulk through the 'config' functions like this:
|
||||
|
||||
```php
|
||||
$config->getComponentByType('Colymba\\BulkManager\\BulkManager')->setConfig($reference, $value);
|
||||
$config->getComponentByType('Violet88\\BulkManager\\BulkManager')->setConfig($reference, $value);
|
||||
```
|
||||
|
||||
### $config overview
|
||||
|
@ -27,12 +27,12 @@ To add a custom bulk action to the list use:
|
|||
|
||||
```php
|
||||
$config
|
||||
->getComponentByType('Colymba\\BulkManager\\BulkManager')
|
||||
->getComponentByType('Violet88\\BulkManager\\BulkManager')
|
||||
->addBulkAction('Namespace\\ClassName')
|
||||
```
|
||||
|
||||
#### Custom action handler
|
||||
When creating your own bulk action `RequestHandler`, you should extend `Colymba\BulkManager\BulkAction\Handler` which will expose 2 useful functions `getRecordIDList()` and `getRecords()` returning either an array with the selected records IDs or a `DataList` of the selected records.
|
||||
When creating your own bulk action `RequestHandler`, you should extend `Violet88\BulkManager\BulkAction\Handler` which will expose 2 useful functions `getRecordIDList()` and `getRecords()` returning either an array with the selected records IDs or a `DataList` of the selected records.
|
||||
|
||||
Make sure to define the handler's `$url_segment`, from which the handler will be called and its relating `$allowed_actions` and `$url_handlers`. See `Handler`, `DeleteHandler` and `UnlinkHandler` for examples.
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace Colymba\BulkManager\BulkAction;
|
||||
namespace Violet88\BulkManager\BulkAction;
|
||||
|
||||
use Colymba\BulkManager\BulkAction\Handler;
|
||||
use Colymba\BulkTools\HTTPBulkToolsResponse;
|
||||
use Violet88\BulkManager\BulkAction\Handler;
|
||||
use Violet88\BulkTools\HTTPBulkToolsResponse;
|
||||
use SilverStripe\Core\Convert;
|
||||
use SilverStripe\Control\HTTPRequest;
|
||||
use SilverStripe\Control\HTTPResponse;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace Colymba\BulkManager\BulkAction;
|
||||
namespace Violet88\BulkManager\BulkAction;
|
||||
|
||||
use Colymba\BulkManager\BulkAction\Handler;
|
||||
use Colymba\BulkTools\HTTPBulkToolsResponse;
|
||||
use Violet88\BulkManager\BulkAction\Handler;
|
||||
use Violet88\BulkTools\HTTPBulkToolsResponse;
|
||||
use SilverStripe\Control\HTTPRequest;
|
||||
use SilverStripe\Control\HTTPResponse;
|
||||
use SilverStripe\Core\Convert;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Colymba\BulkManager\BulkAction;
|
||||
namespace Violet88\BulkManager\BulkAction;
|
||||
|
||||
use Colymba\BulkManager\BulkAction\Handler;
|
||||
use Violet88\BulkManager\BulkAction\Handler;
|
||||
use SilverStripe\Control\Controller;
|
||||
use SilverStripe\Core\Convert;
|
||||
use SilverStripe\Control\HTTPResponse;
|
||||
|
@ -368,9 +368,9 @@ class EditHandler extends Handler
|
|||
$form->addExtraClass('center cms-content');
|
||||
$form->setAttribute('data-pjax-fragment', 'CurrentForm Content');
|
||||
|
||||
Requirements::javascript('colymba/gridfield-bulk-editing-tools:client/dist/js/main.js');
|
||||
Requirements::css('colymba/gridfield-bulk-editing-tools:client/dist/styles/main.css');
|
||||
Requirements::add_i18n_javascript('colymba/gridfield-bulk-editing-tools:lang');
|
||||
Requirements::javascript('violet88/gridfield-bulk-editing-tools:client/dist/js/main.js');
|
||||
Requirements::css('violet88/gridfield-bulk-editing-tools:client/dist/styles/main.css');
|
||||
Requirements::add_i18n_javascript('violet88/gridfield-bulk-editing-tools:lang');
|
||||
|
||||
if ($this->request->isAjax()) {
|
||||
$response = new HTTPResponse(
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Colymba\BulkManager\BulkAction;
|
||||
namespace Violet88\BulkManager\BulkAction;
|
||||
|
||||
use SilverStripe\Control\Controller;
|
||||
use SilverStripe\Control\RequestHandler;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace Colymba\BulkManager\BulkAction;
|
||||
namespace Violet88\BulkManager\BulkAction;
|
||||
|
||||
use Colymba\BulkManager\BulkAction\Handler;
|
||||
use Colymba\BulkTools\HTTPBulkToolsResponse;
|
||||
use Violet88\BulkManager\BulkAction\Handler;
|
||||
use Violet88\BulkTools\HTTPBulkToolsResponse;
|
||||
use SilverStripe\Core\Convert;
|
||||
use SilverStripe\Control\HTTPRequest;
|
||||
use SilverStripe\Control\HTTPResponse;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace Colymba\BulkManager\BulkAction;
|
||||
namespace Violet88\BulkManager\BulkAction;
|
||||
|
||||
use Colymba\BulkManager\BulkAction\Handler;
|
||||
use Colymba\BulkTools\HTTPBulkToolsResponse;
|
||||
use Violet88\BulkManager\BulkAction\Handler;
|
||||
use Violet88\BulkTools\HTTPBulkToolsResponse;
|
||||
use SilverStripe\Core\Convert;
|
||||
use SilverStripe\Control\HTTPRequest;
|
||||
use SilverStripe\Control\HTTPResponse;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace Colymba\BulkManager\BulkAction;
|
||||
namespace Violet88\BulkManager\BulkAction;
|
||||
|
||||
use Colymba\BulkManager\BulkAction\Handler;
|
||||
use Colymba\BulkTools\HTTPBulkToolsResponse;
|
||||
use Violet88\BulkManager\BulkAction\Handler;
|
||||
use Violet88\BulkTools\HTTPBulkToolsResponse;
|
||||
use SilverStripe\Core\Convert;
|
||||
use SilverStripe\Control\HTTPRequest;
|
||||
use SilverStripe\Control\HTTPResponse;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Colymba\BulkManager;
|
||||
namespace Violet88\BulkManager;
|
||||
|
||||
use ReflectionClass;
|
||||
use SilverStripe\Control\HTTPRequest;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Colymba\BulkTools;
|
||||
namespace Violet88\BulkTools;
|
||||
|
||||
use SilverStripe\Control\HTTPResponse;
|
||||
use SilverStripe\Forms\GridField\GridField;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Colymba\BulkUpload;
|
||||
namespace Violet88\BulkUpload;
|
||||
|
||||
use SilverStripe\Control\Controller;
|
||||
//use SilverStripe\Forms\UploadField;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Colymba\BulkUpload;
|
||||
namespace Violet88\BulkUpload;
|
||||
|
||||
use Colymba\BulkTools\HTTPBulkToolsResponse;
|
||||
use Violet88\BulkTools\HTTPBulkToolsResponse;
|
||||
use SilverStripe\Control\Controller;
|
||||
use SilverStripe\Control\RequestHandler;
|
||||
use SilverStripe\Control\HTTPRequest;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Colymba\BulkUpload;
|
||||
namespace Violet88\BulkUpload;
|
||||
|
||||
use SilverStripe\ORM\DataObject;
|
||||
use SilverStripe\View\ArrayData;
|
||||
|
@ -295,11 +295,11 @@ class BulkUploader implements GridField_HTMLProvider, GridField_URLHandler
|
|||
));
|
||||
//This one is no longer needed since the javascript is now loaded at the top of the cms
|
||||
//Requirements::javascript('colymba/gridfield-bulk-editing-tools:client/dist/js/main.js');
|
||||
Requirements::css('colymba/gridfield-bulk-editing-tools:client/dist/styles/main.css');
|
||||
Requirements::add_i18n_javascript('colymba/gridfield-bulk-editing-tools:client/lang');
|
||||
Requirements::css('violet88/gridfield-bulk-editing-tools:client/dist/styles/main.css');
|
||||
Requirements::add_i18n_javascript('violet88/gridfield-bulk-editing-tools:client/lang');
|
||||
|
||||
return array(
|
||||
'before' => $data->renderWith('Colymba\\BulkUpload\\BulkUploader'),
|
||||
'before' => $data->renderWith('Violet88\\BulkUpload\\BulkUploader'),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue