mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
b6a2c608ac
Previous versions had individual spam and approve buttons for a comment in the admin area on the GridField row. However with the upgrade to SilverStripe 4, and particularly 4.2, these were having layout issues with the new GridField Action Menu component that groups actions together. The solution here is to put them into aforementioned gridfield action menu component, with the other actions for that row. However this requires two separate grid field components (one each for the two comment actions) - previously these were a single component that output two buttons instead of one each. This also reduces coupling, which is nice :) The previous class is still maintained for backwards compatibilty, but is deprecated.
48 lines
1.3 KiB
JSON
48 lines
1.3 KiB
JSON
{
|
|
"name": "silverstripe/comments",
|
|
"description": "This module provides commenting functionality for Pages and other DataObjects on your SilverStripe site.",
|
|
"type": "silverstripe-vendormodule",
|
|
"keywords": [
|
|
"silverstripe",
|
|
"comments"
|
|
],
|
|
"authors": [
|
|
{
|
|
"name": "Will Rossiter",
|
|
"email": "will@fullscreen.io"
|
|
}
|
|
],
|
|
"require": {
|
|
"silverstripe/framework": "^4.2",
|
|
"colymba/gridfield-bulk-editing-tools": "^3.0"
|
|
},
|
|
"suggest": {
|
|
"ezyang/htmlpurifier": "Standards compliant HTML filter written in PHP",
|
|
"silverstripe/cms": "The SilverStripe Content Management System"
|
|
},
|
|
"require-dev": {
|
|
"phpunit/phpunit": "^5.7",
|
|
"squizlabs/php_codesniffer": "^3.0"
|
|
},
|
|
"extra": {
|
|
"expose": [
|
|
"css",
|
|
"javascript",
|
|
"thirdparty"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"lint": "vendor/bin/phpcs src/ tests/",
|
|
"fix": "vendor/bin/phpcbf src/ tests/"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"SilverStripe\\Comments\\": "src/",
|
|
"SilverStripe\\Comments\\Tests\\": "tests/"
|
|
}
|
|
},
|
|
"license": "BSD-3-Clause",
|
|
"minimum-stability": "dev",
|
|
"prefer-stable": true
|
|
}
|