vai-market / index.ts

Commit History

Fix img proxy: browser UA + Referer to bypass CDN hotlink blocks, only serve image content-type (404 for HTML)
7b4c475
verified

bep40 commited on

Web search: fallback chain DDG → Bing RSS → Google HTML (HF egress hay bị block bởi DDG/Google HTML)
eba4f63

bep40 commited on

3 tính năng mới: (1) Tìm kiếm Google → đề xuất 10 link SP dán vào ô URL (modal thêm SP); (2) Thông số kỹ thuật: nhập toàn bộ nội dung → tự tách từng dòng (thêm SP + sửa SP); (3) Báo giá/sửa đơn: giá CK mặc định = giá KM (salePn) nếu có, nhập 0 = quà tặng miễn phí — không cộng dồn CK lên sp có giá KM
4aa6466

bep40 commited on

Báo giá: AI đọc bản vẽ kỹ thuật (VLM) — endpoint /api/read-drawing dùng Qwen3-VL qua HF Inference Providers, nhận diện hạng mục + kích thước W×D×H → m2/mét dài/cái; thêm nút 🤖 AI Đọc bản vẽ trong bao-gia.js
66409ac

ML Intern commited on

v55-speed: catpage in-memory cache+immutable headers; products-index server TTL cache; promos/config memo+cache; parallel page-1/+1 preload; lazy ExcelJS/jspdf/html2canvas (3 CDN round trips removed); preconnect hot origins
8fe2f13

bep40 commited on

v51: fix CDN caching of /index.html (serveStatic no-cache headers) — users kept loading old script refs = 'still broken' despite JS fixes
d9b4f72

bep40 commited on

add /api/zalo-imports + /api/zalo-import-file routes (dataset zalo-imports/)
b625b7a
verified

bep40 commited on

url-product: fix blog-content regex (lookbehind), remove box-content, desc cleanup
98ceed9
verified

bep40 commited on

url-product: blog-content boundary regex fix, features fallback
7239090
verified

bep40 commited on

url-product: full desc, all-table specs, correct listPrice
fc23d1f
verified

bep40 commited on

url-product: TDZ fix, full desc + specs
45a1849
verified

bep40 commited on

url-product: full description + tr/td specs + old price + richer images/category/sku
c15c551
verified

bep40 commited on

v7: lead Catalogue AI matches for cabinet-hardware queries (khóa/tay nắm/thùng rác/kệ...)
f67b40b
verified

bep40 commited on

v6: boost Imudex-family CATAI results to top in server search (tay nắm/thùng rác/kệ... now lead with Imudex)
b53f03b
verified

bep40 commited on

v5: CATAI block at top-level scope (fix serverSearchCatai undefined); vaix/search + query_catalog fallback to Imudex index
250e23c
verified

bep40 commited on

v4: vaix/search route now uses serverSearchProducts with CATAI fallback (Imudex)
c069f8f
verified

bep40 commited on

Fix server search: fallback catalogue_ai_index (Imudex) for query_catalog when VAIX lacks products; serverSearchProducts async + merge CATAI results
18ce559
verified

bep40 commited on

Server: đăng ký Imudex + merge H2 pages (catpage/catpdf/deeplink)
1d12e5a
verified

bep40 commited on

Catalogue deep-link OG: tiếng Việt có dấu
f3470cc
verified

bep40 commited on

Catalogue AI v7: fix share deep-link (absolute assets + auto-open page viewer), fill card images via catai_imgmap + /api/imgsku (webshop & PDF-extract), KH/Don/Gio buttons in catalogue mode
f4b370d

bep40 commited on

fix og:image/og:url to https
97b8806
verified

bep40 commited on

add SEO deep-link route /catalogue/:cat/:page
b6268ec
verified

bep40 commited on

add /api/url-product: server-side malloca/JSON-LD product parser (name, sku, price, images, description, specs, features)
f8afa2a
verified

bep40 commited on

catpdf: support ?dl=1 force download
adf8654
verified

bep40 commited on

add /api/catpage same-origin route (raster page images for catalogue viewer)
38a2a77
verified

bep40 commited on

add /api/products-index same-origin proxy (fix VAIX RAG CORS)
a5d5d56
verified

bep40 commited on

add same-origin /api/catpdf (range) + /api/catindex proxies to fix catalogue viewer CORS/PNA
6b0a3a6
verified

bep40 commited on

verify-kh: prefer non-empty per-user ck when duplicate Ma KH records exist (fixes link CK not applying)
83df7ab
verified

bep40 commited on

Fix root cause mất ảnh khi thêm 2+ SP qua URL: server upsert chỉ match l link khi cả 2 không rỗng (tránh ghi đè SP trước); client gửi l/link/url; restore Hitachi 357869 record bị ghi đè. Fix treo modal FLASHSALE (.show CSS đè inline display:none). Hiển thị đủ ảnh detail BIGSALE/FLASHSALE/COMBO qua proxy primaryImgSrc. Cải thiện parser WooCommerce/bossvn (JSON-LD @graph , giá, gallery, specs, brand).
5e139ab

bep40 commited on

Fix: Excel title-row + both-price (niêm yết/KM) parsing; PDF text-layer-first OCR; URL-add auto both-price display + FLASHSALE(<40%)/BIGSALE(>=40%); cache-bust + rebuild 1786982928
e945718

bep40 commited on

Restore to 6680cf8 (all fixes: image chain, redirect, bulk-import, category auto-detect) rebuild 1786980854
b2b8e2c

bep40 commited on

Restore to ecbd6919 (100% tree match)
e11666b

bep40 commited on

Fix triệt để: Excel đơn giá (đ→d), OCR AI fallback + comma-VND, URL ảnh chain fallback, redirect to detail
6680cf8

bep40 commited on

Fix ảnh URL SP (proxy src chính), detail giá theo priceMode khớp preview; bulk: OCR ảnh/PDF trong browser + /api/parse-text, lọc dòng nhiễu Excel, cột ảnh SP, crop ảnh tải lên cho từng SP
e2581c4

bep40 commited on

Thêm hàng loạt (Excel/CSV/PDF/ảnh + AI nhận diện cột/dòng); sửa ảnh SP thêm qua URL (proxy + ảnh lớn chi tiết); định nghĩa loadAddedFromCatalog
e66202f

bep40 commited on

Close remaining placeholder gaps + flashsale detail fix
38a9353

bep40 commited on

Danh sách chia sẻ (BIGSALE/COMBO/FLASHSALE) + Xóa admin + /api/delete-promo
50d5689

bep40 commited on

Thêm SP: hiện đủ sp đã thêm vào đầu panel (URL+OCR); nút Xóa vĩnh viễn (/api/delete-product) cho sp đã thêm; nút chia sẻ link SEO trên card, BIGSALE & COMBO KHUYẾN MÃI
f350419

bep40 commited on

Thêm SP: scrape 2 giá (niêm yết/KM) + đủ desc/feats/specs cho thienkimhome, admin chọn giá hiển thị; modal luôn trên nút floating (z-index 110000+)
04e716b

bep40 commited on

Fix Thêm SP modal never opening (boot() not called) + durable sync to catalog dataset (products_url_added.json) shared by avatar2 & ZaloBot
1be1499

bep40 commited on

Improve BIGSALE og:image resolution: promos image + normalized sku match + VAIX fallback
b2dc05f
verified

bep40 commited on

Fix og:image for bigsale SEO links — load from catalog
b4f2f25
verified

bep40 commited on

Add /api/promos overlay store + BIG SALE SEO meta
b4f6832
verified

bep40 commited on

fix: customer list always loads — GET /api/customers reads local mirror first, fetches dataset+ketoan+space in parallel with 2.5s budget, NEVER 500s on slow Hub
099b7e3

bep40 commited on

fix: CK input on order-detail accepts % / k / tr like quote modal; all ?kh= discount links point to canonical bep40-vai-avatar.hf.space
96ac982

bep40 commited on

fix(customers): durable space-mirror backup + merge so web/zalo customers (NBV2fc) survive ketoan sync clobber
af3d386

bot commited on

fix(web): merge ketoan khachhang into /api/customers GET/POST + kh-link so the full list + CK survive any clobber
c1da0b0

ML Intern commited on

fix(web): use dedicated vaistudio_customers.json so ketoan sync can't clobber CK/list
34db662

ML Intern commited on

fix(web): persist customers/CK to vaistudio-data dataset — no more Space rebuild on every save
f2f1ae7

ML Intern commited on

Triệt để: web LUÔN có mã KH + link chiết khấu — /api/kh-link mint mã KH + signed link cho khách vào thẳng web; initDiscountLink fallback qua kh-link + lưu vas_signed_kh; greeting/mọi reply hiện header
ee1a7da

ML Intern commited on