|
8 | 8 | ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ |
9 | 9 |
|
10 | 10 | * Metro UI v5.1.19 Components Library (https://metroui.org.ua) |
11 | | - * Build: 20.09.2025, 19:17:17 |
| 11 | + * Build: 30.09.2025, 19:15:15 |
12 | 12 | * Copyright 2012-2025 by Serhii Pimenov |
13 | 13 | * Licensed under MIT |
14 | 14 | */ |
|
11497 | 11497 | (($7) => { |
11498 | 11498 | "use strict"; |
11499 | 11499 | globalThis["__version__"] = "5.1.19"; |
11500 | | - globalThis["__build_time__"] = "20.09.2025, 19:17:17"; |
| 11500 | + globalThis["__build_time__"] = "30.09.2025, 19:15:15"; |
11501 | 11501 | const meta_init = $7.meta("metro:init").attr("content"); |
11502 | 11502 | const meta_cloak = $7.meta("metro:cloak").attr("content"); |
11503 | 11503 | const meta_cloak_duration = $7.meta("metro:cloak_duration").attr("content"); |
|
11844 | 11844 | const normalizeComponentName2 = (name2) => typeof name2 !== "string" ? void 0 : name2.replace(/-/g, "").toLowerCase(); |
11845 | 11845 | const Metro2 = { |
11846 | 11846 | version: "5.1.19", |
11847 | | - build_time: "20.09.2025, 19:17:17", |
| 11847 | + build_time: "30.09.2025, 19:15:15", |
11848 | 11848 | buildNumber: 0, |
11849 | 11849 | isTouchable: isTouch3, |
11850 | 11850 | fullScreenEnabled: document.fullscreenEnabled, |
@@ -33913,6 +33913,42 @@ ${err.message}`); |
33913 | 33913 | }); |
33914 | 33914 | })(Metro, Dom); |
33915 | 33915 |
|
| 33916 | + // source/components/log/log.js |
| 33917 | + ((Metro2) => { |
| 33918 | + const DEBUG_LABEL_INFO = "INFO"; |
| 33919 | + const DEBUG_LABEL_ERROR = "ERROR"; |
| 33920 | + const DEBUG_LABEL_WARNING = "WARN"; |
| 33921 | + function showLog(type, ...rest) { |
| 33922 | + const time = (/* @__PURE__ */ new Date()).toLocaleString(); |
| 33923 | + const [m5, ...others] = rest; |
| 33924 | + if (window.DEBUG_PAGE) { |
| 33925 | + switch (type) { |
| 33926 | + case "info": |
| 33927 | + console.log.apply(null, [`[${DEBUG_LABEL_INFO}] (${time}) ${m5}`, ...others]); |
| 33928 | + break; |
| 33929 | + case "warn": |
| 33930 | + console.log.apply(null, [`%c[${DEBUG_LABEL_WARNING}] (${time}) ${m5}`, ...others, "color: orange;"]); |
| 33931 | + break; |
| 33932 | + case "error": |
| 33933 | + console.log.apply(null, [`%c[${DEBUG_LABEL_ERROR}] (${time}) ${m5}`, ...others, "color: red;"]); |
| 33934 | + break; |
| 33935 | + } |
| 33936 | + } |
| 33937 | + } |
| 33938 | + function log(...rest) { |
| 33939 | + showLog.apply(null, ["info", ...rest]); |
| 33940 | + } |
| 33941 | + function warn(...rest) { |
| 33942 | + showLog.apply(null, ["warn", ...rest]); |
| 33943 | + } |
| 33944 | + function error(...rest) { |
| 33945 | + showLog.apply(null, ["error", ...rest]); |
| 33946 | + } |
| 33947 | + Metro2.log = log; |
| 33948 | + Metro2.warn = warn; |
| 33949 | + Metro2.error = error; |
| 33950 | + })(Metro); |
| 33951 | + |
33916 | 33952 | // source/components/marquee/marquee.js |
33917 | 33953 | ((Metro2, $7) => { |
33918 | 33954 | "use strict"; |
|
0 commit comments