Skip to content

Commit 430d009

Browse files
committed
update seeder with predefined data
1 parent ff7bfee commit 430d009

3 files changed

Lines changed: 123 additions & 105 deletions

File tree

‎database/seeders/NodeSeeder.php‎

Lines changed: 110 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -14,121 +14,139 @@ public function run(): void
1414

1515
$data = [
1616

17-
'Bangla 1st Paper' => [
18-
'National Language Movement',
19-
'Poetry & Prose',
20-
'Grammar & Composition',
17+
'বাংলা ১ম পত্র' => [
18+
'গদ্য',
19+
'পদ্য',
20+
'সহপাঠ',
2121
],
2222

23-
'Bangla 2nd Paper' => [
24-
'Grammar Fundamentals',
25-
'Sentence Structure',
26-
'Writing Skills',
23+
'বাংলা ২য় পত্র' => [
24+
'ব্যাকরণ',
25+
'নির্মিতি',
26+
'রচনা',
2727
],
2828

29-
'English 1st Paper' => [
30-
'Reading Comprehension',
31-
'Literature Texts',
32-
'Vocabulary Building',
29+
'ইংরেজি ১ম পত্র' => [
30+
'Seen Passages',
31+
'Unseen Passages',
32+
'Information Transfer',
33+
'Summary',
3334
],
3435

35-
'English 2nd Paper' => [
36-
'Grammar Rules',
37-
'Writing Paragraphs',
38-
'Formal Letter Writing',
36+
'ইংরেজি ২য় পত্র' => [
37+
'Grammar',
38+
'Paragraph Writing',
39+
'Essay Writing',
40+
'Application',
41+
'Email',
42+
'CV & Cover Letter',
3943
],
4044

41-
'Physics 1st Paper' => [
42-
'Physical World & Measurement',
43-
'Vectors',
44-
'Motion in a Straight Line',
45-
'Newtonian Mechanics',
46-
'Work, Energy & Power',
47-
'Gravitation',
48-
'Properties of Matter',
49-
'Waves',
50-
'Simple Harmonic Motion',
51-
'Thermodynamics',
45+
'পদার্থবিজ্ঞান ১ম পত্র' => [
46+
'ভৌত জগৎ ও পরিমাপ',
47+
'ভেক্টর',
48+
'গতি',
49+
'নিউটনীয় বলবিদ্যা',
50+
'কাজ, ক্ষমতা ও শক্তি',
51+
'মহাকর্ষ ও অভিকর্ষ',
52+
'পদার্থের গাঠনিক ধর্ম',
53+
'পর্যাবৃত্ত গতি',
54+
'তরঙ্গ',
5255
],
5356

54-
'Physics 2nd Paper' => [
55-
'Electrostatics',
56-
'Current Electricity',
57-
'Magnetic Effects of Current',
58-
'Electromagnetic Induction',
59-
'AC Circuits',
60-
'Modern Physics',
61-
'Semiconductor & Electronics',
62-
'Communication System',
57+
'পদার্থবিজ্ঞান ২য় পত্র' => [
58+
'তাপগতিবিদ্যা',
59+
'স্থির তড়িৎ',
60+
'চল তড়িৎ',
61+
'তড়িৎ প্রবাহের চৌম্বক ক্রিয়া',
62+
'তড়িৎচৌম্বকীয় আবেশ ও পরিবর্তী প্রবাহ',
63+
'জ্যামিতিক আলোকবিজ্ঞান',
64+
'ভৌত আলোকবিজ্ঞান',
65+
'আধুনিক পদার্থবিজ্ঞানের সূচনা',
66+
'পরমাণুর মডেল ও নিউক্লিয়ার পদার্থবিজ্ঞান',
67+
'সেমিকন্ডাক্টর ও ইলেকট্রনিক্স',
68+
'জ্যোতির্বিজ্ঞান',
6369
],
6470

65-
'Chemistry 1st Paper' => [
66-
'Qualitative Chemistry',
67-
'Periodic Table & Periodicity',
68-
'Chemical Bonding',
69-
'Chemical Reactions',
70-
'Environmental Chemistry',
71+
'রসায়ন ১ম পত্র' => [
72+
'ল্যাবরেটরির নিরাপদ ব্যবহার',
73+
'গুণগত রসায়ন',
74+
'মৌলের পর্যায়বৃত্ত ধর্ম ও রাসায়নিক বন্ধন',
75+
'রাসায়নিক পরিবর্তন',
76+
'কর্মমুখী রসায়ন',
7177
],
7278

73-
'Chemistry 2nd Paper' => [
74-
'Solid State',
75-
'Solutions',
76-
'Electrochemistry',
77-
'Chemical Kinetics',
78-
'Organic Chemistry Basics',
79-
'Hydrocarbons',
80-
'Alcohols, Phenols & Ethers',
81-
'Aldehydes, Ketones & Carboxylic Acids',
82-
'Amines',
83-
'Biomolecules',
79+
'রসায়ন ২য় পত্র' => [
80+
'পরিবেশ রসায়ন',
81+
'জৈব রসায়ন',
82+
'পরিমাণগত রসায়ন',
83+
'তড়িৎ রসায়ন',
84+
'অর্থনৈতিক রসায়ন',
8485
],
8586

86-
'Higher Math 1st Paper' => [
87-
'Matrix & Determinants',
88-
'Vectors',
89-
'Straight Lines',
90-
'Circle',
91-
'Permutations & Combinations',
92-
'Trigonometric Ratios & Identities',
93-
'Trigonometric Equations',
94-
'Functions & Graphs',
95-
'Differentiation',
96-
'Integration',
87+
'উচ্চতর গণিত ১ম পত্র' => [
88+
'ম্যাট্রিক্স ও নির্ণায়ক',
89+
'সরলরেখা',
90+
'বৃত্ত',
91+
'বিন্যাস ও সমাবেশ',
92+
'ত্রিকোণমিতিক অনুপাত',
93+
'সংযুক্ত কোণের ত্রিকোণমিতিক অনুপাত',
94+
'অন্তর্বর্তী ও বিপরীত ত্রিকোণমিতিক ফাংশন',
95+
'ফাংশন ও ফাংশনের লেখচিত্র',
96+
'অন্তরীকরণ',
9797
],
9898

99-
'Higher Math 2nd Paper' => [
100-
'Real Numbers & Inequalities',
101-
'Polynomials',
102-
'Complex Numbers',
103-
'Polynomial Equations',
104-
'Binomial Theorem',
105-
'Conics',
106-
'Inverse Trigonometric Functions',
107-
'Statics',
108-
'Dynamics',
109-
'Probability & Statistics',
99+
'উচ্চতর গণিত ২য় পত্র' => [
100+
'যোগজীকরণ',
101+
'সমীকরণ',
102+
'জটিল সংখ্যা',
103+
'বহুপদী ও বহুপদী সমীকরণ',
104+
'দ্বিপদী বিস্তৃতি',
105+
'কণিক',
106+
'ত্রিকোণমিতিক সমীকরণ',
107+
'স্থিতিবিদ্যা',
108+
'সমতলে বস্তুকণার গতি',
109+
'সম্ভাবনা',
110+
'পরিসংখ্যান',
110111
],
111112

112-
'Biology 1st Paper' => [
113-
'Cell Biology',
114-
'Cell Division',
115-
'Microorganisms',
116-
'Algae & Fungi',
117-
'Bryophytes & Pteridophytes',
118-
'Gymnosperms & Angiosperms',
119-
'Plant Physiology',
113+
'জীববিজ্ঞান ১ম পত্র' => [
114+
'কোষ ও এর গঠন',
115+
'কোষ বিভাজন',
116+
'কোষ রসায়ন',
117+
'অণুজীব',
118+
'শৈবাল ও ছত্রাক',
119+
'ব্রায়োফাইটা ও টেরিডোফাইটা',
120+
'নগ্নবীজী ও আবৃতবীজী উদ্ভিদ',
121+
'টিস্যু ও টিস্যুতন্ত্র',
122+
'উদ্ভিদ শারীরতত্ত্ব',
123+
'উদ্ভিদের প্রজনন',
124+
'জীবপ্রযুক্তি',
120125
],
121126

122-
'Biology 2nd Paper' => [
123-
'Human Physiology',
124-
'Blood & Circulation',
125-
'Excretion & Homeostasis',
126-
'Nervous System',
127-
'Endocrine System',
128-
'Reproduction',
129-
'Genetics & Evolution',
130-
'Ecology & Environment',
127+
'জীববিজ্ঞান ২য় পত্র' => [
128+
'প্রাণীর বিভিন্নতা ও শ্রেণিবিন্যাস',
129+
'প্রাণীর পরিচিতি',
130+
'পরিপাক ও শোষণ',
131+
'রক্ত ও সঞ্চালন',
132+
'শ্বাসক্রিয়া',
133+
'বর্জ্য ও নিষ্কাশন',
134+
'চলন ও অঙ্গচালনা',
135+
'সমন্বয় ও নিয়ন্ত্রণ',
136+
'মানব জীবনের ধারাবাহিকতা',
137+
'মানবদেহের প্রতিরক্ষা',
138+
'জিনতত্ত্ব ও বিবর্তন',
139+
'প্রাণীর আচরণ',
131140
],
141+
142+
'তথ্য ও যোগাযোগ প্রযুক্তি' => [
143+
'তথ্য ও যোগাযোগ প্রযুক্তি : বিশ্ব ও বাংলাদেশ',
144+
'কমিউনিকেশন সিস্টেমস ও নেটওয়ার্কিং',
145+
'সংখ্যা পদ্ধতি ও ডিজিটাল ডিভাইস',
146+
'ওয়েব ডিজাইন পরিচিতি',
147+
'প্রোগ্রামিং ভাষা',
148+
],
149+
132150
];
133151

134152
foreach ($data as $subjectName => $chapters) {

‎database/seeders/SubjectSeeder.php‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ class SubjectSeeder extends Seeder
1111
public function run(): void
1212
{
1313
$subjects = [
14-
['name' => 'Bangla 1st Paper', 'icon' => 'BookOpen', 'tailwind_format' => 'bg-red-50 text-red-600'],
15-
['name' => 'Bangla 2nd Paper', 'icon' => 'BookOpen', 'tailwind_format' => 'bg-red-100 text-red-700'],
14+
['name' => 'বাংলা ১ম পত্র', 'icon' => 'BookOpen', 'tailwind_format' => 'bg-red-50 text-red-600'],
15+
['name' => 'বাংলা ২য় পত্র', 'icon' => 'BookOpen', 'tailwind_format' => 'bg-red-100 text-red-700'],
1616

17-
['name' => 'English 1st Paper', 'icon' => 'PenTool', 'tailwind_format' => 'bg-blue-50 text-blue-600'],
18-
['name' => 'English 2nd Paper', 'icon' => 'PenTool', 'tailwind_format' => 'bg-blue-100 text-blue-700'],
17+
['name' => 'ইংরেজি ১ম পত্র', 'icon' => 'PenTool', 'tailwind_format' => 'bg-blue-50 text-blue-600'],
18+
['name' => 'ইংরেজি ২য় পত্র', 'icon' => 'PenTool', 'tailwind_format' => 'bg-blue-100 text-blue-700'],
1919

20-
['name' => 'Physics 1st Paper', 'icon' => 'Atom', 'tailwind_format' => 'bg-purple-50 text-purple-600'],
21-
['name' => 'Physics 2nd Paper', 'icon' => 'Atom', 'tailwind_format' => 'bg-purple-100 text-purple-700'],
20+
['name' => 'পদার্থবিজ্ঞান ১ম পত্র', 'icon' => 'Atom', 'tailwind_format' => 'bg-purple-50 text-purple-600'],
21+
['name' => 'পদার্থবিজ্ঞান ২য় পত্র', 'icon' => 'Atom', 'tailwind_format' => 'bg-purple-100 text-purple-700'],
2222

23-
['name' => 'Chemistry 1st Paper', 'icon' => 'FlaskConical', 'tailwind_format' => 'bg-emerald-50 text-emerald-600'],
24-
['name' => 'Chemistry 2nd Paper', 'icon' => 'FlaskConical', 'tailwind_format' => 'bg-emerald-100 text-emerald-700'],
23+
['name' => 'রসায়ন ১ম পত্র', 'icon' => 'FlaskConical', 'tailwind_format' => 'bg-emerald-50 text-emerald-600'],
24+
['name' => 'রসায়ন ২য় পত্র', 'icon' => 'FlaskConical', 'tailwind_format' => 'bg-emerald-100 text-emerald-700'],
2525

26-
['name' => 'Higher Math 1st Paper', 'icon' => 'Sigma', 'tailwind_format' => 'bg-amber-50 text-amber-600'],
27-
['name' => 'Higher Math 2nd Paper', 'icon' => 'Sigma', 'tailwind_format' => 'bg-amber-100 text-amber-700'],
26+
['name' => 'উচ্চতর গণিত ১ম পত্র', 'icon' => 'Sigma', 'tailwind_format' => 'bg-amber-50 text-amber-600'],
27+
['name' => 'উচ্চতর গণিত ২য় পত্র', 'icon' => 'Sigma', 'tailwind_format' => 'bg-amber-100 text-amber-700'],
2828

29-
['name' => 'Biology 1st Paper', 'icon' => 'Dna', 'tailwind_format' => 'bg-green-50 text-green-600'],
30-
['name' => 'Biology 2nd Paper', 'icon' => 'Dna', 'tailwind_format' => 'bg-green-100 text-green-700'],
29+
['name' => 'জীববিজ্ঞান ১ম পত্র', 'icon' => 'Dna', 'tailwind_format' => 'bg-green-50 text-green-600'],
30+
['name' => 'জীববিজ্ঞান ২য় পত্র', 'icon' => 'Dna', 'tailwind_format' => 'bg-green-100 text-green-700'],
3131
];
3232

3333
foreach ($subjects as $index => $subject) {

‎resources/js/pages/Node.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const totalItemsCount = computed(() => {
122122
<span
123123
class="block truncate text-base font-bold text-slate-900 transition-colors group-hover:text-indigo-600"
124124
>
125-
{{ node.slug }}
125+
{{ node.name }}
126126
</span>
127127
<span
128128
class="mt-0.5 inline-block text-xs font-semibold text-slate-400 sm:hidden"

0 commit comments

Comments
 (0)