bullet_train 1.2.11 → 1.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/account/teams/_team.html.erb +3 -23
- data/app/views/showcase/engine/_stylesheets.html.erb +1 -0
- data/config/routes.rb +2 -0
- data/docs/field-partials.md +1 -0
- data/lib/bullet_train/engine.rb +6 -0
- data/lib/bullet_train/version.rb +1 -1
- metadata +17 -3
- data/app/controllers/turbo_devise_controller.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 807a5e0fe30a22bafa54c16b49271477fbe82c8180116b3448162851c4181482
|
4
|
+
data.tar.gz: f4dcb5d397fec1110576b95d0ca7c67bc975d244522f4708127b0bdeed78cc9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a090d8380e20ea5852b2783e151b555452cf00320f05f6998dfa09e41c7c5cfcc3d76da0b7b888358074856ff5c2183ff23f4804e224e56d5cb849bdb8b6c578
|
7
|
+
data.tar.gz: bf8045613b7f1314ff5e34a3cf7be5fa6d54c5e536c5815d24770c7cde6f44f24f73ac659db76d6cd475fe6fd38559d91bfa22ffe720989a02eb3643354dba6d
|
@@ -1,23 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<div class="min-w-0 flex-1 sm:flex sm:items-center sm:justify-between">
|
5
|
-
<div>
|
6
|
-
<div class="flex text-xl font-semibold text-blue uppercase group-hover:text-blue-800 tracking-widest dark:text-white">
|
7
|
-
<%= team.name %>
|
8
|
-
</div>
|
9
|
-
</div>
|
10
|
-
<div class="mt-4 flex-shrink-0 sm:mt-0">
|
11
|
-
<div class="flex overflow-hidden">
|
12
|
-
<%= render 'account/shared/memberships/photos', memberships: team.memberships.current_and_invited.first(10) %>
|
13
|
-
</div>
|
14
|
-
</div>
|
15
|
-
</div>
|
16
|
-
<div class="ml-5 flex-shrink-0">
|
17
|
-
<svg class="h-5 w-5 text-slate-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
18
|
-
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
19
|
-
</svg>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
<% end %>
|
23
|
-
</li>
|
1
|
+
<%= render 'account/shared/team', link_url: [:account, team], memberships: team.memberships.current_and_invited.first(10) do |p| %>
|
2
|
+
<% p.content_for :name, team.name %>
|
3
|
+
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= stylesheet_link_tag "application", "application.light", "showcase", "showcase.highlights" %>
|
data/config/routes.rb
CHANGED
data/docs/field-partials.md
CHANGED
@@ -126,6 +126,7 @@ Certain form field partials like `buttons` and `super_select` can also have thei
|
|
126
126
|
| [`super_select`](/docs/field-partials/super-select.md) | `string` | Optionally | `assign_select_options` | [Select2](https://select2.org) | Provides powerful option search, AJAX search, and multi-select functionality. |
|
127
127
|
| `text_area` | `text` | | | | |
|
128
128
|
| `text_field` | `string` | | | | |
|
129
|
+
| `number_field` | `integer` | | | | |
|
129
130
|
| `trix_editor` | `text` | | | [Trix](https://github.com/basecamp/trix) | Basic HTML-powered formatting features and support for at-mentions amongst team members. |
|
130
131
|
|
131
132
|
## A Note On Data Types
|
data/lib/bullet_train/engine.rb
CHANGED
@@ -13,6 +13,12 @@ rescue LoadError
|
|
13
13
|
# Devise isn't in the Gemfile, and we don't have any other load order dependencies.
|
14
14
|
end
|
15
15
|
|
16
|
+
begin
|
17
|
+
# Similarly we need to hoist showcase-rails, so our view paths can override Showcase.
|
18
|
+
require "showcase-rails"
|
19
|
+
rescue LoadError
|
20
|
+
end
|
21
|
+
|
16
22
|
module BulletTrain
|
17
23
|
class Engine < ::Rails::Engine
|
18
24
|
end
|
data/lib/bullet_train/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -304,6 +304,20 @@ dependencies:
|
|
304
304
|
- - "~>"
|
305
305
|
- !ruby/object:Gem::Version
|
306
306
|
version: '0.1'
|
307
|
+
- !ruby/object:Gem::Dependency
|
308
|
+
name: showcase-rails
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - ">="
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: '0'
|
314
|
+
type: :runtime
|
315
|
+
prerelease: false
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - ">="
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: '0'
|
307
321
|
- !ruby/object:Gem::Dependency
|
308
322
|
name: premailer-rails
|
309
323
|
requirement: !ruby/object:Gem::Requirement
|
@@ -479,7 +493,6 @@ files:
|
|
479
493
|
- app/controllers/concerns/sessions/controller_base.rb
|
480
494
|
- app/controllers/registrations_controller.rb
|
481
495
|
- app/controllers/sessions_controller.rb
|
482
|
-
- app/controllers/turbo_devise_controller.rb
|
483
496
|
- app/helpers/account/buttons_helper.rb
|
484
497
|
- app/helpers/account/dates_helper.rb
|
485
498
|
- app/helpers/account/forms_helper.rb
|
@@ -584,6 +597,7 @@ files:
|
|
584
597
|
- app/views/layouts/docs.html.erb
|
585
598
|
- app/views/layouts/mailer.html.erb
|
586
599
|
- app/views/public/home/docs.html.erb
|
600
|
+
- app/views/showcase/engine/_stylesheets.html.erb
|
587
601
|
- app/views/user_mailer/invited.html.erb
|
588
602
|
- app/views/user_mailer/welcome.html.erb
|
589
603
|
- config/initializers/concerns/inflections_base.rb
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# NOTE: This is a workaround to get Devise working with Turbo
|
2
|
-
class TurboDeviseController < ApplicationController
|
3
|
-
class Responder < ActionController::Responder
|
4
|
-
def to_turbo_stream
|
5
|
-
controller.render(options.merge(formats: :html))
|
6
|
-
rescue ActionView::MissingTemplate => error
|
7
|
-
if get?
|
8
|
-
raise error
|
9
|
-
elsif has_errors? && default_action
|
10
|
-
render error_rendering_options.merge(formats: :html, status: :unprocessable_entity)
|
11
|
-
else
|
12
|
-
redirect_to navigation_location
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
self.responder = Responder
|
18
|
-
respond_to :html, :turbo_stream
|
19
|
-
end
|