Sha256: 72405483fac88bd2860b0ec3c1e0958cda049a6a8c6cb41ec65b83bcab922f7c
Contents?: true
Size: 1.97 KB
Versions: 5
Compression:
Stored size: 1.97 KB
Contents
# Scrivito Content Browser [![Gem Version](https://badge.fury.io/rb/scrivito_content_browser.svg)](https://badge.fury.io/rb/scrivito_content_browser) The [Scrivito](https://scrivito.com) content browser is a JavaScript based tool to add, update and delete Scrivito CMS resources and documents. It provides flexible configuration options and can easily be integrated into your application. ## Installation and Usage If you already use the gem [scrivito_editors](https://rubygems.org/gems/scrivito_editors) then you don't have to change anything, because it is a dependency that will be installed automatically. If you want to use this gem separately, please add it to your `Gemfile`. gem 'scrivito_content_browser' Then require it in your stylesheet manifest. *= require scrivito_content_browser And require it in your JavaScript manifest. //= require scrivito_content_browser ## Development The `scrivito_content_browser` is using `nodejs` to compile the javascript files. Before developing make sure you have both `nodejs` and `yarn` installed, then: cd scrivito_content_browser/js yarn # load the dependencies yarn run package If you want to develop the `scrivito_content_browser`-gem locally (including it by path) you need to configure an `asset_host` in your rails application. Example `config/env/development.rb`: config.action_controller.asset_host = Proc.new do |source| if source =~ /scrivito_content_browser_pkg/ "http://localhost:8080/" end end and be sure that you have this options config.assets.digest = false config.assets.debug = true After that start webpack dev server: yarn start ## Run tests Before run test you should compile latest sdk by rake task in root of rails_connector gem rake test:content_browser:build_js_sdk yarn test # or for watching files yarn run test:watch ## Changelog {include:file:CHANGELOG.md} ## License Javascript UI components for Scrivito, (c) 2016 by Infopark AG
Version data entries
5 entries across 5 versions & 1 rubygems