-
Notifications
You must be signed in to change notification settings - Fork 269
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 #1962 from frappe/develop
chore(release): dev to main
- Loading branch information
Showing
68 changed files
with
2,368 additions
and
721 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,66 @@ | ||
<template> | ||
<Popover placement="right-start" class="flex w-full"> | ||
<template #target="{ togglePopover }"> | ||
<button | ||
:class="[ | ||
'group w-full flex h-7 items-center justify-between rounded px-2 text-base text-gray-800 hover:bg-gray-100', | ||
]" | ||
@click.prevent="togglePopover()" | ||
> | ||
<div class="flex gap-2"> | ||
<AppsIcon /> | ||
<span class="whitespace-nowrap">Apps</span> | ||
</div> | ||
<ChevronRight class="h-4 w-4 stroke-1.5" /> | ||
</button> | ||
</template> | ||
<template #body> | ||
<div | ||
class="grid grid-cols-3 justify-between mx-3 p-2 rounded-lg border border-gray-100 bg-white shadow-xl" | ||
> | ||
<div v-for="app in apps.data" key="name"> | ||
<a | ||
:href="app.route" | ||
class="flex flex-col gap-1.5 rounded justify-center items-center py-2 px-3 hover:bg-gray-100" | ||
> | ||
<img class="size-8" :src="app.logo" /> | ||
<div class="text-sm" @click="app.onClick"> | ||
{{ app.title }} | ||
</div> | ||
</a> | ||
</div> | ||
</div> | ||
</template> | ||
</Popover> | ||
</template> | ||
<script setup> | ||
import { Popover, createResource } from "frappe-ui"; | ||
import AppsIcon from "./icons/AppsIcon.vue"; | ||
import ChevronRight from "~icons/lucide/chevron-right"; | ||
const apps = createResource({ | ||
url: "frappe.apps.get_apps", | ||
cache: "apps", | ||
auto: true, | ||
transform: (data) => { | ||
let _apps = [ | ||
{ | ||
name: "frappe", | ||
logo: "/assets/helpdesk/desk/desk.png", | ||
title: "Desk", | ||
route: "/app", | ||
}, | ||
]; | ||
data.map((app) => { | ||
if (app.name === "helpdesk") return; | ||
_apps.push({ | ||
name: app.name, | ||
logo: app.logo, | ||
title: app.title, | ||
route: app.route, | ||
}); | ||
}); | ||
return _apps; | ||
}, | ||
}); | ||
</script> |
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,14 @@ | ||
<template> | ||
<Avatar v-if="config.brandLogo" size="xl" :image="config.brandLogo" /> | ||
<HDLogo v-else class="h-8 w-8 shrink-0 rounded" /> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { Avatar } from "frappe-ui"; | ||
import HDLogo from "@/assets/logos/HDLogo.vue"; | ||
import { useConfigStore } from "@/stores/config"; | ||
const config = useConfigStore(); | ||
</script> | ||
|
||
<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 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.