Copyright © CHAMOMIND CO., LTD. 2023
diff --git a/Frontend-Learner/components/layout/LandingHeader.vue b/Frontend-Learner/components/layout/LandingHeader.vue
index 4b514707..cb4efe7d 100644
--- a/Frontend-Learner/components/layout/LandingHeader.vue
+++ b/Frontend-Learner/components/layout/LandingHeader.vue
@@ -1,22 +1,22 @@
-
-
+
+
-
-
+
+ E
- EduLearn
+ E-Learning
Platform
@@ -66,12 +66,12 @@ onUnmounted(() => {
-
-
+
-->
+
-
-
-
-
+
+
-
+
{{ $t('auth.login') }}
-
+
{{ $t('auth.getStarted') }}
@@ -112,14 +110,14 @@ onUnmounted(() => {
{{ $t('landing.goToDashboard') }}
-
+
-
+
{
:class="[mobileMenuOpen ? 'translate-x-0' : 'translate-x-full']"
>
-
+
-
+
@@ -209,14 +215,14 @@ onUnmounted(() => {
diff --git a/Frontend-Learner/layouts/landing.vue b/Frontend-Learner/layouts/landing.vue
index 0969f278..75e90c7e 100644
--- a/Frontend-Learner/layouts/landing.vue
+++ b/Frontend-Learner/layouts/landing.vue
@@ -23,20 +23,20 @@ onMounted(() => {
-
+
-
-
+
+
-
+
diff --git a/Frontend-Learner/nuxt.config.ts b/Frontend-Learner/nuxt.config.ts
index e0617f89..239a3627 100644
--- a/Frontend-Learner/nuxt.config.ts
+++ b/Frontend-Learner/nuxt.config.ts
@@ -33,11 +33,8 @@ export default defineNuxtConfig({
// การตั้งค่า Quasar Framework
quasar: {
- iconSet: 'material-icons-outlined',
extras: {
- fontIcons: [
- "material-icons",
- "material-icons-outlined"] // ใช้ไอคอน Material Icons, material-icons-outlined
+ fontIcons: ["material-icons"],
},
plugins: ["Notify", "Dialog"], // เปิดใช้ Plugin Notify และ Dialog
config: {
diff --git a/Frontend-Learner/pages/auth/login.vue b/Frontend-Learner/pages/auth/login.vue
index a3d6ed63..e30602df 100644
--- a/Frontend-Learner/pages/auth/login.vue
+++ b/Frontend-Learner/pages/auth/login.vue
@@ -23,7 +23,7 @@ const isLoading = ref(false)
const rememberMe = ref(false)
const showPassword = ref(false)
-// ข้อมูลฟอร์มสำหรับเก็บค่าอีเมลและรหัสผ่าน
+// Form data model
const loginForm = reactive({
email: '',
password: ''
@@ -31,7 +31,7 @@ const loginForm = reactive({
type LoginField = keyof typeof loginForm
-// การตั้งค่ากฎการตรวจสอบ (Validation Rules)
+// Validation rules definition
// กำหนดกฎการตรวจสอบข้อมูล (Validation Rules)
const loginRules = {
email: {
@@ -108,12 +108,12 @@ const handleLogin = async () => {
}
- // แสดงข้อผิดพลาดตามช่องหรือแสดงข้อผิดพลาดรวม (เพื่อความปลอดภัย)
- // กรณีเข้าสู่ระบบไม่สำเร็จ
+ // Show error on specific fields
+ // Show generic error for security (or specific if role mismatch)
if (result.error === 'Email ไม่ถูกต้อง') {
- errors.value.email = result.error // กรณี Role ไม่ตรงกัน
+ errors.value.email = result.error // Role mismatch case
} else {
- // ข้อผิดพลาดแบบเหมาสำหรับปัญหาการเข้าสู่ระบบทั่วไป (เช่น รหัสผิด, ไม่พบผู้ใช้)
+ // Generic login failure (401, 404, etc.)
const msg = 'กรุณาเช็ค Email หรือ รหัสผ่านใหม่อีกครั้ง'
errors.value.email = msg
errors.value.password = msg
@@ -147,7 +147,7 @@ onMounted(() => {
========================================== -->
-
+
E
@@ -158,10 +158,10 @@ onMounted(() => {