Skip to content

Sketchpad 1.2

Latest
Compare
Choose a tag to compare
@davestewart davestewart released this 09 May 13:33
· 59 commits to master since this release

image

Overview

Main points of interest:

  • Completely reworked live documentation
  • New customisation and admin options
  • New top-level Search and Favourites pages
  • New @field tag supports new HTML5 input types, <select> and <dataset> controls
  • New helpers and various coding / tooling improvements
  • Various front end, interactivity, and formatting tweaks / fixes

Links:

Upgrade notes

The new settings configuration and new custom views require backup and reinstallation:

  • Back up your existing settings file storage/sketchpad/settings.json
  • Back up your sketchpad installation folder(s)
  • Reinstall Sketchpad via http://<yoursite>/sketchpad/setup
  • Locate updated settings.json and update relevant nodes (paths, livereload, ui) from your backed-up file
  • Copy back controllers, update views and assets, but manually check to see what code the new view / assets add

Sketchpad Reload also had a bug fix; please update to the latest version.

Added

  • Added top-level Search and Favourites
  • Implemented support for @field tags
  • New text() and code() helper functions
  • Data injection for md() function
  • Static Sketchpad::$form and Sketchpad::$data properties
  • Automatic injection of $route variable into views
  • Implemented controller reordering
  • Implemented support for implicit pagination
  • Included app controllers folder in paths
  • Custom page title functionality
  • Added custom Help page
  • Added custom head view
  • Implemented live-reloading for custom pages
  • Added index pages for all help controllers
  • Added scroll to section functionality for Settings
  • Bootstrap formatting for Markdown tables
  • Added favicon.ico
  • Added changelog

Changed

  • Huge docs and examples update!
    • Created new Sketchpad docs sections
    • Updated a lot of help to be better-formatted and more consistent
    • Improved example controller and view content
  • Moved various settings to single "Site" section
  • Moved custom asset declaration to custom head view
  • Disabled Settings page now shows a message
  • Index pages can be re-run
  • Added formatting classes to pr() and vd()
  • Updated FontAwesome to latest version
  • Improved submission of form data
  • Improved formatting of tables and forms
  • Removed global appendOutput setting
  • New Param sub-components for different data types
  • Simplified copying of user views in setup

Fixed

  • Defended against showing parent paths in Browse filesystem
  • Defended against saving settings if not allowed in admin.json
  • Fixed edge-case with buggy internal routes
  • Fixed bug with method titles showing parameters
  • Fixed Markdown not showing code or blockquotes correctly
  • Fixed bug where coloured @ICON icons not showing
  • Fixed scroll to top animation
  • Fixed bug with intercepted link currentTarget
  • Fixed URL encoding bug with route parameters
  • Fixed bug in NumberParam where unset variables don't show 0
  • Fixed bug where Output only styles first markdown table
  • Fixed bug in internal href links not working for links with hashes
  • Fixed bug with validate-path directive causing settings to be reloaded on focus
  • Fixed routing bug in Help
  • Removed absolute path references from RouteReference classes
  • Updated demo link in readme