Skip to content

Releases: BKWLD/decoy

More initial install fixes

22 Mar 22:20
Compare
Choose a tag to compare
  • Adding support for no short_open_tags ( #13 )
  • Commenting out another image instance in elements.yaml ( #16 )

Initial install fixes

21 Mar 16:08
Compare
Choose a tag to compare
  • Disabling default image Elements examples, see #12

Open sourcing fixes

18 Jan 15:39
Compare
Choose a tag to compare
  • Many docs changes
  • Fixing searching for empty fields
  • Removing requirement on Input facade
  • Changing version constraint on Bukwild php library

Open sourced!

03 Jan 17:06
Compare
Choose a tag to compare

We've open sourced Decoy after 2,700 commits and 4 years of development, Bukwild is releasing it's Laravel model based CMS, Decoy!

This specific release contains fixes related to this like:

  • Removing dependencies on internal, private repos and un-published forks of other projects
  • Shipping with compiled js and css so no integration with project asset build tools is required
  • Fixing some higher priority bugs

Pre-open source

03 Jan 17:16
Compare
Choose a tag to compare
  • Fixes for image field
  • Don't SEO index
  • Fixes for video encodes
  • Create admins from CLI
  • PHP 7 improvements
  • Fixing pagination
  • Starting on documentation site

Laravel 5 support

03 Jan 17:17
Compare
Choose a tag to compare

New features

  • Works with Laravel 5 (but not 4)
  • JS and SASS are compiled with Webpack (for Camo 3 compatibility)
  • New images system featuring a built in polymorphic Image model, new uploader UI, and new API for accessing images
  • Models now return Bkwld\Decoy\Collections\Base collections which have methods that help with serialization.
  • Child models can now be edited from the parent form. This feature backs the new image system.
  • Logins attempts are throttled, for increased security
  • Docs from readme moved to the Wiki

New APIs

  • Models\Base->enforceVisibility() - Throws an AccessDeniedHttpException if the model isn't public and the user isn't an admin.
  • New images API: docs
  • New Bkwld\Decoy\Collections\Base API: docs

Breaking changes

Visibility

  • The visibility toggle has changes from a $t->boolean('visible')->nullable() migration to be a "public" boolean, non-nullable column: $t->boolean('public').
  • Scopes that had "visible" in the name have be renamed to use "public". For instance: Article::ordered->visible() becomes Article::ordered()->public()
  • The visibility UI tells admins that "private" records will be hidden from the public completely. The public() scope and the findBySlugOrFail() method will handle this automatically. Otherwise, you should call enforceVisibility() on models to trigger an exception if the user shouldn't have permission to view them.

Misc

  • Fragments have been removed fully
  • Removed some unnecessary methods on Former::listing and Former::image
  • Replaced Element->format() with Element->value()
  • Croppa helper methods on the base model removed in favor of new images feature

Admins can duplicate models

03 Jan 17:18
Compare
Choose a tag to compare

There is a new button in the actions bar on an edit page:

This uses the new Cloner package to duplicate the model you're viewing, including all child models, reforming many to many relations, and all files. After duplication, the success notification is a little different and "copy" gets automatically added to the title:

There is minimal work required of the developer to support this added functionality, read the docs for more info.

Elements

  • Fix for boolean Elements
  • Fix for Element ids after saving, useful when using model callbacks
  • Updating Element collection values after save, useful when using model callbacks

Misc

  • The post_login_redirect config can be false to go to first item in nav. Or it can be a callable.
  • Improving the removing and removed event arguments so they are the same as the attached and attaching events.
  • Fix for Encoding progress check ajax calls
  • Radios can be used in many to many checklists
  • Prevent Redactor from using Decoy styles for headers, bold

Customizable permisssions

03 Jan 17:19
Compare
Choose a tag to compare

This feature was dev-ed for CID. Admins with the grant permission can now customize the permissions defined in existing roles from the admin edit screen.

You can change the permission options shown in that UI by overriding the getPermissionOptions() method from the base controller. This is how the Admins controller, for instance, presents the "Grant" option in place of "Publish." Elements are handled a little different where the user is presented with a list of all Element pages and they can control which pages other admins have access to. A user with access to an Element page can read and write to it.