ali 3 anni fa
parent
commit
b664ede947

+ 16 - 12
src-pwa/custom-service-worker.js

@@ -7,8 +7,12 @@
  */
 
 import { clientsClaim } from 'workbox-core'
-import { precacheAndRoute, cleanupOutdatedCaches, createHandlerBoundToURL } from 'workbox-precaching'
-import { registerRoute, NavigationRoute } from 'workbox-routing'
+import {
+  precacheAndRoute,
+  cleanupOutdatedCaches
+  // createHandlerBoundToURL
+} from 'workbox-precaching'
+// import { registerRoute, NavigationRoute } from 'workbox-routing'
 
 self.skipWaiting()
 clientsClaim()
@@ -18,13 +22,13 @@ precacheAndRoute(self.__WB_MANIFEST)
 
 cleanupOutdatedCaches()
 
-// Non-SSR fallback to index.html
-// Production SSR fallback to offline.html (except for dev)
-if (process.env.MODE !== 'ssr' || process.env.PROD) {
-  registerRoute(
-    new NavigationRoute(
-      createHandlerBoundToURL(process.env.PWA_FALLBACK_HTML),
-      { denylist: [/sw\.js$/, /workbox-(.)*\.js$/] }
-    )
-  )
-}
+// // Non-SSR fallback to index.html
+// // Production SSR fallback to offline.html (except for dev)
+// if (process.env.MODE !== 'ssr' || process.env.PROD) {
+//   registerRoute(
+//     new NavigationRoute(
+//       createHandlerBoundToURL(process.env.PWA_FALLBACK_HTML),
+//       { denylist: [/sw\.js$/, /workbox-(.)*\.js$/] }
+//     )
+//   )
+// }

+ 6 - 0
src/components/Template/Header/MainHeader.vue

@@ -45,6 +45,12 @@
                           clickable>
                     <q-item-section>کتب سطح یک</q-item-section>
                   </q-item>
+                  <q-item v-close-popup
+                          href="https://formafzar.com/form/qk8oq"
+                          target="_blank"
+                          clickable>
+                    <q-item-section>کتب سطح چهار</q-item-section>
+                  </q-item>
                   <q-item v-close-popup
                           href="https://formafzar.com/form/ch1om"
                           target="_blank"

+ 5 - 0
src/components/Template/SideBard/Main.vue

@@ -69,6 +69,11 @@ export default {
               externalLink: 'https://formafzar.com/form/iv9cq',
               show: true
             },
+            {
+              title: 'کتب سطح چهار',
+              externalLink: 'https://formafzar.com/form/qk8oq',
+              show: true
+            },
             {
               title: 'کتب جریان‌شناسی',
               externalLink: 'https://formafzar.com/form/ch1om',