-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Adelino Ngomacha
committed
Jun 29, 2024
1 parent
7bd0b4c
commit d036cc6
Showing
4 changed files
with
186 additions
and
242 deletions.
There are no files selected for viewing
184 changes: 184 additions & 0 deletions
184
libs/components/Dashboard/Settings/Forms/StorageForm.vue
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,184 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<form> | ||
<main class="border-b border-gray-900/10"> | ||
<!-- Settings forms --> | ||
<div class="divide-y divide-gray-900/10"> | ||
<div class="grid max-w-7xl grid-cols-1 gap-x-8 gap-y-10 py-16 md:grid-cols-3"> | ||
<div> | ||
<h2 class="text-base font-semibold leading-7 text-gray-900 dark:text-gray-100"> | ||
Default Storage Settings | ||
</h2> | ||
<p class="mt-1 text-sm leading-6 text-gray-600"> | ||
Update your default Storage settings | ||
</p> | ||
</div> | ||
|
||
<div class="md:col-span-2"> | ||
<div class="w-full grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6"> | ||
<div class="sm:col-span-3"> | ||
<label for="type" class="block text-sm font-medium leading-6 text-gray-900">Default</label> | ||
<div class="mt-2"> | ||
<select id="type" name="type" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:max-w-xs sm:text-sm sm:leading-6"> | ||
<option selected> | ||
s3 | ||
</option> | ||
<option>Dropbox</option> | ||
<option>Meema</option> | ||
</select> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="grid max-w-7xl grid-cols-1 gap-x-8 gap-y-10 py-16 md:grid-cols-3"> | ||
<div> | ||
<h2 class="text-base font-semibold leading-7 text-gray-900 dark:text-gray-100"> | ||
AWS S3 | ||
</h2> | ||
<p class="mt-1 text-sm leading-6 text-gray-600"> | ||
Update your AWS S3 configurations | ||
</p> | ||
</div> | ||
|
||
<div class="md:col-span-2"> | ||
<div class="w-full grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6"> | ||
<div class="sm:col-span-3"> | ||
<label for="local-driver" class="block text-sm font-medium leading-6 text-gray-900">Key</label> | ||
<div class="mt-2"> | ||
<input id="local-driver" type="text" name="local-driver" value="JKHJK$KJAHKS" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-3"> | ||
<label for="local-root" class="block text-sm font-medium leading-6 text-gray-900">Secret</label> | ||
<div class="mt-2"> | ||
<input id="local-root" type="text" name="local-root" value="kldsanko3njksdasjfasdn2m" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-3"> | ||
<label for="local-root" class="block text-sm font-medium leading-6 text-gray-900">Region</label> | ||
<div class="mt-2"> | ||
<input id="local-root" type="text" name="local-root" value="us-east-1" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-3"> | ||
<label for="local-root" class="block text-sm font-medium leading-6 text-gray-900">Bucket</label> | ||
<div class="mt-2"> | ||
<input id="local-root" type="text" name="local-root" value="stacks" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-full"> | ||
<label for="local-root" class="block text-sm font-medium leading-6 text-gray-900">URL</label> | ||
<div class="mt-2"> | ||
<input id="local-root" type="text" name="local-root" value="stacks.s3.amazonaws.com" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="grid max-w-7xl grid-cols-1 gap-x-8 gap-y-10 py-16 md:grid-cols-3"> | ||
<div> | ||
<h2 class="text-base font-semibold leading-7 text-gray-900 dark:text-gray-100"> | ||
Dropbox | ||
</h2> | ||
<p class="mt-1 text-sm leading-6 text-gray-600"> | ||
Update your Dropbox configurations | ||
</p> | ||
</div> | ||
|
||
<div class="md:col-span-2"> | ||
<div class="w-full grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6"> | ||
<div class="sm:col-span-3"> | ||
<label for="local-driver" class="block text-sm font-medium leading-6 text-gray-900">Key</label> | ||
<div class="mt-2"> | ||
<input id="local-driver" type="text" name="local-driver" value="JKHJK$KJAHKS" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-3"> | ||
<label for="local-root" class="block text-sm font-medium leading-6 text-gray-900">Secret</label> | ||
<div class="mt-2"> | ||
<input id="local-root" type="text" name="local-root" value="kldsanko3njksdasjfasdn2m" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-full"> | ||
<label for="local-root" class="block text-sm font-medium leading-6 text-gray-900">Box</label> | ||
<div class="mt-2"> | ||
<input id="local-root" type="text" name="local-root" value="stacks" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="grid max-w-7xl grid-cols-1 gap-x-8 gap-y-10 py-16 md:grid-cols-3"> | ||
<div> | ||
<h2 class="text-base font-semibold leading-7 text-gray-900 dark:text-gray-100"> | ||
Meema | ||
</h2> | ||
<p class="mt-1 text-sm leading-6 text-gray-600"> | ||
Update your Meema configurations | ||
</p> | ||
</div> | ||
|
||
<div class="md:col-span-2"> | ||
<div class="w-full grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6"> | ||
<div class="sm:col-span-3"> | ||
<label for="local-driver" class="block text-sm font-medium leading-6 text-gray-900">Key</label> | ||
<div class="mt-2"> | ||
<input id="local-driver" type="text" name="local-driver" value="HJDSU41HJJKAD" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-3"> | ||
<label for="local-root" class="block text-sm font-medium leading-6 text-gray-900">Secret</label> | ||
<div class="mt-2"> | ||
<input id="local-root" type="text" name="local-root" value="jkhnb523nbmnb9dsanmeop" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-3"> | ||
<label for="local-root" class="block text-sm font-medium leading-6 text-gray-900">Region</label> | ||
<div class="mt-2"> | ||
<input id="local-root" type="text" name="local-root" value="us-east-1" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-3"> | ||
<label for="local-root" class="block text-sm font-medium leading-6 text-gray-900">Baacket</label> | ||
<div class="mt-2"> | ||
<input id="local-root" type="text" name="local-root" value="stacks" class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
<div class="mt-6 flex items-center justify-end gap-x-6"> | ||
<button type="button" class="text-sm font-semibold leading-6 text-gray-900"> | ||
Cancel | ||
</button> | ||
<Button | ||
type="submit" | ||
class="rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600" | ||
> | ||
Save | ||
</Button> | ||
</div> | ||
</form> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
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.