Skip to content

Commit 5d77679

Browse files
committed
Merge branch 'develop' into wip/table-min-max-items
2 parents 3826a61 + c2542b6 commit 5d77679

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+3957
-952
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
No matter how large or small your project is, Winter provides a rich development environment, regardless of your level of experience.
88

99
[![Version](https://img.shields.io/github/v/release/wintercms/winter?sort=semver&style=flat-square)](https://github.com/wintercms/winter/releases)
10-
[![Tests](https://img.shields.io/github/workflow/status/wintercms/winter/Tests/develop?label=tests&style=flat-square)](https://github.com/wintercms/winter/actions)
10+
[![Tests](https://img.shields.io/github/actions/workflow/status/wintercms/winter/tests.yml?branch=develop&label=tests&style=flat-square)](https://github.com/wintercms/winter/actions)
1111
[![License](https://img.shields.io/github/license/wintercms/winter?label=open%20source&style=flat-square)](https://packagist.org/packages/wintercms/winter)
1212
[![Discord](https://img.shields.io/discord/816852513684193281?label=discord&style=flat-square)](https://discord.gg/D5MFSPH6Ux)
1313

@@ -89,8 +89,7 @@ Winter CMS development is financially supported by the generosity of the followi
8989

9090
### Organizations
9191

92-
[![Spatial Media logo](https://cdn.ca.spatialmedia.io/media/images/sm-logo-dark-full.svg)](https://spatialmedia.io)
93-
Spatial Media employs two of the core contributors (Luke Towers & Jack Wilkinson) and contributes to the ongoing development of Winter.
92+
Spatial Media employs one of the core maintainers (Jack Wilkinson) who contributes to the ongoing development of Winter.
9493

9594
[![Froala logo](https://froala.com/wp-content/uploads/2019/10/froala.svg)](https://froala.com/wysiwyg-editor/)
9695

modules/backend/ServiceProvider.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php namespace Backend;
22

3-
use App;
43
use Backend;
54
use BackendMenu;
65
use BackendAuth;
@@ -20,6 +19,8 @@ class ServiceProvider extends ModuleServiceProvider
2019
*/
2120
public function register()
2221
{
22+
parent::register();
23+
2324
$this->registerConsole();
2425
$this->registerMailer();
2526
$this->registerAssetBundles();
@@ -28,7 +29,7 @@ public function register()
2829
/*
2930
* Backend specific
3031
*/
31-
if (App::runningInBackend()) {
32+
if ($this->app->runningInBackend()) {
3233
$this->registerBackendNavigation();
3334
$this->registerBackendReportWidgets();
3435
$this->registerBackendWidgets();
@@ -90,10 +91,8 @@ protected function registerAssetBundles()
9091
$combiner->registerBundle('~/modules/backend/formwidgets/fileupload/assets/less/fileupload.less');
9192
$combiner->registerBundle('~/modules/backend/formwidgets/nestedform/assets/less/nestedform.less');
9293
$combiner->registerBundle('~/modules/backend/formwidgets/richeditor/assets/js/build-plugins.js');
93-
$combiner->registerBundle('~/modules/backend/formwidgets/colorpicker/assets/less/colorpicker.less');
9494
$combiner->registerBundle('~/modules/backend/formwidgets/permissioneditor/assets/less/permissioneditor.less');
9595
$combiner->registerBundle('~/modules/backend/formwidgets/markdowneditor/assets/less/markdowneditor.less');
96-
$combiner->registerBundle('~/modules/backend/formwidgets/sensitive/assets/less/sensitive.less');
9796

9897
/*
9998
* Rich Editor is protected by DRM
@@ -229,6 +228,7 @@ protected function registerBackendWidgets()
229228
$manager->registerFormWidget('Backend\FormWidgets\MediaFinder', 'mediafinder');
230229
$manager->registerFormWidget('Backend\FormWidgets\NestedForm', 'nestedform');
231230
$manager->registerFormWidget('Backend\FormWidgets\Sensitive', 'sensitive');
231+
$manager->registerFormWidget('Backend\FormWidgets\IconPicker', 'iconpicker');
232232
});
233233
}
234234

modules/backend/assets/css/winter.css

+16-16
Original file line numberDiff line numberDiff line change
@@ -1065,22 +1065,22 @@ body.breadcrumb-fancy .control-breadcrumb li:last-child,
10651065
.control-breadcrumb.breadcrumb-fancy li:last-child{background-color:#d66908}
10661066
body.breadcrumb-fancy .control-breadcrumb li:last-child:before,
10671067
.control-breadcrumb.breadcrumb-fancy li:last-child:before{opacity:1;border-left-color:#d66908}
1068-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons,
1069-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons{-webkit-transition:all 0.5s;transition:all 0.5s;padding-top:14px;padding-bottom:5px}
1070-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons .btn,
1071-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons .btn{padding:0;margin-right:5px;margin-top:-6px;margin-right:30px;background:transparent;color:#fff;font-weight:normal;-webkit-box-shadow:none;box-shadow:none;opacity:0.5;filter:alpha(opacity=50);-webkit-transition:all 0.3s ease;transition:all 0.3s ease}
1072-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons .btn:hover,
1073-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons .btn:hover{opacity:1;filter:alpha(opacity=100)}
1074-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons .btn:last-child,
1075-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons .btn:last-child{margin-right:0}
1076-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons .btn[class^="wn-icon-"]:before,
1077-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons .btn[class^="wn-icon-"]:before,
1078-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons .btn[class*=" wn-icon-"]:before,
1079-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons .btn[class*=" wn-icon-"]:before,
1080-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons .btn[class^="oc-icon-"]:before,
1081-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons .btn[class^="oc-icon-"]:before,
1082-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons .btn[class*=" oc-icon-"]:before,
1083-
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons .btn[class*=" oc-icon-"]:before{opacity:1}
1068+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons:not(.normalized),
1069+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons:not(.normalized){-webkit-transition:all 0.5s;transition:all 0.5s;padding-top:14px;padding-bottom:5px}
1070+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons:not(.normalized) .btn,
1071+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons:not(.normalized) .btn{padding:0;margin-right:5px;margin-top:-6px;margin-right:30px;background:transparent;color:#fff;font-weight:normal;-webkit-box-shadow:none;box-shadow:none;opacity:0.5;filter:alpha(opacity=50);-webkit-transition:all 0.3s ease;transition:all 0.3s ease}
1072+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons:not(.normalized) .btn:hover,
1073+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons:not(.normalized) .btn:hover{opacity:1;filter:alpha(opacity=100)}
1074+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons:not(.normalized) .btn:last-child,
1075+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons:not(.normalized) .btn:last-child{margin-right:0}
1076+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons:not(.normalized) .btn[class^="wn-icon-"]:before,
1077+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons:not(.normalized) .btn[class^="wn-icon-"]:before,
1078+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons:not(.normalized) .btn[class*=" wn-icon-"]:before,
1079+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons:not(.normalized) .btn[class*=" wn-icon-"]:before,
1080+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons:not(.normalized) .btn[class^="oc-icon-"]:before,
1081+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons:not(.normalized) .btn[class^="oc-icon-"]:before,
1082+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .form-buttons:not(.normalized) .btn[class*=" oc-icon-"]:before,
1083+
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.form-tabless-fields .form-buttons:not(.normalized) .btn[class*=" oc-icon-"]:before{opacity:1}
10841084
.fancy-layout form[class$="-data-changed"] *:not(.nested-form)>.form-widget>.layout-row>.control-tabs .btn.save{opacity:1;filter:alpha(opacity=100)}
10851085
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs>.tab-content>.tab-pane>.form-group>.field-codeeditor{border:none !important;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}
10861086
.fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.control-tabs>.tab-content>.tab-pane>.form-group>.field-codeeditor .editor-code{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}

modules/backend/assets/less/layout/fancylayout.less

+2-2
Original file line numberDiff line numberDiff line change
@@ -641,8 +641,8 @@ body.breadcrumb-fancy .control-breadcrumb,
641641
// --- FORM BUTTONS
642642
//
643643

644-
.fancy-layout *:not(.nested-form) > .form-widget > .layout-row > .control-tabs .form-buttons,
645-
.fancy-layout *:not(.nested-form) > .form-widget > .layout-row > .form-tabless-fields .form-buttons {
644+
.fancy-layout *:not(.nested-form) > .form-widget > .layout-row > .control-tabs .form-buttons:not(.normalized),
645+
.fancy-layout *:not(.nested-form) > .form-widget > .layout-row > .form-tabless-fields .form-buttons:not(.normalized) {
646646
.transition(all 0.5s);
647647
padding-top: 14px;
648648
padding-bottom: 5px;

modules/backend/assets/ui/js/ajax/Handler.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { delegate } from 'jquery-events-to-dom-events';
2+
13
/**
24
* Backend AJAX handler.
35
*
@@ -36,6 +38,12 @@ export default class Handler extends Snowboard.Singleton {
3638
return;
3739
}
3840

41+
// Add global event for rendering in Snowboard
42+
delegate('render');
43+
document.addEventListener('$render', () => {
44+
this.snowboard.globalEvent('render');
45+
});
46+
3947
// Add "render" event for backwards compatibility
4048
window.jQuery(document).trigger('render');
4149
}

modules/backend/assets/ui/js/build/backend.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/backend/assets/ui/js/build/manifest.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/backend/assets/ui/js/build/vendor.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/backend/assets/ui/js/index.js

+9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
import * as Vue from 'vue';
12
import BackendAjaxHandler from './ajax/Handler';
3+
import BackendUiEventHandler from './ui/EventHandler';
4+
import BackendUiWidgetHandler from './ui/WidgetHandler';
25

36
if (window.Snowboard === undefined) {
47
throw new Error('Snowboard must be loaded in order to use the Backend UI.');
58
}
69

710
((Snowboard) => {
811
Snowboard.addPlugin('backend.ajax.handler', BackendAjaxHandler);
12+
Snowboard.addPlugin('backend.ui.eventHandler', BackendUiEventHandler);
13+
Snowboard.addPlugin('backend.ui.widgetHandler', BackendUiWidgetHandler);
14+
915
// Add the pre-filter immediately
1016
Snowboard['backend.ajax.handler']().addPrefilter();
1117

@@ -23,3 +29,6 @@ if (window.Snowboard === undefined) {
2329
};
2430
window.assetManager = window.AssetManager;
2531
})(window.Snowboard);
32+
33+
// Add Vue to global scope
34+
window.Vue = Vue;

0 commit comments

Comments
 (0)