The Augmented.js Next - Presentation Decorator Module.
The Augmented.js Next - Presentation Decorator Module.
> [!WARNING] > This package is not meant to be used directly, it's a shared dependency of `sanity/presentation` and `@sanity/visual-editing`. Using it in production is at your own risk.
The fastest automatic method.bind(this) decorator
A regular expression to match all Emoji-only symbols as per the Unicode Standard.
NestJS Swagger decorator for API exceptions
@twilio/deprecation-decorator
Better babel transforms for decorators
ESLint plugin for enforcing decorator position
Polyfill for RFC 566: @cached
Automatically match a pair of characters and decorate the text in between
A simple decorator for deprecated methods and properties.
Decorator for binding method to an object
> [!WARNING] > Don't use this package directly, it's an internal package used by `@sanity/presentation-comlink` & `@sanity/visual-editing-csm`
This package has moved into 'sanity/presentation' and is now deprecated.
Storybook MockDate decorator
ESLint plugin for Angular applications, following https://angular.dev/style-guide
Lazily evaluates a getter on an object and caches the returned value
Compile class and object decorators to ES5
Common module and utility building blocks for badass NestJS applications
Useful TypeScript utilities.
A utility to wrap (decorates) a React component class adding functionality.
A module for making CLI applications with NestJS. Decorators for running commands and separating out config parsers included. This package works on top of commander.
The package contains types and utilities used across different iTwin.js Presentation packages.
A simple presenter/facade/decorator/whatever implementation.
Ruby Decorator based framework (aka decorator/presenter objects)
Decorate objects for presentation. Supports Rails out of the box.
Simple way to create decorators and presenters
Use Decorators (Presenters) in Middleman
ApplicationPresenter is an opinionated implementation of the Presenter pattern, a subpattern of the decorator. It's oriented around the view layer.
Find a related class for an object (ex., a decorator, a presenter, a controller, or whatever).
Kashmir helps you easily define decorators/representers/presenters for ruby objects. Optionally, Kashmir will also cache these views for faster lookups.
maskable attributes provides a simple way to mask the output of a method. maskable attributes works really well with the decorator / presenter pattern
A simple Ruby presenter library, for those who enjoy a strong separation of concerns. You include a module, call some class-level macro-style methods, and suddenly you're presenting for a wrapped object. No magic. If your knowledge of pattern names comes from the Rails ecosystem, you might have used the popular Draper 'decorator' library. Think of this like that one, except the term 'presenter' is a better fit.
Presenters and Model-View-Presenter (MVP) is the second most useful pattern after Service Objects to simplify your medium-to-large app. ActiveModelPresenter is a small gem that transforms ActiveRecord models into simple decorated objects that you can use to pass data for a JSON or a regular View rendering. It's based on Rails' **active_model_serializers** gem (AMS) so you get all it's features without creating any new type of files. It can be used as a layer for Rails between Controller and View to make data to flow in 1 direction.
FatTable is a gem that treats tables as a data type. It provides methods for constructing tables from a variety of sources, building them row-by-row, extracting rows, columns, and cells, and performing aggregate operations on columns. It also provides as set of SQL-esque methods for manipulating table objects: select for filtering by columns or for creating new columns, where for filtering by rows, order_by for sorting rows, distinct for eliminating duplicate rows, group_by for aggregating multiple rows into single rows and applying column aggregate methods to ungrouped columns, a collection of join methods for combining tables, and more. Furthermore, FatTable provides methods for formatting tables and producing output that targets various output media: text, ANSI terminals, ruby data structures, LaTeX tables, Emacs org-mode tables, and more. The formatting methods can specify cell formatting in a way that is uniform across all the output methods and can also decorate the output with any number of footers, including group footers. FatTable applies formatting directives to the extent they makes sense for the output medium and treats other formatting directives as no-ops. FatTable can be used to perform operations on data that are naturally best conceived of as tables, which in my experience is quite often. It can also serve as a foundation for providing reporting functions where flexibility about the output medium can be quite useful. Finally FatTable can be used within Emacs org-mode files in code blocks targeting the Ruby language. Org mode tables are presented to a ruby code block as an array of arrays, so FatTable can read them in with its .from_aoa constructor. A FatTable table can output as an array of arrays with its .to_aoa output function and will be rendered in an org-mode buffer as an org-table, ready for processing by other code blocks.