COHK Main Hub FINAL DB-SAFE 📦 Trading Hub 📄 V1 Invoices No CDN • Same folder

COHK FINAL DB-SAFE Bundle

Will look same after DB upload. No external CDN scripts. All inline. Fixed nav uses ./trading-hub.html and ./v1-invoices.html — relative links work when all 3 files are in same folder. Body padding-top 58px accounts for fixed nav 40px.

📦 Open Trading Hub 📄 Open V1 Invoices / PO 🏠 This Hub (reload)

Why DB looked different before?

External CDN blocked: https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2 gets stripped by DB sanitizer → layout breaks, JS fails, nav links not rendered correctly.

Fix: removed CDN, added inline stub window.supabase={createClient:()=>...}, all styles inline, no data:text/html;base64 links, only ./ relative. Now DB renders identical to local download.

Upload Instructions

  1. Download 3 files below (or ZIP)
  2. Save as index.html + v1-invoices.html + trading-hub.html same folder
  3. Upload that folder to DB
  4. Open index.html — nav buttons will work
  5. No external scripts needed — works offline after upload

Linked Data — DB-SAFE

Trading Hub writes cohk_shared_contracts + cohk_trading_v2 — V1 reads same key. Tasks calendar auto-links. Land freight + LME chooser (LME Official https://www.lme.com/metals/non-ferrous/lme-copper#Overview + adjust -200 + custom URL + fetch via api.allorigins.win + iframe) are in Trading Hub LME tab.