-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from LlmLaraHub/checkbox_ui
Search Fix
- Loading branch information
Showing
13 changed files
with
190 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<script setup> | ||
import AppLayout from '@/Layouts/AppLayout.vue'; | ||
import PrimaryButton from '@/Components/PrimaryButton.vue'; | ||
import SecondaryButton from '@/Components/SecondaryButton.vue'; | ||
import { ref } from 'vue'; | ||
import Intro from '@/Components/Intro.vue'; | ||
import SecondaryLink from '@/Components/SecondaryLink.vue'; | ||
import Resources from './Components/Resources.vue'; | ||
import { useForm } from '@inertiajs/vue3'; | ||
const props = defineProps({ | ||
collection: { | ||
type: Object, | ||
required: true, | ||
}, | ||
source: { | ||
type: Object | ||
} | ||
}); | ||
const form = useForm({ | ||
title: props.source.title, | ||
details: props.source.details, | ||
}); | ||
const submit = () => { | ||
form.put( | ||
route('collections.sources.websearch.update', { | ||
collection: props.collection.data.id, | ||
source: props.source.id | ||
}), { | ||
preserveScroll: true, | ||
}); | ||
} | ||
</script> | ||
|
||
<template> | ||
<AppLayout title=" Edit Web Source"> | ||
<template #header> | ||
<h2 class="font-semibold text-xl text-gray-800 leading-tight"> | ||
Edit Web Source | ||
</h2> | ||
</template> | ||
|
||
<div class="py-12"> | ||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> | ||
<div class="bg-white overflow-hidden shadow-xl sm:rounded-lg p-5"> | ||
<Intro> | ||
Web Search Source | ||
<template #description> | ||
Add a query below and you will be able to run it as a web search. | ||
This will add documents to your collection. | ||
</template> | ||
</Intro> | ||
|
||
<form @submit.prevent="submit" class="p-10 "> | ||
<Resources | ||
v-model="form"> | ||
|
||
</Resources> | ||
|
||
<div class="flex justify-end items-center gap-4"> | ||
<PrimaryButton type="submit"> | ||
Save | ||
</PrimaryButton> | ||
<SecondaryLink :href="route('collections.sources.index', { | ||
collection: collection.data.id | ||
})"> | ||
Cancel | ||
</SecondaryLink> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</AppLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.