A long-lived project that still receives updates
Engine to serve configurations and rails module useful for all the UIs.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Project Readme

thecore_ui_commons

A Rails engine providing shared UI artifacts for Thecore-based host applications.

What it provides

  • Layouts — Devise session page, Swagger UI, mailer (HTML + text)
  • Partials — Bootstrap flash alerts, Kaminari pagination, drag-drop file uploader, logos
  • ECharts helpers — Ruby classes for building Apache ECharts config server-side (Vector, MultipleVectors, Binary, BinarySeries, Speedometer, Map)
  • Swagger versioning/info/swagger/:version with automatic version discovery from mounted routes
  • Assets — shared CSS/JS manifests, Active Job monitor, Devise i18n injection

Installation

Add to your host app's Gemfile:

gem 'thecore_ui_commons', '~> 3.0'

The engine mounts automatically. No configuration required.

Swagger UI

The Swagger UI is available at /info/swagger (redirects to /info/swagger/v2).

If your app mounts model_driven_api, the engine discovers all available API versions at startup by scanning Rails.application.routes for paths matching api/vN/info/swagger. A version nav banner appears automatically above the Swagger UI — no configuration needed.