Merge remote-tracking branch 'origin/develop' into wip/laravel-6

This commit is contained in:
Ben Thomson 2020-05-18 08:35:03 +08:00
commit 5c8f567323
No known key found for this signature in database
GPG Key ID: E2B9C73B52D15AA0
6 changed files with 46 additions and 34 deletions

View File

@ -8,19 +8,19 @@ jobs:
archive:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v1
- uses: actions/stale@v1.1.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
days-before-stale: 60
days-before-close: 3
stale-issue-message: >
This issue will be closed and archived in 3 days, as there has been no activity in the last 30 days.
This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days.
If this issue is still relevant or you would like to see it actioned, please respond and we will re-open this issue.
If this issue is critical to your business, consider joining the [Premium Support Program](https://octobercms.com/premium-support) where a Service Level Agreement is offered.
stale-pr-message: >
This pull request will be closed and archived in 3 days, as there has been no activity in the last 30 days.
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days.
If this is still being worked on, please respond and we will re-open this pull request.

View File

@ -232,38 +232,41 @@ class ListController extends ControllerBehavior
* Prepare the filter widget (optional)
*/
if (isset($listConfig->filter)) {
$widget->cssClasses[] = 'list-flush';
$filterConfig = $this->makeConfig($listConfig->filter);
$filterConfig->alias = $widget->alias . 'Filter';
$filterWidget = $this->makeWidget(\Backend\Widgets\Filter::class, $filterConfig);
$filterWidget->bindToController();
if (!empty($filterConfig->scopes)) {
$widget->cssClasses[] = 'list-flush';
/*
* Filter the list when the scopes are changed
*/
$filterWidget->bindEvent('filter.update', function () use ($widget, $filterWidget) {
return $widget->onFilter();
});
$filterConfig->alias = $widget->alias . 'Filter';
$filterWidget = $this->makeWidget(\Backend\Widgets\Filter::class, $filterConfig);
$filterWidget->bindToController();
/*
* Filter Widget with extensibility
*/
$filterWidget->bindEvent('filter.extendScopes', function () use ($filterWidget) {
$this->controller->listFilterExtendScopes($filterWidget);
});
/*
* Filter the list when the scopes are changed
*/
$filterWidget->bindEvent('filter.update', function () use ($widget, $filterWidget) {
return $widget->onFilter();
});
/*
* Extend the query of the list of options
*/
$filterWidget->bindEvent('filter.extendQuery', function ($query, $scope) {
$this->controller->listFilterExtendQuery($query, $scope);
});
/*
* Filter Widget with extensibility
*/
$filterWidget->bindEvent('filter.extendScopes', function () use ($filterWidget) {
$this->controller->listFilterExtendScopes($filterWidget);
});
// Apply predefined filter values
$widget->addFilter([$filterWidget, 'applyAllScopesToQuery']);
/*
* Extend the query of the list of options
*/
$filterWidget->bindEvent('filter.extendQuery', function ($query, $scope) {
$this->controller->listFilterExtendQuery($query, $scope);
});
$this->filterWidgets[$definition] = $filterWidget;
// Apply predefined filter values
$widget->addFilter([$filterWidget, 'applyAllScopesToQuery']);
$this->filterWidgets[$definition] = $filterWidget;
}
}
return $widget;

View File

@ -3,7 +3,7 @@
use Yaml;
/**
* The CMS meta file class, used for interacting with YAML files within the Halycon datasources
* The CMS meta file class, used for interacting with YAML files within the Halcyon datasources
*
* @package october\cms
* @author Luke Towers

View File

@ -59,7 +59,7 @@ class Theme
{
$theme = new static;
$theme->setDirName($dirName);
$theme->registerHalyconDatasource();
$theme->registerHalcyonDatasource();
return $theme;
}
@ -547,7 +547,7 @@ class Theme
* Ensures this theme is registered as a Halcyon datasource.
* @return void
*/
public function registerHalyconDatasource()
public function registerHalcyonDatasource()
{
$resolver = App::make('halcyon');

View File

@ -47,6 +47,15 @@ Allows a user to select from a list of binary options.
</div>
</div>
### Indeterminate checkboxes
<div class="checkbox custom-checkbox is-indeterminate">
<input name="checkbox" value="1" type="checkbox" id="checkbox1" data-checked="1" />
<label for="checkbox1">Checkbox</label>
</div>
The `data-checked` attribute may have one of three values: 0 (off), 1 (indeterminate) or 2 (on).
### Radio
<div class="radio custom-radio">

View File

@ -207,7 +207,7 @@ class ThemeSync extends Command
* @param string $path
* @param string $model
* @param \Cms\Classes\Theme $theme
* @return \October\Rain\Halycon\Model
* @return \October\Rain\Halcyon\Model
*/
protected function getModelForPath($path, $modelClass, $theme)
{