Skip to content

Commit

Permalink
Merge pull request #1996 from RitvikSardana/hd-pwa-update-assets
Browse files Browse the repository at this point in the history
fix(PWA): change PWA assets padding
  • Loading branch information
RitvikSardana authored Sep 25, 2024
2 parents 7524a93 + 734ae2c commit 2542616
Show file tree
Hide file tree
Showing 41 changed files with 44 additions and 14 deletions.
25 changes: 23 additions & 2 deletions desk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,30 @@
<link rel="icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Helpdesk</title>
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="Frappe Helpdesk" />
<meta name="apple-mobile-web-app-status-bar-style" content="white" />

<!-- PWA -->
<link
rel="icon"
type="image/png"
sizes="196x196"
href="/assets/helpdesk/desk/manifest/apple-icon-180.png"
/>

<link
rel="mask-icon"
href="/assets/helpdesk/desk/manifest/manifest-icon-192.maskable.png"
color="#FFFFFF"
/>

<link
rel="apple-touch-icon"
href="/assets/helpdesk/desk/manifest/apple-icon-180.png"
/>
<meta name="apple-mobile-web-app-capable" content="yes" />

<link
rel="apple-touch-startup-image"
href="/assets/helpdesk/desk/manifest/apple-splash-2048-2732.jpg"
Expand Down Expand Up @@ -193,7 +211,10 @@
window.helpdesk_version = "{{ helpdesk_version }}";
window.site_name = "{{ site_name }}";
window.favicon = "{{ favicon }}";
document.querySelector("link").href = window.favicon;

document.querySelectorAll("link[rel='icon']").forEach((link) => {
link.href = window.favicon;
});
</script>
</body>
</html>
Binary file modified desk/public/manifest/apple-icon-180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1125-2436.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1136-640.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1170-2532.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1179-2556.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1242-2208.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1242-2688.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1284-2778.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1290-2796.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1334-750.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1488-2266.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1536-2048.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1620-2160.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1640-2360.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1668-2224.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1668-2388.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-1792-828.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-2048-1536.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-2048-2732.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-2160-1620.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-2208-1242.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-2224-1668.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-2266-1488.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-2360-1640.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-2388-1668.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desk/public/manifest/apple-splash-2436-1125.jpg
Binary file modified desk/public/manifest/apple-splash-2532-1170.jpg
Binary file modified desk/public/manifest/apple-splash-2556-1179.jpg
Binary file modified desk/public/manifest/apple-splash-2688-1242.jpg
Binary file modified desk/public/manifest/apple-splash-2732-2048.jpg
Binary file modified desk/public/manifest/apple-splash-2778-1284.jpg
Binary file modified desk/public/manifest/apple-splash-2796-1290.jpg
Binary file modified desk/public/manifest/apple-splash-640-1136.jpg
Binary file modified desk/public/manifest/apple-splash-750-1334.jpg
Binary file modified desk/public/manifest/apple-splash-828-1792.jpg
Binary file modified desk/public/manifest/manifest-icon-192.maskable.png
Binary file modified desk/public/manifest/manifest-icon-512.maskable.png
4 changes: 3 additions & 1 deletion desk/src/components/CommunicationArea.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<div class="flex flex-col comm-area">
<div class="flex justify-between gap-3 border-t px-4 lg:px-10 py-2.5">
<div
class="flex justify-between gap-3 border-t px-4 lg:px-10 py-4 md:py-2.5"
>
<div class="flex gap-1.5">
<Button
ref="sendEmailRef"
Expand Down
23 changes: 13 additions & 10 deletions desk/src/components/ticket/TicketFeedback.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
<template>
<div>
<div class="flex">
<div class="min-w-[106px] pb-1.5">Rating</div>
<div class="px-1.5">
<div class="flex flex-col gap-3 border-b px-6 py-3">
<div class="flex items-center text-base leading-5">
<div class="min-w-[126px] text-sm">Rating</div>
<div class="">
<StarRating :rating="ticket.feedback_rating" />
</div>
</div>
<div class="flex">
<div class="w-[106px] pb-1.5">Feedback</div>
<div class="px-1.5 text-gray-800">
<div class="flex items-center text-base leading-5">
<div class="min-w-[126px] text-sm">Feedback</div>
<div class="text-gray-800">
{{ ticket.feedback_text }}
</div>
</div>
<div v-if="ticket.feedback_extra" class="flex">
<div class="min-w-[106px] pb-1.5">Comment</div>
<div class="px-1.5 text-gray-800">
<div
v-if="ticket.feedback_extra"
class="flex items-center text-base leading-5"
>
<div class="min-w-[126px] text-sm">Comment</div>
<div class="text-gray-800">
{{ ticket.feedback_extra }}
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion desk/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ export default defineConfig({
devOptions: {
enabled: true,
},
workbox: {
cleanupOutdatedCaches: true,
},
manifest: {
display: "standalone",
name: "Frappe Helpdesk",
short_name: "Frappe Helpdesk",
short_name: "Helpdesk",
start_url: "/helpdesk",
description:
"Modern, Streamlined, Free and Open Source Customer Service Software",
start_url: "/helpdesk",
Expand Down

0 comments on commit 2542616

Please sign in to comment.