- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
626 B
JavaScript
20 lines
626 B
JavaScript
// eslint-disable-next-line import/prefer-default-export
|
|
export var t = function t(format) {
|
|
return format.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function (_, a, b) {
|
|
return a || b.slice(1);
|
|
});
|
|
};
|
|
export var englishFormats = {
|
|
LTS: 'h:mm:ss A',
|
|
LT: 'h:mm A',
|
|
L: 'MM/DD/YYYY',
|
|
LL: 'MMMM D, YYYY',
|
|
LLL: 'MMMM D, YYYY h:mm A',
|
|
LLLL: 'dddd, MMMM D, YYYY h:mm A'
|
|
};
|
|
export var u = function u(formatStr, formats) {
|
|
return formatStr.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function (_, a, b) {
|
|
var B = b && b.toUpperCase();
|
|
return a || formats[b] || englishFormats[b] || t(formats[B]);
|
|
});
|
|
}; |