require 'abstract_interface' require 'crystal_jquery' dir = File.dirname(__FILE__) # Settings AbstractInterface.plugin_name = 'common_interface' AbstractInterface.generate_helper_methods \ :aspects => %w{discussion comment controls details paginator tag_selector}, :basic => %w{bottom_panel dialog divider inplace message more narrow navigation navigation_item popup text title top_panel tool}, :components => %w{basic_list basic_list_item table table_row tabs tabs_item toolbar}, :items => %w{folder list list_item note page user thumb line file selector} AbstractInterface.available_themes.push *%w{default simple_organization} AbstractInterface.layout_configurations_dir = "/#{Crystal::Template::DIRECTORY_NAME}/layouts/config" # Helpers require 'common_interface/view_helper' Crystal::ControllerContext.include CommonInterface::ViewHelper # Initializers crystal.after :environment do crystal.ensure_public_symlink "common_interface", "#{dir}/common_interface/public/common_interface" end # Assets and public folder require 'asset_packager' AssetPackager.add "#{dir}/common_interface/public/common_interface/asset_packages.yml", "#{dir}/common_interface/public" # Demo module CommonInterface module Demo autoload :ViewHelper, 'common_interface/demo/view_helper' autoload :Basic, 'common_interface/demo/basic' autoload :Site, 'common_interface/demo/site' end end