-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat-new-logo
- Loading branch information
Showing
62 changed files
with
1,739 additions
and
1,814 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
4 changes: 2 additions & 2 deletions
4
.../components/global/AdminPageLayout.svelte → ui/src/components/AdminPageLayout.svelte
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<script lang="ts"> | ||
let klass = 'w-6 h-6'; | ||
export { klass as class }; | ||
</script> | ||
|
||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 24 24" | ||
fill="currentColor" | ||
class="{klass}" | ||
> | ||
<path d="M12 15a3 3 0 100-6 3 3 0 000 6z"></path> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" | ||
></path> | ||
</svg> |
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,44 @@ | ||
<script lang="ts"> | ||
import LL from '../../i18n/i18n-svelte'; | ||
import EditIcon from '../icons/EditIcon.svelte'; | ||
import TrashIcon from '../icons/TrashIcon.svelte'; | ||
import EyeIcon from '../icons/EyeIcon.svelte'; | ||
export let detailsLink = ''; | ||
export let editBtnEnabled = true; | ||
export let editBtnClickHandler = () => {}; | ||
export let editBtnTestId = 'edit'; | ||
export let deleteBtnEnabled = true; | ||
export let deleteBtnClickHandler = () => {}; | ||
export let deleteBtnTestId = 'delete'; | ||
</script> | ||
|
||
<div class="flex gap-2 justify-end items-center"> | ||
<slot /> | ||
{#if detailsLink !== ''} | ||
<a href="{detailsLink}" class="hover:text-blue-500"> | ||
<EyeIcon /> | ||
<span class="sr-only">View Details</span> | ||
</a> | ||
{/if} | ||
{#if editBtnEnabled} | ||
<button | ||
on:click="{editBtnClickHandler}" | ||
class="hover:text-green-500" | ||
data-testid="{editBtnTestId}" | ||
> | ||
<span class="sr-only">{$LL.edit()}</span> | ||
<EditIcon /> | ||
</button> | ||
{/if} | ||
{#if deleteBtnEnabled} | ||
<button | ||
on:click="{deleteBtnClickHandler}" | ||
class="hover:text-red-500" | ||
data-testid="{deleteBtnTestId}" | ||
> | ||
<span class="sr-only">{$LL.delete()}</span> | ||
<TrashIcon /> | ||
</button> | ||
{/if} | ||
</div> |
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,13 @@ | ||
<script lang="ts"> | ||
export let type = 'default'; | ||
</script> | ||
|
||
{#if type === 'default'} | ||
<th scope="col" class="p-4"> | ||
<slot /> | ||
</th> | ||
{:else if type === 'action'} | ||
<th scope="col" class="relative px-2 py-2"> | ||
<slot /> | ||
</th> | ||
{/if} |
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,10 @@ | ||
<div class="overflow-x-auto"> | ||
<table class="w-full text-sm text-left text-gray-700 dark:text-gray-200"> | ||
<thead | ||
class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400" | ||
> | ||
<slot name="header" /> | ||
</thead> | ||
<slot name="body" /> | ||
</table> | ||
</div> |
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,5 @@ | ||
<div | ||
class="bg-white dark:bg-gray-800 relative shadow-md sm:rounded-lg overflow-hidden" | ||
> | ||
<slot /> | ||
</div> |
Oops, something went wrong.