publify_core 10.0.3 → 11.0.0

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.
Files changed (201) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +249 -53
  3. data/app/assets/javascripts/publify.js +0 -1
  4. data/app/assets/javascripts/publify_admin.js +10 -9
  5. data/app/assets/stylesheets/accounts.css.scss +0 -2
  6. data/app/assets/stylesheets/administration_structure.css.scss +0 -4
  7. data/app/assets/stylesheets/publify.css.scss +0 -1
  8. data/app/assets/stylesheets/publify_admin.css.scss +0 -2
  9. data/app/assets/stylesheets/sidebar_admin.css.scss +0 -6
  10. data/app/controllers/admin/articles_controller.rb +1 -1
  11. data/app/controllers/admin/base_controller.rb +2 -2
  12. data/app/controllers/admin/redirects_controller.rb +2 -2
  13. data/app/controllers/admin/resources_controller.rb +1 -1
  14. data/app/controllers/admin/seo_controller.rb +2 -2
  15. data/app/controllers/admin/settings_controller.rb +2 -2
  16. data/app/controllers/admin/tags_controller.rb +1 -1
  17. data/app/controllers/admin/users_controller.rb +2 -2
  18. data/app/controllers/articles_controller.rb +2 -5
  19. data/app/controllers/authors_controller.rb +0 -2
  20. data/app/controllers/comments_controller.rb +5 -2
  21. data/app/controllers/content_controller.rb +0 -4
  22. data/app/controllers/notes_controller.rb +1 -6
  23. data/app/controllers/setup_controller.rb +1 -1
  24. data/app/controllers/tags_controller.rb +0 -1
  25. data/app/controllers/users/registrations_controller.rb +1 -0
  26. data/app/helpers/admin/base_helper.rb +20 -13
  27. data/app/helpers/admin/feedback_helper.rb +4 -4
  28. data/app/helpers/base_helper.rb +10 -6
  29. data/app/helpers/xml_helper.rb +4 -0
  30. data/app/models/article.rb +7 -7
  31. data/app/models/blog.rb +3 -3
  32. data/app/models/comment.rb +1 -1
  33. data/app/models/config_manager.rb +1 -3
  34. data/app/models/content.rb +4 -5
  35. data/app/models/content_base.rb +4 -3
  36. data/app/models/feedback.rb +1 -1
  37. data/app/models/note.rb +74 -8
  38. data/app/models/page.rb +1 -1
  39. data/app/models/redirect.rb +0 -4
  40. data/app/models/resource.rb +1 -0
  41. data/app/models/sidebar.rb +6 -14
  42. data/app/models/tag.rb +2 -2
  43. data/app/models/text_filter.rb +2 -2
  44. data/app/models/trigger.rb +1 -1
  45. data/app/models/user.rb +12 -21
  46. data/app/uploaders/resource_uploader.rb +11 -4
  47. data/app/views/admin/articles/_form.html.erb +99 -105
  48. data/app/views/admin/articles/index.html.erb +15 -23
  49. data/app/views/admin/dashboard/_comment.html.erb +1 -1
  50. data/app/views/admin/dashboard/_comments.html.erb +4 -6
  51. data/app/views/admin/dashboard/_drafts.html.erb +4 -6
  52. data/app/views/admin/dashboard/_overview.html.erb +2 -5
  53. data/app/views/admin/dashboard/_welcome.html.erb +19 -19
  54. data/app/views/admin/dashboard/index.html.erb +3 -3
  55. data/app/views/admin/feedback/_button.html.erb +7 -13
  56. data/app/views/admin/feedback/article.html.erb +17 -17
  57. data/app/views/admin/feedback/edit.html.erb +17 -21
  58. data/app/views/admin/feedback/index.html.erb +8 -8
  59. data/app/views/admin/notes/_form.html.erb +5 -5
  60. data/app/views/admin/notes/_list.html.erb +1 -1
  61. data/app/views/admin/notes/_note.html.erb +1 -1
  62. data/app/views/admin/notes/edit.html.erb +1 -1
  63. data/app/views/admin/notes/index.html.erb +1 -1
  64. data/app/views/admin/pages/_form.html.erb +23 -27
  65. data/app/views/admin/post_types/_index_and_form.html.erb +5 -5
  66. data/app/views/admin/redirects/_index_and_form.html.erb +2 -2
  67. data/app/views/admin/resources/index.html.erb +20 -8
  68. data/app/views/admin/seo/_general.html.erb +36 -36
  69. data/app/views/admin/seo/_permalinks.html.erb +22 -14
  70. data/app/views/admin/seo/_titles.html.erb +63 -63
  71. data/app/views/admin/settings/display.html.erb +23 -23
  72. data/app/views/admin/settings/feedback.html.erb +29 -29
  73. data/app/views/admin/settings/index.html.erb +21 -21
  74. data/app/views/admin/settings/write.html.erb +18 -18
  75. data/app/views/admin/shared/_flash.html.erb +6 -0
  76. data/app/views/admin/shared/_menu.html.erb +56 -68
  77. data/app/views/admin/sidebar/_config.html.erb +15 -19
  78. data/app/views/admin/sidebar/_target.html.erb +3 -3
  79. data/app/views/admin/sidebar/_target_sidebar.html.erb +14 -13
  80. data/app/views/admin/sidebar/index.html.erb +2 -2
  81. data/app/views/admin/tags/_index_and_form.html.erb +3 -3
  82. data/app/views/admin/themes/index.html.erb +21 -19
  83. data/app/views/admin/users/_form.html.erb +79 -79
  84. data/app/views/articles/search.html.erb +1 -1
  85. data/app/views/layouts/accounts.html.erb +7 -9
  86. data/app/views/layouts/administration.html.erb +2 -2
  87. data/app/views/notes/show.html.erb +15 -0
  88. data/app/views/setup/index.html.erb +1 -1
  89. data/app/views/shared/_atom_item_article.atom.builder +1 -3
  90. data/app/views/shared/_rss_item_article.rss.builder +1 -2
  91. data/config/i18n-tasks.yml +0 -1
  92. data/config/locales/ar.yml +3 -2
  93. data/config/locales/da.yml +3 -2
  94. data/config/locales/de.yml +3 -2
  95. data/config/locales/en.yml +3 -2
  96. data/config/locales/es-MX.yml +3 -2
  97. data/config/locales/fr.yml +3 -2
  98. data/config/locales/he.yml +3 -2
  99. data/config/locales/it.yml +3 -2
  100. data/config/locales/ja.yml +3 -2
  101. data/config/locales/lt.yml +3 -2
  102. data/config/locales/nb.yml +3 -2
  103. data/config/locales/nl.yml +3 -2
  104. data/config/locales/pl.yml +3 -2
  105. data/config/locales/pt-BR.yml +3 -2
  106. data/config/locales/ro.yml +3 -2
  107. data/config/locales/ru.yml +3 -2
  108. data/config/locales/zh-CN.yml +3 -2
  109. data/config/locales/zh-TW.yml +3 -2
  110. data/config/routes.rb +0 -11
  111. data/db/migrate/114_fixes_buggy_articles_and_notes.rb +2 -2
  112. data/db/migrate/20150807134129_simplify_redirect_relations.rb +1 -1
  113. data/db/migrate/20160605154632_remove_profiles.rb +1 -1
  114. data/db/migrate/20190208152646_move_text_filter_to_name.rb +2 -2
  115. data/lib/format.rb +2 -2
  116. data/lib/publify_core/engine.rb +10 -0
  117. data/lib/publify_core/string_ext.rb +1 -13
  118. data/lib/publify_core/testing_support/fixtures/like_plain.html +2 -0
  119. data/lib/publify_core/text_filter/markdown.rb +5 -1
  120. data/lib/publify_core/text_filter/markdown_smartquotes.rb +6 -1
  121. data/lib/publify_core/version.rb +1 -1
  122. data/lib/publify_core.rb +2 -2
  123. data/lib/text_filter_plugin.rb +20 -22
  124. data/lib/theme.rb +56 -37
  125. metadata +101 -397
  126. data/app/assets/javascripts/bootstrap/affix.js +0 -164
  127. data/app/assets/javascripts/bootstrap/alert.js +0 -95
  128. data/app/assets/javascripts/bootstrap/button.js +0 -125
  129. data/app/assets/javascripts/bootstrap/collapse.js +0 -212
  130. data/app/assets/javascripts/bootstrap/dropdown.js +0 -165
  131. data/app/assets/javascripts/bootstrap/modal.js +0 -358
  132. data/app/assets/javascripts/bootstrap/tab.js +0 -155
  133. data/app/assets/javascripts/bootstrap/transition.js +0 -59
  134. data/app/assets/javascripts/bootstrap-sprockets.js +0 -8
  135. data/app/assets/javascripts/lightbox.js +0 -350
  136. data/app/assets/stylesheets/_bootstrap-compass.scss +0 -9
  137. data/app/assets/stylesheets/_bootstrap-mincer.scss +0 -19
  138. data/app/assets/stylesheets/_bootstrap-sprockets.scss +0 -9
  139. data/app/assets/stylesheets/_bootstrap.scss +0 -42
  140. data/app/assets/stylesheets/bootstrap/_alerts.scss +0 -73
  141. data/app/assets/stylesheets/bootstrap/_button-groups.scss +0 -242
  142. data/app/assets/stylesheets/bootstrap/_buttons.scss +0 -168
  143. data/app/assets/stylesheets/bootstrap/_close.scss +0 -37
  144. data/app/assets/stylesheets/bootstrap/_code.scss +0 -69
  145. data/app/assets/stylesheets/bootstrap/_component-animations.scss +0 -38
  146. data/app/assets/stylesheets/bootstrap/_dropdowns.scss +0 -213
  147. data/app/assets/stylesheets/bootstrap/_forms.scss +0 -586
  148. data/app/assets/stylesheets/bootstrap/_grid.scss +0 -94
  149. data/app/assets/stylesheets/bootstrap/_labels.scss +0 -66
  150. data/app/assets/stylesheets/bootstrap/_media.scss +0 -66
  151. data/app/assets/stylesheets/bootstrap/_mixins.scss +0 -37
  152. data/app/assets/stylesheets/bootstrap/_modals.scss +0 -150
  153. data/app/assets/stylesheets/bootstrap/_navbar.scss +0 -479
  154. data/app/assets/stylesheets/bootstrap/_navs.scss +0 -242
  155. data/app/assets/stylesheets/bootstrap/_normalize.scss +0 -427
  156. data/app/assets/stylesheets/bootstrap/_pagination.scss +0 -86
  157. data/app/assets/stylesheets/bootstrap/_panels.scss +0 -222
  158. data/app/assets/stylesheets/bootstrap/_print.scss +0 -99
  159. data/app/assets/stylesheets/bootstrap/_scaffolding.scss +0 -160
  160. data/app/assets/stylesheets/bootstrap/_tables.scss +0 -234
  161. data/app/assets/stylesheets/bootstrap/_theme.scss +0 -224
  162. data/app/assets/stylesheets/bootstrap/_type.scss +0 -296
  163. data/app/assets/stylesheets/bootstrap/_utilities.scss +0 -55
  164. data/app/assets/stylesheets/bootstrap/_variables.scss +0 -638
  165. data/app/assets/stylesheets/bootstrap/_wells.scss +0 -29
  166. data/app/assets/stylesheets/bootstrap/mixins/_alerts.scss +0 -15
  167. data/app/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -12
  168. data/app/assets/stylesheets/bootstrap/mixins/_border-radius.scss +0 -18
  169. data/app/assets/stylesheets/bootstrap/mixins/_buttons.scss +0 -56
  170. data/app/assets/stylesheets/bootstrap/mixins/_center-block.scss +0 -7
  171. data/app/assets/stylesheets/bootstrap/mixins/_clearfix.scss +0 -22
  172. data/app/assets/stylesheets/bootstrap/mixins/_forms.scss +0 -82
  173. data/app/assets/stylesheets/bootstrap/mixins/_gradients.scss +0 -56
  174. data/app/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -81
  175. data/app/assets/stylesheets/bootstrap/mixins/_grid.scss +0 -122
  176. data/app/assets/stylesheets/bootstrap/mixins/_hide-text.scss +0 -21
  177. data/app/assets/stylesheets/bootstrap/mixins/_image.scss +0 -28
  178. data/app/assets/stylesheets/bootstrap/mixins/_labels.scss +0 -12
  179. data/app/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -10
  180. data/app/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +0 -9
  181. data/app/assets/stylesheets/bootstrap/mixins/_opacity.scss +0 -7
  182. data/app/assets/stylesheets/bootstrap/mixins/_pagination.scss +0 -24
  183. data/app/assets/stylesheets/bootstrap/mixins/_panels.scss +0 -20
  184. data/app/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +0 -8
  185. data/app/assets/stylesheets/bootstrap/mixins/_resize.scss +0 -6
  186. data/app/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +0 -17
  187. data/app/assets/stylesheets/bootstrap/mixins/_size.scss +0 -10
  188. data/app/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +0 -9
  189. data/app/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -28
  190. data/app/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -12
  191. data/app/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +0 -8
  192. data/app/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +0 -222
  193. data/app/assets/stylesheets/lightbox.css +0 -63
  194. data/app/controllers/theme_controller.rb +0 -63
  195. data/app/views/notes/show_in_reply.html.erb +0 -18
  196. data/app/views/theme/static_view_test.html.erb +0 -1
  197. data/lib/publify_core/text_filter/twitterfilter.rb +0 -55
  198. data/lib/tasks/manifest.rake +0 -30
  199. /data/app/views/layouts/{default.html.erb → application.html.erb} +0 -0
  200. /data/themes/plain/javascripts/{theme.js → plain/theme.js} +0 -0
  201. /data/themes/plain/stylesheets/{theme.css → plain/theme.css} +0 -0
@@ -1,296 +0,0 @@
1
- //
2
- // Typography
3
- // --------------------------------------------------
4
-
5
-
6
- // Headings
7
- // -------------------------
8
-
9
- h1, h2, h3, h4, h5, h6,
10
- .h1, .h2, .h3, .h4, .h5, .h6 {
11
- font-family: $headings-font-family;
12
- font-weight: $headings-font-weight;
13
- line-height: $headings-line-height;
14
- color: $headings-color;
15
-
16
- small,
17
- .small {
18
- font-weight: 400;
19
- line-height: 1;
20
- color: $headings-small-color;
21
- }
22
- }
23
-
24
- h1, .h1,
25
- h2, .h2,
26
- h3, .h3 {
27
- margin-top: $line-height-computed;
28
- margin-bottom: ($line-height-computed / 2);
29
-
30
- small,
31
- .small {
32
- font-size: 65%;
33
- }
34
- }
35
- h4, .h4,
36
- h5, .h5,
37
- h6, .h6 {
38
- margin-top: ($line-height-computed / 2);
39
- margin-bottom: ($line-height-computed / 2);
40
-
41
- small,
42
- .small {
43
- font-size: 75%;
44
- }
45
- }
46
-
47
- h1, .h1 { font-size: $font-size-h1; }
48
- h2, .h2 { font-size: $font-size-h2; }
49
- h3, .h3 { font-size: $font-size-h3; }
50
- h4, .h4 { font-size: $font-size-h4; }
51
- h5, .h5 { font-size: $font-size-h5; }
52
- h6, .h6 { font-size: $font-size-h6; }
53
-
54
-
55
- // Body text
56
- // -------------------------
57
-
58
- p {
59
- margin: 0 0 ($line-height-computed / 2);
60
- }
61
-
62
- .lead {
63
- margin-bottom: $line-height-computed;
64
- font-size: floor(($font-size-base * 1.15));
65
- font-weight: 300;
66
- line-height: 1.4;
67
-
68
- @media (min-width: $screen-sm-min) {
69
- font-size: ($font-size-base * 1.5);
70
- }
71
- }
72
-
73
-
74
- // Emphasis & misc
75
- // -------------------------
76
-
77
- // Ex: (12px small font / 14px base font) * 100% = about 85%
78
- small,
79
- .small {
80
- font-size: floor((100% * $font-size-small / $font-size-base));
81
- }
82
-
83
- mark,
84
- .mark {
85
- padding: .2em;
86
- background-color: $state-warning-bg;
87
- }
88
-
89
- // Alignment
90
- .text-left { text-align: left; }
91
- .text-right { text-align: right; }
92
- .text-center { text-align: center; }
93
- .text-justify { text-align: justify; }
94
- .text-nowrap { white-space: nowrap; }
95
-
96
- // Transformation
97
- .text-lowercase { text-transform: lowercase; }
98
- .text-uppercase { text-transform: uppercase; }
99
- .text-capitalize { text-transform: capitalize; }
100
-
101
- // Contextual colors
102
- .text-muted {
103
- color: $text-muted;
104
- }
105
-
106
- @include text-emphasis-variant('.text-primary', $brand-primary);
107
-
108
- @include text-emphasis-variant('.text-success', $state-success-text);
109
-
110
- @include text-emphasis-variant('.text-info', $state-info-text);
111
-
112
- @include text-emphasis-variant('.text-warning', $state-warning-text);
113
-
114
- @include text-emphasis-variant('.text-danger', $state-danger-text);
115
-
116
- // Contextual backgrounds
117
- // For now we'll leave these alongside the text classes until v4 when we can
118
- // safely shift things around (per SemVer rules).
119
- .bg-primary {
120
- // Given the contrast here, this is the only class to have its color inverted
121
- // automatically.
122
- color: #fff;
123
- }
124
- @include bg-variant('.bg-primary', $brand-primary);
125
-
126
- @include bg-variant('.bg-success', $state-success-bg);
127
-
128
- @include bg-variant('.bg-info', $state-info-bg);
129
-
130
- @include bg-variant('.bg-warning', $state-warning-bg);
131
-
132
- @include bg-variant('.bg-danger', $state-danger-bg);
133
-
134
-
135
- // Page header
136
- // -------------------------
137
-
138
- .page-header {
139
- padding-bottom: (($line-height-computed / 2) - 1);
140
- margin: ($line-height-computed * 2) 0 $line-height-computed;
141
- border-bottom: 1px solid $page-header-border-color;
142
- }
143
-
144
-
145
- // Lists
146
- // -------------------------
147
-
148
- // Unordered and Ordered lists
149
- ul,
150
- ol {
151
- margin-top: 0;
152
- margin-bottom: ($line-height-computed / 2);
153
- ul,
154
- ol {
155
- margin-bottom: 0;
156
- }
157
- }
158
-
159
- // List options
160
-
161
- // [converter] extracted from `.list-unstyled` for libsass compatibility
162
- @mixin list-unstyled {
163
- padding-left: 0;
164
- list-style: none;
165
- }
166
- // [converter] extracted as `@mixin list-unstyled` for libsass compatibility
167
- .list-unstyled {
168
- @include list-unstyled;
169
- }
170
-
171
-
172
- // Inline turns list items into inline-block
173
- .list-inline {
174
- @include list-unstyled;
175
- margin-left: -5px;
176
-
177
- > li {
178
- display: inline-block;
179
- padding-right: 5px;
180
- padding-left: 5px;
181
- }
182
- }
183
-
184
- // Description Lists
185
- dl {
186
- margin-top: 0; // Remove browser default
187
- margin-bottom: $line-height-computed;
188
- }
189
- dt,
190
- dd {
191
- line-height: $line-height-base;
192
- }
193
- dt {
194
- font-weight: 700;
195
- }
196
- dd {
197
- margin-left: 0; // Undo browser default
198
- }
199
-
200
- // Horizontal description lists
201
- //
202
- // Defaults to being stacked without any of the below styles applied, until the
203
- // grid breakpoint is reached (default of ~768px).
204
-
205
- .dl-horizontal {
206
- dd {
207
- @include clearfix; // Clear the floated `dt` if an empty `dd` is present
208
- }
209
-
210
- @media (min-width: $dl-horizontal-breakpoint) {
211
- dt {
212
- float: left;
213
- width: ($dl-horizontal-offset - 20);
214
- clear: left;
215
- text-align: right;
216
- @include text-overflow;
217
- }
218
- dd {
219
- margin-left: $dl-horizontal-offset;
220
- }
221
- }
222
- }
223
-
224
-
225
- // Misc
226
- // -------------------------
227
-
228
- // Abbreviations and acronyms
229
- abbr[title] {
230
- cursor: help;
231
- }
232
-
233
- .initialism {
234
- font-size: 90%;
235
- @extend .text-uppercase;
236
- }
237
-
238
- // Blockquotes
239
- blockquote {
240
- padding: ($line-height-computed / 2) $line-height-computed;
241
- margin: 0 0 $line-height-computed;
242
- font-size: $blockquote-font-size;
243
- border-left: 5px solid $blockquote-border-color;
244
-
245
- p,
246
- ul,
247
- ol {
248
- &:last-child {
249
- margin-bottom: 0;
250
- }
251
- }
252
-
253
- // Note: Deprecated small and .small as of v3.1.0
254
- // Context: https://github.com/twbs/bootstrap/issues/11660
255
- footer,
256
- small,
257
- .small {
258
- display: block;
259
- font-size: 80%; // back to default font-size
260
- line-height: $line-height-base;
261
- color: $blockquote-small-color;
262
-
263
- &:before {
264
- content: "\2014 \00A0"; // em dash, nbsp
265
- }
266
- }
267
- }
268
-
269
- // Opposite alignment of blockquote
270
- //
271
- // Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.
272
- .blockquote-reverse,
273
- blockquote.pull-right {
274
- padding-right: 15px;
275
- padding-left: 0;
276
- text-align: right;
277
- border-right: 5px solid $blockquote-border-color;
278
- border-left: 0;
279
-
280
- // Account for citation
281
- footer,
282
- small,
283
- .small {
284
- &:before { content: ""; }
285
- &:after {
286
- content: "\00A0 \2014"; // nbsp, em dash
287
- }
288
- }
289
- }
290
-
291
- // Addresses
292
- address {
293
- margin-bottom: $line-height-computed;
294
- font-style: normal;
295
- line-height: $line-height-base;
296
- }
@@ -1,55 +0,0 @@
1
- //
2
- // Utility classes
3
- // --------------------------------------------------
4
-
5
-
6
- // Floats
7
- // -------------------------
8
-
9
- .clearfix {
10
- @include clearfix;
11
- }
12
- .center-block {
13
- @include center-block;
14
- }
15
- .pull-right {
16
- float: right !important;
17
- }
18
- .pull-left {
19
- float: left !important;
20
- }
21
-
22
-
23
- // Toggling content
24
- // -------------------------
25
-
26
- // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
27
- .hide {
28
- display: none !important;
29
- }
30
- .show {
31
- display: block !important;
32
- }
33
- .invisible {
34
- visibility: hidden;
35
- }
36
- .text-hide {
37
- @include text-hide;
38
- }
39
-
40
-
41
- // Hide from screenreaders and browsers
42
- //
43
- // Credit: HTML5 Boilerplate
44
-
45
- .hidden {
46
- display: none !important;
47
- }
48
-
49
-
50
- // For Affix plugin
51
- // -------------------------
52
-
53
- .affix {
54
- position: fixed;
55
- }