Skip to content

Commit 96f6422

Browse files
ENHANCE: Comprehensive icon mapping for all career categories
1 parent 5471eaa commit 96f6422

4 files changed

Lines changed: 102 additions & 18 deletions

File tree

assets/index-CTkL4KB0.js

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}(window.location));
1717
</script>
1818
<script src="./runtime-config.js"></script>
19-
<script type="module" crossorigin src="./assets/index-CBPL3qgh.js"></script>
19+
<script type="module" crossorigin src="./assets/index-CTkL4KB0.js"></script>
2020
<link rel="stylesheet" crossorigin href="./assets/index-BHQWbmWP.css">
2121
</head>
2222
<body>

frontend/src/offlineStore.js

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2921,22 +2921,39 @@ export const offlineApi = {
29212921
// Map category to icon
29222922
const getIcon = (cat) => {
29232923
const lower = normalizeText(cat || '').toLowerCase();
2924-
if (lower.includes('cong nghe') || lower.includes('technology') || lower.includes('it')) return 'tech.svg';
2925-
if (lower.includes('giao duc') || lower.includes('education') || lower.includes('dao tao')) return 'education.svg';
2926-
if (lower.includes('y te') || lower.includes('health') || lower.includes('bac si')) return 'health.svg';
2927-
if (lower.includes('kinh doanh') || lower.includes('business') || lower.includes('ban hang')) return 'business.svg';
2928-
if (lower.includes('nghe thuat') || lower.includes('art') || lower.includes('thiet ke') || lower.includes('creative')) return 'creative.svg';
2929-
if (lower.includes('khoa hoc') || lower.includes('science') || lower.includes('nghien cuu')) return 'science.svg';
2930-
if (lower.includes('an ninh') || lower.includes('security') || lower.includes('cong an')) return 'security.svg';
2931-
if (lower.includes('dich vu') || lower.includes('service') || lower.includes('du lich')) return 'service.svg';
2932-
if (lower.includes('van tai') || lower.includes('transport') || lower.includes('lai xe')) return 'transport.svg';
2933-
if (lower.includes('xay dung') || lower.includes('construction') || lower.includes('kien truc')) return 'construction.svg';
2934-
if (lower.includes('nong nghiep') || lower.includes('agri') || lower.includes('lam nghiep')) return 'agri.svg';
2935-
if (lower.includes('quan ly') || lower.includes('management') || lower.includes('lanh dao')) return 'management.svg';
2936-
if (lower.includes('luat') || lower.includes('legal') || lower.includes('phap ly')) return 'legal.svg';
2937-
if (lower.includes('hanh chinh') || lower.includes('admin') || lower.includes('van phong')) return 'admin.svg';
2938-
if (lower.includes('cong dong') || lower.includes('community') || lower.includes('xa hoi')) return 'community.svg';
2939-
if (lower.includes('ky thuat') || lower.includes('industry') || lower.includes('co khi')) return 'industry.svg';
2924+
// Tech
2925+
if (lower.includes('cong nghe') || lower.includes('technology') || lower.includes('it') || lower.includes('phan mem') || lower.includes('lap trinh') || lower.includes('du lieu') || lower.includes('mang may tinh') || lower.includes('he thong')) return 'tech.svg';
2926+
// Education
2927+
if (lower.includes('giao duc') || lower.includes('education') || lower.includes('dao tao') || lower.includes('giang day') || lower.includes('giao vien')) return 'education.svg';
2928+
// Health
2929+
if (lower.includes('y te') || lower.includes('health') || lower.includes('bac si') || lower.includes('duoc') || lower.includes('dieu duong') || lower.includes('nha khoa')) return 'health.svg';
2930+
// Business
2931+
if (lower.includes('kinh doanh') || lower.includes('business') || lower.includes('ban hang') || lower.includes('marketing') || lower.includes('tai chinh') || lower.includes('ke toan') || lower.includes('nhan su')) return 'business.svg';
2932+
// Creative
2933+
if (lower.includes('nghe thuat') || lower.includes('art') || lower.includes('thiet ke') || lower.includes('creative') || lower.includes('truyen thong') || lower.includes('noi dung') || lower.includes('dien anh') || lower.includes('am nhac')) return 'creative.svg';
2934+
// Science
2935+
if (lower.includes('khoa hoc') || lower.includes('science') || lower.includes('nghien cuu') || lower.includes('sinh hoc') || lower.includes('hoa hoc') || lower.includes('vat ly') || lower.includes('moi truong')) return 'science.svg';
2936+
// Security
2937+
if (lower.includes('an ninh') || lower.includes('security') || lower.includes('cong an') || lower.includes('quan doi') || lower.includes('bao mat')) return 'security.svg';
2938+
// Service
2939+
if (lower.includes('dich vu') || lower.includes('service') || lower.includes('du lich') || lower.includes('khach san') || lower.includes('nha hang') || lower.includes('spa') || lower.includes('cham soc')) return 'service.svg';
2940+
// Transport
2941+
if (lower.includes('van tai') || lower.includes('transport') || lower.includes('lai xe') || lower.includes('hang hai') || lower.includes('hang khong') || lower.includes('logistics')) return 'transport.svg';
2942+
// Construction
2943+
if (lower.includes('xay dung') || lower.includes('construction') || lower.includes('kien truc') || lower.includes('quy hoach') || lower.includes('noi that')) return 'construction.svg';
2944+
// Agri
2945+
if (lower.includes('nong nghiep') || lower.includes('agri') || lower.includes('lam nghiep') || lower.includes('thuy san') || lower.includes('chan nuoi') || lower.includes('trong trot')) return 'agri.svg';
2946+
// Management
2947+
if (lower.includes('quan ly') || lower.includes('management') || lower.includes('lanh dao') || lower.includes('dieu hanh') || lower.includes('giam doc')) return 'management.svg';
2948+
// Legal
2949+
if (lower.includes('luat') || lower.includes('legal') || lower.includes('phap ly') || lower.includes('tu phap') || lower.includes('to a')) return 'legal.svg';
2950+
// Admin
2951+
if (lower.includes('hanh chinh') || lower.includes('admin') || lower.includes('van phong') || lower.includes('thu ky') || lower.includes('tro ly')) return 'admin.svg';
2952+
// Community
2953+
if (lower.includes('cong dong') || lower.includes('community') || lower.includes('xa hoi') || lower.includes('tam ly') || lower.includes('tu thien')) return 'community.svg';
2954+
// Industry (Engineering/Technical)
2955+
if (lower.includes('ky thuat') || lower.includes('industry') || lower.includes('co khi') || lower.includes('dien') || lower.includes('dien tu') || lower.includes('tu dong hoa') || lower.includes('che tao')) return 'engineering.svg';
2956+
29402957
return 'default.svg';
29412958
};
29422959

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}(window.location));
1717
</script>
1818
<script src="./runtime-config.js"></script>
19-
<script type="module" crossorigin src="./assets/index-CBPL3qgh.js"></script>
19+
<script type="module" crossorigin src="./assets/index-CTkL4KB0.js"></script>
2020
<link rel="stylesheet" crossorigin href="./assets/index-BHQWbmWP.css">
2121
</head>
2222
<body>

0 commit comments

Comments
 (0)