speedo 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/views/layouts/speedo/application.html.haml +26 -21
- data/app/views/speedo/home/examples.html.haml +15 -16
- data/config/routes.rb +2 -2
- data/lib/generators/speedo/install_generator.rb +2 -2
- data/lib/speedo/sass.rb +1 -2
- data/lib/speedo/version.rb +1 -1
- data/vendor/assets/javascripts/chosen.jquery.js +952 -0
- data/vendor/assets/javascripts/jquery.autoSuggest.js +368 -0
- data/vendor/assets/javascripts/jquery.autogrow.js +50 -0
- data/vendor/assets/javascripts/jquery.dataTables.js +11612 -0
- data/vendor/assets/javascripts/jquery.fancybox-1.3.4.js +1156 -0
- data/vendor/assets/javascripts/jquery.livequery.js +250 -0
- data/vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js +14 -0
- data/vendor/assets/javascripts/jquery.placeholder.min.js +2 -0
- data/vendor/assets/javascripts/jquery.uniform.js +672 -0
- data/vendor/assets/javascripts/modernizr.min.js +13 -0
- data/vendor/assets/javascripts/respond.js +326 -0
- data/vendor/assets/stylesheets/autoSuggest.css +217 -0
- data/vendor/assets/stylesheets/chosen-sprite.png +0 -0
- data/vendor/assets/stylesheets/chosen.css +392 -0
- data/vendor/assets/stylesheets/dataTables/Sorting icons.psd +0 -0
- data/vendor/assets/stylesheets/dataTables/back_disabled.png +0 -0
- data/vendor/assets/stylesheets/dataTables/back_enabled.png +0 -0
- data/vendor/assets/stylesheets/dataTables/back_enabled_hover.png +0 -0
- data/vendor/assets/stylesheets/dataTables/favicon.ico +0 -0
- data/vendor/assets/stylesheets/dataTables/forward_disabled.png +0 -0
- data/vendor/assets/stylesheets/dataTables/forward_enabled.png +0 -0
- data/vendor/assets/stylesheets/dataTables/forward_enabled_hover.png +0 -0
- data/vendor/assets/stylesheets/dataTables/sort_asc.png +0 -0
- data/vendor/assets/stylesheets/dataTables/sort_asc_disabled.png +0 -0
- data/vendor/assets/stylesheets/dataTables/sort_both.png +0 -0
- data/vendor/assets/stylesheets/dataTables/sort_desc.png +0 -0
- data/vendor/assets/stylesheets/dataTables/sort_desc_disabled.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_glass_75_ffffff_1x400.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-icons_888888_256x240.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/assets/stylesheets/fancybox/blank.gif +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_close.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_loading.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_nav_left.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_nav_right.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_e.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_n.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_ne.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_nw.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_s.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_se.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_sw.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_w.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_title_left.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_title_main.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_title_over.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_title_right.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancybox-x.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancybox-y.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancybox.png +0 -0
- data/vendor/assets/stylesheets/gh-buttons.css +393 -0
- data/vendor/assets/stylesheets/gh-icons.png +0 -0
- data/vendor/assets/stylesheets/jquery-ui-1.8.18.custom.css +565 -0
- data/vendor/assets/stylesheets/jquery.dataTables.css +219 -0
- data/vendor/assets/stylesheets/jquery.fancybox-1.3.4.css +359 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_75_ffffff_1x400.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-icons_888888_256x240.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/assets/stylesheets/normalize.css +504 -0
- data/vendor/assets/stylesheets/uniform/bg-input-focus.png +0 -0
- data/vendor/assets/stylesheets/uniform/bg-input.png +0 -0
- data/vendor/assets/stylesheets/uniform/sprite-aristo.png +0 -0
- data/vendor/assets/stylesheets/uniform/sprite.png +0 -0
- data/vendor/assets/stylesheets/uniform.default.css +610 -0
- metadata +100 -16
@@ -1,16 +1,16 @@
|
|
1
1
|
!!!
|
2
|
-
!= cc_html(:
|
2
|
+
!= cc_html(class: "no-js", lang: 'en') do
|
3
3
|
%head
|
4
|
-
%meta{:
|
5
|
-
%meta{:
|
6
|
-
%meta{:
|
7
|
-
%meta{:
|
8
|
-
%meta{:
|
9
|
-
-#%link{:
|
4
|
+
%meta{charset: 'utf-8'}
|
5
|
+
%meta{content: '', name: 'author'}
|
6
|
+
%meta{content: '', name: 'description'}
|
7
|
+
%meta{content: 'IE=edge,chrome=1', 'http-equiv' => 'X-UA-Compatible'}
|
8
|
+
%meta{content: 'width=device-width, initial-scale=1.0', name: 'viewport'}
|
9
|
+
-#%link{href: '#insert-web-fonts-here', rel: 'stylesheet', type: 'text/css'}
|
10
10
|
= csrf_meta_tags
|
11
11
|
|
12
12
|
%title
|
13
|
-
= t
|
13
|
+
= t 'app_name'
|
14
14
|
= yield :page_title
|
15
15
|
|
16
16
|
= javascript_include_tag 'modernizr.min.js'
|
@@ -23,22 +23,27 @@
|
|
23
23
|
%noscript#noscript_warning This site works best with JavaScript enabled. Some features may not be available
|
24
24
|
#wrapper
|
25
25
|
%header.branding.clearfix
|
26
|
-
= link_to image_tag('speedo/logo.png'), root_url, :
|
26
|
+
= link_to image_tag('speedo/logo.png'), root_url, class: 'logo'
|
27
27
|
|
28
28
|
.user
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
- if @user_signed_in
|
30
|
+
= link_to 'current_user.name', 'account_url', class: 'user_name'
|
31
|
+
|
|
32
|
+
= link_to 'Logout', 'destroy_user_session_url', class: 'user_logout'
|
33
|
+
- else
|
34
|
+
= link_to 'Sign in', 'new_user_session_path', rel: 'sign_in'
|
35
|
+
or
|
36
|
+
= link_to 'Sign up', 'new_user_registration_path', rel: 'sign_up'
|
37
|
+
|
33
38
|
%nav.main_nav.clearfix
|
34
39
|
%form.right.search
|
35
|
-
%input{:
|
40
|
+
%input{type: 'search', name: 'search[name]', placeholder: 'Search', results: 5, autosave: 'site_search'}
|
36
41
|
|
37
|
-
= link_to
|
38
|
-
= link_to
|
39
|
-
= link_to
|
40
|
-
= link_to
|
41
|
-
= link_to
|
42
|
+
= link_to 'Home', root_url, {class: 'active home'}
|
43
|
+
= link_to 'Section1', root_url
|
44
|
+
= link_to 'Section2', root_url
|
45
|
+
= link_to 'Section3', root_url
|
46
|
+
= link_to 'Section4', root_url
|
42
47
|
|
43
48
|
|
44
49
|
- if flash[:success]
|
@@ -49,7 +54,7 @@
|
|
49
54
|
.flash.alert= flash[:alert]
|
50
55
|
- if flash[:error]
|
51
56
|
.flash.error= flash[:error]
|
52
|
-
.colmask{:
|
57
|
+
.colmask{class: @col_layout || @col_layout = 'leftcol'}
|
53
58
|
-# options: leftcol, rightcol, threecol, onecol
|
54
59
|
.colmid
|
55
60
|
.colleft
|
@@ -62,5 +67,5 @@
|
|
62
67
|
%footer
|
63
68
|
Copyright ©
|
64
69
|
= Time.now.year
|
65
|
-
= link_to
|
70
|
+
= link_to 'CrankApps', 'http://www.crankapps.com', target: '_blank'
|
66
71
|
|
@@ -1,10 +1,10 @@
|
|
1
|
-
- @col_layout =
|
1
|
+
- @col_layout = 'threecol'
|
2
2
|
|
3
3
|
%h1 Buttons - h1
|
4
4
|
%button.button.icon.add Click
|
5
5
|
.button-group
|
6
|
-
%input.button.danger{:
|
7
|
-
%a.button.icon.comment.popup{:
|
6
|
+
%input.button.danger{type: :submit, value: 'Cancel'}
|
7
|
+
%a.button.icon.comment.popup{href: '#popup', title: 'Popup title'} Popup
|
8
8
|
.button Nothing
|
9
9
|
|
10
10
|
|
@@ -29,18 +29,18 @@
|
|
29
29
|
|
30
30
|
|
31
31
|
%h3 Inputs with bonuses - h3
|
32
|
-
%select.chzn{:
|
32
|
+
%select.chzn{style: 'width:200px'}
|
33
33
|
%option Canada
|
34
34
|
%option UK
|
35
35
|
%option USA
|
36
36
|
|
37
37
|
%br
|
38
|
-
%input{:
|
38
|
+
%input{type: :date, placeholder: 'yy-mm-dd'}
|
39
39
|
|
40
40
|
|
41
41
|
|
42
42
|
%h4 AutoGrowing, AutoSuggesting - h4
|
43
|
-
%textarea.autoGrow{:
|
43
|
+
%textarea.autoGrow{cols: '50', placeholder: 'AutoGrowing'}
|
44
44
|
|
45
45
|
%br
|
46
46
|
%input.autoSuggest
|
@@ -49,24 +49,24 @@
|
|
49
49
|
|
50
50
|
%h5 Uniformed Inputs - h5
|
51
51
|
%label
|
52
|
-
%input{:
|
52
|
+
%input{type: :checkbox, checked: 'checked'}
|
53
53
|
One
|
54
54
|
%label
|
55
|
-
%input{:
|
55
|
+
%input{type: :checkbox}
|
56
56
|
Two
|
57
57
|
%label
|
58
|
-
%input{:
|
58
|
+
%input{type: :checkbox}
|
59
59
|
Three
|
60
60
|
%br
|
61
61
|
|
62
62
|
%label
|
63
|
-
%input{:
|
63
|
+
%input{type: :radio, name: 'radio', checked: 'checked'}
|
64
64
|
One
|
65
65
|
%label
|
66
|
-
%input{:
|
66
|
+
%input{type: :radio, name: 'radio'}
|
67
67
|
Two
|
68
68
|
%label
|
69
|
-
%input{:
|
69
|
+
%input{type: :radio, name: 'radio'}
|
70
70
|
Three
|
71
71
|
|
72
72
|
%br
|
@@ -74,7 +74,7 @@
|
|
74
74
|
%option Select Something
|
75
75
|
|
76
76
|
%br
|
77
|
-
%input{:
|
77
|
+
%input{type: :file}
|
78
78
|
|
79
79
|
|
80
80
|
|
@@ -101,7 +101,6 @@
|
|
101
101
|
.popups
|
102
102
|
#popup.popup_content
|
103
103
|
%h4 Help
|
104
|
-
%p See
|
105
|
-
%p See
|
106
|
-
%p See home.js.coffee for standard JS calls
|
104
|
+
%p See speedo.css.scss for classes and helper classes
|
105
|
+
%p See swim.js.coffee for standard JS calls
|
107
106
|
%button.button.close.right Close
|
data/config/routes.rb
CHANGED
@@ -3,11 +3,11 @@ module Speedo
|
|
3
3
|
class InstallGenerator < Rails::Generators::Base
|
4
4
|
source_root File.expand_path("../../../../", __FILE__)
|
5
5
|
|
6
|
-
desc
|
6
|
+
desc 'Installs Speedo files to get you going fast.'
|
7
7
|
|
8
8
|
# app/views/layouts/application.html.haml
|
9
9
|
def layout
|
10
|
-
if yes?
|
10
|
+
if yes? 'Do you want to replace the application layout? [yN]'
|
11
11
|
template 'app/views/layouts/speedo/application.html.haml',
|
12
12
|
'app/views/layouts/application.html.haml'
|
13
13
|
remove_file 'app/views/layouts/application.html.erb'
|
data/lib/speedo/sass.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'bourbon'
|
2
2
|
|
3
3
|
Sass::Engine::DEFAULT_OPTIONS[:load_paths].tap do |load_paths|
|
4
|
-
load_paths << "#{Gem.loaded_specs['bourbon'].full_gem_path}/app/assets/stylesheets"
|
5
|
-
load_paths << "vendor/assets/stylesheets"
|
4
|
+
load_paths << "#{Gem.loaded_specs['bourbon'].full_gem_path}/app/assets/stylesheets/"
|
6
5
|
end
|
data/lib/speedo/version.rb
CHANGED