Skip to content

Commit

Permalink
Switch to silverstripe-vendormodule
Browse files Browse the repository at this point in the history
  • Loading branch information
axllent committed Oct 17, 2017
1 parent 4e31946 commit 88f38b7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,26 @@

Notable changes to this project will be documented in this file.

## [2.0.2]

- Switch to silverstripe-vendormodule


## [2.0.1]

- Fix padding & add hover effect


## [2.0.0]

- - Support for SilverStripe 4
- Support for SilverStripe 4


## [1.1.0]

- Fix SilverStripe framework version requirement


## [1.0.0]

- Adopt semantic versioning releases
10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "axllent/silverstripe-tiled-gridfield",
"description": "Inline/tiled images in a SilverStripe GridField table",
"type": "silverstripe-module",
"type": "silverstripe-vendormodule",
"homepage": "https://github.com/axllent/silverstripe-tiled-gridfield",
"keywords": [
"silverstripe",
Expand All @@ -21,8 +21,14 @@
"issues": "https://github.com/axllent/silverstripe-tiled-gridfield/issues"
},
"require": {
"silverstripe/framework": "^4.0@dev"
"silverstripe/vendor-plugin": "^1.0",
"silverstripe/framework": "^4.0"
},
"extra": {
"expose": [
"css"
]
},
"autoload": {
"psr-4": {
"Axllent\\TiledGridField\\": "src/"
Expand Down
8 changes: 1 addition & 7 deletions src/LeftAndMainTiledGridFieldExt.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@
*/
class LeftAndMainTiledGridFieldExt extends LeftAndMainExtension
{

public function init()
{
parent::init();
Requirements::css($this->ModuleBase() . '/css/tiled-gridfield.css');
}

private function ModuleBase()
{
return basename(dirname(dirname(__FILE__)));
Requirements::css('axllent/silverstripe-tiled-gridfield: css/tiled-gridfield.css');
}
}

0 comments on commit 88f38b7

Please sign in to comment.