From 6fba801ee9182075108cf912d74d6e715e85f859 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Wed, 5 Mar 2025 15:06:17 +0330 Subject: [PATCH] start url --- dev-dist/sw.js | 2 +- src/assets/images/logo.svg | 94 +++++++++++++++++++++++++++++++++++++- vite.config.ts | 7 +-- 3 files changed, 98 insertions(+), 5 deletions(-) mode change 100644 => 100755 src/assets/images/logo.svg diff --git a/dev-dist/sw.js b/dev-dist/sw.js index 2cff31d..b615680 100644 --- a/dev-dist/sw.js +++ b/dev-dist/sw.js @@ -82,7 +82,7 @@ define(['./workbox-e7681877'], (function (workbox) { 'use strict'; "revision": "3ca0b8505b4bec776b69afdba2768812" }, { "url": "index.html", - "revision": "0.g2bd1l6gfo8" + "revision": "0.fvumg9unmfo" }], {}); workbox.cleanupOutdatedCaches(); workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), { diff --git a/src/assets/images/logo.svg b/src/assets/images/logo.svg old mode 100644 new mode 100755 index 31d4adf..4883e85 --- a/src/assets/images/logo.svg +++ b/src/assets/images/logo.svg @@ -1 +1,93 @@ -Technology Company \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vite.config.ts b/vite.config.ts index 48e86e1..5380bba 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -18,6 +18,7 @@ export default defineConfig({ theme_color: "#ffffff", background_color: "#ffffff", display: "standalone", + start_url: "/dashboard", // صفحه اصلی PWA icons: [ { src: "/icon-192x192.png", @@ -39,10 +40,10 @@ export default defineConfig({ options: { cacheName: "api-cache", expiration: { - maxEntries: 50, // تعداد درخواست‌های کش‌شده - maxAgeSeconds: 60 * 60 * 24, // مدت‌زمان نگهداری در کش (اینجا 1 روز) + maxEntries: 50, + maxAgeSeconds: 60 * 60 * 24, }, - networkTimeoutSeconds: 10, // بعد از 10 ثانیه اگر پاسخ نداد، از کش استفاده کن + networkTimeoutSeconds: 10, }, }, ],