feat: add DateUtils and StringUtils for date and string manipulation

- Implement DateUtils for handling date operations with timezone support.
- Add unit tests for DateUtils to ensure functionality and edge cases.
- Create StringUtils for string manipulation with a fluent API.
- Include unit tests for StringUtils covering various string operations.
- Introduce EncryptionUtils for secure data encryption and decryption.
- Add tests for EncryptionUtils to validate encryption and decryption processes.
- Update index.ts to export new utility modules.
- Introduce encryption key management with a dedicated key file.
This commit is contained in:
Firman Ramdhani
2026-01-28 18:18:29 +07:00
parent 97f48ce1b9
commit a1db9b93e1
15 changed files with 269 additions and 268 deletions
+6 -5
View File
@@ -1,14 +1,15 @@
// import { DateService } from '@repo/utils';
// import { CurrencyService } from '@repo/utils';
// import { DateUtils } from '@repo/utils';
// import { CurrencyUtils } from '@repo/utils';
import './main.css';
import { lazy, StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
const App = lazy(() => import('./apps'));
// DateService.setGlobalConfig('Asia/Jakarta');
// DateService.setGlobalConfig('Asia/Makassar');
// DateUtils.setGlobalConfig('Asia/Jakarta');
// DateUtils.setGlobalConfig('Asia/Makassar');
// CurrencyService.setGlobalPrefix('IDR ');
// CurrencyUtils.setGlobalPrefix('IDR ');
// CurrencyUtils.setGlobalDecimalSeparator(',');
createRoot(document.getElementById('app')!).render(
<StrictMode>
<App />