mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Merge pull request #218 from creative-commoners/pulls/3.0/vendorise
API Install GridFieldExtensions to vendor folder, remove get_module_dir
This commit is contained in:
commit
091954d987
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "symbiote/silverstripe-gridfieldextensions",
|
"name": "symbiote/silverstripe-gridfieldextensions",
|
||||||
"description": "A collection of useful grid field components",
|
"description": "A collection of useful grid field components",
|
||||||
"type": "silverstripe-module",
|
"type": "silverstripe-vendormodule",
|
||||||
"homepage": "http://github.com/symbiote/silverstripe-gridfieldextensions",
|
"homepage": "http://github.com/symbiote/silverstripe-gridfieldextensions",
|
||||||
"keywords": ["silverstripe", "gridfield"],
|
"keywords": ["silverstripe", "gridfield"],
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
@ -19,6 +19,7 @@
|
|||||||
"issues": "http://github.com/symbiote/silverstripe-gridfieldextensions/issues"
|
"issues": "http://github.com/symbiote/silverstripe-gridfieldextensions/issues"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
"silverstripe/vendor-plugin": "^1.0",
|
||||||
"silverstripe/framework": "~4.0"
|
"silverstripe/framework": "~4.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
@ -34,6 +35,10 @@
|
|||||||
"screenshots": [
|
"screenshots": [
|
||||||
"docs/en/_images/editable-rows.png",
|
"docs/en/_images/editable-rows.png",
|
||||||
"docs/en/_images/add-existing-search.png"
|
"docs/en/_images/add-existing-search.png"
|
||||||
|
],
|
||||||
|
"expose": [
|
||||||
|
"css",
|
||||||
|
"javascript"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
|
@ -9,16 +9,9 @@ use SilverStripe\View\Requirements;
|
|||||||
*/
|
*/
|
||||||
class GridFieldExtensions
|
class GridFieldExtensions
|
||||||
{
|
{
|
||||||
|
|
||||||
public static function include_requirements()
|
public static function include_requirements()
|
||||||
{
|
{
|
||||||
$moduleDir = self::get_module_dir();
|
Requirements::css('symbiote/silverstripe-gridfieldextensions:css/GridFieldExtensions.css');
|
||||||
Requirements::css($moduleDir.'/css/GridFieldExtensions.css');
|
Requirements::javascript('symbiote/silverstripe-gridfieldextensions:javascript/GridFieldExtensions.js');
|
||||||
Requirements::javascript($moduleDir.'/javascript/GridFieldExtensions.js');
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function get_module_dir()
|
|
||||||
{
|
|
||||||
return basename(dirname(__DIR__));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user