bitsnote-assets 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/fullcalendar/fullcalendar.js +8369 -0
- data/app/assets/javascripts/fullcalendar/fullcalendar.min.js +8 -0
- data/app/assets/javascripts/moment/moment-with-locales.js +9083 -0
- data/app/assets/javascripts/moment/moment-with-locales.min.js +10 -0
- data/app/assets/javascripts/moment/moment.js +2815 -0
- data/app/assets/javascripts/moment/moment.min.js +6 -0
- data/app/assets/javascripts/pickadate/picker.date.js +1349 -0
- data/app/assets/javascripts/pickadate/picker.date.min.js +5 -0
- data/app/assets/javascripts/pickadate/picker.js +1078 -0
- data/app/assets/javascripts/pickadate/picker.min.js +7 -0
- data/app/assets/javascripts/pickadate/picker.time.js +1014 -0
- data/app/assets/javascripts/pickadate/picker.time.min.js +5 -0
- data/app/assets/javascripts/spin/spin.js +349 -0
- data/app/assets/javascripts/spin/spin.min.js +2 -0
- data/app/assets/stylesheets/fullcalendar/fullcalendar.css +933 -0
- data/app/assets/stylesheets/fullcalendar/fullcalendar.min.css +5 -0
- data/app/assets/stylesheets/fullcalendar/fullcalendar.print.css +201 -0
- data/app/assets/stylesheets/pickadate/classic.css +109 -0
- data/app/assets/stylesheets/pickadate/classic.date.css +301 -0
- data/app/assets/stylesheets/pickadate/classic.date.min.css +1 -0
- data/app/assets/stylesheets/pickadate/classic.min.css +4 -0
- data/app/assets/stylesheets/pickadate/classic.time.css +131 -0
- data/app/assets/stylesheets/pickadate/classic.time.min.css +1 -0
- data/app/assets/stylesheets/pickadate/default.css +175 -0
- data/app/assets/stylesheets/pickadate/default.date.css +301 -0
- data/app/assets/stylesheets/pickadate/default.date.min.css +1 -0
- data/app/assets/stylesheets/pickadate/default.min.css +4 -0
- data/app/assets/stylesheets/pickadate/default.time.css +125 -0
- data/app/assets/stylesheets/pickadate/default.time.min.css +1 -0
- data/app/assets/stylesheets/pickadate/rtl.css +29 -0
- data/app/assets/stylesheets/pickadate/rtl.min.css +3 -0
- data/lib/bitsnote-assets/version.rb +1 -1
- data/lib/bitsnote-assets.rb +92 -33
- data/test/dummy/app/views/layouts/application.html.erb +5 -0
- data/test/dummy/config/initializers/assets.rb +1 -1
- data/test/dummy/config/routes.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +448 -396
- data/test/dummy/tmp/cache/assets/development/sprockets/{91056193051f3741ee35672c43f02cc2 → 04a7d966f3aa1a0f5afdd96eeea4dcc8} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{bf21891f6ce2dc468abfcb9bb75c6a1e → 078a7c15de920196b676c944198be294} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{6d98f39010827cad999334e769f03398 → 20a916d3e45f4d0f19d33a8135f20e3e} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/25fca4643219052b0d5c66cf2c71f72f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/386e9196dd0f9efdce6f92ce93a6d107 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3f9170db678c4e1fdfa51752e5ec8e39 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{d34631840b4592db0d749b96ab27a620 → 43affd68874f8c6cd63f138e85ced50f} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{babe75ab5fc2c1762e161e6eaae5c30b → 4718fe4eff59abcea146c68e87a226a0} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/489af12e680adec109e506328fdc1368 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{64f399e2eee4409012ebcc8ea938419a → 59cdca5342cf01aa6f7243c6dbb51b95} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{50b9a4dd63d203039ce5b560ff2c33d7 → 6e275cec34b7a11680df0b73c4b46740} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/727150a817e8100f4a7f7475c0bdb616 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/861d9659592a81ca16c7c25ad7ceffc7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{ee10c355250f9cd7adb9593445676545 → a984c731d3729a5afd87810c979f93b3} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bbe5f5151cdf105fcaea71a26e3a0955 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d1df176743f01ba00229d3954a670e72 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{eb199fcd85e4107f4eb5d71939ea330c → e352b93f329aa1bd1679fe7be91c6a87} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e36b8fcf5914a3a6bf058abfe7367b19 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ecc916b0e46dd019c226421d5ae880c2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f242e30fcd4aeaf37980aa77bc7de0c3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f6eeb33602682bd6ff6d1f177f6b142d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- metadata +125 -66
- data/test/dummy/db/schema.rb +0 -16
- data/test/dummy/db/test.sqlite3 +0 -0
@@ -0,0 +1,125 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
$BASE-TIME-PICKER
|
3
|
+
========================================================================== */
|
4
|
+
/**
|
5
|
+
* The list of times.
|
6
|
+
*/
|
7
|
+
.picker__list {
|
8
|
+
list-style: none;
|
9
|
+
padding: 0.75em 0 4.2em;
|
10
|
+
margin: 0;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* The times on the clock.
|
14
|
+
*/
|
15
|
+
.picker__list-item {
|
16
|
+
border-bottom: 1px solid #dddddd;
|
17
|
+
border-top: 1px solid #dddddd;
|
18
|
+
margin-bottom: -1px;
|
19
|
+
position: relative;
|
20
|
+
background: #ffffff;
|
21
|
+
padding: .75em 1.25em;
|
22
|
+
}
|
23
|
+
@media (min-height: 46.75em) {
|
24
|
+
.picker__list-item {
|
25
|
+
padding: .5em 1em;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
/* Hovered time */
|
29
|
+
.picker__list-item:hover {
|
30
|
+
cursor: pointer;
|
31
|
+
color: #000000;
|
32
|
+
background: #b1dcfb;
|
33
|
+
border-color: #0089ec;
|
34
|
+
z-index: 10;
|
35
|
+
}
|
36
|
+
/* Highlighted and hovered/focused time */
|
37
|
+
.picker__list-item--highlighted {
|
38
|
+
border-color: #0089ec;
|
39
|
+
z-index: 10;
|
40
|
+
}
|
41
|
+
.picker__list-item--highlighted:hover,
|
42
|
+
.picker--focused .picker__list-item--highlighted {
|
43
|
+
cursor: pointer;
|
44
|
+
color: #000000;
|
45
|
+
background: #b1dcfb;
|
46
|
+
}
|
47
|
+
/* Selected and hovered/focused time */
|
48
|
+
.picker__list-item--selected,
|
49
|
+
.picker__list-item--selected:hover,
|
50
|
+
.picker--focused .picker__list-item--selected {
|
51
|
+
background: #0089ec;
|
52
|
+
color: #ffffff;
|
53
|
+
z-index: 10;
|
54
|
+
}
|
55
|
+
/* Disabled time */
|
56
|
+
.picker__list-item--disabled,
|
57
|
+
.picker__list-item--disabled:hover,
|
58
|
+
.picker--focused .picker__list-item--disabled {
|
59
|
+
background: #f5f5f5;
|
60
|
+
border-color: #f5f5f5;
|
61
|
+
color: #dddddd;
|
62
|
+
cursor: default;
|
63
|
+
border-color: #dddddd;
|
64
|
+
z-index: auto;
|
65
|
+
}
|
66
|
+
/**
|
67
|
+
* The clear button
|
68
|
+
*/
|
69
|
+
.picker--time .picker__button--clear {
|
70
|
+
display: block;
|
71
|
+
width: 80%;
|
72
|
+
margin: 1em auto 0;
|
73
|
+
padding: 1em 1.25em;
|
74
|
+
background: none;
|
75
|
+
border: 0;
|
76
|
+
font-weight: 500;
|
77
|
+
font-size: .67em;
|
78
|
+
text-align: center;
|
79
|
+
text-transform: uppercase;
|
80
|
+
color: #666;
|
81
|
+
}
|
82
|
+
.picker--time .picker__button--clear:hover,
|
83
|
+
.picker--time .picker__button--clear:focus {
|
84
|
+
color: #000000;
|
85
|
+
background: #b1dcfb;
|
86
|
+
background: #ee2200;
|
87
|
+
border-color: #ee2200;
|
88
|
+
cursor: pointer;
|
89
|
+
color: #ffffff;
|
90
|
+
outline: none;
|
91
|
+
}
|
92
|
+
.picker--time .picker__button--clear:before {
|
93
|
+
top: -0.25em;
|
94
|
+
color: #666;
|
95
|
+
font-size: 1.25em;
|
96
|
+
font-weight: bold;
|
97
|
+
}
|
98
|
+
.picker--time .picker__button--clear:hover:before,
|
99
|
+
.picker--time .picker__button--clear:focus:before {
|
100
|
+
color: #ffffff;
|
101
|
+
}
|
102
|
+
|
103
|
+
/* ==========================================================================
|
104
|
+
$DEFAULT-TIME-PICKER
|
105
|
+
========================================================================== */
|
106
|
+
/**
|
107
|
+
* The frame the bounds the time picker.
|
108
|
+
*/
|
109
|
+
.picker--time .picker__frame {
|
110
|
+
min-width: 256px;
|
111
|
+
max-width: 320px;
|
112
|
+
}
|
113
|
+
/**
|
114
|
+
* The picker box.
|
115
|
+
*/
|
116
|
+
.picker--time .picker__box {
|
117
|
+
font-size: 1em;
|
118
|
+
background: #f2f2f2;
|
119
|
+
padding: 0;
|
120
|
+
}
|
121
|
+
@media (min-height: 40.125em) {
|
122
|
+
.picker--time .picker__box {
|
123
|
+
margin-bottom: 5em;
|
124
|
+
}
|
125
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
.picker__list{list-style:none;padding:.75em 0 4.2em;margin:0}.picker__list-item{border-bottom:1px solid #ddd;border-top:1px solid #ddd;margin-bottom:-1px;position:relative;background:#fff;padding:.75em 1.25em}@media (min-height:46.75em){.picker__list-item{padding:.5em 1em}}.picker__list-item:hover{cursor:pointer;color:#000;background:#b1dcfb;border-color:#0089ec;z-index:10}.picker__list-item--highlighted{border-color:#0089ec;z-index:10}.picker--focused .picker__list-item--highlighted,.picker__list-item--highlighted:hover{cursor:pointer;color:#000;background:#b1dcfb}.picker--focused .picker__list-item--selected,.picker__list-item--selected,.picker__list-item--selected:hover{background:#0089ec;color:#fff;z-index:10}.picker--focused .picker__list-item--disabled,.picker__list-item--disabled,.picker__list-item--disabled:hover{background:#f5f5f5;color:#ddd;cursor:default;border-color:#ddd;z-index:auto}.picker--time .picker__button--clear{display:block;width:80%;margin:1em auto 0;padding:1em 1.25em;background:0 0;border:0;font-weight:500;font-size:.67em;text-align:center;text-transform:uppercase;color:#666}.picker--time .picker__button--clear:focus,.picker--time .picker__button--clear:hover{background:#b1dcfb;background:#e20;border-color:#e20;cursor:pointer;color:#fff;outline:0}.picker--time .picker__button--clear:before{top:-.25em;color:#666;font-size:1.25em;font-weight:700}.picker--time .picker__button--clear:focus:before,.picker--time .picker__button--clear:hover:before{color:#fff}.picker--time .picker__frame{min-width:256px;max-width:320px}.picker--time .picker__box{font-size:1em;background:#f2f2f2;padding:0}@media (min-height:40.125em){.picker--time .picker__box{margin-bottom:5em}}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/*!
|
2
|
+
* Styling for RTL (right-to-left) languages using pickadate.js
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* Switch the direction - only really necessary if
|
6
|
+
* it hasn’t already been applied higher up in the DOM.
|
7
|
+
*/
|
8
|
+
.picker {
|
9
|
+
direction: rtl;
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* Flip around the “next” and “previous” buttons.
|
13
|
+
*/
|
14
|
+
.picker__nav--next {
|
15
|
+
right: auto;
|
16
|
+
left: -1em;
|
17
|
+
}
|
18
|
+
.picker__nav--prev {
|
19
|
+
left: auto;
|
20
|
+
right: -1em;
|
21
|
+
}
|
22
|
+
.picker__nav--next:before {
|
23
|
+
border-left: 0;
|
24
|
+
border-right: 0.75em solid #000000;
|
25
|
+
}
|
26
|
+
.picker__nav--prev:before {
|
27
|
+
border-right: 0;
|
28
|
+
border-left: 0.75em solid #000000;
|
29
|
+
}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
/*!
|
2
|
+
* Styling for RTL (right-to-left) languages using pickadate.js
|
3
|
+
*/.picker{direction:rtl}.picker__nav--next{right:auto;left:-1em}.picker__nav--prev{left:auto;right:-1em}.picker__nav--next:before{border-left:0;border-right:.75em solid #000}.picker__nav--prev:before{border-right:0;border-left:.75em solid #000}
|
data/lib/bitsnote-assets.rb
CHANGED
@@ -1,27 +1,41 @@
|
|
1
|
+
require 'jquery-rails'
|
2
|
+
|
1
3
|
module BitsnoteAssets
|
2
4
|
module ActionViewExtensions
|
3
5
|
OFFLINE = (::Rails.env.development? or ::Rails.env.test?)
|
4
6
|
|
5
|
-
|
7
|
+
JQUERY_VERSION = ::Jquery::Rails::JQUERY_VERSION
|
6
8
|
JQUERY_UI_VERSION = "1.11.1"
|
9
|
+
ANGULAR_VERSION = '1.2.23'
|
7
10
|
BOOTSTRAP_VERSION = "3.2.0"
|
8
11
|
FONTAWESOME_VERSION = "4.1.0"
|
12
|
+
MOMENT_VERSION = "2.8.2"
|
13
|
+
FULLCALENDAR_VERSION = "2.1.0"
|
14
|
+
SPIN_VERSION = "2.0.1"
|
15
|
+
PICKADATE_VERSION = "3.5.3"
|
9
16
|
|
10
|
-
GOOGLE_CDN = "//ajax.googleapis.com"
|
17
|
+
GOOGLE_CDN = "//ajax.googleapis.com/ajax/libs"
|
11
18
|
BOOTSTRAP_CDN = "//maxcdn.bootstrapcdn.com"
|
12
|
-
|
19
|
+
CDNJS = "//cdnjs.cloudflare.com/ajax/libs"
|
13
20
|
|
14
21
|
CDNS = {
|
15
|
-
:
|
16
|
-
:
|
22
|
+
:jquery_js => {
|
23
|
+
:google => "#{GOOGLE_CDN}/jquery/#{JQUERY_VERSION}/jquery.min.js",
|
24
|
+
:microsoft => "//ajax.aspnetcdn.com/ajax/jQuery/jquery-#{JQUERY_VERSION}.min.js",
|
25
|
+
:jquery => "//code.jquery.com/jquery-#{JQUERY_VERSION}.min.js",
|
26
|
+
:yandex => "//yandex.st/jquery/#{JQUERY_VERSION}/jquery.min.js",
|
27
|
+
:cloudflare => "#{CDNJS}/jquery/#{JQUERY_VERSION}/jquery.min.js"
|
17
28
|
},
|
18
|
-
:
|
19
|
-
:google => "#{GOOGLE_CDN}/
|
29
|
+
:jquery_ui_js => {
|
30
|
+
:google => "#{GOOGLE_CDN}/jqueryui/#{JQUERY_UI_VERSION}/jquery-ui.min.js",
|
20
31
|
:microsoft => "//ajax.aspnetcdn.com/ajax/jquery.ui/#{JQUERY_UI_VERSION}/jquery-ui.min.js",
|
21
32
|
:jquery => "//code.jquery.com/ui/#{JQUERY_UI_VERSION}/jquery-ui.min.js",
|
22
33
|
:yandex => "//yandex.st/jquery-ui/#{JQUERY_UI_VERSION}/jquery-ui.min.js"
|
23
34
|
},
|
24
|
-
:
|
35
|
+
:angular_js => {
|
36
|
+
:default => "#{GOOGLE_CDN}/angularjs/#{ANGULAR_VERSION}/angular.min.js"
|
37
|
+
},
|
38
|
+
:bootstrap_js => {
|
25
39
|
:default => "#{BOOTSTRAP_CDN}/bootstrap/#{BOOTSTRAP_VERSION}/js/bootstrap.min.js"
|
26
40
|
},
|
27
41
|
:bootstrap_css => {
|
@@ -32,31 +46,38 @@ module BitsnoteAssets
|
|
32
46
|
},
|
33
47
|
:fontawesome_css => {
|
34
48
|
:default => "#{BOOTSTRAP_CDN}/font-awesome/#{FONTAWESOME_VERSION}/css/font-awesome.min.css"
|
35
|
-
}
|
49
|
+
},
|
50
|
+
:moment_js => {
|
51
|
+
:default => "#{CDNJS}/moment.js/#{MOMENT_VERSION}/moment.min.js"
|
52
|
+
},
|
53
|
+
:moment_locales_js => {
|
54
|
+
:default => "#{CDNJS}/moment.js/#{MOMENT_VERSION}/moment-with-locales.min.js"
|
55
|
+
},
|
56
|
+
:fullcalendar_js => {
|
57
|
+
:default => "#{CDNJS}/fullcalendar/#{FULLCALENDAR_VERSION}/fullcalendar.min.js"
|
58
|
+
},
|
59
|
+
:fullcalendar_css => {
|
60
|
+
:default => "#{CDNJS}/fullcalendar/#{FULLCALENDAR_VERSION}/fullcalendar.min.css"
|
61
|
+
},
|
62
|
+
:spin_js => {
|
63
|
+
:default => "#{CDNJS}/spin.js/#{SPIN_VERSION}/spin.min.js"
|
64
|
+
},
|
65
|
+
:pickadate_js => {
|
66
|
+
:default => "#{CDNJS}/pickadate.js/#{PICKADATE_VERSION}/compressed/picker.js"
|
67
|
+
},
|
68
|
+
:pickadate_date_js => {
|
69
|
+
:default => "#{CDNJS}/pickadate.js/#{PICKADATE_VERSION}/compressed/picker.date.js"
|
70
|
+
},
|
71
|
+
:pickadate_time_js => {
|
72
|
+
:default => "#{CDNJS}/pickadate.js/#{PICKADATE_VERSION}/compressed/picker.time.js"
|
73
|
+
},
|
36
74
|
}
|
37
75
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
return CDNS[:jquery_ui][name]
|
44
|
-
end
|
45
|
-
|
46
|
-
def bootstrap_javascript_url(name)
|
47
|
-
return CDNS[:bootstrap_js][name]
|
48
|
-
end
|
49
|
-
|
50
|
-
def bootstrap_stylesheet_url(name)
|
51
|
-
return CDNS[:bootstrap_css][name]
|
52
|
-
end
|
53
|
-
|
54
|
-
def bootstrap_theme_stylesheet_url(name)
|
55
|
-
return CDNS[:bootstrap_theme_css][name]
|
56
|
-
end
|
57
|
-
|
58
|
-
def fontawesome_stylesheet_url(name)
|
59
|
-
return CDNS[:fontawesome_css][name]
|
76
|
+
CDNS.keys.each do |key|
|
77
|
+
define_method "#{key}_url".to_sym do |name|
|
78
|
+
cdn = CDNS[key][name]
|
79
|
+
!!cdn ? cdn : CDNS[key].values.first
|
80
|
+
end
|
60
81
|
end
|
61
82
|
|
62
83
|
def js_include_tag(cdn, asset, url, options = {})
|
@@ -70,7 +91,7 @@ module BitsnoteAssets
|
|
70
91
|
else
|
71
92
|
local_copy = options.delete(:local_copy)
|
72
93
|
j = [ javascript_include_tag(self.send(url, cdn.to_sym), options) ]
|
73
|
-
if local_copy
|
94
|
+
if local_copy && block_given?
|
74
95
|
v = yield(asset)
|
75
96
|
j << javascript_tag("#{v} || document.write(unescape('#{javascript_include_tag(asset, options).gsub('<','%3C')}'))")
|
76
97
|
end
|
@@ -78,8 +99,14 @@ module BitsnoteAssets
|
|
78
99
|
end
|
79
100
|
end
|
80
101
|
|
102
|
+
def jquery_include_tag(name, options = {})
|
103
|
+
js_include_tag(name, 'jquery', :jquery_js_url, options) do |asset|
|
104
|
+
"window.jQuery"
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
81
108
|
def jquery_ui_include_tag(name, options = {})
|
82
|
-
js_include_tag(name, 'jquery-ui/jquery-ui', :
|
109
|
+
js_include_tag(name, 'jquery-ui/jquery-ui', :jquery_ui_js_url, options) do |asset|
|
83
110
|
"window.jQuery.ui"
|
84
111
|
end
|
85
112
|
end
|
@@ -89,6 +116,38 @@ module BitsnoteAssets
|
|
89
116
|
"window.angular"
|
90
117
|
end
|
91
118
|
end
|
119
|
+
|
120
|
+
def moment_js_include_tag(name, options = {})
|
121
|
+
js_include_tag(name, 'moment/moment', :moment_js_url, options) do |asset|
|
122
|
+
"window.moment"
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
def moment_locales_js_include_tag(name, options = {})
|
127
|
+
js_include_tag(name, 'moment/moment-with-locales', :moment_locales_js_url, options) do |asset|
|
128
|
+
"window.moment"
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
def fullcalendar_js_include_tag(name, options = {})
|
133
|
+
js_include_tag(name, 'fullcalendar/fullcalendar', :fullcalendar_js_url, options)
|
134
|
+
end
|
135
|
+
|
136
|
+
def spin_js_include_tag(name, options = {})
|
137
|
+
js_include_tag(name, 'spin/spin', :spin_js_url, options)
|
138
|
+
end
|
139
|
+
|
140
|
+
def pickadate_js_include_tag(name, options = {})
|
141
|
+
js_include_tag(name, 'pickadate/picker', :pickadate_js_url, options)
|
142
|
+
end
|
143
|
+
|
144
|
+
def pickadate_date_js_include_tag(name, options = {})
|
145
|
+
js_include_tag(name, 'pickadate/picker.date', :pickadate_date_js_url, options)
|
146
|
+
end
|
147
|
+
|
148
|
+
def pickadate_time_js_include_tag(name, options = {})
|
149
|
+
js_include_tag(name, 'pickadate/picker.time', :pickadate_time_js_url, options)
|
150
|
+
end
|
92
151
|
end
|
93
152
|
|
94
153
|
class Engine < ::Rails::Engine
|
@@ -4,10 +4,15 @@
|
|
4
4
|
<title>Dummy</title>
|
5
5
|
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
6
6
|
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
7
|
+
<%= jquery_include_tag :google %>
|
7
8
|
<%= jquery_ui_include_tag :google %>
|
9
|
+
<%= jquery_ui_include_tag :nonexist, :force => true %>
|
8
10
|
<%= jquery_ui_include_tag :google, :compressed => true %>
|
9
11
|
<%= jquery_ui_include_tag :google, :force => true, :local_copy => true %>
|
10
12
|
<%= angular_js_include_tag :default, :force => true, :local_copy => true %>
|
13
|
+
<%= fullcalendar_js_include_tag :default, :force => true, :local_copy => true %>
|
14
|
+
<%= spin_js_include_tag :default, :force => true, :local_copy => true %>
|
15
|
+
<%= pickadate_js_include_tag :default %>
|
11
16
|
<%= csrf_meta_tags %>
|
12
17
|
</head>
|
13
18
|
<body>
|
@@ -6,4 +6,4 @@ Rails.application.config.assets.version = '1.0'
|
|
6
6
|
# Precompile additional assets.
|
7
7
|
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
8
8
|
# Rails.application.config.assets.precompile += %w( search.js )
|
9
|
-
Rails.application.config.assets.precompile += %w( jquery-ui/jquery-ui.js jquery-ui/jquery-ui.min.js angular/angular.min.js angular/angular.js)
|
9
|
+
Rails.application.config.assets.precompile += %w( jquery-ui/jquery-ui.js jquery-ui/jquery-ui.min.js angular/angular.min.js angular/angular.js jquery.js pickadate/picker.js)
|
data/test/dummy/config/routes.rb
CHANGED
@@ -5,7 +5,7 @@ Rails.application.routes.draw do
|
|
5
5
|
# See how all your routes lay out with "rake routes".
|
6
6
|
|
7
7
|
# You can have the root of your site routed with "root"
|
8
|
-
|
8
|
+
root 'main#index'
|
9
9
|
|
10
10
|
# Example of regular route:
|
11
11
|
# get 'products/:id' => 'catalog#view'
|
Binary file
|