feat: complete admin panel and backend admin api migration

This commit is contained in:
s.esmaeili
2026-09-13 21:02:25 +03:30
parent 03119cd655
commit 267fc7b7d1
239 changed files with 25431 additions and 935 deletions
@@ -0,0 +1,17 @@
// Ported from legacy henza_admin/src/table/promotion.js
import XTbl, { Xtc } from '../../components/x-table/model';
export function buildPromotionListModel(): XTbl {
const tbl = new XTbl('admin/promotions/list', 'لیست تخفیف ها');
tbl.add(new Xtc('id', 'کد').filterNumber());
tbl.add(new Xtc('title', 'نام پروموشن').filterText());
tbl.add(new Xtc('promotion_type_str', 'نوع پروموشن').noSort());
tbl.add(new Xtc('platform', 'پلتفرم نمایش ').noSort());
tbl.add(new Xtc('status', 'وضعیت').renderSlot('sts').noSort());
tbl.add(new Xtc('start', 'تاریخ شروع').renderSlot('startDate').noSort());
tbl.add(new Xtc('end', 'تاریخ پایان ').renderSlot('endDate').noSort());
tbl.add(new Xtc('action', 'عملیات').renderSlot('op').noSort());
return tbl;
}
export default buildPromotionListModel;