-
-
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 23, 2024
1 parent
4f9bedc
commit 00018dd
Showing
6 changed files
with
189 additions
and
171 deletions.
There are no files selected for viewing
185 changes: 185 additions & 0 deletions
185
libs/components/Dashboard/Settings/Forms/DatabaseForm.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,185 @@ | ||
<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"> | ||
MySQL | ||
</h2> | ||
<p class="mt-1 text-sm leading-6 text-gray-600"> | ||
Update your MySQL driver settings. | ||
</p> | ||
</div> | ||
|
||
<div class="md:col-span-2"> | ||
<div class="grid grid-cols-1 gap-x-6 gap-y-8 sm:max-w-xl sm:grid-cols-6"> | ||
<div class="sm:col-span-3"> | ||
<label | ||
for="mysql-host" | ||
class="block text-sm font-medium leading-6 text-gray-900 dark:text-gray-100" | ||
>Host</label> | ||
<div class="mt-2"> | ||
<input | ||
id="mysql-host" | ||
type="text" | ||
name="name" | ||
value="stacks" | ||
class="block w-full px-4 py-2 text-gray-900 border border-gray-300 rounded-md shadow-sm required:border-red-500 dark:bg-blue-gray-800 dark:text-gray-200 dark:text-gray-100 dark:border-gray-600 focus:border-none focus:ring-2 focus:ring-blue-500" | ||
> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-3"> | ||
<label | ||
for="mysql-port" | ||
class="block text-sm font-medium leading-6 text-gray-900 dark:text-gray-100" | ||
>Port</label> | ||
<div class="mt-2"> | ||
<input | ||
id="mysql-port" | ||
type="text" | ||
name="name" | ||
value="3306" | ||
class="block w-full px-4 py-2 text-gray-900 border border-gray-300 rounded-md shadow-sm required:border-red-500 dark:bg-blue-gray-800 dark:text-gray-200 dark:text-gray-100 dark:border-gray-600 focus:border-none focus:ring-2 focus:ring-blue-500" | ||
> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-3"> | ||
<label | ||
for="mysql-username" | ||
class="block text-sm font-medium leading-6 text-gray-900 dark:text-gray-100" | ||
>Username</label> | ||
<div class="mt-2"> | ||
<input | ||
id="mysql-username" | ||
type="text" | ||
value="root" | ||
class="block w-full px-4 py-2 text-gray-900 border border-gray-300 rounded-md shadow-sm required:border-red-500 dark:bg-blue-gray-800 dark:text-gray-200 dark:text-gray-100 dark:border-gray-600 focus:border-none focus:ring-2 focus:ring-blue-500" | ||
> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-3"> | ||
<label | ||
for="mysql-password" | ||
class="block text-sm font-medium leading-6 text-gray-900 dark:text-gray-100" | ||
>Password</label> | ||
<div class="mt-2"> | ||
<input | ||
id="mysql-password" | ||
type="text" | ||
name="last-name" | ||
autocomplete="family-name" | ||
class="block w-full px-4 py-2 text-gray-900 border border-gray-300 rounded-md shadow-sm required:border-red-500 dark:bg-blue-gray-800 dark:text-gray-200 dark:text-gray-100 dark:border-gray-600 focus:border-none focus:ring-2 focus:ring-blue-500" | ||
> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-full"> | ||
<label | ||
for="mysql-password" | ||
class="block text-sm font-medium leading-6 text-gray-900 dark:text-gray-100" | ||
>Database</label> | ||
<div class="mt-2"> | ||
<input | ||
id="mysql-password" | ||
type="text" | ||
name="last-name" | ||
autocomplete="family-name" | ||
class="block w-full px-4 py-2 text-gray-900 border border-gray-300 rounded-md shadow-sm required:border-red-500 dark:bg-blue-gray-800 dark:text-gray-200 dark:text-gray-100 dark:border-gray-600 focus:border-none focus:ring-2 focus:ring-blue-500" | ||
> | ||
</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"> | ||
SQLite | ||
</h2> | ||
<p class="mt-1 text-sm leading-6 text-gray-600"> | ||
Update your SQLite driver settings. | ||
</p> | ||
</div> | ||
|
||
<div class="md:col-span-2"> | ||
<div class="grid grid-cols-1 gap-x-6 gap-y-8 sm:max-w-xl sm:grid-cols-6"> | ||
<div class="sm:col-span-3"> | ||
<label | ||
for="sqlite-host" | ||
class="block text-sm font-medium leading-6 text-gray-900 dark:text-gray-100" | ||
>Host</label> | ||
<div class="mt-2"> | ||
<input | ||
id="sqlite-host" | ||
type="text" | ||
name="name" | ||
value="127.0.0.1" | ||
class="block w-full px-4 py-2 text-gray-900 border border-gray-300 rounded-md shadow-sm required:border-red-500 dark:bg-blue-gray-800 dark:text-gray-200 dark:text-gray-100 dark:border-gray-600 focus:border-none focus:ring-2 focus:ring-blue-500" | ||
> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-3"> | ||
<label | ||
for="sqlite-prefix" | ||
class="block text-sm font-medium leading-6 text-gray-900 dark:text-gray-100" | ||
>Prefix</label> | ||
<div class="mt-2"> | ||
<input | ||
id="sqlite-prefix" | ||
type="text" | ||
name="name" | ||
value="sqlite" | ||
class="block w-full px-4 py-2 text-gray-900 border border-gray-300 rounded-md shadow-sm required:border-red-500 dark:bg-blue-gray-800 dark:text-gray-200 dark:text-gray-100 dark:border-gray-600 focus:border-none focus:ring-2 focus:ring-blue-500" | ||
> | ||
</div> | ||
</div> | ||
|
||
<div class="sm:col-span-full"> | ||
<label | ||
for="mysql-password" | ||
class="block text-sm font-medium leading-6 text-gray-900 dark:text-gray-100" | ||
>Database</label> | ||
<div class="mt-2"> | ||
<input | ||
id="mysql-password" | ||
type="text" | ||
name="last-name" | ||
autocomplete="family-name" | ||
value="stacks" | ||
class="block w-full px-4 py-2 text-gray-900 border border-gray-300 rounded-md shadow-sm required:border-red-500 dark:bg-blue-gray-800 dark:text-gray-200 dark:text-gray-100 dark:border-gray-600 focus:border-none focus:ring-2 focus:ring-blue-500" | ||
> | ||
</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
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 was deleted.
Oops, something went wrong.
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