Sha256: 9fdcefddad2d328f0d8e1fd26689e86ba76268e5025988f8902ae8432978f822

Contents?: true

Size: 1.97 KB

Versions: 15

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](http://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

15 entries across 15 versions & 1 rubygems

Version Path
scrivito_content_browser-1.8.1 README.md
scrivito_content_browser-1.8.1.rc1 README.md
scrivito_content_browser-1.8.0 README.md
scrivito_content_browser-1.8.0.rc2 README.md
scrivito_content_browser-1.8.0.rc1 README.md
scrivito_content_browser-1.7.0 README.md
scrivito_content_browser-1.7.0.rc2 README.md
scrivito_content_browser-1.6.1 README.md
scrivito_content_browser-1.6.1.rc1 README.md
scrivito_content_browser-1.7.0.rc1 README.md
scrivito_content_browser-1.6.0 README.md
scrivito_content_browser-1.6.0.rc5 README.md
scrivito_content_browser-1.6.0.rc4 README.md
scrivito_content_browser-1.6.0.rc3 README.md
scrivito_content_browser-1.6.0.rc2 README.md