admin_lte-rails icon indicating copy to clipboard operation
admin_lte-rails copied to clipboard

Usage outside of rails app

Open mehrdad-shokri opened this issue 7 years ago • 6 comments

Hi, Can you provide a guide on how to use this lib outside of an app? Also how much updated is this app?
I mean which version of admin lte is this library based on?

mehrdad-shokri avatar Dec 05 '17 07:12 mehrdad-shokri

If you want to use the assets directly outside of a Rails application, all you have to do is to run the following commands:

bundle update
rake convert

It would get the recent version of admin lte gem and convert it to RTL. Also please bear in mind that in order to use the convert rake task you need nodejs and cssjanus ( node library )

lxsameer avatar Dec 05 '17 10:12 lxsameer

For commands bund and rake should I run gem install bundler and gem install rake subsequently?

mehrdad-shokri avatar Dec 05 '17 12:12 mehrdad-shokri

Also, can you please elaborate where are the built files?

mehrdad-shokri avatar Dec 05 '17 12:12 mehrdad-shokri

You would only need the bundler. bundle install would install all the ruby dependencies. As for the second question, I need to know what are you trying to do, so I can help you ?

lxsameer avatar Dec 05 '17 12:12 lxsameer

In fact I have an app that is already using adminlte.
What I want to do is make it rtl. So I thought adding 2 or 3 css file would make it rtl.
Is this possible?
or what's the proper way of converting a working app of adminlte to rtl?

mehrdad-shokri avatar Dec 05 '17 12:12 mehrdad-shokri

Ok, you can do it by adding the css files, but you might change your html layout a little bit too. What kind of assets pipeline are you using ?

lxsameer avatar Dec 05 '17 15:12 lxsameer