ducnt
pushed to dunt at unitel/ESIM
c5491efd6c Add partner login & Lao locale, downgrade to .NET7
Introduce partner login support and Lao localization, plus project updates for .NET 7 compatibility.
Backend:
- Downgrade Common, Database and Esim.Apis projects from net9.0 to net7.0 and adjust related package version.
- Add PartnerLoginReq model and expose PartnerLogin method in IUserBusiness.
- Implement PartnerLogin in UserBusinessImpl: decrypts partner payload, finds/creates customer, issues JWT tokens, revokes old tokens and persists UserToken. Add Partner config (EncryptionKey) to appsettings and simple encrypt/decrypt logging in Program.cs. Update publish profile to target net7.0.
Frontend:
- Add Lao translations (la.json) and register 'la' locale in i18n.
- Add partnerLogin API method and add crypto-js dependency.
- Switch localStorage usage to getWithExpiry/setWithExpiry across axios, Header, and account slice; set Content-Type header by default.
- Update Header to conditionally show language/guide UI for partner 'laotravel' and persist selectedPartner/selectedLanguage handling.
- Update Footer text and other UI text translations.
Misc:
- Update build/static asset routing in Program.cs (commented MapStaticAssets) and minor formatting/import reorders.
This change enables third-party partner authentication (encrypted payloads) and supports Lao language while ensuring compatibility with .NET 7.
0a9f23359b Update Vietnamese translations and HomeView UI
Expanded and clarified several Vietnamese translation strings for better user guidance. Added two new partner logos to the HomeView page, commented out the 'How it Works' section, updated SIM type button label, and added navigation to terms page on refund button click.
b21284c8ea Update order views UI and date filter logic
OrderDetailView now displays remaining data with a clearer label and adjusts font sizes for unlimited plans. OrderHistoryView sets the default 'from date' to 30 days ago and changes date inputs to always use 'date' type for improved usability.
1725e3a28d Update UI text, images, and data usage calculation
Standardized guide item labels in Header to sentence case, updated login logo and container styles, and fixed data usage calculation in OrderDetailView to use remainData instead of usageData. Also made minor adjustments to error message formatting and updated drawio documentation diagrams.
d92a40c9f7 Update UI text and area search logic
Replaced logo and updated branding in Header. Improved area search by using 'searchArea' instead of 'coverageArea' in HomeSearch and Header. Enhanced ProductInfoModal with more detailed delivery and data reset time messages. Updated i18n files with new translations and added 'register' key. Changed 'Buy Now' button to use translation. Added optional 'searchArea' field to Area type.
- View comparison for these 31 commits »
1 week ago