pages_core 3.9.1 → 3.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/app/assets/builds/pages_core/admin-dist.js +13 -13
  4. data/app/assets/stylesheets/pages/admin/controllers/pages.scss +6 -0
  5. data/app/controllers/admin/categories_controller.rb +3 -3
  6. data/app/controllers/admin/invites_controller.rb +1 -1
  7. data/app/controllers/admin/pages_controller.rb +1 -1
  8. data/app/controllers/admin/password_resets_controller.rb +7 -7
  9. data/app/controllers/admin/users_controller.rb +1 -1
  10. data/app/controllers/concerns/pages_core/ranged_response.rb +40 -0
  11. data/app/controllers/pages_core/attachments_controller.rb +6 -4
  12. data/app/controllers/pages_core/frontend/pages_controller.rb +1 -1
  13. data/app/controllers/sessions_controller.rb +5 -6
  14. data/app/javascript/components/ImageEditor/Form.jsx +1 -1
  15. data/app/javascript/components/ImageGrid.jsx +1 -1
  16. data/app/javascript/controllers/EditPageController.js +1 -1
  17. data/app/javascript/controllers/LoginController.js +1 -1
  18. data/app/javascript/controllers/MainController.js +1 -1
  19. data/app/javascript/controllers/PageOptionsController.js +1 -1
  20. data/app/javascript/index.js +1 -1
  21. data/app/mailers/admin_mailer.rb +1 -1
  22. data/app/models/attachment.rb +1 -1
  23. data/app/models/user.rb +1 -13
  24. data/app/views/admin/users/login.html.erb +2 -2
  25. data/app/views/admin/users/new_password.html.erb +1 -1
  26. data/app/views/admin_mailer/invite.text.erb +0 -2
  27. data/app/views/admin_mailer/password_reset.text.erb +0 -2
  28. data/app/views/feeds/pages.rss.builder +1 -1
  29. data/config/locales/en.yml +40 -14
  30. data/db/migrate/20220615160300_remove_username.rb +7 -0
  31. data/lib/pages_core/static_cache/page_cache_handler.rb +1 -1
  32. data/lib/pages_core/static_cache.rb +7 -3
  33. data/lib/rails/generators/pages_core/frontend/frontend_generator.rb +34 -34
  34. data/lib/rails/generators/pages_core/frontend/templates/{layout.html.erb → application.html.erb} +3 -0
  35. data/lib/rails/generators/pages_core/frontend/templates/javascript/lib/GridOverlay.js +66 -0
  36. data/lib/rails/generators/pages_core/frontend/templates/javascript/lib/ResponsiveEmbeds.js +72 -0
  37. data/lib/rails/generators/pages_core/frontend/templates/stylesheets/application.sass.scss +15 -0
  38. data/lib/rails/generators/pages_core/frontend/templates/{base.scss.erb → stylesheets/components/base.scss} +9 -0
  39. data/lib/rails/generators/pages_core/frontend/templates/stylesheets/config.scss +26 -0
  40. data/lib/rails/generators/pages_core/frontend/templates/stylesheets/framework/breakpoints.scss +42 -0
  41. data/lib/rails/generators/pages_core/frontend/templates/{clearfix.scss.erb → stylesheets/framework/clearfix.scss} +0 -0
  42. data/lib/rails/generators/pages_core/frontend/templates/stylesheets/framework/fonts.scss +32 -0
  43. data/lib/rails/generators/pages_core/frontend/templates/stylesheets/framework/grid.scss +168 -0
  44. data/lib/rails/generators/pages_core/frontend/templates/stylesheets/framework/grid_overlay.scss +44 -0
  45. data/lib/rails/generators/pages_core/frontend/templates/stylesheets/global/colors.scss +8 -0
  46. data/lib/rails/generators/pages_core/frontend/templates/stylesheets/global/typography.scss +90 -0
  47. data/lib/rails/generators/pages_core/frontend/templates/stylesheets/vendor/normalize.css +349 -0
  48. metadata +19 -9
  49. data/lib/rails/generators/pages_core/frontend/templates/application.scss.erb +0 -3
  50. data/lib/rails/generators/pages_core/frontend/templates/breakpoints.scss.erb +0 -24
  51. data/lib/rails/generators/pages_core/frontend/templates/normalize.css.erb +0 -425
@@ -0,0 +1,349 @@
1
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
+
3
+ /* Document
4
+ ========================================================================== */
5
+
6
+ /**
7
+ * 1. Correct the line height in all browsers.
8
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
9
+ */
10
+
11
+ html {
12
+ line-height: 1.15; /* 1 */
13
+ -webkit-text-size-adjust: 100%; /* 2 */
14
+ }
15
+
16
+ /* Sections
17
+ ========================================================================== */
18
+
19
+ /**
20
+ * Remove the margin in all browsers.
21
+ */
22
+
23
+ body {
24
+ margin: 0;
25
+ }
26
+
27
+ /**
28
+ * Render the `main` element consistently in IE.
29
+ */
30
+
31
+ main {
32
+ display: block;
33
+ }
34
+
35
+ /**
36
+ * Correct the font size and margin on `h1` elements within `section` and
37
+ * `article` contexts in Chrome, Firefox, and Safari.
38
+ */
39
+
40
+ h1 {
41
+ font-size: 2em;
42
+ margin: 0.67em 0;
43
+ }
44
+
45
+ /* Grouping content
46
+ ========================================================================== */
47
+
48
+ /**
49
+ * 1. Add the correct box sizing in Firefox.
50
+ * 2. Show the overflow in Edge and IE.
51
+ */
52
+
53
+ hr {
54
+ box-sizing: content-box; /* 1 */
55
+ height: 0; /* 1 */
56
+ overflow: visible; /* 2 */
57
+ }
58
+
59
+ /**
60
+ * 1. Correct the inheritance and scaling of font size in all browsers.
61
+ * 2. Correct the odd `em` font sizing in all browsers.
62
+ */
63
+
64
+ pre {
65
+ font-family: monospace, monospace; /* 1 */
66
+ font-size: 1em; /* 2 */
67
+ }
68
+
69
+ /* Text-level semantics
70
+ ========================================================================== */
71
+
72
+ /**
73
+ * Remove the gray background on active links in IE 10.
74
+ */
75
+
76
+ a {
77
+ background-color: transparent;
78
+ }
79
+
80
+ /**
81
+ * 1. Remove the bottom border in Chrome 57-
82
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
83
+ */
84
+
85
+ abbr[title] {
86
+ border-bottom: none; /* 1 */
87
+ text-decoration: underline; /* 2 */
88
+ text-decoration: underline dotted; /* 2 */
89
+ }
90
+
91
+ /**
92
+ * Add the correct font weight in Chrome, Edge, and Safari.
93
+ */
94
+
95
+ b,
96
+ strong {
97
+ font-weight: bolder;
98
+ }
99
+
100
+ /**
101
+ * 1. Correct the inheritance and scaling of font size in all browsers.
102
+ * 2. Correct the odd `em` font sizing in all browsers.
103
+ */
104
+
105
+ code,
106
+ kbd,
107
+ samp {
108
+ font-family: monospace, monospace; /* 1 */
109
+ font-size: 1em; /* 2 */
110
+ }
111
+
112
+ /**
113
+ * Add the correct font size in all browsers.
114
+ */
115
+
116
+ small {
117
+ font-size: 80%;
118
+ }
119
+
120
+ /**
121
+ * Prevent `sub` and `sup` elements from affecting the line height in
122
+ * all browsers.
123
+ */
124
+
125
+ sub,
126
+ sup {
127
+ font-size: 75%;
128
+ line-height: 0;
129
+ position: relative;
130
+ vertical-align: baseline;
131
+ }
132
+
133
+ sub {
134
+ bottom: -0.25em;
135
+ }
136
+
137
+ sup {
138
+ top: -0.5em;
139
+ }
140
+
141
+ /* Embedded content
142
+ ========================================================================== */
143
+
144
+ /**
145
+ * Remove the border on images inside links in IE 10.
146
+ */
147
+
148
+ img {
149
+ border-style: none;
150
+ }
151
+
152
+ /* Forms
153
+ ========================================================================== */
154
+
155
+ /**
156
+ * 1. Change the font styles in all browsers.
157
+ * 2. Remove the margin in Firefox and Safari.
158
+ */
159
+
160
+ button,
161
+ input,
162
+ optgroup,
163
+ select,
164
+ textarea {
165
+ font-family: inherit; /* 1 */
166
+ font-size: 100%; /* 1 */
167
+ line-height: 1.15; /* 1 */
168
+ margin: 0; /* 2 */
169
+ }
170
+
171
+ /**
172
+ * Show the overflow in IE.
173
+ * 1. Show the overflow in Edge.
174
+ */
175
+
176
+ button,
177
+ input { /* 1 */
178
+ overflow: visible;
179
+ }
180
+
181
+ /**
182
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
183
+ * 1. Remove the inheritance of text transform in Firefox.
184
+ */
185
+
186
+ button,
187
+ select { /* 1 */
188
+ text-transform: none;
189
+ }
190
+
191
+ /**
192
+ * Correct the inability to style clickable types in iOS and Safari.
193
+ */
194
+
195
+ button,
196
+ [type="button"],
197
+ [type="reset"],
198
+ [type="submit"] {
199
+ -webkit-appearance: button;
200
+ }
201
+
202
+ /**
203
+ * Remove the inner border and padding in Firefox.
204
+ */
205
+
206
+ button::-moz-focus-inner,
207
+ [type="button"]::-moz-focus-inner,
208
+ [type="reset"]::-moz-focus-inner,
209
+ [type="submit"]::-moz-focus-inner {
210
+ border-style: none;
211
+ padding: 0;
212
+ }
213
+
214
+ /**
215
+ * Restore the focus styles unset by the previous rule.
216
+ */
217
+
218
+ button:-moz-focusring,
219
+ [type="button"]:-moz-focusring,
220
+ [type="reset"]:-moz-focusring,
221
+ [type="submit"]:-moz-focusring {
222
+ outline: 1px dotted ButtonText;
223
+ }
224
+
225
+ /**
226
+ * Correct the padding in Firefox.
227
+ */
228
+
229
+ fieldset {
230
+ padding: 0.35em 0.75em 0.625em;
231
+ }
232
+
233
+ /**
234
+ * 1. Correct the text wrapping in Edge and IE.
235
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
236
+ * 3. Remove the padding so developers are not caught out when they zero out
237
+ * `fieldset` elements in all browsers.
238
+ */
239
+
240
+ legend {
241
+ box-sizing: border-box; /* 1 */
242
+ color: inherit; /* 2 */
243
+ display: table; /* 1 */
244
+ max-width: 100%; /* 1 */
245
+ padding: 0; /* 3 */
246
+ white-space: normal; /* 1 */
247
+ }
248
+
249
+ /**
250
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
251
+ */
252
+
253
+ progress {
254
+ vertical-align: baseline;
255
+ }
256
+
257
+ /**
258
+ * Remove the default vertical scrollbar in IE 10+.
259
+ */
260
+
261
+ textarea {
262
+ overflow: auto;
263
+ }
264
+
265
+ /**
266
+ * 1. Add the correct box sizing in IE 10.
267
+ * 2. Remove the padding in IE 10.
268
+ */
269
+
270
+ [type="checkbox"],
271
+ [type="radio"] {
272
+ box-sizing: border-box; /* 1 */
273
+ padding: 0; /* 2 */
274
+ }
275
+
276
+ /**
277
+ * Correct the cursor style of increment and decrement buttons in Chrome.
278
+ */
279
+
280
+ [type="number"]::-webkit-inner-spin-button,
281
+ [type="number"]::-webkit-outer-spin-button {
282
+ height: auto;
283
+ }
284
+
285
+ /**
286
+ * 1. Correct the odd appearance in Chrome and Safari.
287
+ * 2. Correct the outline style in Safari.
288
+ */
289
+
290
+ [type="search"] {
291
+ -webkit-appearance: textfield; /* 1 */
292
+ outline-offset: -2px; /* 2 */
293
+ }
294
+
295
+ /**
296
+ * Remove the inner padding in Chrome and Safari on macOS.
297
+ */
298
+
299
+ [type="search"]::-webkit-search-decoration {
300
+ -webkit-appearance: none;
301
+ }
302
+
303
+ /**
304
+ * 1. Correct the inability to style clickable types in iOS and Safari.
305
+ * 2. Change font properties to `inherit` in Safari.
306
+ */
307
+
308
+ ::-webkit-file-upload-button {
309
+ -webkit-appearance: button; /* 1 */
310
+ font: inherit; /* 2 */
311
+ }
312
+
313
+ /* Interactive
314
+ ========================================================================== */
315
+
316
+ /*
317
+ * Add the correct display in Edge, IE 10+, and Firefox.
318
+ */
319
+
320
+ details {
321
+ display: block;
322
+ }
323
+
324
+ /*
325
+ * Add the correct display in all browsers.
326
+ */
327
+
328
+ summary {
329
+ display: list-item;
330
+ }
331
+
332
+ /* Misc
333
+ ========================================================================== */
334
+
335
+ /**
336
+ * Add the correct display in IE 10+.
337
+ */
338
+
339
+ template {
340
+ display: none;
341
+ }
342
+
343
+ /**
344
+ * Add the correct display in IE 10.
345
+ */
346
+
347
+ [hidden] {
348
+ display: none;
349
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pages_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.1
4
+ version: 3.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inge Jørgensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-14 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -575,6 +575,7 @@ files:
575
575
  - app/controllers/concerns/pages_core/policies_helper.rb
576
576
  - app/controllers/concerns/pages_core/preview_pages_controller.rb
577
577
  - app/controllers/concerns/pages_core/process_titler.rb
578
+ - app/controllers/concerns/pages_core/ranged_response.rb
578
579
  - app/controllers/concerns/pages_core/rss_controller.rb
579
580
  - app/controllers/concerns/pages_core/static_cache_controller.rb
580
581
  - app/controllers/errors_controller.rb
@@ -771,6 +772,7 @@ files:
771
772
  - db/migrate/20180625154059_enable_search_extensions.rb
772
773
  - db/migrate/20210209151400_create_search_configurations.rb
773
774
  - db/migrate/20210210235200_create_search_documents.rb
775
+ - db/migrate/20220615160300_remove_username.rb
774
776
  - lib/pages_core.rb
775
777
  - lib/pages_core/admin_menu_item.rb
776
778
  - lib/pages_core/archive_finder.rb
@@ -800,12 +802,20 @@ files:
800
802
  - lib/pages_core/templates/template_configuration.rb
801
803
  - lib/pages_core/version.rb
802
804
  - lib/rails/generators/pages_core/frontend/frontend_generator.rb
803
- - lib/rails/generators/pages_core/frontend/templates/application.scss.erb
804
- - lib/rails/generators/pages_core/frontend/templates/base.scss.erb
805
- - lib/rails/generators/pages_core/frontend/templates/breakpoints.scss.erb
806
- - lib/rails/generators/pages_core/frontend/templates/clearfix.scss.erb
807
- - lib/rails/generators/pages_core/frontend/templates/layout.html.erb
808
- - lib/rails/generators/pages_core/frontend/templates/normalize.css.erb
805
+ - lib/rails/generators/pages_core/frontend/templates/application.html.erb
806
+ - lib/rails/generators/pages_core/frontend/templates/javascript/lib/GridOverlay.js
807
+ - lib/rails/generators/pages_core/frontend/templates/javascript/lib/ResponsiveEmbeds.js
808
+ - lib/rails/generators/pages_core/frontend/templates/stylesheets/application.sass.scss
809
+ - lib/rails/generators/pages_core/frontend/templates/stylesheets/components/base.scss
810
+ - lib/rails/generators/pages_core/frontend/templates/stylesheets/config.scss
811
+ - lib/rails/generators/pages_core/frontend/templates/stylesheets/framework/breakpoints.scss
812
+ - lib/rails/generators/pages_core/frontend/templates/stylesheets/framework/clearfix.scss
813
+ - lib/rails/generators/pages_core/frontend/templates/stylesheets/framework/fonts.scss
814
+ - lib/rails/generators/pages_core/frontend/templates/stylesheets/framework/grid.scss
815
+ - lib/rails/generators/pages_core/frontend/templates/stylesheets/framework/grid_overlay.scss
816
+ - lib/rails/generators/pages_core/frontend/templates/stylesheets/global/colors.scss
817
+ - lib/rails/generators/pages_core/frontend/templates/stylesheets/global/typography.scss
818
+ - lib/rails/generators/pages_core/frontend/templates/stylesheets/vendor/normalize.css
809
819
  - lib/rails/generators/pages_core/install/install_generator.rb
810
820
  - lib/rails/generators/pages_core/install/templates/active_job_initializer.rb
811
821
  - lib/rails/generators/pages_core/install/templates/application_controller.rb
@@ -850,7 +860,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
850
860
  - !ruby/object:Gem::Version
851
861
  version: '0'
852
862
  requirements: []
853
- rubygems_version: 3.3.3
863
+ rubygems_version: 3.3.11
854
864
  signing_key:
855
865
  specification_version: 4
856
866
  summary: Pages Core
@@ -1,3 +0,0 @@
1
- @import 'normalize';
2
- @import 'mixins/**/*';
3
- @import 'components/**/*';
@@ -1,24 +0,0 @@
1
- @mixin breakpoint-min($width) {
2
- @media screen and (min-width: ($width + 1px)) {
3
- @content;
4
- }
5
- }
6
-
7
- @mixin breakpoint-max($width) {
8
- @media screen and (max-width: $width) {
9
- @content;
10
- }
11
- }
12
-
13
- @mixin breakpoint-min-max($min-width, $max-width) {
14
- @media screen and (min-width: ($min-width + 1px)) and (max-width: ($max-width)) {
15
- @content;
16
- }
17
- }
18
-
19
- // Sample breakpoint
20
-
21
- // $breakpoint-mobile: 600px;
22
- // @mixin breakpoint-mobile($offset: 0px) {
23
- // @include breakpoint-max(($breakpoint-mobile + $offset)) { @content; }
24
- // }