Skip to content

Commit

Permalink
chore: change package structure for vendormodule type
Browse files Browse the repository at this point in the history
  • Loading branch information
Severin Hauser committed Mar 15, 2023
1 parent 9b23081 commit e746f67
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 43 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 9 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "flxlabs/silverstripe-pagesections",
"version": "0.1.2",
"description": "Adds configurable page sections and elements to your SilverStripe project.",
"type": "silverstripe-module",
"type": "silverstripe-vendormodule",
"homepage": "http://github.com/flxlabs/silverstripe-pagesections",
"keywords": [
"silverstripe",
Expand All @@ -21,21 +20,19 @@
"support": {
"issues": "http://github.com/flxlabs/silverstripe-pagesections/issues"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/flxlabs/silverstripe-gridfield-betterbuttons"
}
],
"require": {
"silverstripe/framework": "^4.3.0",
"symbiote/silverstripe-gridfieldextensions": "^3"
"symbiote/silverstripe-gridfieldextensions": "^3",
"silverstripe/vendor-plugin": "^1.0"
},
"autoload": {
"psr-4": {
"FlxLabs\\PageSections\\": "src/"
}
},
"extra": {
"installer-name": "pagesections",
"expose": [
"css",
"javascript"
"client"
]
}
}
11 changes: 0 additions & 11 deletions resources/.htaccess

This file was deleted.

1 change: 0 additions & 1 deletion resources/.method

This file was deleted.

1 change: 0 additions & 1 deletion resources/silverstripe/framework/client/images

This file was deleted.

1 change: 0 additions & 1 deletion resources/silverstripe/framework/client/styles

This file was deleted.

1 change: 0 additions & 1 deletion resources/silverstripe/framework/src/Dev/Install/client

This file was deleted.

1 change: 0 additions & 1 deletion resources/symbiote/silverstripe-gridfieldextensions/css

This file was deleted.

This file was deleted.

17 changes: 3 additions & 14 deletions src/TreeView.php
Original file line number Diff line number Diff line change
Expand Up @@ -600,27 +600,16 @@ public function getSortField()
return $this->sortField;
}

/**
* Gets the directory name of this module
*
* @return string
*/
public static function getModuleDir()
{
return basename(dirname(__DIR__));
}

/**
* Renders this TreeView as an HTML tag
* @param array $properties The additional properties for the TreeView
* @return string
*/
public function FieldHolder($properties = array())
{
$moduleDir = self::getModuleDir();
Requirements::css($moduleDir . "/css/TreeView.css");
Requirements::javascript($moduleDir . "/javascript/TreeView.js");
Requirements::add_i18n_javascript($moduleDir . '/javascript/lang', false, true);
Requirements::css("flxlabs/silverstripe-pagesections:client/css/TreeView.css");
Requirements::javascript("flxlabs/silverstripe-pagesections:client/javascript/TreeView.js");
Requirements::add_i18n_javascript('flxlabs/silverstripe-pagesections:client/javascript/lang', false, true);

// Ensure $id doesn't contain only numeric characters
$sessionId = 'ps_tv_' . substr(md5(serialize($this->opens)), 0, 8);
Expand Down

0 comments on commit e746f67

Please sign in to comment.