{"_id":"@capsens/light_admin_assets","name":"@capsens/light_admin_assets","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.6":{"name":"@capsens/light_admin_assets","version":"1.0.6","description":"Simple, minimal theme for activeadmin.","main":" ","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/CapSens/light_admin.git"},"keywords":["active_admin"],"author":{"name":"capsens"},"license":"MIT","bugs":{"url":"https://github.com/CapSens/light_admin/issues"},"homepage":"https://github.com/CapSens/light_admin#readme","directories":{"doc":"doc"},"devDependencies":{},"gitHead":"1a4a44ac7f1abd7df7f76098c8598bbe1fbd4ac3","_id":"@capsens/light_admin_assets@1.0.6","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-w6xwWSGUfLAyQMV9UeNW9W8XsXbVD8MF9RJLEhkxgZqP2V1bOFjX5HOhNqqnGqIQ63aBn4JnJSIBMJZc/Zq0SQ==","shasum":"db7b5a09e76e40a67350fc351c86a8c1132dc042","tarball":"https://registry.npmjs.org/@capsens/light_admin_assets/-/light_admin_assets-1.0.6.tgz","fileCount":40,"unpackedSize":3026091,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGCETyeKm46TszVG3eJF3MN8Yq3v1jgY8O7ft49Cv7ybAiEA2mrgSJc66Kv9DZ5SclsMiChX+oljMEZEq/vBREmahOQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2tvNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4IA/7BVQFA6E/d5sJWWknPDsdatNqIeoxu/96e1F9HiEgJ/xLKPaj\r\n4u+y2NN/J8wyBxgydh9SIW1r8WAvRhpr+NQ4s8X+chqD0fWB5ObkB8EgHGoe\r\nP7d3JodgYLK5Y6oQLlnMf833LLV5Xb5G6exK1lKPkzuTFe9w9H8uZUo2tOhs\r\nvSBCgLKxp5T/ydbEapp/8Fd5e+ZHYMhwH10AHZPs1vfB/64oVRLxvIBPknWZ\r\nDeDJj9ppgx0z4qNU9SQACWXBaOc0wTvKoNuGX/Qh8ehJdohjnkynG6BGfudi\r\nF8PnJy0qm2zswR4kqW/469BJ2FxiET9HB5/NTj4yInuXgSMkvy3trBeN1WRi\r\nKfjhlulotDuPeT82e6k7VZfYyG/p76Yfi8+5NoUeE5KlhrMI9YxopdTEDeEs\r\nhvOt7DPjgk5y4wEVTXJcQGSYAuZEx+YcAUQB5rFEFtdf5P9opUwfRU3ZgL0u\r\nlqHRoEuKUx2qHRWvJTAtRKvGiDUQIYnFYMHapEvutxuOwpx6rSmlayo8we18\r\nK7qb250tbQy93818ZsSBuAHrEC7rKx6CCE/eO7Zo5zWv43wkMQfKEFGnSjCL\r\nRYkUvMB8Ub3tSEEfnmmUQr8rw8KgennMvNddeiNXhdBn49u5xdnxg7FHREC4\r\nz66jkaLMkbTGssSwNoIjsrqaJKL4qrBNX6s=\r\n=20jd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"capsens","email":"contact@capsens.eu"},"maintainers":[{"name":"capsens","email":"contact@capsens.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/light_admin_assets_1.0.6_1658510284972_0.3880079833016479"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-22T17:18:04.919Z","1.0.6":"2022-07-22T17:18:05.339Z","modified":"2022-07-22T17:18:05.475Z"},"maintainers":[{"name":"capsens","email":"contact@capsens.eu"}],"description":"Simple, minimal theme for activeadmin.","homepage":"https://github.com/CapSens/light_admin#readme","keywords":["active_admin"],"repository":{"type":"git","url":"git+https://github.com/CapSens/light_admin.git"},"author":{"name":"capsens"},"bugs":{"url":"https://github.com/CapSens/light_admin/issues"},"license":"MIT","readme":"# light_admin - A minimal theme for ActiveAdmin\n\n![Screenshot](doc/index.png)\n![Screenshot](doc/show.png)\n\nDesign by Marie Ishihara  \nGem by CapSens\n\n## Installation\n\n- Add this line to your application's Gemfile:\n```ruby\ngem 'light_admin'\n```\n\n- And then run:\n```\n$ bundle install\n```\n\n- Make sure you have no other ActiveAdmin theme installed before installing this gem!\n*(non-exhaustive list of themes you may have : https://github.com/paladini/activeadmin-themes, if you have some, don't forget to remove associated @import too)*\n\n## Pre-requisites\n- This gem requires the activeadmin gem.  \n\n## Set-up\n- In `app/assets/javascripts/active_admin.js`, add the line: \n```\n//= require light_admin/filters_toggle\n```\n- In `app/assets/stylesheets/active_admin.scss`, add the line:\n```\n@import 'light_admin/base';\n```\n- Your `active_admin.scss` file should look like this: <br>\n```\n@import 'active_admin/mixins';\n@import 'active_admin/base';\n@import 'light_admin/base';\n``` \nYou are good to go !\n\n## Displaying a logo in the header \n- Import the image of your logo in `app/assets/images`\n- In `config/initializers/active_admin.rb` uncomment the following line: <br>\n```\n# config.site_title_image = \"logo.png\"\n```\n- In place of `logo.png`, specify the name of your image and its extension: <br>\n```\nconfig.site_title_image = \"name_of_your_image.png\"\n```\n> Restart your Rails server so the changes take effect. \n\n\n## Displaying a logo on the login page\n- Place your image in `app/assets/images/devise/sessions`.\n- Run: \n```\n$ rails generate light_admin:new_session\n```\n- Edit the commented lines in `app/views/active_admin/devise/sessions/new.html.erb`\n\n## Customizing variables \n- By default, variables are stored within the gem. If you want to edit them: \n```\n$ rails generate light_admin:variables\n```\n- Then you can edit the variables in the following files: <br>\n`app/assets/stylesheets/light_admin/custom_variables/_colors.scss`  \n`app/assets/stylesheets/light_admin/custom_variables/_font.scss`  \n`app/assets/stylesheets/light_admin/custom_variables/_borders.scss`  \n`app/assets/stylesheets/light_admin/custom_variables/_shadows.scss`  \n\n- Then, import your changed variables in `app/assets/stylesheets/active_admin.scss` above the light admin base scss file, it should look like this if you have changed only colors:\n```\n@import 'active_admin/mixins';\n@import 'active_admin/base';\n@import 'light_admin/custom_variables/colors';\n@import 'light_admin/base';\n``` \n\n## Panel with link\n![Screenshot](doc/panel-with-link.png)\n`panel_with_link` behaves the same of ActiveAdmin's `panel`,  except that it can also display links. \n- If you want to use `panel_with_link`, you only need to call the `panel_with_link` method where you need it (for example, in your show page) and define its attributes like usual with ActiveAdmin.\n\n- Here is the code for the above screenshot:\n```\npanel_with_link t('users'), 'Voir tous', admin_users_path do\n  table_for user do\n    column :id\n    column :email do\n      link_to user.email, admin_user_path\n    end \n    column :created_at\n    column :updated_at\n    column :first_name\n    column :last_name\n  end\nend\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/CapSens/light_admin\n\n1. **Fork** the repo on GitHub\n2. **Clone** the project to your own machine\n3. **Commit** changes to your own branch\n4. **Push** your work back up to your fork\n5. Submit a **Pull request** so that we can review your changes\n\nNOTE: Be sure to merge the latest from \"upstream\" before making a pull request!\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the LightAdmin project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Capsens/light_admin/blob/master/CODE_OF_CONDUCT.md).\n","readmeFilename":"README.md"}