Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
sujata
/
Akruti-Frontend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit a9bf162a
authored
2026-02-23 12:37:34 +0530
by
Ravindra Kanojiya
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
removed console comment
1 parent
8d4d9105
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
36 additions
and
36 deletions
components/About/Experience.js
components/Brands/InnerBannerBrands.js
components/Brands/InnerDetailsBrands.js
components/Catalogue/InnerDetailsCatalogue.js
components/Collection/AboutInfo.js
components/Collection/CompanyOverview.js
components/Collection/Gallery.js
components/Collection/InnerBannerproduct.js
components/Collection/InnerDetails.js
components/Collection/InnerDetailsSubCategory.js
components/Collection/TechnicalDetails.js
components/Collection/Video.js
components/Common/HeadTitle.js
components/Common/InnerBanner.js
components/Layout/Header.js
components/Seo/Seo.js
components/services/imageHandling.js
container/Home/Collection.js
container/Home/ProjectSlider.js
container/Home/Video.js
pages/catalogue.js
pages/collections/[category]/[subCategory]/[productSlug].js
pages/collections/[category]/[subCategory]/index.js
pages/collections/[category]/index.js
pages/index.js
redux/slices/footerSlice.js
components/About/Experience.js
View file @
a9bf162
...
...
@@ -16,7 +16,7 @@ const CollectionDatas = [
{
image
:
"/image/experience/01.png"
},
{
image
:
"/image/experience/02.png"
},
];
console
.
log
(
"CollectionDatas 1111"
,
CollectionDatas
)
const
Experience
=
()
=>
{
return
(
<
section
className
=
"experience_sec es-cust sec_padd "
>
...
...
components/Brands/InnerBannerBrands.js
View file @
a9bf162
...
...
@@ -4,7 +4,7 @@ import { cleanImage } from '../services/imageHandling'
import
Heading
from
"@/components/Heading"
;
import
Image
from
'next/image'
;
const
InnerBannerBrands
=
({
data
})
=>
{
console
.
log
(
"bannerData"
,
data
)
return
(
<>
<
section
className
=
'innerbanner-section'
>
...
...
components/Brands/InnerDetailsBrands.js
View file @
a9bf162
...
...
@@ -13,7 +13,7 @@ const InnerDetailsBrands = ({ subCategories }) => {
const
handleChange
=
(
e
)
=>
{
setSort
(
e
.
target
.
value
);
console
.
log
(
"Selected sort:"
,
e
.
target
.
value
);
};
// Safety check
...
...
components/Catalogue/InnerDetailsCatalogue.js
View file @
a9bf162
...
...
@@ -53,7 +53,7 @@ import { cleanImage } from "../services/imageHandling";
// ];
const
InnerDetailsCatalogue
=
({
subCategory
=
"All Catalogue"
,
cataloguesData
})
=>
{
console
.
log
(
"cataloguesData, llll"
,
cataloguesData
)
const
[
sort
,
setSort
]
=
useState
(
""
);
const
handleChange
=
(
e
)
=>
{
...
...
components/Collection/AboutInfo.js
View file @
a9bf162
...
...
@@ -2,7 +2,7 @@ import React from 'react'
import
{
Col
,
Row
}
from
'react-bootstrap'
import
Heading
from
"@/components/Heading"
;
const
AboutInfo
=
({
productData
})
=>
{
console
.
log
(
"productData aboutus"
,
productData
)
return
(
<>
<
section
className
=
'about-section about-info-section pb-0'
>
...
...
components/Collection/CompanyOverview.js
View file @
a9bf162
...
...
@@ -5,7 +5,7 @@ import Image from "next/image";
import
{
cleanImage
}
from
"../services/imageHandling"
;
const
CompanyOverview
=
({
companyOverviewData
})
=>
{
console
.
log
(
"productData cat"
,
companyOverviewData
);
return
(
<>
<
section
className
=
"about-section about-info-section p-0"
>
...
...
components/Collection/Gallery.js
View file @
a9bf162
...
...
@@ -15,7 +15,7 @@ const galleryData = [
];
const
Gallery
=
({
productData
})
=>
{
console
.
log
(
"productData - Gallery"
,
productData
);
useEffect
(()
=>
{
Fancybox
.
bind
(
"[data-fancybox='gallery']"
,
{
Hash
:
false
,
...
...
components/Collection/InnerBannerproduct.js
View file @
a9bf162
...
...
@@ -4,7 +4,7 @@ import { cleanImage } from '../services/imageHandling'
import
Heading
from
"@/components/Heading"
;
import
Image
from
'next/image'
;
const
InnerBannerproduct
=
({
productData
})
=>
{
console
.
log
(
"bannerData"
,
productData
)
return
(
<>
<
section
className
=
'innerbanner-section'
>
...
...
components/Collection/InnerDetails.js
View file @
a9bf162
...
...
@@ -6,7 +6,7 @@ import { useRouter } from "next/router";
import
{
cleanImage
}
from
"../services/imageHandling"
;
const
InnerDetails
=
({
subCategories
})
=>
{
console
.
log
(
"subCategories-inn"
,
subCategories
)
const
router
=
useRouter
();
const
{
category
}
=
router
.
query
;
...
...
@@ -14,7 +14,7 @@ const InnerDetails = ({ subCategories }) => {
const
handleChange
=
(
e
)
=>
{
setSort
(
e
.
target
.
value
);
console
.
log
(
"Selected sort:"
,
e
.
target
.
value
);
};
// Safety check
...
...
components/Collection/InnerDetailsSubCategory.js
View file @
a9bf162
...
...
@@ -7,7 +7,7 @@ import FilterButton from "../Common/FilterButton";
import
{
cleanImage
}
from
"../services/imageHandling"
;
const
InnerDetailsSubCategory
=
({
products
})
=>
{
console
.
log
(
"products-newwwwwwwwww"
,
products
)
const
router
=
useRouter
();
const
{
category
,
subCategory
}
=
router
.
query
;
const
[
showFilter
,
setShowFilter
]
=
useState
(
false
);
...
...
components/Collection/TechnicalDetails.js
View file @
a9bf162
...
...
@@ -98,7 +98,7 @@ const technicalDetailsData = [
];
const
TechnicalDetails
=
({
productData
})
=>
{
console
.
log
(
"productData- tech"
,
productData
)
return
(
<>
<
section
className
=
"technicalDetails-section catalogues-secs"
>
...
...
components/Collection/Video.js
View file @
a9bf162
...
...
@@ -3,7 +3,7 @@ import { Container } from "react-bootstrap";
import
{
cleanImage
}
from
"../services/imageHandling"
;
const
Video
=
({
productData
})
=>
{
console
.
log
(
"productData VIDEO"
,
productData
)
const
videoRef
=
useRef
(
null
);
const
[
isVisible
,
setIsVisible
]
=
useState
(
false
);
...
...
components/Common/HeadTitle.js
View file @
a9bf162
...
...
@@ -3,7 +3,7 @@ import { Col, Row } from 'react-bootstrap'
import
Heading
from
"@/components/Heading"
;
const
HeadTitle
=
({
categoryData
})
=>
{
console
.
log
(
"headTitleData"
,
categoryData
)
return
(
<>
<
section
className
=
'let-connect-section'
>
...
...
components/Common/InnerBanner.js
View file @
a9bf162
...
...
@@ -4,7 +4,7 @@ import { cleanImage } from '../services/imageHandling'
import
Image
from
'next/image'
const
InnerBanner
=
({
bannerData
})
=>
{
console
.
log
(
"bannerData"
,
bannerData
)
return
(
<>
<
section
className
=
'innerbanner-section'
>
...
...
components/Layout/Header.js
View file @
a9bf162
...
...
@@ -128,7 +128,7 @@ import { cleanImage } from "../services/imageHandling";
// ];
export
default
function
Navigation
({
collectionsData
=
[]
})
{
console
.
log
(
"Navigation"
,
collectionsData
);
const
[
scrolled
,
setScrolled
]
=
useState
(
false
);
const
[
show
,
setShow
]
=
useState
(
false
);
const
[
activeMenu
,
setActiveMenu
]
=
useState
(
null
);
...
...
components/Seo/Seo.js
View file @
a9bf162
...
...
@@ -92,7 +92,7 @@ const Seo = (props) => {
{
/* <script type="application/ld+json">{JSON.stringify(props?.seo?.structuredData) == null ? "" : JSON.stringify(props?.seo?.structuredData)}</script> */
}
{
schema
&&
schema
.
map
((
item
,
index
)
=>
{
// console.log("item", item);
return
(
<
script
key
=
{
"websiteJSON"
+
index
}
...
...
@@ -109,7 +109,7 @@ const Seo = (props) => {
<>
{
Bschema
&&
Bschema
.
map
((
item
,
index
)
=>
{
// console.log("item", item);
return
(
<
script
key
=
{
"websiteJSON"
+
index
}
...
...
components/services/imageHandling.js
View file @
a9bf162
...
...
@@ -17,6 +17,6 @@ export const cleanImage = (originalImage) => {
if
(
originalImage
)
{
homeUrl
=
`
${
process
.
env
.
NEXT_PUBLIC_WEBSITE_HOME_URL
}${
originalImage
}
`
;
}
// console.log("homeUrl", homeUrl);
return
homeUrl
;
};
container/Home/Collection.js
View file @
a9bf162
...
...
@@ -18,7 +18,7 @@ import { cleanImage } from "@/components/services/imageHandling";
// ];
const
CollectionSlider
=
({
CollectionData
})
=>
{
console
.
log
(
"CollectionData 123"
,
CollectionData
)
return
(
<
div
className
=
"collection-section sec_padd h-slider"
>
<
Container
className
=
"custom_container_leftAuto"
>
...
...
container/Home/ProjectSlider.js
View file @
a9bf162
...
...
@@ -16,7 +16,7 @@ import Link from "next/link";
// { image: "/image/project/01.png", title: "The Imperial – Mumbai" },
// { image: "/image/project/02.png", title: "Azure Heights – Bengaluru" },
// ];
// console.log("CollectionData - new", CollectionData)
const
ProjectSlider
=
({
projectData
})
=>
{
const
prevRef
=
useRef
(
null
);
const
nextRef
=
useRef
(
null
);
...
...
container/Home/Video.js
View file @
a9bf162
...
...
@@ -3,7 +3,7 @@ import React, { useRef, useEffect, useState } from "react";
import
{
Container
}
from
"react-bootstrap"
;
const
Video
=
({
video
})
=>
{
console
.
log
(
"video9999"
,
video
)
const
videoRef
=
useRef
(
null
);
const
[
isVisible
,
setIsVisible
]
=
useState
(
false
);
...
...
pages/catalogue.js
View file @
a9bf162
...
...
@@ -27,7 +27,7 @@ const breadcrumbData = [
];
const
ContactsPage
=
({
cataloguesData
=
{
cataloguesData
}})
=>
{
console
.
log
(
"cataloguesData -mainnn"
,
cataloguesData
)
return
(
<>
<
Head
>
...
...
pages/collections/[category]/[subCategory]/[productSlug].js
View file @
a9bf162
...
...
@@ -14,7 +14,7 @@ import Explore from "@/components/Collection/Explore";
import
{
Tab
,
Tabs
}
from
"react-bootstrap"
;
const
ProductPage
=
({
productData
,
cataloguesData
})
=>
{
console
.
log
(
"cataloguesData"
,
cataloguesData
);
const
router
=
useRouter
();
const
{
category
,
subCategory
:
subCategorySlug
,
productSlug
}
=
router
.
query
;
...
...
@@ -38,7 +38,7 @@ const ProductPage = ({ productData, cataloguesData }) => {
label
:
productData
.
title
,
},
];
console
.
log
(
"test"
);
const
productTabs
=
productData
?.
productTabs
;
return
(
<>
...
...
@@ -134,7 +134,7 @@ export async function getServerSideProps({ params }) {
try
{
const
{
productSlug
}
=
params
;
console
.
log
(
'productSlug'
,
productSlug
)
const
productData
=
await
getCollectionDetailCategoryData
(
productSlug
);
const
cataloguesData
=
await
getCataloguesBySlug
();
...
...
pages/collections/[category]/[subCategory]/index.js
View file @
a9bf162
...
...
@@ -27,9 +27,9 @@ const SubCategoryOrProductPage = ({
})
=>
{
const
router
=
useRouter
();
const
{
category
,
subCategory
}
=
router
.
query
;
console
.
log
(
"productData -new"
,
products
);
if
(
!
router
.
isReady
)
return
null
;
console
.
log
(
"productData yes"
,
productData
)
/* ======================================================
🟢 IF PRODUCT (2 LEVEL PRODUCT PAGE)
====================================================== */
...
...
@@ -47,7 +47,7 @@ console.log("productData yes", productData)
label
:
productData
.
title
,
},
];
console
.
log
(
"productData nemn"
,
productData
)
const
productTabs
=
productData
?.
productTabs
;
return
(
<>
...
...
@@ -146,7 +146,7 @@ const productTabs = productData?.productTabs;
const
subCategoryData
=
products
[
0
]?.
collection_sub_category
;
console
.
log
(
"subCategoryData"
,
subCategoryData
);
const
breadcrumbData
=
[
// { href: "/", label: "Home" },
...
...
@@ -179,7 +179,7 @@ export default SubCategoryOrProductPage;
export
async
function
getServerSideProps
({
params
})
{
try
{
const
{
subCategory
}
=
params
;
console
.
log
(
"subCategory"
,
subCategory
);
/* 1️⃣ Check if this slug is a PRODUCT */
const
productCheck
=
await
getCollectionDetailCategoryData
(
subCategory
);
...
...
@@ -219,12 +219,12 @@ export async function getServerSideProps({ params }) {
query
,
);
// console.log('responsefsfsf',response)
const
allProducts
=
response
?.
data
||
[];
const
products
=
allProducts
;
console
.
log
(
"products"
,
products
);
// const allProducts = await getCollectionDetailCategoryData();
const
categoriesSub
=
await
getCollectionSubCategoryData
();
...
...
pages/collections/[category]/index.js
View file @
a9bf162
...
...
@@ -6,7 +6,7 @@ import { getCollectionCategoryBySlug } from "@/services/collectionCategoryApi";
import
{
getCollectionSubCategoryData
}
from
"@/services/collectionSubCategoryApi"
;
export
default
function
CategoryPage
({
categoryData
,
categoriesSub
,
collectionDataa
})
{
console
.
log
(
"categoriesSub"
,
categoriesSub
)
if
(
!
categoryData
)
{
return
<
h1
>
Category
not
found
<
/h1>
;
}
...
...
pages/index.js
View file @
a9bf162
...
...
@@ -12,7 +12,7 @@ import { getCataloguesBySlug } from "@/services/cataloguesApi";
import
{
getHomeSlug
}
from
"@/services/homeApi"
;
const
Home
=
({
homepage
,
cataloguesData
=
{
cataloguesData
},
homeData
})
=>
{
console
.
log
(
"homeData"
,
cataloguesData
)
return
(
<>
<
Head
>
...
...
redux/slices/footerSlice.js
View file @
a9bf162
...
...
@@ -20,7 +20,7 @@ export const fetchFooter = createAsyncThunk(
});
const
endpoint
=
`
${
process
.
env
.
NEXT_PUBLIC_BACKEND_API_URL
}
/api/footer?
${
queryString
}
`
;
const
response
=
await
axios
.
get
(
endpoint
);
console
.
log
(
endpoint
,
'response44'
);
return
response
.
data
.
data
;
}
);
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment