Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
awesome_admin_layout
Advanced tools
AwesomeAdminLayout provides a simple way to add admin panel layout to your application.
Add this line to your application's Gemfile:
gem 'awesome_admin_layout'
And then execute:
$ bundle
Or install it yourself as:
$ gem install awesome_admin_layout
Install font-awesome-rails and jquery-rails.
Import a style in app/assets/stylesheets/application.scss
:
@import "awesome_admin_layout";
app/assets/javascripts/application.coffee
:#= require awesome_admin_layout
app/navigations
.
And writing the definitions as follows:#
# NOTE: if you only use this layout in admin controller,
# you can write like this:
#
# `AwesomeAdminLayout.define(only: Admin::ApplicationController)`
#
AwesomeAdminLayout.define do |controller|
navigation do
brand 'AwesomeAdminLayout' do
external_link controller.root_path
end
item 'Dashboard' do
link controller.dashboard_path
icon 'dashboard'
end
item 'Orders' do
link controller.orders_path
icon 'shopping-cart'
active true
end
item 'Products' do
nest :products
icon 'cube'
badge true
end
item 'Users' do
link controller.users_path
icon 'user'
end
item 'Promotions' do
link controller.promotions_path
icon 'bullhorn'
end
item 'Analytics' do
link controller.analytics_path
icon 'bar-chart'
badge true
end
divider
item 'Store' do
nest :store
icon 'home'
end
divider
item 'Extentions' do
link controller.extentions_path
icon 'puzzle-piece'
badge 10
end
item 'Settings' do
link controller.settings_path
icon 'cog'
end
flex_divider
item current_user.email do
nest :profile
icon 'gift'
end
end
navigation :products do
brand 'Products'
item 'Products' do
link controller.products_path
end
item 'Stocks' do
link controller.stocks_path
end
item 'Categories' do
link controller.categories_path
end
end
navigation :store do
brand 'Store' do
external_link '/#external'
end
item 'Pages' do
link controller.pages_path
end
item 'Links' do
link controller.links_path
end
item 'Themes' do
link controller.themes_path
end
end
navigation :profile do
brand current_user.email
item 'Edit Profile' do
link controller.edit_user_path(current_user)
end
item 'Logout' do
link controller.destroy_user_session_path, method: :delete
end
end
end
<%= render_admin_layout do %>
<%# Put your main contents ... %>
<% end %>
pending...
To set up a dummy application for development, simply do:
$ cd test/dummy
$ bundle exec ruby sinatra_app.rb
And go to your browser and open http://localhost:4567
.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that awesome_admin_layout demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.