diff --git a/app/Http/Controllers/GithubController.php b/app/Http/Controllers/GithubController.php index 5d88a729..5c4bb42e 100644 --- a/app/Http/Controllers/GithubController.php +++ b/app/Http/Controllers/GithubController.php @@ -10,6 +10,8 @@ use Illuminate\Http\JsonResponse; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Bus; +use Inertia\Inertia; +use Inertia\Response; use Laravel\Socialite\Facades\Socialite; use Symfony\Component\HttpFoundation\RedirectResponse; @@ -73,4 +75,9 @@ public function status(string $batchId): JsonResponse "finished" => $batch->finished(), ]); } + + public function login(): Response + { + return Inertia::render("Login"); + } } diff --git a/resources/assets/images/blumilk.png b/resources/assets/images/blumilk.png new file mode 100644 index 00000000..a05420ed Binary files /dev/null and b/resources/assets/images/blumilk.png differ diff --git a/resources/css/app.css b/resources/css/app.css index b5c61c95..ee0ebe6e 100755 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -1,3 +1,7 @@ @tailwind base; @tailwind components; @tailwind utilities; + +#app { + height: 100%; +} \ No newline at end of file diff --git a/resources/js/Layouts/GuestLayout.vue b/resources/js/Layouts/GuestLayout.vue new file mode 100644 index 00000000..faf1322b --- /dev/null +++ b/resources/js/Layouts/GuestLayout.vue @@ -0,0 +1,20 @@ + diff --git a/resources/js/Pages/Login.vue b/resources/js/Pages/Login.vue new file mode 100755 index 00000000..9b35f532 --- /dev/null +++ b/resources/js/Pages/Login.vue @@ -0,0 +1,19 @@ + + + + + diff --git a/resources/views/app.blade.php b/resources/views/app.blade.php index 9911d029..1e567201 100755 --- a/resources/views/app.blade.php +++ b/resources/views/app.blade.php @@ -1,12 +1,14 @@ - + @vite('resources/js/app.ts') @inertiaHead - -@inertia + +
+ @inertia +
- + \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index dd669eca..463b1209 100755 --- a/routes/web.php +++ b/routes/web.php @@ -7,8 +7,9 @@ use Inertia\Response; Route::get("/", fn(): Response => inertia("Welcome")); +Route::get("/auth/login", [GithubController::class, "login"])->name("login"); Route::get("/auth/redirect", [GithubController::class, "redirect"]); Route::get("/auth/callback", [GithubController::class, "callback"]); -Route::get("/{organizationId}/fetch", [GithubController::class, "fetchData"]); +Route::get("/{organizationId}/fetch", [GithubController::class, "fetchData"])->middleware("auth");