Changeset 3806754
- Timestamp:
- 11/17/2026 07:55:37 AM (less than one hour ago)
- Location:
- kargo-entegrator
- Files:
-
- 57 added
- 12 edited
- 12 copied
-
tags/1.1.55 (added)
-
tags/1.1.55/assets (copied) (copied from kargo-entegrator/trunk/assets )
-
tags/1.1.55/assets/vue/ApiRequestStore-1-1-55.js (added)
-
tags/1.1.55/assets/vue/BarcodeModal-1-1-55.js (added)
-
tags/1.1.55/assets/vue/BaseButton-1-1-55.js (added)
-
tags/1.1.55/assets/vue/Loading-1-1-55.js (added)
-
tags/1.1.55/assets/vue/MdrModal-1-1-55.js (added)
-
tags/1.1.55/assets/vue/MdrSelect-1-1-55.js (added)
-
tags/1.1.55/assets/vue/MdrTable-1-1-55.js (added)
-
tags/1.1.55/assets/vue/OrderStore-1-1-55.js (added)
-
tags/1.1.55/assets/vue/Page-1-1-55.js (added)
-
tags/1.1.55/assets/vue/ResourceStore-1-1-55.js (added)
-
tags/1.1.55/assets/vue/SecondaryButton-1-1-55.js (added)
-
tags/1.1.55/assets/vue/ShipmentInfoModal-1-1-55.js (added)
-
tags/1.1.55/assets/vue/ShipmentListItem-1-1-55.js (added)
-
tags/1.1.55/assets/vue/UiStore-1-1-55.js (added)
-
tags/1.1.55/assets/vue/_plugin-vue_export-helper-1-1-55.js (added)
-
tags/1.1.55/assets/vue/admin-app-1-1-55.js (added)
-
tags/1.1.55/assets/vue/admin-app-1-1-552.js (added)
-
tags/1.1.55/assets/vue/css/admin-app-1-1-55.css (added)
-
tags/1.1.55/assets/vue/fields-1-1-55.js (added)
-
tags/1.1.55/assets/vue/js/admin-order-detail-1-1-55.js (added)
-
tags/1.1.55/assets/vue/js/bulk-create-1-1-55.js (added)
-
tags/1.1.55/assets/vue/js/bulk-print-1-1-55.js (added)
-
tags/1.1.55/assets/vue/js/customer-order-detail-1-1-55.js (added)
-
tags/1.1.55/assets/vue/js/dokan-order-detail-1-1-55.js (added)
-
tags/1.1.55/assets/vue/js/gurmecargo-1-1-55.js (added)
-
tags/1.1.55/assets/vue/js/orders-table-1-1-55.js (added)
-
tags/1.1.55/assets/vue/js/settings-1-1-55.js (added)
-
tags/1.1.55/assets/vue/vendor-1-1-55.js (added)
-
tags/1.1.55/changelog.txt (copied) (copied from kargo-entegrator/trunk/changelog.txt )
-
tags/1.1.55/composer.json (copied) (copied from kargo-entegrator/trunk/composer.json )
-
tags/1.1.55/hooks (copied) (copied from kargo-entegrator/trunk/hooks )
-
tags/1.1.55/hooks/class-gcargo-ajax.php (modified) (1 diff)
-
tags/1.1.55/includes (copied) (copied from kargo-entegrator/trunk/includes )
-
tags/1.1.55/includes/gcargo-functions.php (modified) (1 diff)
-
tags/1.1.55/kargo-entegrator.php (copied) (copied from kargo-entegrator/trunk/kargo-entegrator.php ) (2 diffs)
-
tags/1.1.55/languages (copied) (copied from kargo-entegrator/trunk/languages )
-
tags/1.1.55/readme.txt (copied) (copied from kargo-entegrator/trunk/readme.txt ) (1 diff)
-
tags/1.1.55/src (copied) (copied from kargo-entegrator/trunk/src )
-
tags/1.1.55/src/components/ShipmentListItem.vue (modified) (1 diff)
-
tags/1.1.55/src/plugins/ajax.js (modified) (2 diffs)
-
tags/1.1.55/templates (copied) (copied from kargo-entegrator/trunk/templates )
-
tags/1.1.55/vendor (copied) (copied from kargo-entegrator/trunk/vendor )
-
tags/1.1.55/vendor/composer/installed.php (modified) (2 diffs)
-
tags/1.1.55/views (copied) (copied from kargo-entegrator/trunk/views )
-
trunk/assets/vue/ApiRequestStore-1-1-55.js (added)
-
trunk/assets/vue/BarcodeModal-1-1-55.js (added)
-
trunk/assets/vue/BaseButton-1-1-55.js (added)
-
trunk/assets/vue/Loading-1-1-55.js (added)
-
trunk/assets/vue/MdrModal-1-1-55.js (added)
-
trunk/assets/vue/MdrSelect-1-1-55.js (added)
-
trunk/assets/vue/MdrTable-1-1-55.js (added)
-
trunk/assets/vue/OrderStore-1-1-55.js (added)
-
trunk/assets/vue/Page-1-1-55.js (added)
-
trunk/assets/vue/ResourceStore-1-1-55.js (added)
-
trunk/assets/vue/SecondaryButton-1-1-55.js (added)
-
trunk/assets/vue/ShipmentInfoModal-1-1-55.js (added)
-
trunk/assets/vue/ShipmentListItem-1-1-55.js (added)
-
trunk/assets/vue/UiStore-1-1-55.js (added)
-
trunk/assets/vue/_plugin-vue_export-helper-1-1-55.js (added)
-
trunk/assets/vue/admin-app-1-1-55.js (added)
-
trunk/assets/vue/admin-app-1-1-552.js (added)
-
trunk/assets/vue/css/admin-app-1-1-55.css (added)
-
trunk/assets/vue/fields-1-1-55.js (added)
-
trunk/assets/vue/js/admin-order-detail-1-1-55.js (added)
-
trunk/assets/vue/js/bulk-create-1-1-55.js (added)
-
trunk/assets/vue/js/bulk-print-1-1-55.js (added)
-
trunk/assets/vue/js/customer-order-detail-1-1-55.js (added)
-
trunk/assets/vue/js/dokan-order-detail-1-1-55.js (added)
-
trunk/assets/vue/js/gurmecargo-1-1-55.js (added)
-
trunk/assets/vue/js/orders-table-1-1-55.js (added)
-
trunk/assets/vue/js/settings-1-1-55.js (added)
-
trunk/assets/vue/vendor-1-1-55.js (added)
-
trunk/hooks/class-gcargo-ajax.php (modified) (1 diff)
-
trunk/includes/gcargo-functions.php (modified) (1 diff)
-
trunk/kargo-entegrator.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/src/components/ShipmentListItem.vue (modified) (1 diff)
-
trunk/src/plugins/ajax.js (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kargo-entegrator/tags/1.1.55/hooks/class-gcargo-ajax.php
r3787702 r3806754 95 95 */ 96 96 public function middleware() { 97 // Ajax nonce kontrolü yap. 98 if ( check_ajax_referer( GCARGO_AJAX_ACTION ) && isset( $_REQUEST['action'] ) ) { 99 $request = gcargo_clean( $_REQUEST ); 100 $next_action = str_replace( "{$this->prefix}_", '', $request['action'] ); 101 if ( ! current_user_can( gcargo_capability() ) ) { 102 wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'kargo-entegrator' ) ); 97 // Ajax nonce kontrolü yap; hata da ön yüzün okuyabileceği JSON olarak dönsün. 98 if ( ! check_ajax_referer( GCARGO_AJAX_ACTION, false, false ) ) { 99 wp_send_json( array( 'error_message' => __( 'Oturum süresi doldu, lütfen sayfayı yenileyin.', 'kargo-entegrator' ) ), 403 ); 100 } 101 102 $request = gcargo_clean( $_REQUEST ); 103 $next_action = str_replace( "{$this->prefix}_", '', $request['action'] ); 104 105 $forbidden_message = __( 'You do not have sufficient permissions to access this page.', 'kargo-entegrator' ); 106 107 if ( ! current_user_can( gcargo_capability( $next_action ) ) ) { 108 wp_send_json( array( 'error_message' => $forbidden_message ), 403 ); 109 } 110 111 try { 112 /** 113 * Uç noktaya istinaden çalıştırılacak fonksiyonu tanımlar, 114 * filter aracılığı ile farklı sınıfların farklı fonksiyonları ile de aksiyon alınabilir. 115 * 116 * @param string|array $callback Çalıştırılacak fonksiyon. 117 * @param mixed $next_action Uç nokta. 118 */ 119 $action = apply_filters( "{$this->prefix}_ajax_action", $this->endpoints[ $next_action ], $next_action ); 120 $body = gcargo_clean( json_decode( file_get_contents( 'php://input' ) ) ); 121 122 /** 123 * İstek gövdesi çözümlendikten sonra, aksiyon çalıştırılmadan önce 124 * ek yetkilendirme (örn. pazaryeri satıcısının sipariş sahipliği) yapmak için kullanılır. 125 * 126 * @param true|false|WP_Error $allowed İzin; true dışındaki her değer isteği reddeder. 127 * @param string $next_action Uç nokta. 128 * @param mixed $body Çözümlenmiş istek gövdesi. 129 * @param int $user_id İsteği yapan kullanıcı. 130 */ 131 $allowed = apply_filters( "{$this->prefix}_ajax_authorize", true, $next_action, $body, get_current_user_id() ); 132 133 if ( true !== $allowed ) { 134 wp_send_json( array( 'error_message' => is_wp_error( $allowed ) ? $allowed->get_error_message() : $forbidden_message ), 403 ); 103 135 } 104 136 105 try { 106 /** 107 * Uç noktaya istinaden çalıştırılacak fonksiyonu tanımlar, 108 * filter aracılığı ile farklı sınıfların farklı fonksiyonları ile de aksiyon alınabilir. 109 * 110 * @param string|array $callback Çalıştırılacak fonksiyon. 111 * @param mixed $next_action Uç nokta. 112 */ 113 $action = apply_filters( "{$this->prefix}_ajax_action", $this->endpoints[ $next_action ], $next_action ); 114 // $action tanımlanan fonksiyonu çağır. 115 $response = call_user_func( $action, gcargo_clean( json_decode( file_get_contents( 'php://input' ) ) ) ); 116 117 // WP_Error kontrolü yapar. 118 if ( is_wp_error( $response ) ) { 119 wp_send_json( array( 'error_message' => $response->get_error_message() ), 500 ); 120 } 121 122 wp_send_json( $response ); 123 } catch ( Exception $e ) { 124 125 if ( $e instanceof GCARGO_Ajax_Validation_Exception ) { 126 wp_send_json( $e->get_validation_errors(), 422 ); 127 } 128 wp_send_json( array( 'error_message' => $e->getMessage() ), 500 ); 137 // $action tanımlanan fonksiyonu çağır. 138 $response = call_user_func( $action, $body ); 139 140 // WP_Error kontrolü yapar. 141 if ( is_wp_error( $response ) ) { 142 wp_send_json( array( 'error_message' => $response->get_error_message() ), 500 ); 129 143 } 144 145 wp_send_json( $response ); 146 } catch ( Exception $e ) { 147 148 if ( $e instanceof GCARGO_Ajax_Validation_Exception ) { 149 wp_send_json( $e->get_validation_errors(), 422 ); 150 } 151 wp_send_json( array( 'error_message' => $e->getMessage() ), 500 ); 130 152 } 131 153 } -
kargo-entegrator/tags/1.1.55/includes/gcargo-functions.php
r3679172 r3806754 42 42 * Kullanıcıya göre yetki tanımı. 43 43 * 44 * Uç nokta adı filtreye iletilir; böylece pazaryeri eklentileri yalnızca 45 * belirli AJAX uç noktaları için farklı bir yetki tanımlayabilir. 46 * 47 * @param string $endpoint AJAX uç noktası (ön eksiz, örn: print_barcode). AJAX dışı kontrollerde boştur. 48 * 44 49 * @return string $role; 45 50 */ 46 function gcargo_capability( ) {47 return apply_filters( 'gcargo_capability', 'manage_woocommerce' );51 function gcargo_capability( $endpoint = '' ) { 52 return apply_filters( 'gcargo_capability', 'manage_woocommerce', $endpoint ); 48 53 } 49 54 -
kargo-entegrator/tags/1.1.55/kargo-entegrator.php
r3806753 r3806754 4 4 * Plugin URI: https://kargoentegrator.com 5 5 * Description: Kolay, hızlı, entegre edilebilir Woo kargo eklentisi 10’dan fazla firma ile entegre olun. 6 * Version: 1.1.5 46 * Version: 1.1.55 7 7 * Author: GurmeHub 8 8 * Author URI: https://gurmehub.com … … 41 41 * @var string 42 42 */ 43 public $version = '1.1.5 4';43 public $version = '1.1.55'; 44 44 45 45 /** -
kargo-entegrator/tags/1.1.55/readme.txt
r3806753 r3806754 8 8 Requires at least: 6.4 9 9 Tested up to: 7.0.3 10 Stable tag: 1.1.5 410 Stable tag: 1.1.55 11 11 Requires PHP: 7.4 12 12 License: GPLv2 or later -
kargo-entegrator/tags/1.1.55/src/components/ShipmentListItem.vue
r3787702 r3806754 34 34 35 35 const printPdf = async (id) => { 36 const url = await getPdf({ data: { shipments: [id] } }); 37 emit("update:pdfUrl", url); 38 emit("update:pdfUrlModal", true); 36 try { 37 const url = await getPdf({ data: { shipments: [id] } }); 38 emit("update:pdfUrl", url); 39 emit("update:pdfUrlModal", true); 40 } catch (e) { 41 // AJAX hatalarının mesajı ajax eklentisi tarafından zaten gösteriliyor; diğerleri konsolda kalsın. 42 console.error(e); 43 } 39 44 }; 40 45 -
kargo-entegrator/tags/1.1.55/src/plugins/ajax.js
r3640474 r3806754 32 32 loading.value = false; 33 33 }, 34 error: (e ) => {34 error: (e, textStatus) => { 35 35 loading.value = false; 36 36 if (e.status === 422 && onValidationError) { … … 39 39 } 40 40 if (e.statusText !== "abort") { 41 // Sunucu JSON dışında bir yanıt döndüyse (ör. PHP uyarısı, düz metin hata) anlamlı bir mesaj göster. 42 const parseErrorMessage = 43 textStatus === "parsererror" 44 ? "Sunucudan beklenmeyen bir yanıt alındı. Lütfen sayfayı yenileyip tekrar deneyin." 45 : ""; 41 46 errorAlert({ 42 47 message: 43 48 e.responseJSON?.error_message || 49 parseErrorMessage || 44 50 e.statusText || 45 51 "An error occurred", -
kargo-entegrator/tags/1.1.55/vendor/composer/installed.php
r3787702 r3806754 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' eae318a2727e2ce3d47ea6f2eca26224c0e15f1e',6 'reference' => '7834eb9f749dfe31deaacce1022d2b59f061ff41', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' eae318a2727e2ce3d47ea6f2eca26224c0e15f1e',16 'reference' => '7834eb9f749dfe31deaacce1022d2b59f061ff41', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
kargo-entegrator/trunk/hooks/class-gcargo-ajax.php
r3787702 r3806754 95 95 */ 96 96 public function middleware() { 97 // Ajax nonce kontrolü yap. 98 if ( check_ajax_referer( GCARGO_AJAX_ACTION ) && isset( $_REQUEST['action'] ) ) { 99 $request = gcargo_clean( $_REQUEST ); 100 $next_action = str_replace( "{$this->prefix}_", '', $request['action'] ); 101 if ( ! current_user_can( gcargo_capability() ) ) { 102 wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'kargo-entegrator' ) ); 97 // Ajax nonce kontrolü yap; hata da ön yüzün okuyabileceği JSON olarak dönsün. 98 if ( ! check_ajax_referer( GCARGO_AJAX_ACTION, false, false ) ) { 99 wp_send_json( array( 'error_message' => __( 'Oturum süresi doldu, lütfen sayfayı yenileyin.', 'kargo-entegrator' ) ), 403 ); 100 } 101 102 $request = gcargo_clean( $_REQUEST ); 103 $next_action = str_replace( "{$this->prefix}_", '', $request['action'] ); 104 105 $forbidden_message = __( 'You do not have sufficient permissions to access this page.', 'kargo-entegrator' ); 106 107 if ( ! current_user_can( gcargo_capability( $next_action ) ) ) { 108 wp_send_json( array( 'error_message' => $forbidden_message ), 403 ); 109 } 110 111 try { 112 /** 113 * Uç noktaya istinaden çalıştırılacak fonksiyonu tanımlar, 114 * filter aracılığı ile farklı sınıfların farklı fonksiyonları ile de aksiyon alınabilir. 115 * 116 * @param string|array $callback Çalıştırılacak fonksiyon. 117 * @param mixed $next_action Uç nokta. 118 */ 119 $action = apply_filters( "{$this->prefix}_ajax_action", $this->endpoints[ $next_action ], $next_action ); 120 $body = gcargo_clean( json_decode( file_get_contents( 'php://input' ) ) ); 121 122 /** 123 * İstek gövdesi çözümlendikten sonra, aksiyon çalıştırılmadan önce 124 * ek yetkilendirme (örn. pazaryeri satıcısının sipariş sahipliği) yapmak için kullanılır. 125 * 126 * @param true|false|WP_Error $allowed İzin; true dışındaki her değer isteği reddeder. 127 * @param string $next_action Uç nokta. 128 * @param mixed $body Çözümlenmiş istek gövdesi. 129 * @param int $user_id İsteği yapan kullanıcı. 130 */ 131 $allowed = apply_filters( "{$this->prefix}_ajax_authorize", true, $next_action, $body, get_current_user_id() ); 132 133 if ( true !== $allowed ) { 134 wp_send_json( array( 'error_message' => is_wp_error( $allowed ) ? $allowed->get_error_message() : $forbidden_message ), 403 ); 103 135 } 104 136 105 try { 106 /** 107 * Uç noktaya istinaden çalıştırılacak fonksiyonu tanımlar, 108 * filter aracılığı ile farklı sınıfların farklı fonksiyonları ile de aksiyon alınabilir. 109 * 110 * @param string|array $callback Çalıştırılacak fonksiyon. 111 * @param mixed $next_action Uç nokta. 112 */ 113 $action = apply_filters( "{$this->prefix}_ajax_action", $this->endpoints[ $next_action ], $next_action ); 114 // $action tanımlanan fonksiyonu çağır. 115 $response = call_user_func( $action, gcargo_clean( json_decode( file_get_contents( 'php://input' ) ) ) ); 116 117 // WP_Error kontrolü yapar. 118 if ( is_wp_error( $response ) ) { 119 wp_send_json( array( 'error_message' => $response->get_error_message() ), 500 ); 120 } 121 122 wp_send_json( $response ); 123 } catch ( Exception $e ) { 124 125 if ( $e instanceof GCARGO_Ajax_Validation_Exception ) { 126 wp_send_json( $e->get_validation_errors(), 422 ); 127 } 128 wp_send_json( array( 'error_message' => $e->getMessage() ), 500 ); 137 // $action tanımlanan fonksiyonu çağır. 138 $response = call_user_func( $action, $body ); 139 140 // WP_Error kontrolü yapar. 141 if ( is_wp_error( $response ) ) { 142 wp_send_json( array( 'error_message' => $response->get_error_message() ), 500 ); 129 143 } 144 145 wp_send_json( $response ); 146 } catch ( Exception $e ) { 147 148 if ( $e instanceof GCARGO_Ajax_Validation_Exception ) { 149 wp_send_json( $e->get_validation_errors(), 422 ); 150 } 151 wp_send_json( array( 'error_message' => $e->getMessage() ), 500 ); 130 152 } 131 153 } -
kargo-entegrator/trunk/includes/gcargo-functions.php
r3679172 r3806754 42 42 * Kullanıcıya göre yetki tanımı. 43 43 * 44 * Uç nokta adı filtreye iletilir; böylece pazaryeri eklentileri yalnızca 45 * belirli AJAX uç noktaları için farklı bir yetki tanımlayabilir. 46 * 47 * @param string $endpoint AJAX uç noktası (ön eksiz, örn: print_barcode). AJAX dışı kontrollerde boştur. 48 * 44 49 * @return string $role; 45 50 */ 46 function gcargo_capability( ) {47 return apply_filters( 'gcargo_capability', 'manage_woocommerce' );51 function gcargo_capability( $endpoint = '' ) { 52 return apply_filters( 'gcargo_capability', 'manage_woocommerce', $endpoint ); 48 53 } 49 54 -
kargo-entegrator/trunk/kargo-entegrator.php
r3787702 r3806754 4 4 * Plugin URI: https://kargoentegrator.com 5 5 * Description: Kolay, hızlı, entegre edilebilir Woo kargo eklentisi 10’dan fazla firma ile entegre olun. 6 * Version: 1.1.5 46 * Version: 1.1.55 7 7 * Author: GurmeHub 8 8 * Author URI: https://gurmehub.com … … 41 41 * @var string 42 42 */ 43 public $version = '1.1.5 4';43 public $version = '1.1.55'; 44 44 45 45 /** -
kargo-entegrator/trunk/readme.txt
r3787702 r3806754 8 8 Requires at least: 6.4 9 9 Tested up to: 7.0.3 10 Stable tag: 1.1.5 410 Stable tag: 1.1.55 11 11 Requires PHP: 7.4 12 12 License: GPLv2 or later -
kargo-entegrator/trunk/src/components/ShipmentListItem.vue
r3787702 r3806754 34 34 35 35 const printPdf = async (id) => { 36 const url = await getPdf({ data: { shipments: [id] } }); 37 emit("update:pdfUrl", url); 38 emit("update:pdfUrlModal", true); 36 try { 37 const url = await getPdf({ data: { shipments: [id] } }); 38 emit("update:pdfUrl", url); 39 emit("update:pdfUrlModal", true); 40 } catch (e) { 41 // AJAX hatalarının mesajı ajax eklentisi tarafından zaten gösteriliyor; diğerleri konsolda kalsın. 42 console.error(e); 43 } 39 44 }; 40 45 -
kargo-entegrator/trunk/src/plugins/ajax.js
r3640474 r3806754 32 32 loading.value = false; 33 33 }, 34 error: (e ) => {34 error: (e, textStatus) => { 35 35 loading.value = false; 36 36 if (e.status === 422 && onValidationError) { … … 39 39 } 40 40 if (e.statusText !== "abort") { 41 // Sunucu JSON dışında bir yanıt döndüyse (ör. PHP uyarısı, düz metin hata) anlamlı bir mesaj göster. 42 const parseErrorMessage = 43 textStatus === "parsererror" 44 ? "Sunucudan beklenmeyen bir yanıt alındı. Lütfen sayfayı yenileyip tekrar deneyin." 45 : ""; 41 46 errorAlert({ 42 47 message: 43 48 e.responseJSON?.error_message || 49 parseErrorMessage || 44 50 e.statusText || 45 51 "An error occurred", -
kargo-entegrator/trunk/vendor/composer/installed.php
r3787702 r3806754 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' eae318a2727e2ce3d47ea6f2eca26224c0e15f1e',6 'reference' => '7834eb9f749dfe31deaacce1022d2b59f061ff41', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' eae318a2727e2ce3d47ea6f2eca26224c0e15f1e',16 'reference' => '7834eb9f749dfe31deaacce1022d2b59f061ff41', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../',
Note:
See TracChangeset
for help on using the changeset viewer.