npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@kenhub-gmbh/activeadmin_addons

v1.0.6

Published

Set of addons to help with the activeadmin ui

Downloads

11

Readme

ActiveAdmin Addons

Gem Version

ActiveAdmin Addons will extend your ActiveAdmin and enable a set of addons you can optionally use to improve the ActiveAdmin UI and make it awesome.

What you get:

Rows/Columns

Inputs

Filters

Themes

Installation

Add this line to your application's Gemfile:

gem 'activeadmin_addons'

And then execute:

$ bundle

After that, run the generator:

$ rails g activeadmin_addons:install

Check here to see more information about this generator.

Default changes to behaviour

Installing this gem will enable the following changes by default:

  • The default date input will be :datepicker instead of :date_select
  • Filters and selects will offer integration with enumerize
  • All select boxes will use select2

Addons

Rows/Columns

Paperclip Attachment

Displays a paperclip link with attachment related icon into index and show views.

Read more!

Images

Display images in the index and show views. This implementation supports Shrine and Paperclip.

Read more!

AASM Integration

You can show aasm values as active admin tags.

Read more!

Enumerize and Rails Enum Integration

You can show Rails' built in enums or enumerize values as active admin tags.

Read more!

Boolean Values

Modifies how boolean values are displayed.

Read more!

Toggleable Boolean Columns

Have switches to toggle values directly at the index

Read more!

Number Formatting

You can show numbers with format supported by Rails NumberHelper

Read more!

List

You can show Array or Hash values as html lists.

Read more!

Markdown

You can render text as markdown.

Read more!

Inputs

Select2 Input

With select2 the select control looks nicer, it works great with large collections.

Read more!

Tag Input

Using tags input, you can add tags using select2.

Read more!

Selected List Input

This form control allows you to handle your many to many associations.

Read more!

Search Select Input

Using search_select input, you can easily add ajax search to activeadmin.

Read more!

Nested Select Input

Using nested_select input, you can build related select inputs.

Read more!

Color Picker Input

You can pick colors using JQuery Palette Color Picker

f.input :color, as: :color_picker

Read more!

Date Time Picker Input

You can pick dates with time using the xdan's jQuery Plugin Date and Time Picker

f.input :updated_at, as: :date_time_picker

Read more!

Filters

Numeric Range Filter

To filter based on a range of values you can use numeric_range_filter like this:

filter :number, as: :numeric_range_filter

Date Time Picker Filter

To filter based on a range of datetimes you can use date_time_picker_filter like this:

filter :created_at, as: :date_time_picker_filter

Search Select Filter

You can use the ajax select input to filter values on index view like this:

filter :category_id, as: :search_select_filter

Themes

NO Theme

Use default active_admin theme.

Material Theme

Not compatible when Active Admin has been installed in webpack mode

Show material design theme using active_material. If you want to use it, you should run the generator using the flag theme as follow:

rails g activeadmin_addons:install --theme material

Also, you can modify primary color, and all other theme colors, in the first lines of the file: app/assets/stylesheets/active_admin.scss

$am-theme-primary: YOUR-COLOR;
...
other colors
...
@import 'activeadmin_addons/material';

Take care of defining these variables before the import of @import 'activeadmin_addons/material';.

For material documentation you should go to gem documentation.

Publishing

On master/main branch...

  1. Change VERSION in lib/activeadmin_addons/version.rb.
  2. Change Unreleased title to current version in CHANGELOG.md.
  3. Run bundle install.
  4. Commit new release. For example: Releasing v1.0.0.
  5. Create tag. For example: git tag v1.0.0.
  6. Push tag. For example: git push origin v1.0.0.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. If you changed the javascript/scss files, run yarn build.
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

If you want to collaborate, please check the rules first.

Credits

Thank you contributors!

activeadmin_addons is maintained by platanus.

License

ActiveAdminAddons is © 2021 Platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.