From 949fddc57a56dea44c605375f94017eb74b3b320 Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Thu, 2 Jul 2026 10:16:40 +0330 Subject: [PATCH] Add AST JSON representation for SiteConfigController.php with nodes and edges --- assets/admin/pages/SettingsPage.tsx | 46 +- data/seed/cities.json | 2 +- docs/api/admin.md | 3 + docs/api/payment.md | 2 +- graphify-out/.graphify_labels.json | 10 +- graphify-out/GRAPH_REPORT.md | 242 ++-- ...b3cc0c6a8e45e37d302bf878c79a2375be79c.json | 1 + ...ef1d79a2166600a1b5c5a35f37a52084e8013.json | 1 + ...fba6449caa04a19c0fd90b2771958a81f0ccb.json | 1 + ...acd82552968049969a255096e9be4401ce45e.json | 1 + ...f7982343fc0ba9d1e685f113bc453a34e8262.json | 1 + graphify-out/cache/stat-index.json | 2 +- graphify-out/graph.json | 1000 +++++++++-------- graphify-out/manifest.json | 24 +- .../Controller/SiteConfigController.php | 2 + src/Payment/Controller/PaymentController.php | 19 +- 16 files changed, 707 insertions(+), 650 deletions(-) create mode 100644 graphify-out/cache/ast/v0.8.44/2144bca0e7b2104d30fe6440466b3cc0c6a8e45e37d302bf878c79a2375be79c.json create mode 100644 graphify-out/cache/ast/v0.8.44/2b39b6600a9e6dc9ebe1ffc5594ef1d79a2166600a1b5c5a35f37a52084e8013.json create mode 100644 graphify-out/cache/ast/v0.8.44/67bede935ba55cb63bd95732662fba6449caa04a19c0fd90b2771958a81f0ccb.json create mode 100644 graphify-out/cache/ast/v0.8.44/6c7c55103177a13990984f1a91cacd82552968049969a255096e9be4401ce45e.json create mode 100644 graphify-out/cache/ast/v0.8.44/d817124419f159576059572a5a6f7982343fc0ba9d1e685f113bc453a34e8262.json diff --git a/assets/admin/pages/SettingsPage.tsx b/assets/admin/pages/SettingsPage.tsx index ac48ae2f..74bfed08 100644 --- a/assets/admin/pages/SettingsPage.tsx +++ b/assets/admin/pages/SettingsPage.tsx @@ -32,9 +32,11 @@ const schema = z.object({ appointment_fee_rials: z.string(), // payment gateways payment_test_mode: z.string(), + mellat_enabled: z.string(), mellat_terminal_id: z.string(), mellat_username: z.string(), mellat_password: z.string(), + sep_enabled: z.string(), sep_terminal_id: z.string(), }); @@ -53,9 +55,11 @@ interface Settings { sms_panel_fee_rials: string; appointment_fee_rials: string; payment_test_mode: string; + mellat_enabled: string; mellat_terminal_id: string; mellat_username: string; mellat_password: string; + sep_enabled: string; sep_terminal_id: string; sms_api_key_configured: boolean; } @@ -107,9 +111,11 @@ export default function SettingsPage() { sms_panel_fee_rials: settings.sms_panel_fee_rials ?? '1500000', appointment_fee_rials: settings.appointment_fee_rials ?? '150000', payment_test_mode: settings.payment_test_mode ?? '0', + mellat_enabled: settings.mellat_enabled ?? '1', mellat_terminal_id: settings.mellat_terminal_id ?? '', mellat_username: settings.mellat_username ?? '', mellat_password: settings.mellat_password ?? '', + sep_enabled: settings.sep_enabled ?? '1', sep_terminal_id: settings.sep_terminal_id ?? '', }); } @@ -125,6 +131,8 @@ export default function SettingsPage() { }); const paymentTestMode = watch('payment_test_mode') === '1'; + const mellatEnabled = watch('mellat_enabled') === '1'; + const sepEnabled = watch('sep_enabled') === '1'; const apptCommissionEnabled = watch('appointment_commission_enabled') === '1'; const upgradeCommissionEnabled = watch('upgrade_commission_enabled') === '1'; const taxEnabled = watch('tax_enabled') === '1'; @@ -407,10 +415,20 @@ export default function SettingsPage() { {/* Mellat */} -
-
- - درگاه ملت (Mellat) +
+
+
+ + درگاه ملت (Mellat) +
+ +