zgl пре 1 дан
родитељ
комит
4d51d4463d
5 измењених фајлова са 18 додато и 12 уклоњено
  1. 0 1
      .npmrc
  2. 1 1
      package.json
  3. 8 1
      pnpm-workspace.yaml
  4. 2 2
      src/components/layout/navbar/MobileMenu.tsx
  5. 7 7
      src/utils/constants/server.ts

+ 0 - 1
.npmrc

@@ -1 +0,0 @@
-public-hoist-pattern[]=*@heroui/*

+ 1 - 1
package.json

@@ -66,5 +66,5 @@
     "ts-node": "^10.9.2",
     "typescript": "^5"
   },
-  "packageManager": "pnpm@10.14.0+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748"
+  "packageManager": "pnpm@11.26.0+sha512.fc0e2bf890b9f983611f1ab68c0637bce914390653699f83c1a78b005ed25f2c81e77920c8fd8eee2ecf0b58b28cdcb00a84d97f69bcf7c56b2f344710238664"
 }

+ 8 - 1
pnpm-workspace.yaml

@@ -1,6 +1,13 @@
 packages:
   - '.'
 
+allowBuilds:
+  '@heroui/shared-utils': true
+  unrs-resolver: true
+
 overrides:
   '@types/react': '19.2.14'
-  '@types/react-dom': '19.2.3'
+  '@types/react-dom': '19.2.3'
+
+publicHoistPattern:
+  - "*@heroui/*"

+ 2 - 2
src/components/layout/navbar/MobileMenu.tsx

@@ -194,7 +194,7 @@ export default function MobileMenu({ menu, isOpen, onClose,isGuest }: MobileMenu
                    <div className="w-full  bg-gray-100 mb-4 flex items-end">
                      {/* <span className="text-3xl text-white pl-6 pb-4">Shop By Feature</span> */}
                       <Image
-                         src={activeMainMenu?.wapImage||''}
+                         src={activeMainMenu?.wapBanner||''}
                          alt={activeMainMenu?.name||''}
                          className="object-cover"
                          width={269}
@@ -238,7 +238,7 @@ export default function MobileMenu({ menu, isOpen, onClose,isGuest }: MobileMenu
                                      <div className="w-full relative  bg-gray-200 mb-1 overflow-hidden">
                                      
                                          <Image
-                                           src={cardItem.image||''}
+                                           src={cardItem.wapImage||''}
                                            alt={cardItem.name||''}
                                            width={84}
                                            height={112}

+ 7 - 7
src/utils/constants/server.ts

@@ -18,14 +18,14 @@ export const configHeader = [
     source: "/:path*",
     headers: [
       { key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
-      { key: "X-Frame-Options", value: "DENY" },
+      //{ key: "X-Frame-Options", value: "DENY" },
       { key: "X-Content-Type-Options", value: "nosniff" },
-      { key: "X-XSS-Protection", value: "1; mode=block" },
-      {
-        key: "Permissions-Policy",
-        value:
-          "camera=(), microphone=(), geolocation=(), browsing-topics=()",
-      },
+      // { key: "X-XSS-Protection", value: "1; mode=block" },
+      // {
+      //   key: "Permissions-Policy",
+      //   value:
+      //     "camera=(), microphone=(), geolocation=(), browsing-topics=()",
+      // },
     ],
   },
   // Cache dynamic pages - shorter cache for frequently updated content