@bebranded/bb-contents 1.0.30-beta → 1.0.31-beta
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/bb-contents.js +8 -9
- package/package.json +1 -1
package/bb-contents.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* BeBranded Contents
|
|
3
3
|
* Contenus additionnels français pour Webflow
|
|
4
|
-
* @version 1.0.
|
|
4
|
+
* @version 1.0.31-beta
|
|
5
5
|
* @author BeBranded
|
|
6
6
|
* @license MIT
|
|
7
7
|
* @website https://www.bebranded.xyz
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
// Configuration
|
|
19
19
|
const config = {
|
|
20
|
-
version: '1.0.
|
|
21
|
-
debug:
|
|
20
|
+
version: '1.0.31-beta',
|
|
21
|
+
debug: false, // Désactivé par défaut pour une console propre
|
|
22
22
|
prefix: 'bb-', // utilisé pour générer les sélecteurs (data-bb-*)
|
|
23
23
|
i18n: {
|
|
24
24
|
copied: 'Lien copié !'
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
// Utilitaires
|
|
36
36
|
utils: {
|
|
37
37
|
log: function(...args) {
|
|
38
|
-
if (config.debug) {
|
|
38
|
+
if (bbContents.config.debug) {
|
|
39
39
|
console.log('[BB Contents]', ...args);
|
|
40
40
|
}
|
|
41
41
|
},
|
|
@@ -76,6 +76,9 @@
|
|
|
76
76
|
|
|
77
77
|
// Initialisation
|
|
78
78
|
init: function() {
|
|
79
|
+
// Console simple et épurée
|
|
80
|
+
console.log('bb-contents | v' + this.config.version);
|
|
81
|
+
|
|
79
82
|
this.utils.log('Initialisation v' + this.config.version);
|
|
80
83
|
|
|
81
84
|
// Déterminer la portée
|
|
@@ -887,9 +890,5 @@
|
|
|
887
890
|
// Initialisation
|
|
888
891
|
initBBContents();
|
|
889
892
|
|
|
890
|
-
// Message de confirmation
|
|
891
|
-
console.log(
|
|
892
|
-
'%cBeBranded Contents v' + config.version + ' chargé avec succès !',
|
|
893
|
-
'color: #422eff; font-weight: bold; font-size: 14px;'
|
|
894
|
-
);
|
|
893
|
+
// Message de confirmation supprimé pour une console plus propre
|
|
895
894
|
})();
|