Skip to content

Commit 0360582

Browse files
author
Leonix
committed
Webasyst Framework v.2.9.6
* Improved support for the latest PHP versions. * Improved Webasyst 2 user interface.
1 parent dc497e3 commit 0360582

File tree

18 files changed

+69
-46
lines changed

18 files changed

+69
-46
lines changed

wa-apps/installer/css/app.installer.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wa-apps/installer/js/installer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ String.prototype.translate = function () {
570570
$itemClone.find('img').removeClass('userpic userpic-48 custom-mr-8');
571571
$itemClone.addClass('-added');
572572

573-
const targetPosition = $itemClone.offset();
573+
const targetPosition = $app_menu.find('li:first').offset();
574574
const startPosition = $this.offset();
575575

576576
const target_params = {

wa-apps/installer/lib/classes/installerItemsAction.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function execute()
1616
$tag = $this->getFilters('tag');
1717

1818
// System plugins
19-
if (preg_match('~^wa-plugins/~', $slug)) {
19+
if (preg_match('~^wa-plugins/~', (string) $slug)) {
2020
$filters['type'] = 'plugin';
2121
$filters['category'] = 'plugins:' . preg_replace('~^wa-plugins/~', '', $slug);
2222
} else {
@@ -42,7 +42,7 @@ public function execute()
4242

4343
// Set ui version from current app
4444
// For system plugins get UI from request param with 1.3 as default
45-
$ui = (strpos($slug, 'wa-plugins/') === 0) ? waRequest::get('ui', '1.3', waRequest::TYPE_STRING_TRIM) : wa()->whichUI($slug);
45+
$ui = (strpos((string) $slug, 'wa-plugins/') === 0) ? waRequest::get('ui', '1.3', waRequest::TYPE_STRING_TRIM) : wa()->whichUI($slug);
4646
waRequest::setParam('force_ui_version', $ui);
4747
}
4848

wa-apps/installer/lib/config/app.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
'description' => 'Install new apps from the Webasyst Store',
55
'icon' => 'img/installer.svg',
66
'mobile' => false,
7-
'version' => '2.9.5',
8-
'critical' => '2.9.5',
7+
'version' => '2.9.6',
8+
'critical' => '2.9.6',
99
'system' => true,
1010
'vendor' => 'webasyst',
1111
'csrf' => true,

wa-content/css/wa/wa-2.0.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,8 +1322,8 @@ button.webasyst-magic-wand:hover,
13221322
button.webasyst-magic-wand .icon,
13231323
.button.webasyst-magic-wand .icon { width: 1.25em; height: 1.25em; background-image: url('../../img/webasyst-wand-bold.svg'); background-size: 100%; vertical-align: -0.25em; margin-right: 0.25em; }
13241324

1325-
input[type="button"] { background-color: var(--background-color-btn-light-gray); color: var(--text-color-input); box-shadow: none; border-radius: 1.5em; } /* fallback for unstyled old-fashioned <input type="button"> */
1326-
input[type="button"]:hover { box-shadow: none; background-color: var(--background-color-btn-light-gray-hover); }
1325+
input[type="button"]:not(.blue, .green, .yellow, .orange, .red, .purple, .pink, .brown, .gray, .dark-gray, .black, .white) { background-color: var(--background-color-btn-light-gray); color: var(--text-color-input); box-shadow: none; } /* fallback for unstyled old-fashioned <input type="button"> */
1326+
input[type="button"]:not(.blue, .green, .yellow, .orange, .red, .purple, .pink, .brown, .gray, .dark-gray, .black, .white):hover { box-shadow: none; background-color: var(--background-color-btn-light-gray-hover); }
13271327

13281328
/* Userpic
13291329
---------- */
@@ -1914,7 +1914,7 @@ ul.breadcrumbs > li * > a { color: inherit; }
19141914

19151915
.fields .field:not(:first-child) { margin-top: 1rem; }
19161916
.fields .field > .name { line-height: 1.25rem; font-size: 0.875em; color: var(--text-color-hint-strong); }
1917-
.fields:not(.vertical) .field > .name { width: 9rem; padding-right: 1rem; padding-top: 0.1875rem; }
1917+
.fields:not(.vertical) .field > .name { width: 9rem; padding-right: 1rem; padding-top: 0.1875rem; word-break: break-word; }
19181918
.fields .field > .name.for-input { padding-top: 0.5625em; }
19191919
.fields .field > .name.for-button { padding-top: 0.5em; }
19201920
.fields .field > .name.for-switch { padding-top: 0.05em; }

wa-content/js/jquery-wa/dashboard-mobile.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -618,13 +618,9 @@ const Page = ( function($, backend_url) {
618618
$deferred.done( function(response) {
619619
if ( $.trim(response).length && !response.includes('activity-empty-today')) {
620620
// Render
621-
$wrapper.find(".empty-activity-text").remove();
622-
let $today = $wrapper.find(".today");
623-
if($today.length) {
624-
$today.after(response).remove();
625-
}else{
626-
$wrapper.prepend(response);
627-
}
621+
$widgetActivity.find(".empty-activity-text").remove();
622+
$widgetActivity.find(".activity-item.activity-empty-today").remove();
623+
$wrapper.prepend(response);
628624
}
629625

630626
that.storage.isTopLazyLoadLocked = false;
@@ -652,4 +648,4 @@ const Page = ( function($, backend_url) {
652648

653649

654650
}
655-
})(jQuery, backend_url);
651+
})(jQuery, backend_url);

wa-content/js/jquery-wa/dashboard.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,14 +1635,9 @@ const Page = ( function($, backend_url) {
16351635
$deferred.done( function(response) {
16361636
if ( $.trim(response).length && !response.includes('activity-empty-today')) {
16371637
// Render
1638-
$wrapper.find(".empty-activity-text").remove();
1639-
$wrapper.find(".activity-empty-today").remove();
1640-
let $today = $wrapper.find(".today");
1641-
if($today.length) {
1642-
$today.after(response).remove();
1643-
}else{
1644-
$wrapper.prepend(response);
1645-
}
1638+
$widgetActivity.find(".empty-activity-text").remove();
1639+
$widgetActivity.find(".activity-item.activity-empty-today").remove();
1640+
$wrapper.prepend(response);
16461641
}
16471642

16481643
that.storage.isTopLazyLoadLocked = false;

wa-content/js/qrcode/LICENSE

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
The MIT License (MIT)
2-
---------------------
3-
Copyright (c) 2012 davidshimjs
4-
https://github.com/davidshimjs/qrcodejs
1+
MIT License
52

6-
Permission is hereby granted, free of charge,
7-
to any person obtaining a copy of this software and associated documentation files (the "Software"),
8-
to deal in the Software without restriction,
9-
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
10-
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
11-
subject to the following conditions:
3+
Copyright (c) 2017 Ray
124

13-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
1411

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

wa-content/js/qrcode/qrcode.min.js

Lines changed: 21 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wa-system/api/waAPIException.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ public function __construct($error, $error_description = null, $status_code = nu
2121
if ($this->error_description) {
2222
$this->response['error_description'] = $this->error_description;
2323
}
24+
if (defined('WA_API_EXCEPTION_STACK_TRACE') && WA_API_EXCEPTION_STACK_TRACE) {
25+
$this->response['trace'] = $this->getTraceAsString();
26+
}
2427
}
2528

2629
public function __toString()

0 commit comments

Comments
 (0)