@bbn/bbn 2.0.9 → 2.0.10
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/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/fn/init.js +0 -46
- package/package.json +1 -1
package/dist/fn/init.js
CHANGED
|
@@ -31,47 +31,6 @@ export default function init(cfg, force) {
|
|
|
31
31
|
if (bbn.env.root.length && substr(bbn.env.root, -1) !== "/") {
|
|
32
32
|
bbn.env.root += "/";
|
|
33
33
|
}
|
|
34
|
-
if (!bbn.env.isInit && typeof dayjs !== "undefined") {
|
|
35
|
-
each([
|
|
36
|
-
"advancedFormat",
|
|
37
|
-
"arraySupport",
|
|
38
|
-
"badMutable",
|
|
39
|
-
"buddhistEra",
|
|
40
|
-
"calendar",
|
|
41
|
-
"customParseFormat",
|
|
42
|
-
"dayOfYear",
|
|
43
|
-
"devHelper",
|
|
44
|
-
"duration",
|
|
45
|
-
"isBetween",
|
|
46
|
-
"isLeapYear",
|
|
47
|
-
"isSameOrAfter",
|
|
48
|
-
"isSameOrBefore",
|
|
49
|
-
"isToday",
|
|
50
|
-
"isTomorrow",
|
|
51
|
-
"isYesterday",
|
|
52
|
-
"isoWeek",
|
|
53
|
-
"isoWeeksInYear",
|
|
54
|
-
"localeData",
|
|
55
|
-
"localizedFormat",
|
|
56
|
-
"minMax",
|
|
57
|
-
"objectSupport",
|
|
58
|
-
"pluralGetSet",
|
|
59
|
-
"quarterOfYear",
|
|
60
|
-
"relativeTime",
|
|
61
|
-
"timezone",
|
|
62
|
-
"toArray",
|
|
63
|
-
"toObject",
|
|
64
|
-
"updateLocale",
|
|
65
|
-
"utc",
|
|
66
|
-
"weekOfYear",
|
|
67
|
-
"weekYear",
|
|
68
|
-
"weekday",
|
|
69
|
-
], (plugin) => {
|
|
70
|
-
if (window["dayjs_plugin_" + plugin]) {
|
|
71
|
-
dayjs.extend(window["dayjs_plugin_" + plugin]);
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
34
|
/* The server's path (difference between the host and the current dir */
|
|
76
35
|
if (typeof cfg === "object") {
|
|
77
36
|
extend(true, bbn, cfg);
|
|
@@ -88,11 +47,6 @@ export default function init(cfg, force) {
|
|
|
88
47
|
if (bbn.var.colors) {
|
|
89
48
|
addColors(bbn.var.colors);
|
|
90
49
|
}
|
|
91
|
-
if (bbn.env.lang && undefined !== dayjs) {
|
|
92
|
-
import('dayjs/locale/' + bbn.env.lang + '.js').then(() => {
|
|
93
|
-
dayjs.locale(bbn.env.lang);
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
50
|
document.addEventListener("visibilitychange", () => {
|
|
97
51
|
if (document.hidden && bbn.env.isFocused) {
|
|
98
52
|
bbn.env.isFocused = false;
|