<template> <div class="min-h-screen bg-background p-6"> <div class="max-w-7xl mx-auto">…
- User
<!-- الأقسام --> <section class="mb-12"> <div class="bg-white shadow-lg rounded-lg overflow-hidden"> <div class="bg-info/15 shadow-sm hover:bg-hover text-black px-2 py-1 text-sm font-medium rounded-lg"> <h2 class="text-2xl font-semibold text-black flex items-center"> Step 1: Personal Information <svg width="32" height="32" class="ml-2 font-black" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M6.66699 25.3337H8.34899L21.9977 11.685L20.3157 10.003L6.66699 23.6517V25.3337ZM5.87233 27.3337C5.53077 27.3337 5.24455 27.2181 5.01366 26.987C4.78255 26.7561 4.66699 26.4699 4.66699 26.1283V23.8183C4.66699 23.4932 4.72944 23.1833 4.85433 22.8887C4.97899 22.594 5.15077 22.3372 5.36966 22.1183L22.2543 5.24132C22.4559 5.05821 22.6784 4.91677 22.922 4.81699C23.1658 4.71699 23.4213 4.66699 23.6887 4.66699C23.956 4.66699 24.2149 4.71444 24.4653 4.80933C24.716 4.90422 24.9379 5.0551 25.131 5.26199L26.7593 6.91066C26.9662 7.10377 27.1137 7.32599 27.2017 7.57733C27.2897 7.82866 27.3337 8.07999 27.3337 8.33133C27.3337 8.59955 27.2879 8.85544 27.1963 9.09899C27.1048 9.34277 26.9591 9.56544 26.7593 9.76699L9.88232 26.631C9.66344 26.8499 9.40666 27.0217 9.11199 27.1463C8.81733 27.2712 8.50744 27.3337 8.18233 27.3337H5.87233ZM21.142 10.8587L20.3157 10.003L21.9977 11.685L21.142 10.8587Z" fill="#FFFFFF"/> </svg> </h2> </div> <div class="px-6 py-6"> <!-- محتوى القسم --> <div v-if="request.doc"> <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> <InfoRow label="الاسم الكامل" :value="request.doc.employer_name" /> <InfoRow label="الاسم الكامل" :value="request.doc.full_name" /> <!-- أضف المزيد من الحقول حسب الحاجة --> </div> </div> <div v-else> <p class="text-mutedText">لا توجد معلومات شخصية مسجلة.</p> </div> </div> </div> </section> <!-- قسم معلومات التعليم --> <section class="mb-12"> <div class="bg-white shadow-lg rounded-lg overflow-hidden"> <div class="bg-info/15 shadow-sm hover:bg-hover text-black px-2 py-1 text-sm font-medium rounded-lg"> <h2 class="text-2xl font-semibold text-black flex items-center"> Step 2: Education Information <svg width="32" height="32" class="ml-2" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M6.66699 25.3337H8.34899L21.9977 11.685L20.3157 10.003L6.66699 23.6517V25.3337ZM5.87233 27.3337C5.53077 27.3337 5.24455 27.2181 5.01366 26.987C4.78255 26.7561 4.66699 26.4699 4.66699 26.1283V23.8183C4.66699 23.4932 4.72944 23.1833 4.85433 22.8887C4.97899 22.594 5.15077 22.3372 5.36966 22.1183L22.2543 5.24132C22.4559 5.05821 22.6784 4.91677 22.922 4.81699C23.1658 4.71699 23.4213 4.66699 23.6887 4.66699C23.956 4.66699 24.2149 4.71444 24.4653 4.80933C24.716 4.90422 24.9379 5.0551 25.131 5.26199L26.7593 6.91066C26.9662 7.10377 27.1137 7.32599 27.2017 7.57733C27.2897 7.82866 27.3337 8.07999 27.3337 8.33133C27.3337 8.59955 27.2879 8.85544 27.1963 9.09899C27.1048 9.34277 26.9591 9.56544 26.7593 9.76699L9.88232 26.631C9.66344 26.8499 9.40666 27.0217 9.11199 27.1463C8.81733 27.2712 8.50744 27.3337 8.18233 27.3337H5.87233ZM21.142 10.8587L20.3157 10.003L21.9977 11.685L21.142 10.8587Z" fill="#FFFFFF"/> </svg> </h2> </div> <div class="px-6 py-6"> <!-- محتوى القسم --> <div v-if="request.doc.education_information && request.doc.education_information.length"> <div v-for="(education, index) in request.doc.education_information" :key="education.id" class="mb-6"> <div class="mb-4"> <h3 class="text-xl font-medium text-custom-green flex items-center"> <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c1.1046 0 2 .8954 2 2v2c0 1.1046-.8954 2-2 2s-2-.8954-2-2V10c0-1.1046.8954-2 2-2z" /> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 10h-6l-2 2H5v6h14v-6z" /> </svg> {{ education.name_of_school_or_college_university || `تعليم ${index + 1}` }} </h3> </div> <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> <div class="space-y-2"> <InfoRow label="اسم المدرسة/الكلية/الجامعة" :value="education.name_of_school_or_college_university" /> <InfoRow label="مجال الدراسة/التخصص" :value="education.field_of_study_or_major" /> <InfoRow label="البلد" :value="education.country" /> <InfoRow label="المدينة" :value="education.city" /> </div> <div class="space-y-2"> <InfoRow label="المحافظة" :value="education.governorate" /> <InfoRow label="تفاصيل الموقع" :value="education.location_text || 'N/A'" /> <InfoRow label="تاريخ البدء" :value="formatDate(education.from_date)" /> <InfoRow label="تاريخ الانتهاء" :value="formatDate(education.to_date)" /> </div> </div> </div> </div> <div v-else> <p class="text-mutedText">لا توجد سجلات لمعلومات التعليم.</p> </div> </div> </div> </section> <!-- قسم تاريخ التوظيف --> <section class="mb-12"> <div class="bg-white shadow-lg rounded-lg overflow-hidden"> <div class="bg-info/15 shadow-sm hover:bg-hover text-black px-2 py-1 text-sm font-medium rounded-lg"> <h2 class="text-2xl font-semibold text-black flex items-center"> Step 3: Employment History <svg width="32" height="32" class="ml-2" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M6.66699 25.3337H8.34899L21.9977 11.685L20.3157 10.003L6.66699 23.6517V25.3337ZM5.87233 27.3337C5.53077 27.3337 5.24455 27.2181 5.01366 26.987C4.78255 26.7561 4.66699 26.4699 4.66699 26.1283V23.8183C4.66699 23.4932 4.72944 23.1833 4.85433 22.8887C4.97899 22.594 5.15077 22.3372 5.36966 22.1183L22.2543 5.24132C22.4559 5.05821 22.6784 4.91677 22.922 4.81699C23.1658 4.71699 23.4213 4.66699 23.6887 4.66699C23.956 4.66699 24.2149 4.71444 24.4653 4.80933C24.716 4.90422 24.9379 5.0551 25.131 5.26199L26.7593 6.91066C26.9662 7.10377 27.1137 7.32599 27.2017 7.57733C27.2897 7.82866 27.3337 8.07999 27.3337 8.33133C27.3337 8.59955 27.2879 8.85544 27.1963 9.09899C27.1048 9.34277 26.9591 9.56544 26.7593 9.76699L9.88232 26.631C9.66344 26.8499 9.40666 27.0217 9.11199 27.1463C8.81733 27.2712 8.50744 27.3337 8.18233 27.3337H5.87233ZM21.142 10.8587L20.3157 10.003L21.9977 11.685L21.142 10.8587Z" fill="#FFFFFF"/> </svg> </h2> </div> <div class="px-6 py-6"> <!-- محتوى القسم --> <div v-if="request.doc.employment_history && request.doc.employment_history.length"> <div v-for="(employment, index) in request.doc.employment_history" :key="employment.id" class="mb-6"> <div class="mb-4"> <h3 class="text-xl font-medium text-custom-green flex items-center"> <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c1.1046 0 2 .8954 2 2v2c0 1.1046-.8954 2-2 2s-2-.8954-2-2V10c0-1.1046.8954-2 2-2z" /> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 10h-6l-2 2H5v6h14v-6z" /> </svg> {{ employment.company || `وظيفة ${index + 1}` }} </h3> </div> <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> <div class="space-y-2"> <InfoRow label="الشركة" :value="employment.company" /> <InfoRow label="اسم صاحب العمل" :value="employment.name_of_your_employer" /> <InfoRow label="إذن للاتصال بالمُشغّل" :value="employment.contact_the_employer ? 'نعم' : 'لا'" /> <InfoRow label="إصدار الراتب من قبل الشركة" :value="employment.issuing_salary ? 'نعم' : 'لا'" /> </div> <div class="space-y-2"> <InfoRow label="البلد" :value="employment.country" /> <InfoRow label="المدينة" :value="employment.city" /> <InfoRow label="المحافظة" :value="employment.governorate" /> <InfoRow label="تفاصيل الموقع" :value="employment.location_text || 'N/A'" /> </div> </div> </div> </div> <div v-else> <p class="text-mutedText">لا توجد سجلات لتاريخ التوظيف.</p> </div> </div> </div> </section> <!-- قسم المؤهلات المهنية --> <section class="mb-12"> <div class="bg-white shadow-lg rounded-lg overflow-hidden"> <div class="bg-info/15 shadow-sm hover:bg-hover text-black px-2 py-1 text-sm font-medium rounded-lg"> <h2 class="text-2xl font-semibold text-black flex items-center"> Step 4: Professional Qualification Verification <svg width="32" height="32" class="ml-2" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M6.66699 25.3337H8.34899L21.9977 11.685L20.3157 10.003L6.66699 23.6517V25.3337ZM5.87233 27.3337C5.53077 27.3337 5.24455 27.2181 5.01366 26.987C4.78255 26.7561 4.66699 26.4699 4.66699 26.1283V23.8183C4.66699 23.4932 4.72944 23.1833 4.85433 22.8887C4.97899 22.594 5.15077 22.3372 5.36966 22.1183L22.2543 5.24132C22.4559 5.05821 22.6784 4.91677 22.922 4.81699C23.1658 4.71699 23.4213 4.66699 23.6887 4.66699C23.956 4.66699 24.2149 4.71444 24.4653 4.80933C24.716 4.90422 24.9379 5.0551 25.131 5.26199L26.7593 6.91066C26.9662 7.10377 27.1137 7.32599 27.2017 7.57733C27.2897 7.82866 27.3337 8.07999 27.3337 8.33133C27.3337 8.59955 27.2879 8.85544 27.1963 9.09899C27.1048 9.34277 26.9591 9.56544 26.7593 9.76699L9.88232 26.631C9.66344 26.8499 9.40666 27.0217 9.11199 27.1463C8.81733 27.2712 8.50744 27.3337 8.18233 27.3337H5.87233ZM21.142 10.8587L20.3157 10.003L21.9977 11.685L21.142 10.8587Z" fill="#FFFFFF"/> </svg> </h2> </div> <div class="px-6 py-6"> <!-- محتوى القسم --> <div v-if="request.doc.professional_qualification && request.doc.professional_qualification.length"> <div v-for="(qualification, index) in request.doc.professional_qualification" :key="qualification.id" class="mb-6"> <div class="mb-4"> <h3 class="text-xl font-medium text-custom-green flex items-center"> <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c1.1046 0 2 .8954 2 2v2c0 1.1046-.8954 2-2 2s-2-.8954-2-2V10c0-1.1046.8954-2 2-2z" /> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 10h-6l-2 2H5v6h14v-6z" /> </svg> {{ qualification.awarding_body || `مؤهل مهني ${index + 1}` }} </h3> </div> <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> <div class="space-y-2"> <InfoRow label="الجهة المانحة" :value="qualification.awarding_body" /> <InfoRow label="رقم الرخصة أو الشهادة" :value="qualification.license_or_certificate_number" /> <InfoRow label="البلد المصدّر" :value="qualification.issuing_country" /> </div> <div class="space-y-2"> <InfoRow label="تاريخ الحصول" :value="formatDate(qualification.date_awarded)" /> <InfoRow label="تاريخ الانتهاء" :value="qualification.is_an_expiration_date ? formatDate(qualification.expiration_date) : 'N/A'" /> </div> </div> <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mt-4"> <div class="space-y-2"> <InfoRow label="اسم الجوائز/الوصف" :value="qualification.award_name_description" /> </div> <div class="space-y-2"> <InfoRow label="تاريخ انتهاء المؤهل" :value="qualification.is_an_expiration_date ? 'نعم' : 'لا'" /> <InfoRow label="اسمك يتغير في هذا المؤهل" :value="qualification.your_name_varies ? 'نعم' : 'لا'" /> </div> </div> </div> </div> <div v-else> <p class="text-mutedText">لا توجد سجلات للمؤهلات المهنية.</p> </div> </div> </div> </section> <!-- Footer --> <!-- <footer class="text-center text-mutedText mt-12"> © 2024 Asofi . جميع الحقوق محفوظة. </footer> --> </div> - Assistant
- User
[plugin:vite:import-analysis] Failed to resolve import "../../components/InfoRow.vue" from "src/pages/stepsSections/step5.vue". Does the file exist?
- Assistant
The error message you are encountering indicates that Vite, the build tool, is unable to find the specified component file (
InfoRow.vue) at the path../../components/InfoRow.vuefrom the filesrc/pages/stepsSections/step5.vue. Here are some steps you can take to resolve this issue:-
Check the File Path:
-
- User
انشاء لي هذا الكمبوننت
- Assistant
بالتأكيد! سأساعدك في إنشاء كمبوننت
InfoRow.vueالذي يبدو أنه مصمم لعرض صف من المعلومات في شكل عنوان وقيمة. إليك نموذجًا بسيطًا لهذا الكمبوننت:InfoRow.vue
<template> <div class="info-row"> <span class="label">{{ label }}:</span> <span class="value">{{ value }}</span> </div> </template> <script> export default { name: 'InfoRow', props: { label: { type: String, required: true }, value: { type: String, required: true } } } </script> <style scoped> .info-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #e5e7eb; } .label { font-weight: bold; color: #374151; /* لون للعنوان */ } .value { color: #111827; /* لون للقيمة */ } </style>