integral 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '09156b28e5747cc7d2f01f2f06dc11aff22fdf0d'
4
- data.tar.gz: f7d7453595079a04716daa59ea49f552c77e52a2
3
+ metadata.gz: 250965f43a08d1f07fecdc20fc951807c5e7f13b
4
+ data.tar.gz: e565fae4584832acc09f8c26b1aae89c9d393938
5
5
  SHA512:
6
- metadata.gz: 6172a6b532d44c8c410548bfd316cc9b63b4e4d65d2393d3955ed9b893502a4b29f0a53f0697bc2a01ea679b204c5488e71a3e57ff2d01412fe1a3ec1005e8dc
7
- data.tar.gz: 5d281723f28bb949dd1b2aa407ee6aed9ce1ceaaa0b3de1bd9ff88f64134ce7dfb628afe9854a1b115cb6efa690376de1aba8acf74119c9f04639d053afa3663
6
+ metadata.gz: 1fd28a9d092ad9e563079ea34096b979d1bb8e861d710dc11ab27e5f32ca0fdcad4df6ed714f174c25ba4c6b4d21c6181b4b2ad682a6efe821cdea3e2ecc869d
7
+ data.tar.gz: 8173542b99981aae581fba611836fb6c6dbfb3e09966b27e13058dca427649646ff5db475063f2d2638e318093b15cbdb0b3b5d92448ae6a0f239a94e81cc9ee
@@ -1,6 +1,12 @@
1
1
  module Integral
2
2
  # Support Helper which contains common helper methods used within backend & frontend
3
3
  module SupportHelper
4
+ # @return [Boolean] Whether or not to display media query indicator
5
+ # Green - large screens, medium - tablets, red - mobile
6
+ def display_media_query_indicator?
7
+ Rails.env.development?
8
+ end
9
+
4
10
  # @return [String] markup listing flash notifications
5
11
  def render_flashes
6
12
  flash_types = %i[notice alert error]
@@ -1,2 +1,2 @@
1
- - if Rails.env.development?
2
- .query-indicator= icon('mobile')
1
+ - if display_media_query_indicator?
2
+ .query-indicator{ 'data-tooltip' => true, title: 'Media Query Indicator - Visible in development only.' }= icon('arrows-alt')
@@ -23,7 +23,7 @@ user = Integral::User.create!({ name: 'Integrico', email: 'user@integralrails.co
23
23
  # Demo Page
24
24
  host = URI.parse(Rails.application.routes.default_url_options[:host] || 'http://localhost:3000')
25
25
 
26
- renderer = renderer = ApplicationController.renderer.new(
26
+ renderer = ApplicationController.renderer.new(
27
27
  http_host: host.to_s.sub(/^https?\:\/\//, '').sub(/^www./,''),
28
28
  https: host.scheme == 'https')
29
29
 
@@ -1,5 +1,5 @@
1
1
  # :nocov:
2
2
  module Integral
3
3
  # Integral Version
4
- VERSION = '1.0.0'.freeze
4
+ VERSION = '1.0.1'.freeze
5
5
  end
@@ -0,0 +1,244 @@
1
+ <h2 style="text-align: center;">Example Content</h2>
2
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
3
+
4
+ <p style="text-align: center;">This is a centered paragraph with a <a href="https://google.com">link example</a>.</p>
5
+
6
+ <h2>Heading 2<a name="heading-2-example"></a></h2>
7
+ <h3>Heading 3<a name="heading-3-example"></a></h3>
8
+ <h4>Heading 4<a name="heading-4-example"></a></h4>
9
+
10
+ <ol>
11
+ <li>Ordered List</li>
12
+ <li>Item 2</li>
13
+ <li>Item 3</li>
14
+ <li>Item 4</li>
15
+ </ol>
16
+
17
+ <ul>
18
+ <li>Unordered List</li>
19
+ <li>Item 2</li>
20
+ <li>Item 3</li>
21
+ <li>Item 4</li>
22
+ </ul>
23
+
24
+ <blockquote>
25
+ <p>You are what you do, not what you say you'll do.</p>
26
+ </blockquote>
27
+
28
+
29
+ <h3>Buttons<a name="buttons-example"></a></h3>
30
+ <p>
31
+ <a class="button primary" href="#">Primary</a>
32
+ <a class="button secondary" href="#">Secondary</a>
33
+ <a class="button success" href="#">Success</a>
34
+ <a class="button alert" href="#">Alert</a>
35
+ <a class="button warning" href="#">Warning</a>
36
+ <a class="button" href="#" disabled>Disabled</a>
37
+ </p>
38
+
39
+ <h4>Hollow<a name="buttons-hollow-example"></a></h3>
40
+
41
+ <a class="hollow button" href="#">Primary</a>
42
+ <a class="hollow button secondary" href="#">Secondary</a>
43
+ <a class="hollow button success" href="#">Success</a>
44
+ <a class="hollow button alert" href="#">Alert</a>
45
+ <a class="hollow button warning" href="#">Warning</a>
46
+ <a class="hollow button" href="#" disabled>Disabled</a>
47
+
48
+ <h3>Image Example<a name="image-example"></a></h3>
49
+ <div><img alt="A sample image" src="http://lorempixel.com/1280/600/nature/" /></div>
50
+
51
+ <h4>Captioned Image<a name="image-caption"></a></h4>
52
+
53
+ <table class="img-container">
54
+ <tbody>
55
+ <tr>
56
+ <td style="text-align: center;"><img alt="" src="http://lorempixel.com/600/600/" /></td>
57
+ </tr>
58
+ <tr>
59
+ <td style="text-align: center;">This is an image caption example</td>
60
+ </tr>
61
+ </tbody>
62
+ </table>
63
+
64
+ <h3>Tables<a name="tables-example"></a></h3>
65
+ <h4>Basic table</h4>
66
+ <table>
67
+ <thead>
68
+ <tr>
69
+ <th scope="col">Header</th>
70
+ <th scope="col">Header</th>
71
+ <th scope="col">Header</th>
72
+ </tr>
73
+ </thead>
74
+ <tbody>
75
+ <tr>
76
+ <td>Data</td>
77
+ <td>Data</td>
78
+ <td>Data</td>
79
+ </tr>
80
+ <tr>
81
+ <td>Data</td>
82
+ <td>Data</td>
83
+ <td>Data</td>
84
+ </tr>
85
+ <tr>
86
+ <td>Data</td>
87
+ <td>Data</td>
88
+ <td>Data</td>
89
+ </tr>
90
+ <tr>
91
+ <td>Data</td>
92
+ <td>Data</td>
93
+ <td>Data</td>
94
+ </tr>
95
+ </tbody>
96
+ </table>
97
+
98
+ <h4>Hoverable Rows<a name="tables-hover-example"></a></h4>
99
+ <table class="hover">
100
+ <thead>
101
+ <tr>
102
+ <th scope="col">Header</th>
103
+ <th scope="col">Header</th>
104
+ <th scope="col">Header</th>
105
+ </tr>
106
+ </thead>
107
+ <tbody>
108
+ <tr>
109
+ <td>Data</td>
110
+ <td>Data</td>
111
+ <td>Data</td>
112
+ </tr>
113
+ <tr>
114
+ <td>Data</td>
115
+ <td>Data</td>
116
+ <td>Data</td>
117
+ </tr>
118
+ <tr>
119
+ <td>Data</td>
120
+ <td>Data</td>
121
+ <td>Data</td>
122
+ </tr>
123
+ <tr>
124
+ <td>Data</td>
125
+ <td>Data</td>
126
+ <td>Data</td>
127
+ </tr>
128
+ </tbody>
129
+ </table>
130
+
131
+
132
+ <h4>Unstriped Table<a name="tables-unstriped-example"></a></h4>
133
+ <table class="unstriped">
134
+ <thead>
135
+ <tr>
136
+ <th scope="col">Header</th>
137
+ <th scope="col">Header</th>
138
+ <th scope="col">Header</th>
139
+ </tr>
140
+ </thead>
141
+ <tbody>
142
+ <tr>
143
+ <td>Data</td>
144
+ <td>Data</td>
145
+ <td>Data</td>
146
+ </tr>
147
+ <tr>
148
+ <td>Data</td>
149
+ <td>Data</td>
150
+ <td>Data</td>
151
+ </tr>
152
+ <tr>
153
+ <td>Data</td>
154
+ <td>Data</td>
155
+ <td>Data</td>
156
+ </tr>
157
+ <tr>
158
+ <td>Data</td>
159
+ <td>Data</td>
160
+ <td>Data</td>
161
+ </tr>
162
+ </tbody>
163
+ </table>
164
+
165
+ <h4>Collapsible Table<a name="tables-collapsible-example"></a></h4>
166
+
167
+ <table class="collapsible">
168
+ <thead>
169
+ <tr>
170
+ <th scope="col">Header</th>
171
+ <th scope="col">Header</th>
172
+ <th scope="col">Header</th>
173
+ </tr>
174
+ </thead>
175
+ <tbody>
176
+ <tr>
177
+ <td>Data</td>
178
+ <td>Data</td>
179
+ <td>Data</td>
180
+ </tr>
181
+ <tr>
182
+ <td>Data</td>
183
+ <td>Data</td>
184
+ <td>Data</td>
185
+ </tr>
186
+ <tr>
187
+ <td>Data</td>
188
+ <td>Data</td>
189
+ <td>Data</td>
190
+ </tr>
191
+ <tr>
192
+ <td>Data</td>
193
+ <td>Data</td>
194
+ <td>Data</td>
195
+ </tr>
196
+ <tr>
197
+ <td>Data</td>
198
+ <td>Data</td>
199
+ <td>Data</td>
200
+ </tr>
201
+ <tr>
202
+ <td>Data</td>
203
+ <td>Data</td>
204
+ <td>Data</td>
205
+ </tr>
206
+ </tbody>
207
+ </table>
208
+
209
+ <h3>Callouts<a name="callouts-example"></a></h3>
210
+ <div class="callout primary">
211
+ <h5>This is a primary callout</h5>
212
+ <p>It has an easy to override visual style, and is appropriately subdued.</p>
213
+ <a href="#">It's dangerous to go alone, take this.</a>
214
+ </div>
215
+
216
+ <div class="callout secondary">
217
+ <h5>This is a secondary callout</h5>
218
+ <p>It has an easy to override visual style, and is appropriately subdued.</p>
219
+ <a href="#">It's dangerous to go alone, take this.</a>
220
+ </div>
221
+
222
+ <div class="callout success">
223
+ <h5>This is a success callout</h5>
224
+ <p>It has an easy to override visual style, and is appropriately subdued.</p>
225
+ <a href="#">It's dangerous to go alone, take this.</a>
226
+ </div>
227
+
228
+ <div class="callout warning">
229
+ <h5>This is a warning callout</h5>
230
+ <p>It has an easy to override visual style, and is appropriately subdued.</p>
231
+ <a href="#">It's dangerous to go alone, take this.</a>
232
+ </div>
233
+
234
+ <div class="callout alert">
235
+ <h5>This is a alert callout</h5>
236
+ <p>It has an easy to override visual style, and is appropriately subdued.</p>
237
+ <a href="#">It's dangerous to go alone, take this.</a>
238
+ </div>
239
+
240
+ <h3>Embeds<a id="embeds" name="embeds"></a></h3>
241
+
242
+ <h4>Youtube Embed<a id="embed-youtube" name="embed-youtube"></a></h4>
243
+
244
+ <p><iframe height="400px" src="https://www.youtube.com/embed/J9LK6EtxzgM" width="100%"></iframe></p>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: integral
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Lindsay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-22 00:00:00.000000000 Z
11
+ date: 2018-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_record_union
@@ -1703,6 +1703,7 @@ files:
1703
1703
  - lib/integral/widgets/swiper_list.rb
1704
1704
  - lib/tasks/integral_tasks.rake
1705
1705
  - lib/templates/erb/scaffold/_form.html.erb
1706
+ - public/integral/ckeditor_demo_content.html
1706
1707
  - spec/factories.rb
1707
1708
  - spec/support/image.jpg
1708
1709
  homepage: https://github.com/yamasolutions/integral