Skip to content

Commit

Permalink
chore: bump version to 3.7.7
Browse files Browse the repository at this point in the history
  • Loading branch information
nurul-umbhiya committed Nov 30, 2022
1 parent 3a68853 commit dab5dfa
Show file tree
Hide file tree
Showing 13 changed files with 705 additions and 898 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
**Donate Link:** http://tareq.co/donate/
**Tags:** WooCommerce multivendor marketplace, multi vendor marketplace, multi seller store, multi-vendor, multi seller, commissions, multivendor, marketplace, product vendors, woocommerce vendor, commission rate, e-commerce, woocommerce, ebay, ecommerce, yith, yithemes
**Requires at least:** 5.4
**Tested up to:** 6.1
**Tested up to:** 6.1.1
**WC requires at least:** 5.0.0
**WC tested up to:** 7.1.0
**Requires PHP:** 7.2
**Stable tag:** 3.7.6
**Stable tag:** 3.7.7
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -313,6 +313,13 @@ A. Just install and activate the PRO version without deleting the free plugin. A

## Changelog ##

### v3.7.7 ( Nov 30, 2022 ) ###

- **update:** Added date filter - `after/before` for Order REST API
- **update:** Added `dokan_bank_payment_fields_placeholders` Filter to change the label and placeholder of bank payment fields
- **update:** Updated UI/UX of vendor dashboard submenu
- **update:** Added section, sub-section label, description search under Dokan admin settings

### v3.7.6 ( Nov 14, 2022 ) ###

- **fix:** Fixed a sql security issue while searching for products via ajax from vendor dashboard
Expand Down
37 changes: 27 additions & 10 deletions assets/js/vue-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6320,7 +6320,12 @@ var AdminNotice = dokan_get_lib('AdminNotice');

if (!this.awaitingSearch) {
setTimeout(function () {
var searchText = _this4.$refs.searchInSettings.value.toLowerCase();
var searchText = _this4.$refs.searchInSettings.value; // If more than two (space/tab) found, replace with space > trim > lowercase.

searchText = searchText.replace(/\s\s+/g, ' ').trim().toLowerCase(); // Create an empty string search first to resolve all previous-state issues.

_this4.doSearch(''); // Search now with searchText.


_this4.doSearch(searchText);

Expand All @@ -6337,21 +6342,33 @@ var AdminNotice = dokan_get_lib('AdminNotice');
var settingFields = {};
var filteredSettingSections = [];
var settingSections = [];
var dokan_setting_fields = dokan.settings_fields;
Object.keys(dokan_setting_fields).forEach(function (section, index) {
Object.keys(dokan_setting_fields[section]).forEach(function (field, i) {
if (dokan_setting_fields[section][field].type === "sub_section") {
return;
}
var dokanSettingFields = dokan.settings_fields;
var dokanSettingSections = dokan.settings_sections;
Object.keys(dokanSettingFields).forEach(function (section, index) {
Object.keys(dokanSettingFields[section]).forEach(function (field) {
var label = ''; // Append section field label and description.

if ('sub_section' !== dokanSettingFields[section][field].type) {
label += " ".concat(dokanSettingFields[section][field]['label'], " ").concat(dokanSettingFields[section][field]['desc']);
} // Append section label and description.


Object.keys(dokanSettingSections).forEach(function (foundSectionIndex) {
var foundSection = dokanSettingSections[foundSectionIndex];

if ((foundSection === null || foundSection === void 0 ? void 0 : foundSection.id) === section) {
label += " ".concat(foundSection.title, " ").concat(foundSection.description, " ").concat(foundSection.settings_description);
}
}); // Make the label lowercase, as `searchText` is also like that.

var label = dokan_setting_fields[section][field]['label'].toLowerCase();
label = label.toLocaleLowerCase();

if (label && label.includes(searchText)) {
if (!settingFields[section]) {
settingFields[section] = {};
}

settingFields[section][field] = dokan_setting_fields[section][field];
settingFields[section][field] = dokanSettingFields[section][field];

if (filteredSettingSections.indexOf(section) === -1) {
filteredSettingSections.push(section);
Expand All @@ -6360,7 +6377,7 @@ var AdminNotice = dokan_get_lib('AdminNotice');
});
});
var currentTab = 0;
Object.keys(dokan.settings_sections).forEach(function (section, index) {
Object.keys(dokan.settings_sections).forEach(function (section) {
if (filteredSettingSections.indexOf(dokan.settings_sections[section].id) !== -1) {
if (!currentTab) {
_this5.changeTab(dokan.settings_sections[section]);
Expand Down
2 changes: 1 addition & 1 deletion assets/js/vue-admin.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"minimum-stability": "dev",
"require": {
"php": ">=7.0",
"php": ">=7.2",
"appsero/client": "dev-develop",
"jakeasmith/http_build_url": "^1"
},
Expand All @@ -20,11 +20,11 @@
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"tareq1988/wp-php-cs-fixer": "dev-master",
"phpcompatibility/phpcompatibility-wp": "dev-master",
"phpunit/phpunit": ">=6.5.14"
"phpunit/phpunit": "^8.5.31"
},
"config": {
"platform": {
"php": "7.0"
"php": "7.2"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
Expand Down
Loading

0 comments on commit dab5dfa

Please sign in to comment.