Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#68 - Student interface for answering tests frontend #73

Merged
merged 150 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
61c2ba7
create button components
AmonDeShir Aug 29, 2024
29a2aa3
update favicon
AmonDeShir Aug 29, 2024
9d1aa3d
clean up route files structure
AmonDeShir Aug 29, 2024
61e2cc7
create layouts
AmonDeShir Aug 29, 2024
bfb38d2
fix code style
AmonDeShir Aug 29, 2024
ac37bb6
add mobile version
AmonDeShir Aug 30, 2024
0d709c6
make mobile version hidden by default
AmonDeShir Aug 30, 2024
642bd67
change logout button to text
AmonDeShir Aug 30, 2024
bfbb89f
fix button styles
AmonDeShir Aug 30, 2024
965d634
remove 'mój'
AmonDeShir Aug 30, 2024
beae972
Merge branch 'main' of https://github.com/blumilksoftware/interns2024…
AmonDeShir Aug 30, 2024
24fc36a
fix linter errors
AmonDeShir Aug 30, 2024
7ff4046
fix Admin tests
AmonDeShir Aug 30, 2024
4b369a0
fix user tests
AmonDeShir Aug 30, 2024
932b87f
Merge branch 'main' of https://github.com/blumilksoftware/interns2024…
AmonDeShir Aug 30, 2024
0358ca9
create guest layout
AmonDeShir Aug 30, 2024
5136b3a
fix dashboard
AmonDeShir Aug 30, 2024
3839e21
fix profile title
AmonDeShir Aug 30, 2024
e7d66b7
fix user tests
AmonDeShir Aug 30, 2024
be450d5
Merge branch 'main' of https://github.com/blumilksoftware/interns2024…
AmonDeShir Aug 30, 2024
c39494f
move user crud to admin folder
AmonDeShir Aug 30, 2024
fc9b633
refactor routes for admin/user CRUDs
AmonDeShir Aug 30, 2024
59f142b
fix status messages
AmonDeShir Aug 30, 2024
7c73bfb
Add user quiz seeder, ranking test, attribute for quiz submission tha…
PrabuckiDominik Sep 2, 2024
7b03e58
Improve seeder
PrabuckiDominik Sep 2, 2024
5f2277d
Remove unused imports
PrabuckiDominik Sep 2, 2024
6fdbce3
Merge branch 'main' of https://github.com/blumilksoftware/interns2024…
PrabuckiDominik Sep 2, 2024
964333d
fix layouts
AmonDeShir Sep 2, 2024
3f73a5b
Add ranking controller
PrabuckiDominik Sep 2, 2024
b945e51
implement user dashboard
AmonDeShir Sep 2, 2024
66b1307
Merge branch 'main' of https://github.com/blumilksoftware/interns2024…
AmonDeShir Sep 2, 2024
74f2d28
add mobile version
AmonDeShir Sep 2, 2024
6d146ff
add non-content message
AmonDeShir Sep 2, 2024
866ac55
disable button while processing
AmonDeShir Sep 2, 2024
649350c
add tests for quiz
AmonDeShir Sep 2, 2024
d9256b0
move user submission check to model
AmonDeShir Sep 2, 2024
a802f0e
remove extra semicolon
AmonDeShir Sep 2, 2024
b44b5ec
Add ranking resource
PrabuckiDominik Sep 3, 2024
331b2b6
fix code style
AmonDeShir Sep 3, 2024
682bd13
changed status to be gender-neutral
AmonDeShir Sep 3, 2024
998e2a5
fix tests
AmonDeShir Sep 3, 2024
135c36b
Modify policy for ranking
PrabuckiDominik Sep 3, 2024
055d8f8
Modify QuizPolicy
PrabuckiDominik Sep 3, 2024
2acf8c8
Modify QuizPolicy
PrabuckiDominik Sep 3, 2024
9344cb6
create quiz page
AmonDeShir Sep 3, 2024
4548912
fix code style
AmonDeShir Sep 3, 2024
2562715
preserve scroll
AmonDeShir Sep 3, 2024
d73adf1
hide closed quizzes
AmonDeShir Sep 3, 2024
74dc8ba
remove extra semicolon
AmonDeShir Sep 3, 2024
8fbac26
Merge branch '12-dashboard' of https://github.com/blumilksoftware/int…
AmonDeShir Sep 3, 2024
785ce0f
add time left
AmonDeShir Sep 3, 2024
22c4df0
fix code style
AmonDeShir Sep 3, 2024
31a37f6
add timer
AmonDeShir Sep 3, 2024
995028a
fix timer
AmonDeShir Sep 3, 2024
4e1d858
center close submission text
AmonDeShir Sep 3, 2024
a02e6fa
fix code style
AmonDeShir Sep 3, 2024
5899341
Fix github warnings with linter
PrabuckiDominik Sep 4, 2024
c2b0672
Fix route in verify email
PrabuckiDominik Sep 4, 2024
6960fe3
Add action for publishing and unpublishing quiz
PrabuckiDominik Sep 4, 2024
b668142
Add return type
PrabuckiDominik Sep 4, 2024
91a6d7f
Apply suggestions from code review
PrabuckiDominik Sep 4, 2024
ac2b7ea
Remove not existing policy from AuthServiceProvider
PrabuckiDominik Sep 4, 2024
2c1fd5c
Merge branch '35-ranking-backend-1' of https://github.com/blumilksoft…
PrabuckiDominik Sep 4, 2024
d890b1c
fix code style
AmonDeShir Sep 4, 2024
494abbc
rename migration
AmonDeShir Sep 4, 2024
b2dfc1b
Create action for publishing and unpublishing ranking
PrabuckiDominik Sep 4, 2024
804bca8
create MessageBox component
AmonDeShir Sep 4, 2024
d0a470a
add ziggy
AmonDeShir Sep 4, 2024
781640d
fix code style
AmonDeShir Sep 4, 2024
cfb7854
Merge branch '12-dashboard' of https://github.com/blumilksoftware/int…
AmonDeShir Sep 4, 2024
c2a97b9
handle timeout
AmonDeShir Sep 4, 2024
7c6474b
Merge branch '35-ranking-backend-1' of https://github.com/blumilksoft…
AmonDeShir Sep 4, 2024
1fef8d9
create quiz result page
AmonDeShir Sep 5, 2024
5f1ef29
fix auth test
AmonDeShir Sep 5, 2024
a273017
fix time & radio
AmonDeShir Sep 5, 2024
98bec99
change FormButton to LinkButton
AmonDeShir Sep 5, 2024
4189d07
fix code style
AmonDeShir Sep 5, 2024
1a35600
add title
AmonDeShir Sep 5, 2024
c26d143
add route parameter
AmonDeShir Sep 5, 2024
8985d68
Merge branch 'main' of https://github.com/blumilksoftware/interns2024…
AmonDeShir Sep 5, 2024
ced2fee
Merge branch 'main' of https://github.com/blumilksoftware/interns2024…
AmonDeShir Sep 5, 2024
f3dede4
fix code style
AmonDeShir Sep 5, 2024
0f280ba
fix code style
AmonDeShir Sep 5, 2024
be8922e
Merge branch '12-dashboard' of https://github.com/blumilksoftware/int…
AmonDeShir Sep 5, 2024
ebd95e7
implement backend for viewing quiz result
AmonDeShir Sep 5, 2024
196a784
fix tests
AmonDeShir Sep 5, 2024
3364f2b
import carbon
AmonDeShir Sep 5, 2024
985ab0c
rename page
AmonDeShir Sep 5, 2024
e5cfcfd
Merge branch '12-dashboard' of https://github.com/blumilksoftware/int…
AmonDeShir Sep 5, 2024
3f4e0f5
remove redeclared methods
AmonDeShir Sep 5, 2024
07b2160
change default timezone
AmonDeShir Sep 5, 2024
c76e8d6
fix tests
AmonDeShir Sep 5, 2024
2a5ba29
rename Verify-Email to VerifyEmail
AmonDeShir Sep 5, 2024
02f6de3
remove ziggy
AmonDeShir Sep 5, 2024
af4e5a0
Merge branch 'main' of https://github.com/blumilksoftware/interns2024…
AmonDeShir Sep 5, 2024
ace2d27
Merge branch '12-dashboard' of https://github.com/blumilksoftware/int…
AmonDeShir Sep 5, 2024
cc88e52
import watch
AmonDeShir Sep 5, 2024
d11c8a6
import watch
AmonDeShir Sep 5, 2024
fd7b451
fix result route url
AmonDeShir Sep 5, 2024
cfac023
Merge branch '12-dashboard' of https://github.com/blumilksoftware/int…
AmonDeShir Sep 5, 2024
6554ac8
fix seeder
AmonDeShir Sep 6, 2024
874b1e2
fix code style
AmonDeShir Sep 6, 2024
80b37b1
Migrate button from useForm to router
AmonDeShir Sep 6, 2024
b36d243
Merge branch 'main' of https://github.com/blumilksoftware/interns2024…
AmonDeShir Sep 6, 2024
79b93e2
Merge branch '12-dashboard' of https://github.com/blumilksoftware/int…
AmonDeShir Sep 6, 2024
a2d2e06
remove ziggy
AmonDeShir Sep 6, 2024
80b327f
improve isClosed function
AmonDeShir Sep 6, 2024
bc2d310
Merge branch '12-dashboard' of https://github.com/blumilksoftware/int…
AmonDeShir Sep 6, 2024
688c444
Merge branch 'main' of https://github.com/blumilksoftware/interns2024…
AmonDeShir Sep 6, 2024
67b4399
fix code style
AmonDeShir Sep 6, 2024
e62a21f
improve 404 text
AmonDeShir Sep 6, 2024
1beee46
remove unused import
AmonDeShir Sep 6, 2024
8c8e648
fix code style
AmonDeShir Sep 6, 2024
e18f824
fix code style
AmonDeShir Sep 6, 2024
2b8d66d
Merge branch 'main' into 68-student-interface-for-answering-tests-fro…
AmonDeShir Sep 9, 2024
b097af7
Apply suggestions from code review
AmonDeShir Sep 9, 2024
3c9db62
fixed js warnings
AmonDeShir Sep 9, 2024
079f10c
Remove unused files
AmonDeShir Sep 9, 2024
b45dd8e
move logic of closing submissions into action
AmonDeShir Sep 9, 2024
a55b2f2
fix code style
AmonDeShir Sep 9, 2024
e4b4088
Apply suggestions from code review
AmonDeShir Sep 10, 2024
6ef6e78
improve message box title
AmonDeShir Sep 10, 2024
9b2dc24
remove polish-plurals
AmonDeShir Sep 10, 2024
18a4e70
fix code style
AmonDeShir Sep 10, 2024
017d4a5
catch axios errors
AmonDeShir Sep 10, 2024
8fc3d9a
change md:w-x/12 to md:max-w
AmonDeShir Sep 10, 2024
1cfa72c
rename FakeRadio to AnswerResult
AmonDeShir Sep 10, 2024
a8447fa
convert TimeLeft component into function
AmonDeShir Sep 10, 2024
2f0d7c7
fix code style
AmonDeShir Sep 10, 2024
25ee251
fix linter error
AmonDeShir Sep 10, 2024
d98c408
fix Timer
AmonDeShir Sep 10, 2024
f1be288
make time left sticky
AmonDeShir Sep 10, 2024
f201ef3
Revert "make time left sticky"
AmonDeShir Sep 10, 2024
a18de1c
fix messageboxes
AmonDeShir Sep 10, 2024
8a969a9
Merge branch '68-student-interface-for-answering-tests-frontend' of h…
AmonDeShir Sep 10, 2024
48b8d36
fix code style
AmonDeShir Sep 11, 2024
4bae162
remove scroll.y logging
AmonDeShir Sep 11, 2024
cfc2aeb
Update resources/js/components/Common/FormButton.vue
AmonDeShir Sep 11, 2024
236e12f
Apply suggestions from code review
AmonDeShir Sep 11, 2024
7e4fd05
fix calculation of submission duration
AmonDeShir Sep 11, 2024
6ef7fb9
change class to buttonClass
AmonDeShir Sep 11, 2024
ccb2468
fix code style
AmonDeShir Sep 11, 2024
b911bda
fix code style
AmonDeShir Sep 11, 2024
330197e
remove class from props
AmonDeShir Sep 11, 2024
8eeb8a5
fix id warning
AmonDeShir Sep 11, 2024
46a5716
remove useMessageBox function
AmonDeShir Sep 11, 2024
c6b1827
fix code style
AmonDeShir Sep 11, 2024
4bd8a09
Update resources/js/components/Common/LinkButton.vue
AmonDeShir Sep 11, 2024
d1d19bd
Update resources/js/Pages/User/Quiz.vue
AmonDeShir Sep 11, 2024
bb6cda6
remove empty file
AmonDeShir Sep 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions app/Actions/CloseQuizSubmissionAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

namespace App\Actions;

use App\Models\QuizSubmission;
use Carbon\Carbon;

class CloseQuizSubmissionAction
{
public function execute(QuizSubmission $submission): void
{
$submission->closed_at = Carbon::now();
$submission->save();
}
}
11 changes: 10 additions & 1 deletion app/Http/Controllers/QuizSubmissionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,29 @@

namespace App\Http\Controllers;

use App\Actions\CloseQuizSubmissionAction;
use App\Http\Resources\QuizSubmissionResource;
use App\Models\QuizSubmission;
use Illuminate\Http\RedirectResponse;
use Inertia\Inertia;
use Inertia\Response;

class QuizSubmissionController extends Controller
{
public function show(QuizSubmission $quizSubmission): Response
{
$quizSubmission->load(["answerRecords.question.answers", "quiz"]);
$quizSubmission->load(["answerRecords.question.answers"]);

return Inertia::render("User/Quiz", ["submission" => QuizSubmissionResource::make($quizSubmission)]);
}

public function close(QuizSubmission $quizSubmission, CloseQuizSubmissionAction $action): RedirectResponse
{
$action->execute($quizSubmission);

return redirect()->route("submissions.result", $quizSubmission->id)->with("status", "Test został oddany.");
}

public function result(QuizSubmission $quizSubmission): Response
{
$quizSubmission->load(["answerRecords.question.answers", "quiz"]);
Expand Down
1 change: 1 addition & 0 deletions app/Http/Resources/QuizSubmissionResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public function toArray(Request $request): array
"name" => $this->quiz->name,
"createdAt" => $this->created_at,
"updatedAt" => $this->updated_at,
"openedAt" => $this->quiz->scheduled_at,
"closedAt" => $this->closed_at,
"closed" => $this->isClosed,
"quiz" => $this->quiz_id,
Expand Down
2 changes: 1 addition & 1 deletion app/Models/AnswerRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @property bool $isCorrect
* @property QuizSubmission $quizSubmission
* @property Question $question
* @property Answer $answer
* @property ?Answer $answer
*/
class AnswerRecord extends Model
{
Expand Down
5 changes: 5 additions & 0 deletions app/Policies/QuizSubmissionPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ public function view(User $user, QuizSubmission $quizSubmission): bool
return $user->id === $quizSubmission->user_id;
}

public function close(User $user, QuizSubmission $quizSubmission): bool
{
return $user->id === $quizSubmission->user_id && !$quizSubmission->isClosed;
}

public function result(User $user, QuizSubmission $quizSubmission): bool
{
return $user->id === $quizSubmission->user_id && $quizSubmission->isClosed;
Expand Down
1 change: 1 addition & 0 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function run(): void
]);

Quiz::factory()->locked()->count(5)->create(["scheduled_at" => Carbon::now()->addMonth()]);
Quiz::factory()->locked()->create(["name" => "6 Minutes", "scheduled_at" => Carbon::now(), "duration" => 6]);

$quiz = Quiz::factory()->locked()->create(["name" => "Test Quiz", "scheduled_at" => Carbon::now(), "duration" => 2]);
$questions = Question::factory()->count(10)->create(["quiz_id" => $quiz->id]);
Expand Down
95 changes: 95 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@inertiajs/vue3": "^1.2.0",
"@tailwindcss/forms": "^0.5.8",
"@tailwindcss/typography": "^0.5.15",
"@vueuse/core": "^11.0.3",
"dayjs": "^1.11.13",
"laravel-vite-plugin": "^1.0.5",
"lodash": "^4.17.21",
Expand Down
13 changes: 13 additions & 0 deletions resources/js/Helpers/Plurals.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export const usePlurals = (singular: string, pluralNominativ: string, pluralGenitive: string) => (value: number) => {
value = Math.abs(value)

if (value === 1) {
return singular
}

if (value % 10 >= 2 && value % 10 <= 4 && (value % 100 < 10 || value % 100 >= 20)) {
return pluralNominativ
}

return pluralGenitive
}
46 changes: 46 additions & 0 deletions resources/js/Helpers/Time.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import {type TimeObject} from '@/Types/TimeObject'
import dayjs, { type Dayjs } from 'dayjs'
import {usePlurals} from '@/Helpers/Plurals'

export function calcSecondsBetweenDates(from: string | number | Dayjs = 0, to: string | number | Dayjs = 0): number {
return dayjs(from).diff(dayjs(to), 's')
}

export function calcSecondsLeftToDate(date: string | number | Dayjs = 0): number {
return Math.max(calcSecondsBetweenDates(date, dayjs()), 0)
}

export function secondsToHour(seconds: number): TimeObject {
return {
'h': Math.floor(seconds / 3600),
'm': Math.floor(seconds % 3600 / 60),
's': seconds % 60,
}
}

const translateLeft = usePlurals('Pozostała', 'Pozostały', 'Pozostało')
const translateSecondsLeft = usePlurals('sekunda', 'sekundy', 'sekund')
const translateMinutesLeft = usePlurals('minuta', 'minuty', 'minut')
const translateHoursLeft = usePlurals('godzina', 'godziny', 'godzin')

export function timeToString(time: TimeObject, withLeft = false): string {
const { s, m, h } = time

if (h <= 0 && m <= 0) {
return `${withLeft ? translateLeft(s) : ''} ${s} ${translateSecondsLeft(s)}`.trimStart()
}

if (h <= 0 && m < 10 && s > 0 ) {
return `${withLeft ? translateLeft(m) : ''} ${m} ${translateMinutesLeft(m)} i ${s} ${translateSecondsLeft(s)}`.trimStart()
}

if (h <= 0) {
return `${withLeft ? translateLeft(m) : ''} ${m} ${translateMinutesLeft(m)}`.trimStart()
}

if (h <= 0 && m > 0) {
return `${withLeft ? translateLeft(h) : ''} ${h} ${translateHoursLeft(h)} i ${m} ${translateMinutesLeft(m)}`.trimStart()
}

return `${withLeft ? translateLeft(h) : ''} ${h} ${translateHoursLeft(h)}`.trimStart()
}
17 changes: 17 additions & 0 deletions resources/js/Helpers/Timer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {computed, ref} from 'vue'
import {calcSecondsLeftToDate, secondsToHour, timeToString} from '@/Helpers/Time'

export function useTimer(to: string | number, timeout: () => void) {
const left = ref(calcSecondsLeftToDate(to))

const interval = setInterval(() => {
left.value = Math.max(0, left.value - 1)

if (left.value === 0) {
timeout()
clearInterval(interval)
}
}, 1000)

return computed(() => timeToString(secondsToHour(left.value), true))
}
1 change: 0 additions & 1 deletion resources/js/Layouts/AdminLayout.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script setup lang="ts">

import type {Page} from '@/Types/Page'
import BaseLayout from '@/Layouts/BaseLayout.vue'
import {type PageProps} from '@/Types/PageProps'
Expand Down
1 change: 0 additions & 1 deletion resources/js/Layouts/BaseLayout.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script setup lang="ts">

import type {Page} from '@/Types/Page'
import Header from '@/components/Common/Header.vue'
import Footer from '@/components/Common/Footer.vue'
Expand Down
1 change: 0 additions & 1 deletion resources/js/Layouts/GuestLayout.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script setup lang="ts">

import BaseLayout from '@/Layouts/BaseLayout.vue'
import type {PageProps} from '@/Types/PageProps'

Expand Down
1 change: 0 additions & 1 deletion resources/js/Layouts/UserLayout.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script setup lang="ts">

import type {Page} from '@/Types/Page'
import BaseLayout from '@/Layouts/BaseLayout.vue'
import type {PageProps} from '@/Types/PageProps'
Expand Down
12 changes: 11 additions & 1 deletion resources/js/Pages/Admin/Quizzes.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
<script setup lang="ts">
import {Head} from '@inertiajs/vue3'
import {type Quiz} from '@/Types/Quiz'
import LinkButton from '@/components/Common/LinkButton.vue'

defineProps<{ quizzes: Quiz[] }>()
</script>

<template>
<Head>
<title>Testy</title>
</Head>

Quizzes - CRUD

<div class="w-4/5">
<div v-for="quiz in quizzes" :key="quiz.id" class="m-4 bg-white w-100 rounded-2xl p-4 border shadow flex gap-4 items-center justify-between">
<b>{{ quiz.name }}</b>
<LinkButton :href="`/admin/quizzes/${quiz.id}/ranking`" small>Ranking</LinkButton>
</div>
</div>
</template>
22 changes: 5 additions & 17 deletions resources/js/Pages/Admin/Ranking.vue
Original file line number Diff line number Diff line change
@@ -1,37 +1,25 @@
<script setup lang="ts">

import {computed, ref} from 'vue'
import { defineProps } from 'vue'
import type { QuizRankingProps} from '@/Types/Ranking'
import { useForm } from '@inertiajs/vue3'
import FormButton from '@/components/Common/FormButton.vue'

const props = defineProps<QuizRankingProps>()

const form = useForm({})

const quiz = ref(props.quiz)
const rankings = ref(props.rankings)

const sortedRankings = computed(() => {
return [...rankings.value].sort((a, b) => b.points - a.points)
})
function publish() {
form.post(`/admin/quizzes/${quiz.value.id}/ranking/publish`)
}
function unpublish() {
form.post(`/admin/quizzes/${quiz.value.id}/ranking/unpublish`)
}
</script>

<template>
<div>
<h1>Ranking Quizu: {{ quiz.name }}</h1>
<form @submit.prevent="publish">
<button type="submit">Publikuj</button>
</form>
<form @submit.prevent="unpublish">
<button type="submit">Wycofaj publikacje</button>
</form>
<div class="flex gap-4">
<FormButton method="post" :href="`/admin/quizzes/${quiz.id}/ranking/publish`" small preserve-scroll>Publikuj</FormButton>
<FormButton method="post" :href="`/admin/quizzes/${quiz.id}/ranking/unpublish`" small preserve-scroll>Wycofaj publikacje</FormButton>
</div>
<table>
<thead>
<tr>
Expand Down
1 change: 0 additions & 1 deletion resources/js/Pages/Auth/VerifyEmail.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script setup lang="ts">

import {useForm} from '@inertiajs/vue3'

const form = useForm({})
Expand Down
1 change: 0 additions & 1 deletion resources/js/Pages/Home.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script lang="ts" setup>

import {ref, provide, watch} from 'vue'
import Footer from '@/components/Common/Footer.vue'
import AuthBanner from '@/components/Home/AuthBanner.vue'
Expand Down
Loading
Loading