bullet_train-themes-light 1.0.21 → 1.0.24

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce02b721661492cb0ba4916e87466ac0381adb3142ea3da1226fec4527bfd4c2
4
- data.tar.gz: 9b69e69f69f24d322a47931c64681bdaca89362922e53d7feaacf4906eb86b02
3
+ metadata.gz: 62876938f237b59152f1a3615cfa11eab6f99b5a8f019a2ea5ce2f474bddfd93
4
+ data.tar.gz: a60919cb5fa7ddde111e579b2dcda6153a18af2ae2f559e5ccbf8091eb076b12
5
5
  SHA512:
6
- metadata.gz: 3bde40fadcb848f8cc2c557bed56f39dbeed2e016898e1680baccdbac4fe4644bf673a96abee5c327bc0de80cdfb830c8b42ed968755a939f269217e3802f4cf
7
- data.tar.gz: cb17c2356330035ef0c343d9404337507259f0d137e70459838c1f81878bff0bd84f09d2beca3b2456c2199002bbd189f2b2f83572bee903abc00d129f77d9c4
6
+ metadata.gz: bb63d3b24365d86bef9efc547a94e2fd32baaea77db3d8875efeb8e782ab042540db70f3ca38899470868b05ffc4ff27e979aeeda5feeacb98fb8816ff37fe6c
7
+ data.tar.gz: 84daffe16622fb1279926d52e32c25ba9b4b49b0243f1b0276095029dfb11ee4d67daec0f8d9621367b688e298ff1a0480500faf956f6400e48b720bcd25bd5d
@@ -194,10 +194,8 @@
194
194
  @apply bg-darkPrimary-800 border-darkPrimary-900 !important;
195
195
  }
196
196
 
197
- .trix-content {
198
- a[href^="bullettrain://"] {
199
- @apply bg-darkPrimary-500 text-white;
200
- }
197
+ .trix-content a[href^="bullettrain://"] {
198
+ @apply text-white bg-darkPrimary-500;
201
199
  }
202
200
 
203
201
  /* CKEditor */
@@ -1,12 +1,21 @@
1
1
  <% new_message ||= false %>
2
- <% current_user_message = message.membership.user == current_user %>
2
+ <% current_author = defined?(current_user) ? current_user : send(BulletTrain::Conversations.current_participant_helper_method) %>
3
+ <% current_user_message = message.author == current_author %>
3
4
  <% avatar = capture do %>
4
- <img src="<%= membership_profile_photo_url(message.membership) %>" title="<%= message.membership.name %>" alt="<%= message.membership.name %>" class="w-6 h-6 rounded-full <%= current_user_message ? 'order-2' : 'order-1' %>">
5
+ <% if message.membership %>
6
+ <img src="<%= membership_profile_photo_url(message.membership) %>" title="<%= message.user_name %>" alt="<%= message.user_name %>" class="w-6 h-6 rounded-full <%= current_user_message ? 'order-2' : 'order-1' %>">
7
+ <% elsif message.participant %>
8
+ <div class="<%= current_user_message ? 'order-2' : 'order-1' %>">
9
+ <% if BulletTrain::Conversations.respond_to?(:participant_avatar_partial) && BulletTrain::Conversations.participant_avatar_partial %>
10
+ <%= render BulletTrain::Conversations.participant_avatar_partial, participant: message.participant %>
11
+ <% end %>
12
+ </div>
13
+ <% end %>
5
14
  <% end %>
6
15
  <% next_message ||= message.next_message %>
7
16
 
8
17
  <%# A message series is a series of messages by the same user, each message within 5 minutes of the previous message. It has nothing to do with replies and message threads %>
9
- <% next_message_in_series = (message.user == next_message&.user) && (message.created_at > next_message.created_at - 5.minutes) && (message.parent_message_id == next_message&.parent_message_id || message.id == next_message.parent_message_id)%>
18
+ <% next_message_in_series = (message.author == next_message&.author) && (message.created_at > next_message.created_at - 5.minutes) && (message.parent_message_id == next_message&.parent_message_id || message.id == next_message.parent_message_id)%>
10
19
  <% if next_message_in_series %>
11
20
  <% avatar = nil %>
12
21
  <% end %>
@@ -28,7 +37,7 @@
28
37
  <% timestamp = next_message_in_series || show_as_thread ? '' : time_ago_in_words(message.created_at) + " ago" %>
29
38
 
30
39
  <% threaded_message = message.threaded? %>
31
- <% thread_started_by_current_user = message.thread_origin_user == current_user %>
40
+ <% thread_started_by_current_user = message.thread_origin_user == current_author %>
32
41
  <% last_message_in_thread = !placeholder_message && threaded_message && (message.next_message.nil? || message.next_message.thread_id != message.thread_id)%>
33
42
  <% out_of_thread_message = !show_as_thread && threaded_message && message.reply? && message.previous_message != message.previous_message_in_thread %>
34
43
  <% has_replies = message.replies.any? && message.next_message == message.next_message_in_thread %>
@@ -43,7 +52,7 @@
43
52
  <div class="chat-message"
44
53
  <% unless show_as_thread %>
45
54
  data-reply-target="message"
46
- data-user="<%= message.membership.label_string %>"
55
+ data-user="<%= message.author.label_string %>"
47
56
  data-message-id="<%= message.parent_message_id || message.id %>"
48
57
  data-action="mouseleave->reply#hideReplyButton"
49
58
  <% end %>
@@ -102,7 +111,7 @@
102
111
 
103
112
  <div class="flex flex-grow order-1 <%= current_user_message ? 'justify-end items-end pr-8' : 'justify-start items-start pl-8' %> <%= 'mb-3' unless next_message_in_series %>">
104
113
  <div class="<%= show_as_thread ? 'text-gray-400' : 'text-gray-300' %> text-sm">
105
- <strong><%= message.user.name %></strong>
114
+ <strong><%= message.author.name %></strong>
106
115
  <%= timestamp %>
107
116
  </div>
108
117
  </div>
@@ -0,0 +1,429 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title>Welcome to <%= t('application.name') %>!</title>
7
+
8
+ <%= stylesheet_link_tag 'application', media: 'all'%>
9
+ <%= stylesheet_link_tag 'application.mailer.light', media: 'all' %>
10
+
11
+ <% # TODO replace with Tailwind CSS styles. %>
12
+ <style type="text/css">
13
+ *:not(br):not(tr):not(html) {
14
+ font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
15
+ box-sizing: border-box;
16
+ }
17
+
18
+ body {
19
+ width: 100% !important;
20
+ height: 100%;
21
+ margin: 0;
22
+ line-height: 1.4;
23
+ background-color: #F6F7F8;
24
+ color: #3E4B5B;
25
+ font-size: 16px;
26
+ -webkit-text-size-adjust: none;
27
+ }
28
+
29
+ p,
30
+ ul,
31
+ ol,
32
+ blockquote {
33
+ line-height: 1.4;
34
+ text-align: left;
35
+ }
36
+
37
+ a {
38
+ color: #047BF8;
39
+ }
40
+
41
+ a img {
42
+ border: none;
43
+ }
44
+ /* Layout ------------------------------ */
45
+
46
+ .email-wrapper {
47
+ width: 100%;
48
+ margin: 0;
49
+ padding: 0;
50
+ background-color: #F6F7F8;
51
+ }
52
+
53
+ .email-content {
54
+ width: 100%;
55
+ margin: 0;
56
+ padding: 0;
57
+ }
58
+ /* Masthead ----------------------- */
59
+
60
+ .email-masthead {
61
+ padding: 25px 0;
62
+ text-align: center;
63
+ }
64
+
65
+ .email-masthead_logo {
66
+ width: 94px;
67
+ }
68
+
69
+ .email-masthead_name {
70
+ font-size: 16px;
71
+ /*font-weight: bold;*/
72
+ color: #bbbfc3;
73
+ text-decoration: none;
74
+ /*text-shadow: 0 1px 0 white;*/
75
+ }
76
+ /* Body ------------------------------ */
77
+
78
+ .email-body {
79
+ width: 100%;
80
+ margin: 0;
81
+ padding: 0;
82
+ border-top: 1px solid #EDEFF2;
83
+ border-bottom: 1px solid #EDEFF2;
84
+ background-color: #FFFFFF;
85
+
86
+ }
87
+
88
+ .email-body_inner {
89
+ width: 570px;
90
+ margin: 0 auto;
91
+ padding: 0;
92
+ background-color: #FFFFFF;
93
+ }
94
+
95
+ .email-footer {
96
+ width: 570px;
97
+ margin: 0 auto;
98
+ padding: 0;
99
+ text-align: center;
100
+ }
101
+
102
+ .email-footer p {
103
+ color: #AAAAAA;
104
+ }
105
+
106
+ .body-action {
107
+ width: 100%;
108
+ margin: 30px auto;
109
+ padding: 0;
110
+ text-align: center;
111
+ }
112
+
113
+ .body-sub {
114
+ margin-top: 25px;
115
+ padding-top: 25px;
116
+ border-top: 1px solid #EDEFF2;
117
+ }
118
+
119
+ .content-cell {
120
+ padding: 35px;
121
+ }
122
+
123
+ .preheader {
124
+ display: none !important;
125
+ }
126
+ /* Attribute list ------------------------------ */
127
+
128
+ .attributes {
129
+ margin: 0 0 21px;
130
+ }
131
+
132
+ .attributes_content {
133
+ background-color: #EDEFF2;
134
+ padding: 16px;
135
+ }
136
+
137
+ .attributes_item {
138
+ padding: 0;
139
+ }
140
+ /* Related Items ------------------------------ */
141
+
142
+ .related {
143
+ width: 100%;
144
+ margin: 0;
145
+ padding: 25px 0 0 0;
146
+ }
147
+
148
+ .related_item {
149
+ padding: 10px 0;
150
+ color: #3E4B5B;
151
+ font-size: 15px;
152
+ line-height: 18px;
153
+ }
154
+
155
+ .related_item-title {
156
+ display: block;
157
+ margin: .5em 0 0;
158
+ }
159
+
160
+ .related_item-thumb {
161
+ display: block;
162
+ padding-bottom: 10px;
163
+ }
164
+
165
+ .related_heading {
166
+ border-top: 1px solid #EDEFF2;
167
+ text-align: center;
168
+ padding: 25px 0 10px;
169
+ }
170
+ /* Discount Code ------------------------------ */
171
+
172
+ .discount {
173
+ width: 100%;
174
+ margin: 0;
175
+ padding: 24px;
176
+ background-color: #EDEFF2;
177
+ border: 2px dashed #9BA2AB;
178
+ }
179
+
180
+ .discount_heading {
181
+ text-align: center;
182
+ }
183
+
184
+ .discount_body {
185
+ text-align: center;
186
+ font-size: 15px;
187
+ }
188
+ /* Social Icons ------------------------------ */
189
+
190
+ .social {
191
+ width: auto;
192
+ }
193
+
194
+ .social td {
195
+ padding: 0;
196
+ width: auto;
197
+ }
198
+
199
+ .social_icon {
200
+ height: 20px;
201
+ margin: 0 8px 10px 8px;
202
+ padding: 0;
203
+ }
204
+ /* Data table ------------------------------ */
205
+
206
+ .purchase {
207
+ width: 100%;
208
+ margin: 0;
209
+ padding: 35px 0;
210
+ }
211
+
212
+ .purchase_content {
213
+ width: 100%;
214
+ margin: 0;
215
+ padding: 25px 0 0 0;
216
+ }
217
+
218
+ .purchase_item {
219
+ padding: 10px 0;
220
+ color: #3E4B5B;
221
+ font-size: 15px;
222
+ line-height: 18px;
223
+ }
224
+
225
+ .purchase_heading {
226
+ padding-bottom: 8px;
227
+ border-bottom: 1px solid #EDEFF2;
228
+ }
229
+
230
+ .purchase_heading p {
231
+ margin: 0;
232
+ color: #9BA2AB;
233
+ font-size: 12px;
234
+ }
235
+
236
+ .purchase_footer {
237
+ padding-top: 15px;
238
+ border-top: 1px solid #EDEFF2;
239
+ }
240
+
241
+ .purchase_total {
242
+ margin: 0;
243
+ text-align: right;
244
+ /*font-weight: bold;*/
245
+ color: #3E4B5B;
246
+ }
247
+
248
+ .purchase_total--label {
249
+ padding: 0 15px 0 0;
250
+ }
251
+ /* Utilities ------------------------------ */
252
+
253
+ .align-right {
254
+ text-align: right;
255
+ }
256
+
257
+ .align-left {
258
+ text-align: left;
259
+ }
260
+
261
+ .align-center {
262
+ text-align: center;
263
+ }
264
+ /*Media Queries ------------------------------ */
265
+
266
+ @media only screen and (max-width: 600px) {
267
+ .email-body_inner,
268
+ .email-footer {
269
+ width: 100% !important;
270
+ }
271
+ }
272
+
273
+ @media only screen and (max-width: 500px) {
274
+ .button {
275
+ width: 100% !important;
276
+ }
277
+ }
278
+ /* Buttons ------------------------------ */
279
+
280
+ .button {
281
+ background-color: #047BF8;
282
+ border-top: 10px solid #047BF8;
283
+ border-right: 18px solid #047BF8;
284
+ border-bottom: 10px solid #047BF8;
285
+ border-left: 18px solid #047BF8;
286
+ display: inline-block;
287
+ color: #FFF;
288
+ text-decoration: none;
289
+ border-radius: 3px;
290
+ -webkit-text-size-adjust: none;
291
+ line-height: 22px;
292
+ font-size: 16px;
293
+ color: #FFF;
294
+ }
295
+
296
+ .button--link {
297
+ background-color: transparent;
298
+ border-top: 10px solid transparent;
299
+ border-right: 18px solid transparent;
300
+ border-bottom: 10px solid transparent;
301
+ border-left: 18px solid transparent;
302
+ display: inline-block;
303
+ color: #047BF8;
304
+ text-decoration: underline;
305
+ border-radius: 3px;
306
+ /*box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);*/
307
+ -webkit-text-size-adjust: none;
308
+ }
309
+
310
+ .button--green {
311
+ background-color: #22BC66;
312
+ border-top: 10px solid #22BC66;
313
+ border-right: 18px solid #22BC66;
314
+ border-bottom: 10px solid #22BC66;
315
+ border-left: 18px solid #22BC66;
316
+ }
317
+
318
+ .button--red {
319
+ background-color: #FF6136;
320
+ border-top: 10px solid #FF6136;
321
+ border-right: 18px solid #FF6136;
322
+ border-bottom: 10px solid #FF6136;
323
+ border-left: 18px solid #FF6136;
324
+ }
325
+ /* Type ------------------------------ */
326
+
327
+ h1 {
328
+ margin-top: 0;
329
+ color: #3E4B5B;
330
+ font-size: 19px;
331
+ font-weight: bold;
332
+ text-align: left;
333
+ }
334
+
335
+ h2 {
336
+ margin-top: 0;
337
+ color: #3E4B5B;
338
+ font-size: 16px;
339
+ font-weight: bold;
340
+ text-align: left;
341
+ }
342
+
343
+ h3 {
344
+ margin-top: 0;
345
+ color: #3E4B5B;
346
+ font-size: 14px;
347
+ font-weight: bold;
348
+ text-align: left;
349
+ }
350
+
351
+ p {
352
+ margin-top: 0;
353
+ color: #3E4B5B;
354
+ font-size: 16px;
355
+ line-height: 1.5em;
356
+ text-align: left;
357
+ }
358
+
359
+ p.sub {
360
+ font-size: 12px;
361
+ }
362
+
363
+ p.center {
364
+ text-align: center;
365
+ }
366
+
367
+ .body-action.less-footer {
368
+ margin-bottom: 10px;
369
+ }
370
+ </style>
371
+ </head>
372
+ <body>
373
+ <% if content_for? :preheader %>
374
+ <span class="preheader"><% yield :preheader %></span>
375
+ <% end %>
376
+ <table class="email-wrapper" width="100%" cellpadding="0" cellspacing="0">
377
+ <tr>
378
+ <td align="center">
379
+ <table class="email-content" width="100%" cellpadding="0" cellspacing="0">
380
+ <tr>
381
+ <td class="email-masthead">
382
+ <a href="<%= root_url %>" class="email-masthead_name">
383
+ <%= email_image_tag("logo/logo.png", width: image_width_for_height("logo/logo.png", BulletTrain::Themes.logo_height), height: BulletTrain::Themes.logo_height, style: "width: #{image_width_for_height('logo/logo.png', BulletTrain::Themes.logo_height)}px; height: #{BulletTrain::Themes.logo_height}px;") %>
384
+ </a>
385
+ </td>
386
+ </tr>
387
+ <!-- Email Body -->
388
+ <tr>
389
+ <td class="email-body" width="100%" cellpadding="0" cellspacing="0">
390
+ <table class="email-body_inner" align="center" width="570" cellpadding="0" cellspacing="0">
391
+ <!-- Body content -->
392
+ <tr>
393
+ <td class="content-cell">
394
+
395
+ <%= yield %>
396
+
397
+ <% if false %>
398
+ <!-- Sub copy -->
399
+ <table class="body-sub">
400
+ <tr>
401
+ <td>
402
+ <p class="sub"><%= t('.trouble') %></p>
403
+ <p class="sub">{{action_url}}</p>
404
+ </td>
405
+ </tr>
406
+ </table>
407
+ <% end %>
408
+ </td>
409
+ </tr>
410
+ </table>
411
+ </td>
412
+ </tr>
413
+ <tr>
414
+ <td>
415
+ <table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0">
416
+ <tr>
417
+ <td class="content-cell" align="center">
418
+ <p class="sub align-center">&copy; <%= t('layouts.mailer.all_rights_reserved', year: Date.today.year, product_name: t('application.name')) %></p>
419
+ </td>
420
+ </tr>
421
+ </table>
422
+ </td>
423
+ </tr>
424
+ </table>
425
+ </td>
426
+ </tr>
427
+ </table>
428
+ </body>
429
+ </html>
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Light
4
- VERSION = "1.0.21"
4
+ VERSION = "1.0.24"
5
5
  end
6
6
  end
7
7
  end
@@ -21,6 +21,7 @@ namespace :bullet_train do
21
21
  puts "Ejecting all theme partials into `./app/views/themes/#{args[:destination]}`."
22
22
  `mkdir #{Rails.root}/app/views/themes`
23
23
  `cp -R #{theme_base_path}/app/views/themes/light #{Rails.root}/app/views/themes/#{args[:destination]}`
24
+ `sed -i #{'""' if `echo $OSTYPE`.include?("darwin")} "s/light/#{args[:destination]}/g" #{Rails.root}/app/views/themes/#{args[:destination]}/layouts/_head.html.erb`
24
25
 
25
26
  puts "Cutting local `Procfile.dev` over from `light` to `#{args[:destination]}`."
26
27
  `sed -i #{'""' if `echo $OSTYPE`.include?("darwin")} "s/light/#{args[:destination]}/g" #{Rails.root}/Procfile.dev`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes-light
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.21
4
+ version: 1.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-27 00:00:00.000000000 Z
11
+ date: 2022-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -91,6 +91,7 @@ files:
91
91
  - app/views/themes/light/layouts/_account.html.erb
92
92
  - app/views/themes/light/layouts/_devise.html.erb
93
93
  - app/views/themes/light/layouts/_head.html.erb
94
+ - app/views/themes/light/layouts/_mailer.html.erb
94
95
  - app/views/themes/light/memberships/_photos.html.erb
95
96
  - app/views/themes/light/menu/_heading.html.erb
96
97
  - app/views/themes/light/menu/_item.html.erb
@@ -123,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
124
  - !ruby/object:Gem::Version
124
125
  version: '0'
125
126
  requirements: []
126
- rubygems_version: 3.3.7
127
+ rubygems_version: 3.2.22
127
128
  signing_key:
128
129
  specification_version: 4
129
130
  summary: 'Bullet Train Themes: Light'