-login guard
All checks were successful
Build Docker Image / Preparing Dependecies (push) Successful in 4s

-caching
-budget
This commit is contained in:
2025-11-19 18:30:35 +07:00
parent 213fd197ef
commit 15308ababa
25 changed files with 667 additions and 479 deletions

View File

@@ -21,76 +21,104 @@
<main class="grid grid-cols-1 md:grid-cols-3 gap-6 mt-6">
<div class="md:col-span-2">
<div class="bg-white p-6 rounded-xl shadow-lg">
<div class="md:col-span-2 ">
<div class="bg-white p-6 rounded-xl shadow-lg h-88">
<h2 class="text-lg font-medium text-gray-700 mb-4">เมนู</h2>
<div class="grid grid-cols-2 gap-4">
<div class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<button class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m4 2h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z" />
</svg>
<span class="text-gray-700">การเบิกงวดงบ</span>
</div>
</button>
<div class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<button class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" />
</svg>
<span class="text-gray-700">สัญญา / ข้อตกลง</span>
</div>
</button>
<div class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<button class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<!-- <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.102a9 9 0 11-12.728 0m12.728 0a9 9 0 00-12.728 0M3 12a9 9 0 1118 0" />
</svg> -->
<img src="stamp_0.png" alt="" class="h-6 w-6 text-gray-500 opacity-50">
<span class="text-gray-700">การอนุมัติโครงการ</span>
</div>
</button>
<div class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<button class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
</svg>
<span class="text-gray-700">เอกสารฟอร์มวิทยาลัย</span>
</div>
</button>
<div class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<button class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<!-- <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 3.055A9.992 9.992 0 0112 21c-3.142 0-6.186-1.042-8.625-2.999M21 12a9.992 9.992 0 00-3-6.945M3 12a9.992 9.992 0 013-6.945M12 15a3 3 0 100-6 3 3 0 000 6z" />
</svg> -->
<img src="chart-simple.png" alt="" class="h-6 w-6 text-gray-500 opacity-50">
<span class="text-gray-700">จัดสรรงบประมาณ</span>
</div>
</button>
<div class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer">
<button class="flex items-center space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition duration-150 cursor-pointer" (click)="navigate('main/report')">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 10h16M4 14h16M4 18h16" />
</svg>
<span class="text-gray-700">วิเคราะห์ & รายงาน</span>
</div>
</button>
</div>
</div>
</div>
<div>
<div class="bg-white p-6 rounded-xl shadow-lg">
<h2 class="text-lg font-medium text-gray-700 mb-4">กล่องแจ้งเตือน</h2>
<div class="space-y-3">
<div class="h-4 bg-gray-200 rounded w-11/12"></div>
<div class="h-4 bg-gray-200 rounded w-10/12"></div>
<div class="h-4 bg-gray-200 rounded w-9/12"></div>
</div>
</div>
</div>
<div>
<div class="bg-white p-6 rounded-xl shadow-lg">
<h2 class="text-lg font-medium text-gray-700 mb-4">กล่องแจ้งเตือน</h2>
<div class="space-y-4">
<div class="flex items-start space-x-3 p-3 bg-red-50 rounded-lg border-l-4 border-red-500 hover:bg-red-100 transition duration-150 cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mt-0.5 text-red-600 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
</svg>
<div>
<p class="text-sm font-medium text-gray-800">มี **โครงการ 3 รายการ** รออนุมัติ</p>
<p class="text-xs text-red-600 mt-0.5">ครบกำหนด: วันนี้, 15:00 น.</p>
</div>
</div>
<div class="flex items-start space-x-3 p-3 bg-blue-50 rounded-lg border-l-4 border-blue-500 hover:bg-blue-100 transition duration-150 cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mt-0.5 text-blue-600 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<div>
<p class="text-sm font-medium text-gray-800">เอกสารฟอร์มวิทยาลัย **ฉบับใหม่** พร้อมดาวน์โหลดแล้ว</p>
<p class="text-xs text-gray-500 mt-0.5">ประกาศเมื่อ: 17 พ.ย. 2568</p>
</div>
</div>
<div class="flex items-start space-x-3 p-3 bg-green-50 rounded-lg border-l-4 border-green-500 hover:bg-green-100 transition duration-150 cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mt-0.5 text-green-600 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.102a9 9 0 11-12.728 0m12.728 0a9 9 0 00-12.728 0" />
</svg>
<div>
<p class="text-sm font-medium text-gray-800">การเปิดงบประมาณ **ไตรมาส 4** ได้รับการอนุมัติแล้ว</p>
<p class="text-xs text-gray-500 mt-0.5">สำเร็จเมื่อ: 15 พ.ย. 2568</p>
</div>
</div>
</div>
</div>
</div>
</main>
<section class="mt-6">
<!-- <section class="mt-6">
<div class="bg-white p-6 rounded-xl shadow-lg flex items-center space-x-6">
<div class="shrink-0">
<div class="h-24 w-24 rounded-full bg-white flex items-center justify-center overflow-hidden">
<img src="logo.png" alt="">
<!-- <span class="text-center text-white font-bold text-sm leading-tight">วิทยาลัยเทคนิคตรัง</span> -->
<span class="text-center text-white font-bold text-sm leading-tight">วิทยาลัยเทคนิคตรัง</span>
</div>
</div>
@@ -100,8 +128,105 @@
<div class="h-4 bg-red-100 rounded w-64"></div>
<div class="h-4 bg-red-100 rounded w-56"></div>
</div>
<table>
<tbody>
<td>sdsd</td>
<td>sdasds</td>
</tbody>
</table>
</div>
</div>
</section>
</section> -->
<section class="mt-6">
<div class="bg-white p-6 rounded-xl shadow-lg flex items-start space-x-6">
<div class="shrink-0">
<div class="h-24 w-24 rounded-full bg-white flex items-center justify-center overflow-hidden border border-gray-200">
<img src="logo.png" alt="Trang Technical College Logo" class="h-full w-full object-cover">
</div>
</div>
<div class="grow">
<h2 class="text-xl font-semibold text-gray-800 mb-3">อัพเดตซอฟต์แวร์ล่าสุด</h2>
<div class="flex text-sm font-medium text-gray-500 border-b pb-1 mb-2">
<span class="w-2/5 pr-2">รายการ</span>
<span class="w-1/5">ประเภท</span>
<span class="w-1/5 text-right">เวอร์ชัน</span>
<span class="w-1/5 pl-2">สถานะ</span>
</div>
<div class="flex items-center py-2 border-b last:border-b-0 hover:bg-gray-50 transition duration-100">
<div class="w-2/5 flex items-center space-x-3 pr-2">
<div>
<p class="text-sm font-medium text-gray-900">แก้ไขบั๊ก (Patch Fix)</p>
<p class="text-xs text-gray-500">18 พ.ย. 2568</p>
</div>
</div>
<span class="w-1/5">
<span class="inline-block px-2 py-0.5 text-xs font-semibold rounded-full bg-green-100 text-green-800">
ปรับปรุง
</span>
</span>
<span class="w-1/5 text-sm font-medium text-right text-green-600">
1.0.1
</span>
<span class="w-1/5 text-sm text-gray-600 pl-2 truncate">
เสร็จสมบูรณ์
</span>
</div>
<div class="flex items-center py-2 border-b last:border-b-0 hover:bg-gray-50 transition duration-100">
<div class="w-2/5 flex items-center space-x-3 pr-2">
<div>
<p class="text-sm font-medium text-gray-900">อัปเดตระบบหลัก (Major Update)</p>
<p class="text-xs text-gray-500">25 ต.ค. 2568</p>
</div>
</div>
<span class="w-1/5">
<span class="inline-block px-2 py-0.5 text-xs font-semibold rounded-full bg-red-100 text-red-800">
คุณสมบัติใหม่
</span>
</span>
<span class="w-1/5 text-sm font-medium text-right text-red-600">
2.0.0
</span>
<span class="w-1/5 text-sm text-gray-600 pl-2 truncate">
รอตรวจสอบ
</span>
</div>
<div class="flex items-center py-2 last:border-b-0 hover:bg-gray-50 transition duration-100">
<div class="w-2/5 flex items-center space-x-3 pr-2">
<div>
<p class="text-sm font-medium text-gray-900">แก้ไขช่องโหว่ความปลอดภัย</p>
<p class="text-xs text-gray-500">5 พ.ย. 2568</p>
</div>
</div>
<span class="w-1/5">
<span class="inline-block px-2 py-0.5 text-xs font-semibold rounded-full bg-green-100 text-green-800">
ปรับปรุง
</span>
</span>
<span class="w-1/5 text-sm font-medium text-right text-green-600">
1.0.0
</span>
<span class="w-1/5 text-sm text-gray-600 pl-2 truncate">
เสร็จสมบูรณ์
</span>
</div>
</div>
</div>
</section>
</div>