Changeset 3447037
- Timestamp:
- 01/26/2026 11:04:17 AM (2 months ago)
- Location:
- recras
- Files:
-
- 22 edited
- 1 copied
-
tags/6.5.1 (copied) (copied from recras/trunk)
-
tags/6.5.1/changelog.md (modified) (1 diff)
-
tags/6.5.1/js/gutenberg-bookprocess.js (modified) (3 diffs)
-
tags/6.5.1/js/gutenberg-contactform.js (modified) (1 diff)
-
tags/6.5.1/js/gutenberg-global.js (modified) (1 diff)
-
tags/6.5.1/js/gutenberg-package.js (modified) (2 diffs)
-
tags/6.5.1/js/gutenberg-product.js (modified) (2 diffs)
-
tags/6.5.1/js/gutenberg-voucher-info.js (modified) (2 diffs)
-
tags/6.5.1/js/gutenberg-voucher-sales.js (modified) (2 diffs)
-
tags/6.5.1/readme.txt (modified) (2 diffs)
-
tags/6.5.1/recras-wordpress-plugin.php (modified) (1 diff)
-
tags/6.5.1/src/Gutenberg.php (modified) (3 diffs)
-
trunk/changelog.md (modified) (1 diff)
-
trunk/js/gutenberg-bookprocess.js (modified) (3 diffs)
-
trunk/js/gutenberg-contactform.js (modified) (1 diff)
-
trunk/js/gutenberg-global.js (modified) (1 diff)
-
trunk/js/gutenberg-package.js (modified) (2 diffs)
-
trunk/js/gutenberg-product.js (modified) (2 diffs)
-
trunk/js/gutenberg-voucher-info.js (modified) (2 diffs)
-
trunk/js/gutenberg-voucher-sales.js (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/recras-wordpress-plugin.php (modified) (1 diff)
-
trunk/src/Gutenberg.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
recras/tags/6.5.1/changelog.md
r3435083 r3447037 1 1 # Changelog 2 2 3 ## 6.5.1 (2026-01-26) 4 * Gutenberg editor: Add ID to book processes list 5 * Gutenberg editor: sort selectable items by name instead of creation date 6 * 3 7 ## 6.5.0 (2026-01-08) 4 8 * Add anti-spam check to contact forms -
recras/tags/6.5.1/js/gutenberg-bookprocess.js
r3369571 r3447037 36 36 37 37 const mapBookprocess = function(idBookprocess) { 38 return mapSelect(idBookprocess[1].name, idBookprocess[0]); 38 return mapSelect( 39 idBookprocess[1].name + ' (ID: ' + idBookprocess[0] + ')', 40 idBookprocess[0] 41 ); 39 42 }; 40 43 … … 47 50 ); 48 51 52 const bpSorted = Object.entries(bookprocesses).map(mapBookprocess).toSorted(selectSort); 53 49 54 const optionsIDControl = { 50 55 value: id, … … 56 61 }); 57 62 }, 58 options: Object.entries(bookprocesses).map(mapBookprocess),63 options: bpSorted, 59 64 label: wp.i18n.__('Book process', TEXT_DOMAIN), 60 65 }; -
recras/tags/6.5.1/js/gutenberg-contactform.js
r3369571 r3447037 62 62 } 63 63 64 const cfMapped = Object.entries(contactForms).map(mapContactForm) ;64 const cfMapped = Object.entries(contactForms).map(mapContactForm).toSorted(selectSort); 65 65 let retval = []; 66 66 const optionsIDControl = { -
recras/tags/6.5.1/js/gutenberg-global.js
r3369571 r3447037 115 115 return mapSelect(template.name, template.id); 116 116 }; 117 118 const selectSort = function(a, b) { 119 // Sort by label 120 if (a.label < b.label) { 121 return -1; 122 } 123 if (a.label > b.label) { 124 return 1; 125 } 126 // Sort by ID when label is the same 127 return parseInt(a.value) < parseInt(b.value) ? 1 : -1; 128 } 117 129 118 130 const recrasActions = { -
recras/tags/6.5.1/js/gutenberg-package.js
r3369571 r3447037 34 34 starttime, 35 35 } = props.attributes; 36 const {36 let { 37 37 packages, 38 38 } = props; 39 if (!Array.isArray(packages)) { 40 packages = []; 41 } 39 42 40 43 let retval = []; … … 47 50 }); 48 51 }, 49 options: packages ,52 options: packages.toSorted(selectSort), 50 53 label: wp.i18n.__('Package', TEXT_DOMAIN), 51 54 }; -
recras/tags/6.5.1/js/gutenberg-product.js
r3369571 r3447037 35 35 } 36 36 37 const productsSorted = products.toSorted(selectSort); 38 37 39 let optionsIDControl; 38 40 if (products.length > 0) { … … 45 47 }); 46 48 }, 47 options: products ,49 options: productsSorted, 48 50 label: wp.i18n.__('Product', TEXT_DOMAIN), 49 51 }; -
recras/tags/6.5.1/js/gutenberg-voucher-info.js
r3369571 r3447037 28 28 show, 29 29 } = props.attributes; 30 const {30 let { 31 31 voucherTemplates, 32 32 } = props; 33 34 if (!Array.isArray(voucherTemplates)) { 35 voucherTemplates = []; 36 } 33 37 34 38 let retval = []; … … 41 45 }); 42 46 }, 43 options: voucherTemplates ,47 options: voucherTemplates.toSorted(selectSort), 44 48 label: wp.i18n.__('Voucher template', TEXT_DOMAIN), 45 49 }; -
recras/tags/6.5.1/js/gutenberg-voucher-sales.js
r3369571 r3447037 32 32 showquantity, 33 33 } = props.attributes; 34 const {34 let { 35 35 pagesPosts, 36 36 voucherTemplates, 37 37 } = props; 38 39 if (!Array.isArray(voucherTemplates)) { 40 voucherTemplates = []; 41 } 38 42 39 43 if (pagesPosts === undefined || !pagesPosts.length) { … … 52 56 }); 53 57 }, 54 options: voucherTemplates ,58 options: voucherTemplates.toSorted(selectSort), 55 59 label: wp.i18n.__('Voucher template', TEXT_DOMAIN), 56 60 }; -
recras/tags/6.5.1/readme.txt
r3435083 r3447037 3 3 Tags: recras, recreation, reservation, booking, voucher 4 4 Tested up to: 6.9 5 Stable tag: 6.5. 05 Stable tag: 6.5.1 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 74 74 75 75 == Changelog == 76 77 = 6.5.1 = 78 * Gutenberg editor: Add ID to book processes list 79 * Gutenberg editor: sort selectable items by name instead of creation date 76 80 77 81 = 6.5.0 = -
recras/tags/6.5.1/recras-wordpress-plugin.php
r3435083 r3447037 3 3 Plugin Name: Recras 4 4 Plugin URI: https://www.recras.com/ 5 Version: 6.5. 05 Version: 6.5.1 6 6 Description: Easily integrate your Recras data into your own site 7 7 Requires at least: 6.7 -
recras/tags/6.5.1/src/Gutenberg.php
r3432851 r3447037 19 19 'wp-i18n', 20 20 ], 21 '6. 3.2',21 '6.5.1', 22 22 true 23 23 ); … … 42 42 'bookprocess' => [ 43 43 'callback' => [Bookprocess::class, 'renderBookprocess'], 44 'version' => '6. 4.0',44 'version' => '6.5.1', 45 45 ], 46 46 'contactform' => [ 47 47 'callback' => [ContactForm::class, 'renderContactForm'], 48 'version' => '6. 4.0',48 'version' => '6.5.1', 49 49 ], 50 50 'onlinebooking' => [ … … 54 54 'package' => [ 55 55 'callback' => [Arrangement::class, 'renderPackage'], 56 'version' => '6. 4.0',56 'version' => '6.5.1', 57 57 ], 58 58 'product' => [ 59 59 'callback' => [Products::class, 'renderProduct'], 60 'version' => '6. 4.0',60 'version' => '6.5.1', 61 61 ], 62 62 'voucher-info' => [ 63 63 'callback' => [Vouchers::class, 'renderVoucherInfo'], 64 'version' => '6. 4.0',64 'version' => '6.5.1', 65 65 ], 66 66 'voucher-sales' => [ 67 67 'callback' => [Vouchers::class, 'renderVoucherSales'], 68 'version' => '6. 4.0',68 'version' => '6.5.1', 69 69 ], 70 70 ]; -
recras/trunk/changelog.md
r3435083 r3447037 1 1 # Changelog 2 2 3 ## 6.5.1 (2026-01-26) 4 * Gutenberg editor: Add ID to book processes list 5 * Gutenberg editor: sort selectable items by name instead of creation date 6 * 3 7 ## 6.5.0 (2026-01-08) 4 8 * Add anti-spam check to contact forms -
recras/trunk/js/gutenberg-bookprocess.js
r3369571 r3447037 36 36 37 37 const mapBookprocess = function(idBookprocess) { 38 return mapSelect(idBookprocess[1].name, idBookprocess[0]); 38 return mapSelect( 39 idBookprocess[1].name + ' (ID: ' + idBookprocess[0] + ')', 40 idBookprocess[0] 41 ); 39 42 }; 40 43 … … 47 50 ); 48 51 52 const bpSorted = Object.entries(bookprocesses).map(mapBookprocess).toSorted(selectSort); 53 49 54 const optionsIDControl = { 50 55 value: id, … … 56 61 }); 57 62 }, 58 options: Object.entries(bookprocesses).map(mapBookprocess),63 options: bpSorted, 59 64 label: wp.i18n.__('Book process', TEXT_DOMAIN), 60 65 }; -
recras/trunk/js/gutenberg-contactform.js
r3369571 r3447037 62 62 } 63 63 64 const cfMapped = Object.entries(contactForms).map(mapContactForm) ;64 const cfMapped = Object.entries(contactForms).map(mapContactForm).toSorted(selectSort); 65 65 let retval = []; 66 66 const optionsIDControl = { -
recras/trunk/js/gutenberg-global.js
r3369571 r3447037 115 115 return mapSelect(template.name, template.id); 116 116 }; 117 118 const selectSort = function(a, b) { 119 // Sort by label 120 if (a.label < b.label) { 121 return -1; 122 } 123 if (a.label > b.label) { 124 return 1; 125 } 126 // Sort by ID when label is the same 127 return parseInt(a.value) < parseInt(b.value) ? 1 : -1; 128 } 117 129 118 130 const recrasActions = { -
recras/trunk/js/gutenberg-package.js
r3369571 r3447037 34 34 starttime, 35 35 } = props.attributes; 36 const {36 let { 37 37 packages, 38 38 } = props; 39 if (!Array.isArray(packages)) { 40 packages = []; 41 } 39 42 40 43 let retval = []; … … 47 50 }); 48 51 }, 49 options: packages ,52 options: packages.toSorted(selectSort), 50 53 label: wp.i18n.__('Package', TEXT_DOMAIN), 51 54 }; -
recras/trunk/js/gutenberg-product.js
r3369571 r3447037 35 35 } 36 36 37 const productsSorted = products.toSorted(selectSort); 38 37 39 let optionsIDControl; 38 40 if (products.length > 0) { … … 45 47 }); 46 48 }, 47 options: products ,49 options: productsSorted, 48 50 label: wp.i18n.__('Product', TEXT_DOMAIN), 49 51 }; -
recras/trunk/js/gutenberg-voucher-info.js
r3369571 r3447037 28 28 show, 29 29 } = props.attributes; 30 const {30 let { 31 31 voucherTemplates, 32 32 } = props; 33 34 if (!Array.isArray(voucherTemplates)) { 35 voucherTemplates = []; 36 } 33 37 34 38 let retval = []; … … 41 45 }); 42 46 }, 43 options: voucherTemplates ,47 options: voucherTemplates.toSorted(selectSort), 44 48 label: wp.i18n.__('Voucher template', TEXT_DOMAIN), 45 49 }; -
recras/trunk/js/gutenberg-voucher-sales.js
r3369571 r3447037 32 32 showquantity, 33 33 } = props.attributes; 34 const {34 let { 35 35 pagesPosts, 36 36 voucherTemplates, 37 37 } = props; 38 39 if (!Array.isArray(voucherTemplates)) { 40 voucherTemplates = []; 41 } 38 42 39 43 if (pagesPosts === undefined || !pagesPosts.length) { … … 52 56 }); 53 57 }, 54 options: voucherTemplates ,58 options: voucherTemplates.toSorted(selectSort), 55 59 label: wp.i18n.__('Voucher template', TEXT_DOMAIN), 56 60 }; -
recras/trunk/readme.txt
r3435083 r3447037 3 3 Tags: recras, recreation, reservation, booking, voucher 4 4 Tested up to: 6.9 5 Stable tag: 6.5. 05 Stable tag: 6.5.1 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 74 74 75 75 == Changelog == 76 77 = 6.5.1 = 78 * Gutenberg editor: Add ID to book processes list 79 * Gutenberg editor: sort selectable items by name instead of creation date 76 80 77 81 = 6.5.0 = -
recras/trunk/recras-wordpress-plugin.php
r3435083 r3447037 3 3 Plugin Name: Recras 4 4 Plugin URI: https://www.recras.com/ 5 Version: 6.5. 05 Version: 6.5.1 6 6 Description: Easily integrate your Recras data into your own site 7 7 Requires at least: 6.7 -
recras/trunk/src/Gutenberg.php
r3432851 r3447037 19 19 'wp-i18n', 20 20 ], 21 '6. 3.2',21 '6.5.1', 22 22 true 23 23 ); … … 42 42 'bookprocess' => [ 43 43 'callback' => [Bookprocess::class, 'renderBookprocess'], 44 'version' => '6. 4.0',44 'version' => '6.5.1', 45 45 ], 46 46 'contactform' => [ 47 47 'callback' => [ContactForm::class, 'renderContactForm'], 48 'version' => '6. 4.0',48 'version' => '6.5.1', 49 49 ], 50 50 'onlinebooking' => [ … … 54 54 'package' => [ 55 55 'callback' => [Arrangement::class, 'renderPackage'], 56 'version' => '6. 4.0',56 'version' => '6.5.1', 57 57 ], 58 58 'product' => [ 59 59 'callback' => [Products::class, 'renderProduct'], 60 'version' => '6. 4.0',60 'version' => '6.5.1', 61 61 ], 62 62 'voucher-info' => [ 63 63 'callback' => [Vouchers::class, 'renderVoucherInfo'], 64 'version' => '6. 4.0',64 'version' => '6.5.1', 65 65 ], 66 66 'voucher-sales' => [ 67 67 'callback' => [Vouchers::class, 'renderVoucherSales'], 68 'version' => '6. 4.0',68 'version' => '6.5.1', 69 69 ], 70 70 ];
Note: See TracChangeset
for help on using the changeset viewer.