nodebb-plugin-composer-default 10.0.4 → 10.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/library.js
CHANGED
|
@@ -105,22 +105,6 @@ plugin.getFormattingOptions = async function () {
|
|
|
105
105
|
|
|
106
106
|
payload = await plugins.hooks.fire('filter:composer.formatting', payload);
|
|
107
107
|
|
|
108
|
-
// TODO: Backwards compatibility -- remove in v1.16.0
|
|
109
|
-
payload.options = payload.options.map((option) => {
|
|
110
|
-
option.visibility = {
|
|
111
|
-
...defaultVisibility,
|
|
112
|
-
...option.visibility || {},
|
|
113
|
-
};
|
|
114
|
-
if (option.hasOwnProperty('mobile')) {
|
|
115
|
-
winston.warn('[composer/formatting] `mobile` is no longer supported as a formatting option, use `visibility` instead (default values are passed in payload)');
|
|
116
|
-
option.visibility.mobile = option.mobile;
|
|
117
|
-
option.visibility.desktop = !option.mobile;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
return option;
|
|
121
|
-
});
|
|
122
|
-
// end
|
|
123
|
-
|
|
124
108
|
return payload ? payload.options : null;
|
|
125
109
|
};
|
|
126
110
|
|
package/package.json
CHANGED
|
@@ -85,6 +85,7 @@ define('composer/categoryList', [
|
|
|
85
85
|
var uuid = postContainer.attr('data-uuid');
|
|
86
86
|
taskbar.update('composer', uuid, {
|
|
87
87
|
image: category.backgroundImage,
|
|
88
|
+
color: category.color,
|
|
88
89
|
'background-color': category.bgColor,
|
|
89
90
|
icon: category.icon && category.icon.slice(3),
|
|
90
91
|
});
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
|
|
99
99
|
<div class="write-preview-container">
|
|
100
100
|
<div class="write-container me-1">
|
|
101
|
-
<div class="help-text text-
|
|
101
|
+
<div class="help-text text-black-50 ">
|
|
102
102
|
<span class="help hidden">[[modules:composer.compose]] <i class="fa fa-question-circle"></i></span>
|
|
103
103
|
<span class="toggle-preview hide">[[modules:composer.show_preview]]</span>
|
|
104
104
|
</div>
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
<textarea class="write" tabindex="4" placeholder="[[modules:composer.textarea.placeholder]]">{body}</textarea>
|
|
107
107
|
</div>
|
|
108
108
|
<div class="hidden-sm hidden-xs preview-container ms-1">
|
|
109
|
-
<div class="help-text text-
|
|
109
|
+
<div class="help-text text-black-50">
|
|
110
110
|
<span class="toggle-preview">[[modules:composer.hide_preview]]</span>
|
|
111
111
|
</div>
|
|
112
112
|
<div class="preview card card-body bg-light"></div>
|