bullet_train-themes-light 1.0.23 → 1.0.26

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
  SHA256:
3
- metadata.gz: 2e115d85db405bc49a6ac24c8307be81d0b47578721204c3d3a46bff8dae9830
4
- data.tar.gz: 1c3d99286f0cf02625aa34e7f4ad3db8342b61cdd9c5c679c80e3395fa648783
3
+ metadata.gz: 5b1153ab4553c5e5ce24f6b119468692c8426b7b0431049d0a2ef383e91fa9e2
4
+ data.tar.gz: 0d32ad318a542758f7af4ea8a4eb1145b3e4668bbfad4c7fff52f26b68fa8d3c
5
5
  SHA512:
6
- metadata.gz: 12a7f99f570bdcfb26d3fade9bc5b88ec9d80d0345a8f546d60104469ca1aca2073160e5d702493b7628c6ca88535792ce40d1652e8fd60f633341ee92f9788c
7
- data.tar.gz: 7d7d73ead2f224c97467f8b83c6a1e62ab6bef3ffb208d3df140a8304c3e2f1e1ba281d1b9ce1e6ce3bed8642b1cb3f5d8c1721aada8a664a5188c6a01e5811f
6
+ metadata.gz: 5e77a3514641720cef5d2d2501ce9dfb9e056e2d091a8026661b43b6cfe0e45c9617485f1cf84d4364d9c67d0a8327957ed698f58dce0206994c073bc36f081c
7
+ data.tar.gz: c055cf9036b784bea6abd3072228fe47fd8f8b00a0b8c41a21f0ccaf83874313e74f09ccc9b9eaabffb6689eea000a0880a58c86236952637a8baf939ff6504c
@@ -5,6 +5,7 @@
5
5
 
6
6
  @import "./electron";
7
7
  @import './fields';
8
+ @import './turn';
8
9
 
9
10
  /* TODO there is probably a better way to do this. */
10
11
  .hover-indent-child {
@@ -0,0 +1,44 @@
1
+ [data-turn-exit],
2
+ [data-turn-enter] {
3
+ animation-timing-function: cubic-bezier(0.65, 0.05, 0.35, 1);
4
+ animation-fill-mode: forwards;
5
+ }
6
+
7
+ html.turn-exit [data-turn-exit] {
8
+ animation-name: fade-out-up;
9
+ animation-duration: .3s;
10
+ }
11
+
12
+ html.turn-enter [data-turn-enter] {
13
+ animation-name: fade-in-up;
14
+ animation-duration: .6s;
15
+ }
16
+
17
+ html.turn-before-exit [data-turn-exit],
18
+ html.turn-exit [data-turn-exit] {
19
+ will-change: transform, opacity;
20
+ }
21
+
22
+ @keyframes fade-out-up {
23
+ 0% {
24
+ opacity: 1;
25
+ transform: translateZ(0)
26
+ }
27
+
28
+ 100% {
29
+ opacity: 0;
30
+ transform: translate3d(0, -4rem, 0)
31
+ }
32
+ }
33
+
34
+ @keyframes fade-in-up {
35
+ 0% {
36
+ opacity: 0;
37
+ transform: translate3d(0, 4rem, 0)
38
+ }
39
+
40
+ 100% {
41
+ opacity: 1;
42
+ transform: translateZ(0)
43
+ }
44
+ }
@@ -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>
@@ -4,7 +4,7 @@
4
4
  <%= render 'shared/layouts/head' %>
5
5
  </head>
6
6
  <body class="bg-light-gradient text-gray-700 text-sm font-normal electron-draggable dark:bg-dark-gradient dark:text-darkPrimary-300">
7
- <div data-turbo="false">
7
+ <div data-turbo="false" data-turn-enter data-turn-exit>
8
8
  <%= yield %>
9
9
  </div>
10
10
  </body>
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Light
4
- VERSION = "1.0.23"
4
+ VERSION = "1.0.26"
5
5
  end
6
6
  end
7
7
  end
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.23
4
+ version: 1.0.26
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-31 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -65,6 +65,7 @@ files:
65
65
  - app/assets/stylesheets/light/tailwind/components.css
66
66
  - app/assets/stylesheets/light/tailwind/dark-mode.css
67
67
  - app/assets/stylesheets/light/tailwind/utilities.css
68
+ - app/assets/stylesheets/light/turn.css
68
69
  - app/assets/stylesheets/tailwindcss/base.css
69
70
  - app/assets/stylesheets/tailwindcss/components.css
70
71
  - app/assets/stylesheets/tailwindcss/utilities.css
@@ -124,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
125
  - !ruby/object:Gem::Version
125
126
  version: '0'
126
127
  requirements: []
127
- rubygems_version: 3.2.22
128
+ rubygems_version: 3.3.7
128
129
  signing_key:
129
130
  specification_version: 4
130
131
  summary: 'Bullet Train Themes: Light'