diff --git a/app/Filament/Admin/Resources/CareerApplications/Schemas/CareerApplicationForm.php b/app/Filament/Admin/Resources/CareerApplications/Schemas/CareerApplicationForm.php index f4412c9..2cdcfd5 100644 --- a/app/Filament/Admin/Resources/CareerApplications/Schemas/CareerApplicationForm.php +++ b/app/Filament/Admin/Resources/CareerApplications/Schemas/CareerApplicationForm.php @@ -15,7 +15,7 @@ use Filament\Schemas\Components\Utilities\Set; use Illuminate\Support\Str; use Filament\Schemas\Components\Tabs; use Filament\Schemas\Components\Tabs\Tab; -use Filament\Schemas\Components\View; +use Filament\Schemas\Components\Livewire; class CareerApplicationForm { @@ -139,8 +139,8 @@ class CareerApplicationForm ->nullable() ->live(), - // View::make('filament.components.intern-journal-timeline') - // ->columnSpanFull() + Livewire::make(\App\Livewire\InternJournalTimeline::class) + ->columnSpanFull() ]) ])->columnSpanFull() ]); diff --git a/app/Livewire/InternJournalTimeline.php b/app/Livewire/InternJournalTimeline.php new file mode 100644 index 0000000..f308174 --- /dev/null +++ b/app/Livewire/InternJournalTimeline.php @@ -0,0 +1,21 @@ +record?->github_repo; + } + + public function render() + { + return view('livewire.intern-journal-timeline'); + } +} diff --git a/resources/views/filament/components/intern-journal-timeline.blade.php b/resources/views/filament/components/intern-journal-timeline.blade.php index 24c5ceb..33ab53f 100644 --- a/resources/views/filament/components/intern-journal-timeline.blade.php +++ b/resources/views/filament/components/intern-journal-timeline.blade.php @@ -1,86 +1,50 @@ @php - $githubRepo = $get('github_repo') ?? ($record ? $record->github_repo : null); - $uid = 'journal_' . uniqid(); + $githubRepo = $get('github_repo') ?? ($getRecord ? $getRecord()->github_repo : null); @endphp -
- - + + init() { + this.loadCommits(); + }, - - + escapeHtml(text) { + if (!text) return ''; + const div = document.createElement('div'); + div.appendChild(document.createTextNode(text)); + return div.innerHTML; + }, - - - - - - - + {{-- Event Card --}} +
+
+ + + + + + + +
+

+
+
+ + + + diff --git a/resources/views/livewire/intern-journal-timeline.blade.php b/resources/views/livewire/intern-journal-timeline.blade.php new file mode 100644 index 0000000..85c9a29 --- /dev/null +++ b/resources/views/livewire/intern-journal-timeline.blade.php @@ -0,0 +1,181 @@ +
+ {{-- Loader --}} +
+
+ GitHub'dan commitler yükleniyor... +
+ + {{-- Error --}} +
+ + {{-- Empty --}} +
+ Henüz hiç commit bulunamadı veya stajyerin deposu tanımlanmadı. +
+ + {{-- Day Paginator --}} +
+ + +
+
+ +
+
+ + +
+ + {{-- Active Day Card --}} +
+
+
+ + + + + +
+ +
+ + {{-- Timeline --}} +
+
+
+ +
+
+
+