scope360-core 0.0.232 → 0.0.234
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/scope360-core.js
CHANGED
|
@@ -30117,9 +30117,15 @@ const ft = (t, e = {
|
|
|
30117
30117
|
return e.isFixed && (s = on(s)), e.isPercentage ? `${n}${s}%` : `${n}${Mu()}${on(s * Qf())}`;
|
|
30118
30118
|
};
|
|
30119
30119
|
function T5(t, e) {
|
|
30120
|
-
const n = +new Date(e) - +new Date(t), s = Math.floor(n / (1e3 * 60 * 60 * 24)), i = Math.floor(
|
|
30120
|
+
const n = +new Date(e) - +new Date(t), s = Math.floor(n / (1e3 * 60 * 60 * 24)), i = Math.floor(
|
|
30121
|
+
n % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)
|
|
30122
|
+
), r = Math.floor(n % (1e3 * 60 * 60) / (1e3 * 60)), a = Math.floor(n % (1e3 * 60) / 1e3), o = [];
|
|
30121
30123
|
return s > 0 && o.push(`${s}d`), i > 0 && o.push(`${i}h`), r > 0 && o.push(`${r}m`), a > 0 && o.push(`${a}s`), o.join(" ");
|
|
30122
30124
|
}
|
|
30125
|
+
function D5(t, e) {
|
|
30126
|
+
const n = +new Date(e) - +new Date(t), s = Math.floor(n / (1e3 * 60 * 60 * 24));
|
|
30127
|
+
return s === 0 ? "yellow" : s > 7 ? "purple" : "grey";
|
|
30128
|
+
}
|
|
30123
30129
|
function FV(t) {
|
|
30124
30130
|
const e = /^(.*?)(BTC|ETH|USDT|USD|USDC)$/, n = t.match(e);
|
|
30125
30131
|
if (n) {
|
|
@@ -30220,6 +30226,7 @@ export {
|
|
|
30220
30226
|
M5 as getDaysDifference,
|
|
30221
30227
|
w5 as getFullYear,
|
|
30222
30228
|
x5 as getMonth,
|
|
30229
|
+
D5 as getTimeColor,
|
|
30223
30230
|
Be as maskData,
|
|
30224
30231
|
Zg as numFormat,
|
|
30225
30232
|
sh as scopeInstance,
|