diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-06-14 15:15:30 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-06-14 15:15:30 +0700 |
| commit | e3e3fe8d87130fcd1872046de0160272b6ea9763 (patch) | |
| tree | b371bb6c94f48fa60c4e22a7fb5dfd387dedd7a7 | |
| parent | ef2d3ad6759db8535c04d986f4bc43f01da6ccd8 (diff) | |
<iman> update promotion-program
| -rw-r--r-- | .env | 43 | ||||
| -rw-r--r-- | src-migrate/modules/product-promo/components/Section.tsx | 2 | ||||
| -rw-r--r-- | src/api/bannerApi.js | 3 | ||||
| -rw-r--r-- | src/lib/product/components/ProductSearch.jsx | 2 | ||||
| -rw-r--r-- | src/pages/shop/promo/index.tsx | 4 |
5 files changed, 50 insertions, 4 deletions
@@ -0,0 +1,43 @@ +SELF_HOST=http://localhost:2100 +# SELF_HOST=http://192.168.23.178:2100 +# ODOO_API_HOST=http://192.168.23.191:8069 +# ODOO_API_HOST=http://192.168.23.251:8069 +# ODOO_API_HOST=http://192.168.23.73:8069 +ODOO_API_HOST=https://erp.indoteknik.com +SOLR_HOST=http://34.101.189.218:8983 +# SOLR_HOST=http://192.168.23.5:8983 + +RAJA_ONGKIR_HOST='https://pro.rajaongkir.com' +RAJA_ONGKIR_KEY='7ac9883688da043b50cc32f0e3070bb6' + +MAIL_PORT=465 +MAIL_HOST=smtp.gmail.com +MAIL_USER=sales@indoteknik.com +MAIL_PASS=#&Win*%a3C%^FF + +MIDTRANS_HOST=https://api.sandbox.midtrans.com +MIDTRANS_ENV=development +MIDTRANS_SERVER_KEY=SB-Mid-server-n-V7d2c2ZB0SVED29OyCWVYp +MIDTRANS_CLIENT_KEY=SB-Mid-client-IsVHHv5mzPqNV7bs + +RECAPTCHA_GOOGLE=6LdajH0lAAAAAI6kCVHjR9rHuD22Pf-X7XakSQ_P + +NEXTAUTH_URL=http://localhost:2100 + +PPN=1.11 + +# GOOGLE_CLIENT_ID="396438712998-308hckshgeekr34phr5jskj1f6qltfvk.apps.googleusercontent.com" +# GOOGLE_CLIENT_SECRET=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 +GOOGLE_CLIENT_ID="140590317805-5k5v3pjb7gcv4rcefgt8udgmn3hllv0q.apps.googleusercontent.com" +GOOGLE_CLIENT_SECRET=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 + +JWT_SECRET=NTNv7j0TuYARvmNMmWXo6fKvM4o6nvaUi9ryX38ZHL1bkrnD1ObOQ8JAUmHCBq7Iy7otZcyAagBLHVKvvYaIpmMuxmARQ97jUVG16Jkpkp1wXOPsrF9zwew6TpczyHkHgX5EuLg2MeBuiTqJACs1J0apruOOJCggOtkjB4c + +NEXT_PUBLIC_SELF_HOST=$SELF_HOST +NEXT_PUBLIC_ODOO_API_HOST=$ODOO_API_HOST +NEXT_PUBLIC_MIDTRANS_CLIENT_KEY=$MIDTRANS_CLIENT_KEY +NEXT_PUBLIC_RECAPTCHA_GOOGLE=$RECAPTCHA_GOOGLE +NEXT_PUBLIC_RAJA_ONGKIR_HOST=$RAJA_ONGKIR_HOST +NEXT_PUBLIC_RAJA_ONGKIR_KEY=$RAJA_ONGKIR_KEY +NEXT_PUBLIC_ODOO_HOST=$ODOO_API_HOST +NEXT_PUBLIC_PPN=$PPN
\ No newline at end of file diff --git a/src-migrate/modules/product-promo/components/Section.tsx b/src-migrate/modules/product-promo/components/Section.tsx index 5fc0da4c..4e8a7dd5 100644 --- a/src-migrate/modules/product-promo/components/Section.tsx +++ b/src-migrate/modules/product-promo/components/Section.tsx @@ -50,7 +50,7 @@ const ProductPromoSection = ({ productId }: Props) => { > {promotions?.data.map((promotion) => ( <div key={promotion.id} className="min-w-[400px] max-w-[400px]"> - <ProductPromoCard promotion={promotion} /> + <ProductPromoCard promotion={promotion} /> </div> ))} </Skeleton> diff --git a/src/api/bannerApi.js b/src/api/bannerApi.js index 8bae131d..431225a5 100644 --- a/src/api/bannerApi.js +++ b/src/api/bannerApi.js @@ -3,3 +3,6 @@ import odooApi from '@/core/api/odooApi' export const bannerApi = ({ type }) => { return async () => await odooApi('GET', `/api/v1/banner?type=${type}`) } + +// ubah ke SOLR + diff --git a/src/lib/product/components/ProductSearch.jsx b/src/lib/product/components/ProductSearch.jsx index 08b64c13..ec0077c2 100644 --- a/src/lib/product/components/ProductSearch.jsx +++ b/src/lib/product/components/ProductSearch.jsx @@ -130,6 +130,7 @@ const ProductSearch = ({ brands.push({ brand, qty }); } } + console.log("daftar brand",brands) const categories = []; for ( @@ -144,6 +145,7 @@ const ProductSearch = ({ categories.push({ name, qty }); } } + console.log("daftar kategori",categories) const orderOptions = [ { value: 'price-asc', label: 'Harga Terendah' }, diff --git a/src/pages/shop/promo/index.tsx b/src/pages/shop/promo/index.tsx index 6f5134a3..89e88e29 100644 --- a/src/pages/shop/promo/index.tsx +++ b/src/pages/shop/promo/index.tsx @@ -101,9 +101,7 @@ export default function Promo() { } console.log("data yg dikirim ke ProductPromoCard", promoData) - function capitalizeFirstLetter(string) { - return string.charAt(0).toUpperCase() + string.slice(1); - } + useEffect(() => { const handleScroll = () => { |
