rails_comments 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +28 -0
- data/Rakefile +8 -0
- data/app/assets/builds/application.js +5 -0
- data/app/assets/builds/application.js.map +7 -0
- data/app/assets/builds/rails_comments.css +576 -0
- data/app/assets/config/rails_comments_manifest.js +1 -0
- data/app/assets/stylesheets/rails_comments.tailwind.css +13 -0
- data/app/controllers/rails_comments/application_controller.rb +4 -0
- data/app/controllers/rails_comments/home_controller.rb +4 -0
- data/app/helpers/rails_comments/application_helper.rb +4 -0
- data/app/helpers/rails_comments/home_helper.rb +4 -0
- data/app/javascript/application.js +2 -0
- data/app/jobs/rails_comments/application_job.rb +4 -0
- data/app/mailers/rails_comments/application_mailer.rb +6 -0
- data/app/models/rails_comments/application_record.rb +5 -0
- data/app/views/layouts/rails_comments/application.html.erb +16 -0
- data/app/views/rails_comments/home/index.html.erb +1 -0
- data/config/routes.rb +3 -0
- data/lib/rails_comments/engine.rb +5 -0
- data/lib/rails_comments/version.rb +3 -0
- data/lib/rails_comments.rb +6 -0
- data/lib/tasks/rails_comments_tasks.rake +4 -0
- metadata +83 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 674c04d5f25860ffc0a383b0a8194ca90a3c4b68e5bfb3b9043191279edd2fe6
|
4
|
+
data.tar.gz: 5eee359bcbb96370c9f6f082becea877296f1fa2ebbe945fd303448afdf98e14
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ab1c948480265660a8457583d273dd5d90fbe1366f873d503a9c905283169f94c862ba67564be8da8762620bea67f3489569dc3651fd8d03916878f0fef8ebef
|
7
|
+
data.tar.gz: 6a0ded0c32cc5a976174d3490496fb49c40fc588e110bdb2f49ba9afd68e3848d72d3ade73513a9d69f13581477dfe39f60831454b99335dfcecd5150561dac1
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2022 Adrian
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# RailsComments
|
2
|
+
Short description and motivation.
|
3
|
+
|
4
|
+
## Usage
|
5
|
+
How to use my plugin.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem "rails_comments"
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
```
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
```bash
|
21
|
+
$ gem install rails_comments
|
22
|
+
```
|
23
|
+
|
24
|
+
## Contributing
|
25
|
+
Contribution directions go here.
|
26
|
+
|
27
|
+
## License
|
28
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,576 @@
|
|
1
|
+
/*
|
2
|
+
! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com
|
3
|
+
*/
|
4
|
+
|
5
|
+
/*
|
6
|
+
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
7
|
+
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
8
|
+
*/
|
9
|
+
|
10
|
+
*,
|
11
|
+
::before,
|
12
|
+
::after {
|
13
|
+
box-sizing: border-box;
|
14
|
+
/* 1 */
|
15
|
+
border-width: 0;
|
16
|
+
/* 2 */
|
17
|
+
border-style: solid;
|
18
|
+
/* 2 */
|
19
|
+
border-color: #e5e7eb;
|
20
|
+
/* 2 */
|
21
|
+
}
|
22
|
+
|
23
|
+
::before,
|
24
|
+
::after {
|
25
|
+
--tw-content: '';
|
26
|
+
}
|
27
|
+
|
28
|
+
/*
|
29
|
+
1. Use a consistent sensible line-height in all browsers.
|
30
|
+
2. Prevent adjustments of font size after orientation changes in iOS.
|
31
|
+
3. Use a more readable tab size.
|
32
|
+
4. Use the user's configured `sans` font-family by default.
|
33
|
+
5. Use the user's configured `sans` font-feature-settings by default.
|
34
|
+
*/
|
35
|
+
|
36
|
+
html {
|
37
|
+
line-height: 1.5;
|
38
|
+
/* 1 */
|
39
|
+
-webkit-text-size-adjust: 100%;
|
40
|
+
/* 2 */
|
41
|
+
-moz-tab-size: 4;
|
42
|
+
/* 3 */
|
43
|
+
-o-tab-size: 4;
|
44
|
+
tab-size: 4;
|
45
|
+
/* 3 */
|
46
|
+
font-family: Inter var, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
47
|
+
/* 4 */
|
48
|
+
font-feature-settings: normal;
|
49
|
+
/* 5 */
|
50
|
+
}
|
51
|
+
|
52
|
+
/*
|
53
|
+
1. Remove the margin in all browsers.
|
54
|
+
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
|
55
|
+
*/
|
56
|
+
|
57
|
+
body {
|
58
|
+
margin: 0;
|
59
|
+
/* 1 */
|
60
|
+
line-height: inherit;
|
61
|
+
/* 2 */
|
62
|
+
}
|
63
|
+
|
64
|
+
/*
|
65
|
+
1. Add the correct height in Firefox.
|
66
|
+
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
67
|
+
3. Ensure horizontal rules are visible by default.
|
68
|
+
*/
|
69
|
+
|
70
|
+
hr {
|
71
|
+
height: 0;
|
72
|
+
/* 1 */
|
73
|
+
color: inherit;
|
74
|
+
/* 2 */
|
75
|
+
border-top-width: 1px;
|
76
|
+
/* 3 */
|
77
|
+
}
|
78
|
+
|
79
|
+
/*
|
80
|
+
Add the correct text decoration in Chrome, Edge, and Safari.
|
81
|
+
*/
|
82
|
+
|
83
|
+
abbr:where([title]) {
|
84
|
+
-webkit-text-decoration: underline dotted;
|
85
|
+
text-decoration: underline dotted;
|
86
|
+
}
|
87
|
+
|
88
|
+
/*
|
89
|
+
Remove the default font size and weight for headings.
|
90
|
+
*/
|
91
|
+
|
92
|
+
h1,
|
93
|
+
h2,
|
94
|
+
h3,
|
95
|
+
h4,
|
96
|
+
h5,
|
97
|
+
h6 {
|
98
|
+
font-size: inherit;
|
99
|
+
font-weight: inherit;
|
100
|
+
}
|
101
|
+
|
102
|
+
/*
|
103
|
+
Reset links to optimize for opt-in styling instead of opt-out.
|
104
|
+
*/
|
105
|
+
|
106
|
+
a {
|
107
|
+
color: inherit;
|
108
|
+
text-decoration: inherit;
|
109
|
+
}
|
110
|
+
|
111
|
+
/*
|
112
|
+
Add the correct font weight in Edge and Safari.
|
113
|
+
*/
|
114
|
+
|
115
|
+
b,
|
116
|
+
strong {
|
117
|
+
font-weight: bolder;
|
118
|
+
}
|
119
|
+
|
120
|
+
/*
|
121
|
+
1. Use the user's configured `mono` font family by default.
|
122
|
+
2. Correct the odd `em` font sizing in all browsers.
|
123
|
+
*/
|
124
|
+
|
125
|
+
code,
|
126
|
+
kbd,
|
127
|
+
samp,
|
128
|
+
pre {
|
129
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
130
|
+
/* 1 */
|
131
|
+
font-size: 1em;
|
132
|
+
/* 2 */
|
133
|
+
}
|
134
|
+
|
135
|
+
/*
|
136
|
+
Add the correct font size in all browsers.
|
137
|
+
*/
|
138
|
+
|
139
|
+
small {
|
140
|
+
font-size: 80%;
|
141
|
+
}
|
142
|
+
|
143
|
+
/*
|
144
|
+
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
|
145
|
+
*/
|
146
|
+
|
147
|
+
sub,
|
148
|
+
sup {
|
149
|
+
font-size: 75%;
|
150
|
+
line-height: 0;
|
151
|
+
position: relative;
|
152
|
+
vertical-align: baseline;
|
153
|
+
}
|
154
|
+
|
155
|
+
sub {
|
156
|
+
bottom: -0.25em;
|
157
|
+
}
|
158
|
+
|
159
|
+
sup {
|
160
|
+
top: -0.5em;
|
161
|
+
}
|
162
|
+
|
163
|
+
/*
|
164
|
+
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
165
|
+
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
166
|
+
3. Remove gaps between table borders by default.
|
167
|
+
*/
|
168
|
+
|
169
|
+
table {
|
170
|
+
text-indent: 0;
|
171
|
+
/* 1 */
|
172
|
+
border-color: inherit;
|
173
|
+
/* 2 */
|
174
|
+
border-collapse: collapse;
|
175
|
+
/* 3 */
|
176
|
+
}
|
177
|
+
|
178
|
+
/*
|
179
|
+
1. Change the font styles in all browsers.
|
180
|
+
2. Remove the margin in Firefox and Safari.
|
181
|
+
3. Remove default padding in all browsers.
|
182
|
+
*/
|
183
|
+
|
184
|
+
button,
|
185
|
+
input,
|
186
|
+
optgroup,
|
187
|
+
select,
|
188
|
+
textarea {
|
189
|
+
font-family: inherit;
|
190
|
+
/* 1 */
|
191
|
+
font-size: 100%;
|
192
|
+
/* 1 */
|
193
|
+
font-weight: inherit;
|
194
|
+
/* 1 */
|
195
|
+
line-height: inherit;
|
196
|
+
/* 1 */
|
197
|
+
color: inherit;
|
198
|
+
/* 1 */
|
199
|
+
margin: 0;
|
200
|
+
/* 2 */
|
201
|
+
padding: 0;
|
202
|
+
/* 3 */
|
203
|
+
}
|
204
|
+
|
205
|
+
/*
|
206
|
+
Remove the inheritance of text transform in Edge and Firefox.
|
207
|
+
*/
|
208
|
+
|
209
|
+
button,
|
210
|
+
select {
|
211
|
+
text-transform: none;
|
212
|
+
}
|
213
|
+
|
214
|
+
/*
|
215
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
216
|
+
2. Remove default button styles.
|
217
|
+
*/
|
218
|
+
|
219
|
+
button,
|
220
|
+
[type='button'],
|
221
|
+
[type='reset'],
|
222
|
+
[type='submit'] {
|
223
|
+
-webkit-appearance: button;
|
224
|
+
/* 1 */
|
225
|
+
background-color: transparent;
|
226
|
+
/* 2 */
|
227
|
+
background-image: none;
|
228
|
+
/* 2 */
|
229
|
+
}
|
230
|
+
|
231
|
+
/*
|
232
|
+
Use the modern Firefox focus style for all focusable elements.
|
233
|
+
*/
|
234
|
+
|
235
|
+
:-moz-focusring {
|
236
|
+
outline: auto;
|
237
|
+
}
|
238
|
+
|
239
|
+
/*
|
240
|
+
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
241
|
+
*/
|
242
|
+
|
243
|
+
:-moz-ui-invalid {
|
244
|
+
box-shadow: none;
|
245
|
+
}
|
246
|
+
|
247
|
+
/*
|
248
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
249
|
+
*/
|
250
|
+
|
251
|
+
progress {
|
252
|
+
vertical-align: baseline;
|
253
|
+
}
|
254
|
+
|
255
|
+
/*
|
256
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
257
|
+
*/
|
258
|
+
|
259
|
+
::-webkit-inner-spin-button,
|
260
|
+
::-webkit-outer-spin-button {
|
261
|
+
height: auto;
|
262
|
+
}
|
263
|
+
|
264
|
+
/*
|
265
|
+
1. Correct the odd appearance in Chrome and Safari.
|
266
|
+
2. Correct the outline style in Safari.
|
267
|
+
*/
|
268
|
+
|
269
|
+
[type='search'] {
|
270
|
+
-webkit-appearance: textfield;
|
271
|
+
/* 1 */
|
272
|
+
outline-offset: -2px;
|
273
|
+
/* 2 */
|
274
|
+
}
|
275
|
+
|
276
|
+
/*
|
277
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
278
|
+
*/
|
279
|
+
|
280
|
+
::-webkit-search-decoration {
|
281
|
+
-webkit-appearance: none;
|
282
|
+
}
|
283
|
+
|
284
|
+
/*
|
285
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
286
|
+
2. Change font properties to `inherit` in Safari.
|
287
|
+
*/
|
288
|
+
|
289
|
+
::-webkit-file-upload-button {
|
290
|
+
-webkit-appearance: button;
|
291
|
+
/* 1 */
|
292
|
+
font: inherit;
|
293
|
+
/* 2 */
|
294
|
+
}
|
295
|
+
|
296
|
+
/*
|
297
|
+
Add the correct display in Chrome and Safari.
|
298
|
+
*/
|
299
|
+
|
300
|
+
summary {
|
301
|
+
display: list-item;
|
302
|
+
}
|
303
|
+
|
304
|
+
/*
|
305
|
+
Removes the default spacing and border for appropriate elements.
|
306
|
+
*/
|
307
|
+
|
308
|
+
blockquote,
|
309
|
+
dl,
|
310
|
+
dd,
|
311
|
+
h1,
|
312
|
+
h2,
|
313
|
+
h3,
|
314
|
+
h4,
|
315
|
+
h5,
|
316
|
+
h6,
|
317
|
+
hr,
|
318
|
+
figure,
|
319
|
+
p,
|
320
|
+
pre {
|
321
|
+
margin: 0;
|
322
|
+
}
|
323
|
+
|
324
|
+
fieldset {
|
325
|
+
margin: 0;
|
326
|
+
padding: 0;
|
327
|
+
}
|
328
|
+
|
329
|
+
legend {
|
330
|
+
padding: 0;
|
331
|
+
}
|
332
|
+
|
333
|
+
ol,
|
334
|
+
ul,
|
335
|
+
menu {
|
336
|
+
list-style: none;
|
337
|
+
margin: 0;
|
338
|
+
padding: 0;
|
339
|
+
}
|
340
|
+
|
341
|
+
/*
|
342
|
+
Prevent resizing textareas horizontally by default.
|
343
|
+
*/
|
344
|
+
|
345
|
+
textarea {
|
346
|
+
resize: vertical;
|
347
|
+
}
|
348
|
+
|
349
|
+
/*
|
350
|
+
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
351
|
+
2. Set the default placeholder color to the user's configured gray 400 color.
|
352
|
+
*/
|
353
|
+
|
354
|
+
input::-moz-placeholder, textarea::-moz-placeholder {
|
355
|
+
opacity: 1;
|
356
|
+
/* 1 */
|
357
|
+
color: #9ca3af;
|
358
|
+
/* 2 */
|
359
|
+
}
|
360
|
+
|
361
|
+
input::placeholder,
|
362
|
+
textarea::placeholder {
|
363
|
+
opacity: 1;
|
364
|
+
/* 1 */
|
365
|
+
color: #9ca3af;
|
366
|
+
/* 2 */
|
367
|
+
}
|
368
|
+
|
369
|
+
/*
|
370
|
+
Set the default cursor for buttons.
|
371
|
+
*/
|
372
|
+
|
373
|
+
button,
|
374
|
+
[role="button"] {
|
375
|
+
cursor: pointer;
|
376
|
+
}
|
377
|
+
|
378
|
+
/*
|
379
|
+
Make sure disabled buttons don't get the pointer cursor.
|
380
|
+
*/
|
381
|
+
|
382
|
+
:disabled {
|
383
|
+
cursor: default;
|
384
|
+
}
|
385
|
+
|
386
|
+
/*
|
387
|
+
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
388
|
+
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
389
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
390
|
+
*/
|
391
|
+
|
392
|
+
img,
|
393
|
+
svg,
|
394
|
+
video,
|
395
|
+
canvas,
|
396
|
+
audio,
|
397
|
+
iframe,
|
398
|
+
embed,
|
399
|
+
object {
|
400
|
+
display: block;
|
401
|
+
/* 1 */
|
402
|
+
vertical-align: middle;
|
403
|
+
/* 2 */
|
404
|
+
}
|
405
|
+
|
406
|
+
/*
|
407
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
408
|
+
*/
|
409
|
+
|
410
|
+
img,
|
411
|
+
video {
|
412
|
+
max-width: 100%;
|
413
|
+
height: auto;
|
414
|
+
}
|
415
|
+
|
416
|
+
/* Make elements with the HTML hidden attribute stay hidden by default */
|
417
|
+
|
418
|
+
[hidden] {
|
419
|
+
display: none;
|
420
|
+
}
|
421
|
+
|
422
|
+
*, ::before, ::after {
|
423
|
+
--tw-border-spacing-x: 0;
|
424
|
+
--tw-border-spacing-y: 0;
|
425
|
+
--tw-translate-x: 0;
|
426
|
+
--tw-translate-y: 0;
|
427
|
+
--tw-rotate: 0;
|
428
|
+
--tw-skew-x: 0;
|
429
|
+
--tw-skew-y: 0;
|
430
|
+
--tw-scale-x: 1;
|
431
|
+
--tw-scale-y: 1;
|
432
|
+
--tw-pan-x: ;
|
433
|
+
--tw-pan-y: ;
|
434
|
+
--tw-pinch-zoom: ;
|
435
|
+
--tw-scroll-snap-strictness: proximity;
|
436
|
+
--tw-ordinal: ;
|
437
|
+
--tw-slashed-zero: ;
|
438
|
+
--tw-numeric-figure: ;
|
439
|
+
--tw-numeric-spacing: ;
|
440
|
+
--tw-numeric-fraction: ;
|
441
|
+
--tw-ring-inset: ;
|
442
|
+
--tw-ring-offset-width: 0px;
|
443
|
+
--tw-ring-offset-color: #fff;
|
444
|
+
--tw-ring-color: rgb(59 130 246 / 0.5);
|
445
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
446
|
+
--tw-ring-shadow: 0 0 #0000;
|
447
|
+
--tw-shadow: 0 0 #0000;
|
448
|
+
--tw-shadow-colored: 0 0 #0000;
|
449
|
+
--tw-blur: ;
|
450
|
+
--tw-brightness: ;
|
451
|
+
--tw-contrast: ;
|
452
|
+
--tw-grayscale: ;
|
453
|
+
--tw-hue-rotate: ;
|
454
|
+
--tw-invert: ;
|
455
|
+
--tw-saturate: ;
|
456
|
+
--tw-sepia: ;
|
457
|
+
--tw-drop-shadow: ;
|
458
|
+
--tw-backdrop-blur: ;
|
459
|
+
--tw-backdrop-brightness: ;
|
460
|
+
--tw-backdrop-contrast: ;
|
461
|
+
--tw-backdrop-grayscale: ;
|
462
|
+
--tw-backdrop-hue-rotate: ;
|
463
|
+
--tw-backdrop-invert: ;
|
464
|
+
--tw-backdrop-opacity: ;
|
465
|
+
--tw-backdrop-saturate: ;
|
466
|
+
--tw-backdrop-sepia: ;
|
467
|
+
}
|
468
|
+
|
469
|
+
::backdrop {
|
470
|
+
--tw-border-spacing-x: 0;
|
471
|
+
--tw-border-spacing-y: 0;
|
472
|
+
--tw-translate-x: 0;
|
473
|
+
--tw-translate-y: 0;
|
474
|
+
--tw-rotate: 0;
|
475
|
+
--tw-skew-x: 0;
|
476
|
+
--tw-skew-y: 0;
|
477
|
+
--tw-scale-x: 1;
|
478
|
+
--tw-scale-y: 1;
|
479
|
+
--tw-pan-x: ;
|
480
|
+
--tw-pan-y: ;
|
481
|
+
--tw-pinch-zoom: ;
|
482
|
+
--tw-scroll-snap-strictness: proximity;
|
483
|
+
--tw-ordinal: ;
|
484
|
+
--tw-slashed-zero: ;
|
485
|
+
--tw-numeric-figure: ;
|
486
|
+
--tw-numeric-spacing: ;
|
487
|
+
--tw-numeric-fraction: ;
|
488
|
+
--tw-ring-inset: ;
|
489
|
+
--tw-ring-offset-width: 0px;
|
490
|
+
--tw-ring-offset-color: #fff;
|
491
|
+
--tw-ring-color: rgb(59 130 246 / 0.5);
|
492
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
493
|
+
--tw-ring-shadow: 0 0 #0000;
|
494
|
+
--tw-shadow: 0 0 #0000;
|
495
|
+
--tw-shadow-colored: 0 0 #0000;
|
496
|
+
--tw-blur: ;
|
497
|
+
--tw-brightness: ;
|
498
|
+
--tw-contrast: ;
|
499
|
+
--tw-grayscale: ;
|
500
|
+
--tw-hue-rotate: ;
|
501
|
+
--tw-invert: ;
|
502
|
+
--tw-saturate: ;
|
503
|
+
--tw-sepia: ;
|
504
|
+
--tw-drop-shadow: ;
|
505
|
+
--tw-backdrop-blur: ;
|
506
|
+
--tw-backdrop-brightness: ;
|
507
|
+
--tw-backdrop-contrast: ;
|
508
|
+
--tw-backdrop-grayscale: ;
|
509
|
+
--tw-backdrop-hue-rotate: ;
|
510
|
+
--tw-backdrop-invert: ;
|
511
|
+
--tw-backdrop-opacity: ;
|
512
|
+
--tw-backdrop-saturate: ;
|
513
|
+
--tw-backdrop-sepia: ;
|
514
|
+
}
|
515
|
+
|
516
|
+
.container {
|
517
|
+
width: 100%;
|
518
|
+
}
|
519
|
+
|
520
|
+
@media (min-width: 640px) {
|
521
|
+
.container {
|
522
|
+
max-width: 640px;
|
523
|
+
}
|
524
|
+
}
|
525
|
+
|
526
|
+
@media (min-width: 768px) {
|
527
|
+
.container {
|
528
|
+
max-width: 768px;
|
529
|
+
}
|
530
|
+
}
|
531
|
+
|
532
|
+
@media (min-width: 1024px) {
|
533
|
+
.container {
|
534
|
+
max-width: 1024px;
|
535
|
+
}
|
536
|
+
}
|
537
|
+
|
538
|
+
@media (min-width: 1280px) {
|
539
|
+
.container {
|
540
|
+
max-width: 1280px;
|
541
|
+
}
|
542
|
+
}
|
543
|
+
|
544
|
+
@media (min-width: 1536px) {
|
545
|
+
.container {
|
546
|
+
max-width: 1536px;
|
547
|
+
}
|
548
|
+
}
|
549
|
+
|
550
|
+
.mx-auto {
|
551
|
+
margin-left: auto;
|
552
|
+
margin-right: auto;
|
553
|
+
}
|
554
|
+
|
555
|
+
.mt-28 {
|
556
|
+
margin-top: 7rem;
|
557
|
+
}
|
558
|
+
|
559
|
+
.flex {
|
560
|
+
display: flex;
|
561
|
+
}
|
562
|
+
|
563
|
+
.px-5 {
|
564
|
+
padding-left: 1.25rem;
|
565
|
+
padding-right: 1.25rem;
|
566
|
+
}
|
567
|
+
|
568
|
+
/*
|
569
|
+
|
570
|
+
@layer components {
|
571
|
+
.btn-primary {
|
572
|
+
@apply py-2 px-4 bg-blue-200;
|
573
|
+
}
|
574
|
+
}
|
575
|
+
|
576
|
+
*/
|
@@ -0,0 +1 @@
|
|
1
|
+
//= link_tree ../builds
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>RailsComments</title>
|
5
|
+
<%= csrf_meta_tags %>
|
6
|
+
<%= csp_meta_tag %>
|
7
|
+
|
8
|
+
<%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>
|
9
|
+
<%= stylesheet_link_tag "rails_comments", "data-turbo-track": "reload" %>
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
<main class="container mx-auto mt-28 px-5 flex">
|
13
|
+
<%= yield %>
|
14
|
+
</main>
|
15
|
+
</body>
|
16
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
hey
|
data/config/routes.rb
ADDED
metadata
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails_comments
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Adrian Marin
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-12-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 7.0.4
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 7.0.4
|
27
|
+
description: RailsComments is a modern comments engine for Ruby on Rails.
|
28
|
+
email:
|
29
|
+
- adrian@adrianthedev.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- MIT-LICENSE
|
35
|
+
- README.md
|
36
|
+
- Rakefile
|
37
|
+
- app/assets/builds/application.js
|
38
|
+
- app/assets/builds/application.js.map
|
39
|
+
- app/assets/builds/rails_comments.css
|
40
|
+
- app/assets/config/rails_comments_manifest.js
|
41
|
+
- app/assets/stylesheets/rails_comments.tailwind.css
|
42
|
+
- app/controllers/rails_comments/application_controller.rb
|
43
|
+
- app/controllers/rails_comments/home_controller.rb
|
44
|
+
- app/helpers/rails_comments/application_helper.rb
|
45
|
+
- app/helpers/rails_comments/home_helper.rb
|
46
|
+
- app/javascript/application.js
|
47
|
+
- app/jobs/rails_comments/application_job.rb
|
48
|
+
- app/mailers/rails_comments/application_mailer.rb
|
49
|
+
- app/models/rails_comments/application_record.rb
|
50
|
+
- app/views/layouts/rails_comments/application.html.erb
|
51
|
+
- app/views/rails_comments/home/index.html.erb
|
52
|
+
- config/routes.rb
|
53
|
+
- lib/rails_comments.rb
|
54
|
+
- lib/rails_comments/engine.rb
|
55
|
+
- lib/rails_comments/version.rb
|
56
|
+
- lib/tasks/rails_comments_tasks.rake
|
57
|
+
homepage: https://avohq.io
|
58
|
+
licenses:
|
59
|
+
- MIT
|
60
|
+
metadata:
|
61
|
+
homepage_uri: https://avohq.io
|
62
|
+
source_code_uri: https://github.com/avo-hq/rails_comments
|
63
|
+
changelog_uri: https://github.com/avo-hq/rails_comments
|
64
|
+
post_install_message:
|
65
|
+
rdoc_options: []
|
66
|
+
require_paths:
|
67
|
+
- lib
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0'
|
73
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
requirements: []
|
79
|
+
rubygems_version: 3.3.3
|
80
|
+
signing_key:
|
81
|
+
specification_version: 4
|
82
|
+
summary: RailsComments is a modern comments engine for Ruby on Rails.
|
83
|
+
test_files: []
|