iugu-ux 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +14 -0
- data/lib/iugu-ux.rb +41 -0
- data/lib/iugu-ux/railtie.rb +13 -0
- data/lib/iugu-ux/version.rb +3 -0
- data/sandbox/Rakefile +7 -0
- data/sandbox/app/assets/images/assets-hd-s827ab39c93.png +0 -0
- data/sandbox/app/assets/images/assets-sf5326dcc8f.png +0 -0
- data/sandbox/app/assets/images/iux-default-hd-sc9d2356e0b.png +0 -0
- data/sandbox/app/assets/images/iux-default-s80f46e65ce.png +0 -0
- data/sandbox/app/assets/images/rails.png +0 -0
- data/sandbox/app/assets/javascripts/application.js +0 -0
- data/sandbox/app/assets/javascripts/web-app/config.js.erb +9 -0
- data/sandbox/app/assets/javascripts/web-app/i18n-languages.js.erb +12 -0
- data/sandbox/app/assets/javascripts/web-app/locale/en.json +11 -0
- data/sandbox/app/assets/javascripts/web-app/locale/pt-BR.json +11 -0
- data/sandbox/app/assets/javascripts/web-app/models.js +1 -0
- data/sandbox/app/assets/javascripts/web-app/presenters.js +1 -0
- data/sandbox/app/assets/javascripts/web-app/presenters/main-view.jst.eco +50 -0
- data/sandbox/app/assets/javascripts/web-app/usecode.js +1 -0
- data/sandbox/app/assets/javascripts/web-app/usecode/root-view.coffee +13 -0
- data/sandbox/app/assets/javascripts/web-app/usecode/router.coffee +19 -0
- data/sandbox/app/assets/sprites/a/assets-hd/arrow-down.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/arrow-up.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/btn-dashboard.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/btn-yell.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/clock.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/dashboard-places.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/dashboard-products.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/dashboard-spaces.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/dashboard-user.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/header-letsyell-logo.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/icon-facebook.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/icon-google.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/icon-linkedin.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/icon-twitter.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/icon-windows.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/icon-yahoo.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/place-coffee.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/right-arrow.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/stars-five.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/stars-four-half.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/stars-four.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/stars-half.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/stars-one-half.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/stars-one.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/stars-three-half.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/stars-three.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/stars-two-half.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/stars-two.png +0 -0
- data/sandbox/app/assets/sprites/a/assets-hd/stars-zero.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/arrow-down.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/arrow-up.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/btn-dashboard.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/btn-yell.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/clock.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/dashboard-places.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/dashboard-products.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/dashboard-spaces.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/dashboard-user.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/header-letsyell-logo.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/icon-facebook.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/icon-google.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/icon-linkedin.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/icon-twitter.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/icon-windows.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/icon-yahoo.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/place-coffee.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/right-arrow.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/stars-five.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/stars-four-half.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/stars-four.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/stars-half.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/stars-one-half.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/stars-one.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/stars-three-half.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/stars-three.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/stars-two-half.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/stars-two.png +0 -0
- data/sandbox/app/assets/sprites/a/assets/stars-zero.png +0 -0
- data/sandbox/app/assets/sprites/assets-hd/arrow-down.png +0 -0
- data/sandbox/app/assets/sprites/assets-hd/arrow-up.png +0 -0
- data/sandbox/app/assets/sprites/assets/arrow-down.png +0 -0
- data/sandbox/app/assets/sprites/assets/arrow-up.png +0 -0
- data/sandbox/app/assets/stylesheets/application.css +3 -0
- data/sandbox/app/assets/stylesheets/default-sprites.sass +8 -0
- data/sandbox/app/assets/stylesheets/experiment.sass +178 -0
- data/sandbox/app/assets/stylesheets/sandbox-sprites.css +6 -0
- data/sandbox/app/controllers/application_controller.rb +3 -0
- data/sandbox/app/controllers/ui_library_controller.rb +15 -0
- data/sandbox/app/views/layouts/ui.html.haml +18 -0
- data/sandbox/app/views/ui_library/boiler.html.haml +32 -0
- data/sandbox/app/views/ui_library/components.html.haml +189 -0
- data/sandbox/app/views/ui_library/index.html.haml +300 -0
- data/sandbox/config.ru +4 -0
- data/sandbox/config/application.rb +55 -0
- data/sandbox/config/boot.rb +10 -0
- data/sandbox/config/environment.rb +5 -0
- data/sandbox/config/environments/development.rb +35 -0
- data/sandbox/config/environments/production.rb +67 -0
- data/sandbox/config/environments/test.rb +39 -0
- data/sandbox/config/initializers/backtrace_silencers.rb +7 -0
- data/sandbox/config/initializers/inflections.rb +10 -0
- data/sandbox/config/initializers/mime_types.rb +5 -0
- data/sandbox/config/initializers/secret_token.rb +7 -0
- data/sandbox/config/initializers/session_store.rb +8 -0
- data/sandbox/config/initializers/wrap_parameters.rb +10 -0
- data/sandbox/config/locales/en.yml +5 -0
- data/sandbox/config/routes.rb +5 -0
- data/sandbox/doc/README_FOR_APP +2 -0
- data/sandbox/lib/sass/sprite_relative.rb +7 -0
- data/sandbox/public/404.html +26 -0
- data/sandbox/public/422.html +26 -0
- data/sandbox/public/500.html +26 -0
- data/sandbox/public/favicon.ico +0 -0
- data/sandbox/public/robots.txt +5 -0
- data/sandbox/script/rails +6 -0
- data/vendor/assets/javascripts/iugu-ux.js +7 -0
- data/vendor/assets/javascripts/iugu-ux/capabilities.js +209 -0
- data/vendor/assets/javascripts/iugu-ux/enable-prettify.js +3 -0
- data/vendor/assets/javascripts/iugu-ux/google-code-prettify/prettify.js +28 -0
- data/vendor/assets/javascripts/iugu-ux/iugu-ux.js +11 -0
- data/vendor/assets/javascripts/iugu-ux/twitter-bootstrap/bootstrap.js +7 -0
- data/vendor/assets/javascripts/iugu-ux/twitter-bootstrap/notice.js +90 -0
- data/vendor/assets/javascripts/iugu-ux/web-app.js +24 -0
- data/vendor/assets/javascripts/vendor.js +15 -0
- data/vendor/assets/javascripts/vendor/backbone.js +1479 -0
- data/vendor/assets/javascripts/vendor/gmaps.js +1058 -0
- data/vendor/assets/javascripts/vendor/iscroll.js +1080 -0
- data/vendor/assets/javascripts/vendor/jquery.base64.js +190 -0
- data/vendor/assets/javascripts/vendor/jquery.checkboxes.js +284 -0
- data/vendor/assets/javascripts/vendor/jquery.cookie.js +47 -0
- data/vendor/assets/javascripts/vendor/jquery.js +9267 -0
- data/vendor/assets/javascripts/vendor/jquery.ui.js +11363 -0
- data/vendor/assets/javascripts/vendor/jquery.ui.touch-punch.js +160 -0
- data/vendor/assets/javascripts/vendor/jquery.web-storage.js +489 -0
- data/vendor/assets/javascripts/vendor/underscore.js +1204 -0
- data/vendor/assets/javascripts/web-app/comm.coffee +1 -0
- data/vendor/assets/javascripts/web-app/config.js.erb +3 -0
- data/vendor/assets/javascripts/web-app/controllers.js +0 -0
- data/vendor/assets/javascripts/web-app/environment.js.coffee +8 -0
- data/vendor/assets/javascripts/web-app/helpers.coffee +86 -0
- data/vendor/assets/javascripts/web-app/i18n-languages.js +0 -0
- data/vendor/assets/javascripts/web-app/i18n.coffee +37 -0
- data/vendor/assets/javascripts/web-app/models.js +0 -0
- data/vendor/assets/javascripts/web-app/sound.coffee +67 -0
- data/vendor/assets/javascripts/web-app/views.js +0 -0
- data/vendor/assets/sprites/iux-default-hd/menu-icon.png +0 -0
- data/vendor/assets/sprites/iux-default/menu-icon.png +0 -0
- data/vendor/assets/stylesheets/iugu-ux.css +8 -0
- data/vendor/assets/stylesheets/iugu-ux/adaptative-mixins.sass +50 -0
- data/vendor/assets/stylesheets/iugu-ux/components.sass +185 -0
- data/vendor/assets/stylesheets/iugu-ux/core.sass +10 -0
- data/vendor/assets/stylesheets/iugu-ux/google-code-prettify/prettify.css +48 -0
- data/vendor/assets/stylesheets/iugu-ux/iugu-ux.sass +16 -0
- data/vendor/assets/stylesheets/iugu-ux/iux-sprites.sass +8 -0
- data/vendor/assets/stylesheets/iugu-ux/mixins.sass +32 -0
- data/vendor/assets/stylesheets/iugu-ux/no-js.sass +15 -0
- data/vendor/assets/stylesheets/iugu-ux/reset.sass +229 -0
- data/vendor/assets/stylesheets/iugu-ux/sprite-mixins.sass +49 -0
- data/vendor/assets/stylesheets/iugu-ux/typography.sass +268 -0
- data/vendor/assets/stylesheets/iugu-ux/utilities.sass +51 -0
- data/vendor/assets/stylesheets/iugu-ux/variables.sass +46 -0
- metadata +485 -0
data/sandbox/config.ru
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
4
|
+
# require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
require "action_mailer/railtie"
|
7
|
+
require "active_resource/railtie"
|
8
|
+
require "sprockets/railtie"
|
9
|
+
# require "rails/test_unit/railtie"
|
10
|
+
#
|
11
|
+
|
12
|
+
Bundler.require
|
13
|
+
require "iugu-ux"
|
14
|
+
require "haml"
|
15
|
+
require "haml-rails"
|
16
|
+
require 'sass-rails'
|
17
|
+
require 'coffee-script'
|
18
|
+
|
19
|
+
module Dummy
|
20
|
+
class Application < Rails::Application
|
21
|
+
# Settings in config/environments/* take precedence over those specified here.
|
22
|
+
# Application configuration should go into files in config/initializers
|
23
|
+
# -- all .rb files in that directory are automatically loaded.
|
24
|
+
|
25
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
26
|
+
# config.autoload_paths += %W(#{config.root}/extras)
|
27
|
+
|
28
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
29
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
30
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
31
|
+
|
32
|
+
# Activate observers that should always be running.
|
33
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
34
|
+
|
35
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
36
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
37
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
38
|
+
|
39
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
40
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
41
|
+
# config.i18n.default_locale = :de
|
42
|
+
|
43
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
44
|
+
config.encoding = "utf-8"
|
45
|
+
|
46
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
47
|
+
config.filter_parameters += [:password]
|
48
|
+
|
49
|
+
# Enable the asset pipeline
|
50
|
+
config.assets.enabled = true
|
51
|
+
|
52
|
+
# Version of your assets, change this if you want to expire all your assets
|
53
|
+
config.assets.version = '1.0'
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Log error messages when you accidentally call methods on nil.
|
10
|
+
config.whiny_nils = true
|
11
|
+
|
12
|
+
# Show full error reports and disable caching
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Only use best-standards-support built into browsers
|
23
|
+
config.action_dispatch.best_standards_support = :builtin
|
24
|
+
|
25
|
+
# config.serve_static_assets = true
|
26
|
+
# config.assets.compile = true
|
27
|
+
# config.assets.compress = false
|
28
|
+
# config.assets.debug = false
|
29
|
+
# config.assets.precompile += %w( 'sandbox-sprites.css' )
|
30
|
+
|
31
|
+
# Do not compress assets
|
32
|
+
config.assets.compress = false
|
33
|
+
# Expands the lines which load the assets
|
34
|
+
config.assets.debug = true
|
35
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# Code is not reloaded between requests
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Full error reports are disabled and caching is turned on
|
8
|
+
config.consider_all_requests_local = false
|
9
|
+
config.action_controller.perform_caching = true
|
10
|
+
|
11
|
+
# Disable Rails's static asset server (Apache or nginx will already do this)
|
12
|
+
config.serve_static_assets = false
|
13
|
+
|
14
|
+
# Compress JavaScripts and CSS
|
15
|
+
config.assets.compress = true
|
16
|
+
|
17
|
+
# Don't fallback to assets pipeline if a precompiled asset is missed
|
18
|
+
config.assets.compile = false
|
19
|
+
|
20
|
+
# Generate digests for assets URLs
|
21
|
+
config.assets.digest = true
|
22
|
+
|
23
|
+
# Defaults to Rails.root.join("public/assets")
|
24
|
+
# config.assets.manifest = YOUR_PATH
|
25
|
+
|
26
|
+
# Specifies the header that your server uses for sending files
|
27
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
28
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
29
|
+
|
30
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
31
|
+
# config.force_ssl = true
|
32
|
+
|
33
|
+
# See everything in the log (default is :info)
|
34
|
+
# config.log_level = :debug
|
35
|
+
|
36
|
+
# Use a different logger for distributed setups
|
37
|
+
# config.logger = SyslogLogger.new
|
38
|
+
|
39
|
+
# Use a different cache store in production
|
40
|
+
# config.cache_store = :mem_cache_store
|
41
|
+
|
42
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
43
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
44
|
+
|
45
|
+
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
46
|
+
# config.assets.precompile += %w( search.js )
|
47
|
+
|
48
|
+
# Disable delivery errors, bad email addresses will be ignored
|
49
|
+
# config.action_mailer.raise_delivery_errors = false
|
50
|
+
|
51
|
+
# Enable threaded mode
|
52
|
+
# config.threadsafe!
|
53
|
+
|
54
|
+
# config.assets.precompile += %w( sandbox-sprites.css )
|
55
|
+
# config.assets.precompile += %w( 'sandbox-sprites.css' )
|
56
|
+
#
|
57
|
+
#
|
58
|
+
config.assets.precompile += %w( sandbox-sprites.css )
|
59
|
+
# config.assets.digest = true
|
60
|
+
|
61
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
62
|
+
# the I18n.default_locale when a translation can not be found)
|
63
|
+
config.i18n.fallbacks = true
|
64
|
+
|
65
|
+
# Send deprecation notices to registered listeners
|
66
|
+
config.active_support.deprecation = :notify
|
67
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
15
|
+
config.whiny_nils = true
|
16
|
+
|
17
|
+
# Show full error reports and disable caching
|
18
|
+
config.consider_all_requests_local = true
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
22
|
+
config.action_dispatch.show_exceptions = false
|
23
|
+
|
24
|
+
# Disable request forgery protection in test environment
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
|
+
|
27
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
28
|
+
# The :test delivery method accumulates sent emails in the
|
29
|
+
# ActionMailer::Base.deliveries array.
|
30
|
+
config.action_mailer.delivery_method = :test
|
31
|
+
|
32
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
33
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
34
|
+
# like if you have constraints or database-specific column types
|
35
|
+
# config.active_record.schema_format = :sql
|
36
|
+
|
37
|
+
# Print deprecation notices to the stderr
|
38
|
+
config.active_support.deprecation = :stderr
|
39
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Dummy::Application.config.secret_token = '7e7701fbe188095d023accb60977ef712ef125e19a2e1daca841152f1ad4289c3c52e9a82ed48f26beb0c6e698dd052ab6d4c11631ce4a7c270b4c8976e956fe'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,7 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
+
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
+
// the compiled file.
|
6
|
+
//
|
7
|
+
//= require ./iugu-ux/iugu-ux
|
@@ -0,0 +1,209 @@
|
|
1
|
+
var BrowserDetect = {
|
2
|
+
init: function () {
|
3
|
+
this.browser = this.searchString(this.dataBrowser) || "unknow";
|
4
|
+
this.version = this.searchVersion(navigator.userAgent)
|
5
|
+
|| this.searchVersion(navigator.appVersion)
|
6
|
+
|| "unknown_version";
|
7
|
+
this.OS = this.searchString(this.dataOS) || "unknow_os";
|
8
|
+
},
|
9
|
+
searchString: function (data) {
|
10
|
+
for (var i=0;i<data.length;i++) {
|
11
|
+
var dataString = data[i].string;
|
12
|
+
var dataProp = data[i].prop;
|
13
|
+
this.versionSearchString = data[i].versionSearch || data[i].identity;
|
14
|
+
if (dataString) {
|
15
|
+
if (dataString.indexOf(data[i].subString) != -1)
|
16
|
+
return data[i].identity;
|
17
|
+
}
|
18
|
+
else if (dataProp)
|
19
|
+
return data[i].identity;
|
20
|
+
}
|
21
|
+
},
|
22
|
+
searchVersion: function (dataString) {
|
23
|
+
var index = dataString.indexOf(this.versionSearchString);
|
24
|
+
if (index == -1) return;
|
25
|
+
return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
|
26
|
+
},
|
27
|
+
dataBrowser: [
|
28
|
+
{
|
29
|
+
string: navigator.userAgent,
|
30
|
+
subString: "Chrome",
|
31
|
+
identity: "Chrome"
|
32
|
+
},
|
33
|
+
{ string: navigator.userAgent,
|
34
|
+
subString: "OmniWeb",
|
35
|
+
versionSearch: "OmniWeb/",
|
36
|
+
identity: "OmniWeb"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
string: navigator.vendor,
|
40
|
+
subString: "Apple",
|
41
|
+
identity: "Safari",
|
42
|
+
versionSearch: "Version"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
prop: window.opera,
|
46
|
+
identity: "Opera",
|
47
|
+
versionSearch: "Version"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
string: navigator.vendor,
|
51
|
+
subString: "iCab",
|
52
|
+
identity: "iCab"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
string: navigator.vendor,
|
56
|
+
subString: "KDE",
|
57
|
+
identity: "Konqueror"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
string: navigator.userAgent,
|
61
|
+
subString: "Firefox",
|
62
|
+
identity: "Firefox"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
string: navigator.vendor,
|
66
|
+
subString: "Camino",
|
67
|
+
identity: "Camino"
|
68
|
+
},
|
69
|
+
{
|
70
|
+
string: navigator.userAgent,
|
71
|
+
subString: "Android",
|
72
|
+
identity: "Webkit"
|
73
|
+
},
|
74
|
+
{ // for newer Netscapes (6+)
|
75
|
+
string: navigator.userAgent,
|
76
|
+
subString: "Netscape",
|
77
|
+
identity: "Netscape"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
string: navigator.userAgent,
|
81
|
+
subString: "MSIE",
|
82
|
+
identity: "Explorer",
|
83
|
+
versionSearch: "MSIE"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
string: navigator.userAgent,
|
87
|
+
subString: "Gecko",
|
88
|
+
identity: "Mozilla",
|
89
|
+
versionSearch: "rv"
|
90
|
+
},
|
91
|
+
{ // for older Netscapes (4-)
|
92
|
+
string: navigator.userAgent,
|
93
|
+
subString: "Mozilla",
|
94
|
+
identity: "Netscape",
|
95
|
+
versionSearch: "Mozilla"
|
96
|
+
}
|
97
|
+
],
|
98
|
+
dataOS : [
|
99
|
+
{
|
100
|
+
string: navigator.platform,
|
101
|
+
subString: "Win",
|
102
|
+
identity: "Windows"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
string: navigator.platform,
|
106
|
+
subString: "Mac",
|
107
|
+
identity: "Mac"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
string: navigator.userAgent,
|
111
|
+
subString: "iPhone",
|
112
|
+
identity: "iPhone"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
string: navigator.userAgent,
|
116
|
+
subString: "Android",
|
117
|
+
identity: "Android"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
string: navigator.platform,
|
121
|
+
subString: "Linux",
|
122
|
+
identity: "Linux"
|
123
|
+
}
|
124
|
+
]
|
125
|
+
|
126
|
+
};
|
127
|
+
BrowserDetect.init();
|
128
|
+
|
129
|
+
$( function() {
|
130
|
+
|
131
|
+
window.IS_MOBILE = false;
|
132
|
+
window.IS_DESKTOP = false;
|
133
|
+
window.IS_IOS = false;
|
134
|
+
window.IS_ANDROID = false;
|
135
|
+
|
136
|
+
$("html").removeClass("no-js").addClass("js");
|
137
|
+
$("html").removeClass("not-ready").addClass("ready");
|
138
|
+
if (navigator.userAgent.match(/Android/i)) { $("html").addClass("android mobile"); window.IS_MOBILE=true; window.IS_ANDROID=true; }
|
139
|
+
else if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i)) { $("html").addClass("ios mobile"); window.IS_MOBILE=true; window.IS_IOS=true }
|
140
|
+
else { $("html").addClass("desktop"); window.IS_DESKTOP=true }
|
141
|
+
|
142
|
+
$("html").addClass( BrowserDetect.browser.toLowerCase() )
|
143
|
+
$("html").addClass( BrowserDetect.browser.toLowerCase() + '_' + BrowserDetect.version )
|
144
|
+
$("html").addClass( 'os_' + BrowserDetect.OS.toLowerCase() )
|
145
|
+
|
146
|
+
var ua = navigator.userAgent;
|
147
|
+
if( ua.indexOf("Android") >= 0 )
|
148
|
+
{
|
149
|
+
var androidversion = parseFloat(ua.slice(ua.indexOf("Android")+8));
|
150
|
+
if (androidversion < 3)
|
151
|
+
{
|
152
|
+
$("html").addClass( 'deprecated_android' );
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
window.TOUCH_SUPPORT = jQuery.support.touch;
|
157
|
+
|
158
|
+
window.matchMedia = window.matchMedia || (function(doc, undefined){
|
159
|
+
|
160
|
+
var bool,
|
161
|
+
docElem = doc.documentElement,
|
162
|
+
refNode = docElem.firstElementChild || docElem.firstChild,
|
163
|
+
// fakeBody required for <FF4 when executed in <head>
|
164
|
+
fakeBody = doc.createElement('body'),
|
165
|
+
div = doc.createElement('div');
|
166
|
+
|
167
|
+
div.id = 'mq-test-1';
|
168
|
+
div.style.cssText = "position:absolute;top:-100em";
|
169
|
+
fakeBody.style.background = "none";
|
170
|
+
fakeBody.appendChild(div);
|
171
|
+
|
172
|
+
return function(q){
|
173
|
+
|
174
|
+
div.innerHTML = '­<style media="'+q+'"> #mq-test-1 { width: 42px; }</style>';
|
175
|
+
|
176
|
+
docElem.insertBefore(fakeBody, refNode);
|
177
|
+
bool = div.offsetWidth == 42;
|
178
|
+
docElem.removeChild(fakeBody);
|
179
|
+
|
180
|
+
return { matches: bool, media: q };
|
181
|
+
};
|
182
|
+
|
183
|
+
})(document);
|
184
|
+
|
185
|
+
window.HAS_MEDIAQUERY = window.matchMedia && window.matchMedia( "only all" ).matches;
|
186
|
+
|
187
|
+
function configureMediaQuery() {
|
188
|
+
$("body").removeClass("mq-mp"); // Mobile Portrait
|
189
|
+
$("body").removeClass("mq-ml"); // Mobile Landscape
|
190
|
+
$("body").removeClass("mq-tb"); // For Tablets
|
191
|
+
$("body").removeClass("mq-ls"); // For Large Screens
|
192
|
+
$("body").removeClass("mq-sm"); // For Small Screens
|
193
|
+
var queryWidth = $(window).width();
|
194
|
+
if (queryWidth < 480) $("body").addClass("mq-mp");
|
195
|
+
else if (queryWidth < 768 && queryWidth > 479) $("body").addClass("mq-mp");
|
196
|
+
else if (queryWidth < 1023 && queryWidth > 767) $("body").addClass("mq-tb");
|
197
|
+
else if (queryWidth > 1024) $("body").addClass("mq-ls");
|
198
|
+
else if (queryWidth < 769) $("body").addClass("mq-sm");
|
199
|
+
}
|
200
|
+
|
201
|
+
if (window.HAS_MEDIAQUERY) {
|
202
|
+
$("html").addClass("mediaquery");
|
203
|
+
} else {
|
204
|
+
configureMediaQuery();
|
205
|
+
$(window).resize(configureMediaQuery);
|
206
|
+
}
|
207
|
+
|
208
|
+
});
|
209
|
+
|