2
0
Эх сурвалжийг харах

Remove/update old comments

JC Brand 3 жил өмнө
parent
commit
5d3da20bd9

+ 0 - 13
src/headless/plugins/headlines/index.js

@@ -1,7 +1,6 @@
 /**
  * @module converse-headlines
  * @copyright 2022, the Converse.js contributors
- * @description XEP-0045 Multi-User Chat Views
  */
 import HeadlinesFeed from './feed.js';
 import headlines_api from './api.js';
@@ -10,24 +9,12 @@ import { onHeadlineMessage } from './utils.js';
 
 
 converse.plugins.add('converse-headlines', {
-    /* Plugin dependencies are other plugins which might be
-     * overridden or relied upon, and therefore need to be loaded before
-     * this plugin.
-     *
-     * If the setting "strict_plugin_dependencies" is set to true,
-     * an error will be raised if the plugin is not found. By default it's
-     * false, which means these plugins are only loaded opportunistically.
-     *
-     * NB: These plugins need to have already been loaded via require.js.
-     */
     dependencies: ["converse-chat"],
 
     overrides: {
         // Overrides mentioned here will be picked up by converse.js's
         // plugin architecture they will replace existing methods on the
         // relevant objects or classes.
-        //
-        // New functions which don't exist yet can also be added.
 
         ChatBoxes: {
             model (attrs, options) {

+ 0 - 12
src/headless/plugins/muc/index.js

@@ -121,18 +121,6 @@ converse.ROOMSTATUS = {
 };
 
 converse.plugins.add('converse-muc', {
-    /* Optional dependencies are other plugins which might be
-     * overridden or relied upon, and therefore need to be loaded before
-     * this plugin. They are called "optional" because they might not be
-     * available, in which case any overrides applicable to them will be
-     * ignored.
-     *
-     * It's possible however to make optional dependencies non-optional.
-     * If the setting "strict_plugin_dependencies" is set to true,
-     * an error will be raised if the plugin is not found.
-     *
-     * NB: These plugins need to have already been loaded via require.js.
-     */
     dependencies: ['converse-chatboxes', 'converse-chat', 'converse-disco'],
 
     overrides: {

+ 4 - 0
src/headless/plugins/vcard/index.js

@@ -23,6 +23,10 @@ converse.plugins.add('converse-vcard', {
 
     dependencies: ["converse-status", "converse-roster"],
 
+    // Overrides mentioned here will be picked up by converse.js's
+    // plugin architecture they will replace existing methods on the
+    // relevant objects or classes.
+    // New functions which don't exist yet can also be added.
     overrides: {
         XMPPStatus: {
             getNickname () {

+ 4 - 8
src/plugins/controlbox/index.js

@@ -25,8 +25,6 @@ converse.plugins.add('converse-controlbox', {
      * If the setting "strict_plugin_dependencies" is set to true,
      * an error will be raised if the plugin is not found. By default it's
      * false, which means these plugins are only loaded opportunistically.
-     *
-     * NB: These plugins need to have already been loaded via require.js.
      */
     dependencies: ['converse-modal', 'converse-chatboxes', 'converse-chat', 'converse-rosterview', 'converse-chatview'],
 
@@ -34,13 +32,11 @@ converse.plugins.add('converse-controlbox', {
         return !_converse.api.settings.get('singleton');
     },
 
+    // Overrides mentioned here will be picked up by converse.js's
+    // plugin architecture they will replace existing methods on the
+    // relevant objects or classes.
+    // New functions which don't exist yet can also be added.
     overrides: {
-        // Overrides mentioned here will be picked up by converse.js's
-        // plugin architecture they will replace existing methods on the
-        // relevant objects or classes.
-        //
-        // New functions which don't exist yet can also be added.
-
         ChatBoxes: {
             model (attrs, options) {
                 if (attrs && attrs.id == 'controlbox') {

+ 3 - 5
src/plugins/dragresize/index.js

@@ -18,8 +18,6 @@ converse.plugins.add('converse-dragresize', {
      * If the setting "strict_plugin_dependencies" is set to true,
      * an error will be raised if the plugin is not found. By default it's
      * false, which means these plugins are only loaded opportunistically.
-     *
-     * NB: These plugins need to have already been loaded via require.js.
      */
     dependencies: ['converse-chatview', 'converse-headlines-view', 'converse-muc-views'],
 
@@ -27,10 +25,10 @@ converse.plugins.add('converse-dragresize', {
         return _converse.api.settings.get('view_mode') == 'overlayed';
     },
 
+    // Overrides mentioned here will be picked up by converse.js's
+    // plugin architecture they will replace existing methods on the
+    // relevant objects or classes.
     overrides: {
-        // Overrides mentioned here will be picked up by converse.js's
-        // plugin architecture they will replace existing methods on the
-        // relevant objects or classes.
         ChatBox: {
             initialize () {
                 const result = this.__super__.initialize.apply(this, arguments);

+ 4 - 8
src/plugins/minimize/index.js

@@ -32,8 +32,6 @@ converse.plugins.add('converse-minimize', {
      * It's possible however to make optional dependencies non-optional.
      * If the setting "strict_plugin_dependencies" is set to true,
      * an error will be raised if the plugin is not found.
-     *
-     * NB: These plugins need to have already been loaded via require.js.
      */
     dependencies: [
         "converse-chatview",
@@ -47,13 +45,11 @@ converse.plugins.add('converse-minimize', {
         return _converse.api.settings.get("view_mode") === 'overlayed';
     },
 
+    // Overrides mentioned here will be picked up by converse.js's
+    // plugin architecture they will replace existing methods on the
+    // relevant objects or classes.
+    // New functions which don't exist yet can also be added.
     overrides: {
-        // Overrides mentioned here will be picked up by converse.js's
-        // plugin architecture they will replace existing methods on the
-        // relevant objects or classes.
-        //
-        // New functions which don't exist yet can also be added.
-
         ChatBox: {
             maybeShow (force) {
                 if (!force && this.get('minimized')) {