-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add showFunc feature to show the tool depending on the model status, …
…cerate donating page for each entity to show its own projects, edit table component to render links by adding the type of the header, add some translations for the locales file
- Loading branch information
1 parent
c098fe6
commit 9e13f90
Showing
22 changed files
with
779 additions
and
91 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
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,125 @@ | ||
<script setup> | ||
import DropdownLink from "@/Components/DropdownLink.vue"; | ||
import ChangeMode from "@/Components/Dashboard/ChangeMode.vue"; | ||
import SearchInput from "@/Components/SearchInput.vue"; | ||
import { computed } from "vue"; | ||
import { usePage } from "@inertiajs/vue3"; | ||
import { useI18n } from "vue-i18n"; | ||
const { t, locale } = useI18n(); | ||
const page = usePage(); | ||
</script> | ||
<template> | ||
<nav | ||
class="fixed top-0 z-30 w-full bg-white shadow dark:bg-gray-800 dark:border-gray-700" | ||
> | ||
<div class="px-3 py-3 lg:px-5 lg:pl-3"> | ||
<div class="flex items-center justify-between"> | ||
<div class="flex items-center justify-start"> | ||
<button | ||
|
||
aria-controls="logo-sidebar" | ||
type="button" | ||
class="inline-flex items-center p-2 text-sm text-gray-500 rounded-lg sm:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600" | ||
> | ||
<span class="sr-only">Open sidebar</span> | ||
<svg | ||
class="w-6 h-6" | ||
aria-hidden="true" | ||
fill="currentColor" | ||
viewBox="0 0 20 20" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
clip-rule="evenodd" | ||
fill-rule="evenodd" | ||
d="M2 4.75A.75.75 0 012.75 4h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 4.75zm0 10.5a.75.75 0 01.75-.75h7.5a.75.75 0 010 1.5h-7.5a.75.75 0 01-.75-.75zM2 10a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 10z" | ||
></path> | ||
</svg> | ||
</button> | ||
</div> | ||
<!-- <div><SearchInput /></div> --> | ||
<div class="flex items-center"> | ||
<div class="flex items-center ms-3 dark:text-white"> | ||
<ChangeMode /> | ||
<div> | ||
<button | ||
type="button" | ||
class="flex text-sm bg-gray-800 rounded-full focus:ring-4 focus:ring-gray-300 dark:focus:ring-gray-600" | ||
aria-expanded="false" | ||
data-dropdown-toggle="dropdown-user" | ||
> | ||
<span class="sr-only">Open user menu</span> | ||
<img | ||
class="w-8 h-8 rounded-full" | ||
src="@/assets/images/logo.png" | ||
alt="user photo" | ||
/> | ||
</button> | ||
</div> | ||
|
||
<div | ||
class="z-50 hidden my-4 text-base list-none bg-white divide-y divide-gray-100 rounded shadow dark:bg-gray-700 dark:divide-gray-600" | ||
id="dropdown-user" | ||
> | ||
|
||
<ul class="py-1 min-w-fit" role="none"> | ||
|
||
<li> | ||
<button | ||
type="button" | ||
class="flex items-center w-full p-2 text-gray-500 transition duration-75 rounded-lg group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700" | ||
aria-controls="dropdown-language-menu" | ||
data-collapse-toggle="dropdown-language-menu" | ||
> | ||
<span | ||
class="flex-1 ml-3 text-start whitespace-nowrap" | ||
sidebar-toggle-item | ||
>{{ $t("language") }}</span | ||
> | ||
<svg | ||
sidebar-toggle-item | ||
class="w-6 h-6" | ||
fill="currentColor" | ||
viewBox="0 0 20 20" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
fill-rule="evenodd" | ||
d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" | ||
clip-rule="evenodd" | ||
></path> | ||
</svg> | ||
</button> | ||
<ul id="dropdown-language-menu" class="hidden py-2 space-y-2"> | ||
<li> | ||
<a | ||
:href="route('change-language', 'ar')" | ||
@click="changeLanguage('ar')" | ||
class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-600 dark:hover:text-white" | ||
role="menuitem" | ||
>{{ $t("arabic") }}</a | ||
> | ||
</li> | ||
<li> | ||
<a | ||
:href="route('change-language', 'en')" | ||
@click="changeLanguage('en')" | ||
class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-600 dark:hover:text-white" | ||
role="menuitem" | ||
>{{ $t("english") }}</a | ||
> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</nav> | ||
</template> | ||
|
||
<style></style> |
Oops, something went wrong.