Skip to content

Releases: mecha-cms/x.panel

v2.5.0

05 Feb 15:50
Compare
Choose a tag to compare
  • #18 Added $_['asset'] property to easily load/unload assets in the control panel.
  • Added do.task.* hooks.
  • Added simple Node.js build tool (thanks to @igoynawamreh). Maybe not for everybody.
  • Added user action limiter API.
  • Changed default layout from Construction to Dark. Construction layout will be available as separate extension in the future.
  • #20 Moved $_['form'] data to the $_['form']['lot'] context.
  • #21 Moved all GUI function from under namespace _\lot\x\panel to _\lot\x\panel\type.
  • Narrowed down the panel editor maximum width.
  • Property tags now accept associative array.
  • Removed peek option globally.
  • Removed user notification feature. This is something that can be created by pushing new alert message to the session easily without the need to store junk files. The right navigation icon is now just a log-out button.
  • #19 Renamed $_['layout'] with $_['type']. The $_['layout'] property is still there, but it is now will be used as a way to swap current layout with another layout file.
  • Renamed hidden key with skip for a shorter name, and to prevent me from being too perfect, by adding another key named visible, as an alternative for hidden.

v2.4.3

01 Oct 14:52
Compare
Choose a tag to compare
  • Hide search form in the default license page.
  • Improved info tab of extension and layout, to automatically convert example URL in the page content into usable URL.
  • State hook should not replace-recursive but override the current state data, to make sure that all boolean value in it will be removed if some toggle fields are not checked.

v2.4.2

14 Sep 14:18
Compare
Choose a tag to compare
  • Fixed typos in SCSS file.
  • Renamed panel form name from search to get, edit to set.

v2.4.1

13 Sep 15:24
Compare
Choose a tag to compare
  • Added invoke property for every item in pages to be invoked within _\lot\x\panel\page() that would returns other properties to be merged to the current properties.
  • Added ability to set custom panel route through static functions under _\lot\x\panel\route namespace.
  • Added ability to set custom panel title.
  • Added end-user license agreement page for the panel extension.
  • Finished the restore feature.
  • Fixed bugs of user creation event which didn’t store the pass data correctly.
  • Improved panel.php file feature to allow developers to extend data to the $_ variable directly without using $GLOBALS.
  • Improved comments page execution time by storing newly created comments into static array.
  • Updated F3H version to 1.0.15.

v2.4.0

21 Jun 10:36
Compare
Choose a tag to compare
  • Added ability to set custom panel definition through .\lot\layout\index\panel.php file.
  • Changed #blob:{code} language string into a more readable language string as the default language string for every blob response code.
  • Fixed bug where creating a new page does not populate the time data automatically.
  • Moved type and x state data to a separated file, stored in .\lot\x\panel\state folder.
  • Removed $lot hook parameter and store the form data to $_['form'] property, for easy form data manipulation during CRUD process.
  • Updated Tag Picker to version 3.0.12.

v2.3.2

16 Jun 14:07
Compare
Choose a tag to compare
  • #16 Bug fixes and improvements for page properties with multi-dimensional array.

v2.3.1

15 Jun 13:33
Compare
Choose a tag to compare
  • Improved function naming convention. PHP functions should conform to the snake-case naming convention (e.g. a_b__c\d).
  • Updated F3H script to version 1.0.11.

v2.3.0

08 Jun 10:35
Compare
Choose a tag to compare
  • Added ability to set custom panel route and GUI through static functions under _\lot\x\panel\route namespace.
  • Changed field API to use lower-case for data types and to separate sub-types with / instead of .. So that every data type will look like a friendly MIME type format, just like the type attribute value alternative for every page file. Example: from Text.DateTime to text/date-time, from Form.Post to form/post.
  • Moved from Pjax to F3H.

v2.2.1

20 Mar 09:19
Compare
Choose a tag to compare
  • Removed leading / in $_['path'] and trailing / in $_['/'] for consistency with $_['i'] and global $url properties.

v2.2.0

22 Feb 17:41
Compare
Choose a tag to compare
  • Added AJAX system that allows other JavaScript extensions to listen to the AJAX loading and loaded events.
  • Added generic JavaScript hook system for external extensions that can be used to enhance the core control panel features.
  • Fixed bug where users could not save the file content properly due to the automatic string evaluation by the e function.
function onChange() {
    hljs.initHighlighting();
}

// Initialize `highlight.js` plugin on native page loading event
onChange();

// Re-initialize `highlight.js` plugin on page content changes caused by the AJAX load complete event
window._.on('change', onChange);

// Test
console.log(window._.hooks);