bullet_train 1.0.45 → 1.1.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.
- checksums.yaml +4 -4
- data/.bt-link +0 -0
- data/README.md +4 -3
- data/app/controllers/concerns/account/controllers/base.rb +9 -0
- data/app/controllers/concerns/account/invitations/controller_base.rb +11 -6
- data/app/controllers/concerns/account/teams/controller_base.rb +1 -1
- data/app/controllers/concerns/controllers/base.rb +26 -2
- data/app/controllers/concerns/registrations/controller_base.rb +4 -7
- data/app/controllers/concerns/root_redirect.rb +1 -5
- data/app/controllers/concerns/sessions/controller_base.rb +0 -6
- data/app/controllers/sessions_controller.rb +11 -0
- data/app/controllers/turbo_devise_controller.rb +19 -0
- data/app/helpers/account/dates_helper.rb +10 -8
- data/app/helpers/account/forms_helper.rb +0 -4
- data/app/helpers/account/locale_helper.rb +2 -2
- data/app/helpers/base_helper.rb +5 -1
- data/app/helpers/concerns/helpers/base.rb +18 -0
- data/app/helpers/invitations_helper.rb +0 -15
- data/app/javascript/controllers/bulk_action_form_controller.js +88 -0
- data/app/javascript/controllers/bulk_actions_controller.js +95 -0
- data/app/javascript/controllers/clipboard_controller.js +1 -1
- data/app/javascript/controllers/form_controller.js +1 -1
- data/app/javascript/controllers/index.js +7 -1
- data/app/javascript/controllers/mobile_menu_controller.js +19 -17
- data/app/javascript/controllers/text_toggle_controller.js +33 -0
- data/app/mailers/concerns/mailers/base.rb +1 -0
- data/app/models/concerns/current_attributes/base.rb +1 -1
- data/app/models/concerns/memberships/base.rb +10 -2
- data/app/models/concerns/records/base.rb +35 -0
- data/app/models/concerns/teams/base.rb +19 -0
- data/app/models/concerns/users/base.rb +12 -11
- data/app/models/invitation.rb +1 -1
- data/app/models/membership.rb +1 -1
- data/app/models/team.rb +2 -2
- data/app/models/user.rb +1 -1
- data/app/views/account/memberships/show.html.erb +3 -1
- data/app/views/account/onboarding/user_details/edit.html.erb +1 -1
- data/app/views/account/users/_oauth.html.erb +2 -0
- data/app/views/account/users/edit.html.erb +2 -3
- data/app/views/bullet_train/partial_resolver.html.erb +1 -0
- data/app/views/devise/registrations/new.html.erb +1 -1
- data/app/views/devise/sessions/new.html.erb +6 -6
- data/app/views/layouts/docs.html.erb +25 -24
- data/app/views/layouts/mailer.html.erb +1 -425
- data/config/initializers/concerns/inflections_base.rb +6 -0
- data/config/initializers/concerns/turbo_failure_app.rb +14 -0
- data/config/locales/en/billing/products.en.yml +17 -0
- data/config/locales/en/devise.en.yml +1 -0
- data/config/locales/en/framework_packages.yml +43 -0
- data/config/locales/en/invitations.en.yml +1 -0
- data/config/locales/en/teams.en.yml +1 -0
- data/docs/action-models.md +148 -0
- data/docs/authentication.md +2 -2
- data/docs/billing/stripe.md +95 -39
- data/docs/field-partials/super-select.md +70 -1
- data/docs/field-partials.md +25 -18
- data/docs/getting-started.md +12 -12
- data/docs/index.md +4 -1
- data/docs/indirection.md +30 -7
- data/docs/invitation_only.md +13 -0
- data/docs/javascript.md +18 -0
- data/docs/namespacing.md +1 -1
- data/docs/onboarding.md +10 -10
- data/docs/overriding.md +1 -1
- data/docs/permissions.md +1 -1
- data/docs/super-scaffolding/delegated-types.md +31 -3
- data/docs/super-scaffolding/sortable.md +137 -0
- data/docs/super-scaffolding.md +7 -1
- data/docs/tunneling.md +4 -4
- data/lib/bullet_train/core_ext/string_emoji_helper.rb +18 -0
- data/lib/bullet_train/resolver.rb +61 -47
- data/lib/bullet_train/version.rb +1 -1
- data/lib/bullet_train.rb +23 -9
- data/lib/tasks/bullet_train_tasks.rake +148 -7
- metadata +115 -33
- data/app/assets/javascripts/bullet-train.esm.js +0 -2
- data/app/assets/javascripts/bullet-train.esm.js.map +0 -1
- data/app/assets/javascripts/bullet-train.js +0 -2
- data/app/assets/javascripts/bullet-train.js.map +0 -1
- data/app/assets/javascripts/bullet-train.modern.js +0 -2
- data/app/assets/javascripts/bullet-train.modern.js.map +0 -1
- data/app/assets/javascripts/bullet-train.umd.js +0 -2
- data/app/assets/javascripts/bullet-train.umd.js.map +0 -1
- data/lib/string/emoji.rb +0 -10
|
@@ -13,7 +13,6 @@ module Memberships::Base
|
|
|
13
13
|
|
|
14
14
|
has_many :scaffolding_completely_concrete_tangible_things_assignments, class_name: "Scaffolding::CompletelyConcrete::TangibleThings::Assignment", dependent: :destroy
|
|
15
15
|
has_many :scaffolding_completely_concrete_tangible_things, through: :scaffolding_completely_concrete_tangible_things_assignments, source: :tangible_thing
|
|
16
|
-
has_many :reassignments_scaffolding_completely_concrete_tangible_things_reassignments, class_name: "Memberships::Reassignments::ScaffoldingCompletelyConcreteTangibleThingsReassignment", dependent: :destroy, foreign_key: :membership_id
|
|
17
16
|
|
|
18
17
|
has_many :scaffolding_absolutely_abstract_creative_concepts_collaborators, class_name: "Scaffolding::AbsolutelyAbstract::CreativeConcepts::Collaborator", dependent: :destroy
|
|
19
18
|
|
|
@@ -29,6 +28,11 @@ module Memberships::Base
|
|
|
29
28
|
scope :current_and_invited, -> { includes(:invitation).where("user_id IS NOT NULL OR invitations.id IS NOT NULL").references(:invitation) }
|
|
30
29
|
scope :current, -> { where("user_id IS NOT NULL") }
|
|
31
30
|
scope :tombstones, -> { includes(:invitation).where("user_id IS NULL AND invitations.id IS NULL").references(:invitation) }
|
|
31
|
+
|
|
32
|
+
# TODO Probably we can provide a way for gem packages to define these kinds of extensions.
|
|
33
|
+
if billing_enabled?
|
|
34
|
+
scope :billable, -> { current }
|
|
35
|
+
end
|
|
32
36
|
end
|
|
33
37
|
|
|
34
38
|
def name
|
|
@@ -58,7 +62,7 @@ module Memberships::Base
|
|
|
58
62
|
end
|
|
59
63
|
|
|
60
64
|
def tombstone?
|
|
61
|
-
user.nil? && invitation.nil?
|
|
65
|
+
user.nil? && invitation.nil? && !platform_agent?
|
|
62
66
|
end
|
|
63
67
|
|
|
64
68
|
def last_admin?
|
|
@@ -134,4 +138,8 @@ module Memberships::Base
|
|
|
134
138
|
def should_receive_notifications?
|
|
135
139
|
invitation.present? || user.present?
|
|
136
140
|
end
|
|
141
|
+
|
|
142
|
+
def platform_agent?
|
|
143
|
+
platform_agent_of_id.present?
|
|
144
|
+
end
|
|
137
145
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
require "rake"
|
|
2
|
+
|
|
1
3
|
module Records::Base
|
|
2
4
|
extend ActiveSupport::Concern
|
|
3
5
|
|
|
@@ -28,6 +30,14 @@ module Records::Base
|
|
|
28
30
|
scope :newest_updated, -> { order("updated_at DESC") }
|
|
29
31
|
scope :oldest_updated, -> { order("updated_at ASC") }
|
|
30
32
|
|
|
33
|
+
# TODO Probably we can provide a way for gem packages to define these kinds of extensions.
|
|
34
|
+
if billing_enabled?
|
|
35
|
+
# By default, any model in a collection is considered active for billing purposes.
|
|
36
|
+
# This can be overloaded in the child model class to specify more specific criteria for billing.
|
|
37
|
+
# See `app/models/concerns/memberships/base.rb` for an example.
|
|
38
|
+
scope :billable, -> { order("TRUE") }
|
|
39
|
+
end
|
|
40
|
+
|
|
31
41
|
# Microscope adds useful scopes targeting ActiveRecord `boolean`, `date` and `datetime` attributes.
|
|
32
42
|
# https://github.com/mirego/microscope
|
|
33
43
|
acts_as_microscope
|
|
@@ -57,4 +67,29 @@ module Records::Base
|
|
|
57
67
|
# parent_key = model_name.reflect_on_all_associations(:belongs_to).first.name
|
|
58
68
|
raise "You're trying to use a feature that requires #{model_name} to have a `collection` method defined that returns the Active Record association that this model belongs to within its parent object."
|
|
59
69
|
end
|
|
70
|
+
|
|
71
|
+
def seeding?
|
|
72
|
+
rake_tasks = ObjectSpace.each_object(Rake::Task)
|
|
73
|
+
return false if rake_tasks.count.zero?
|
|
74
|
+
|
|
75
|
+
db_seed_task = rake_tasks.find { |task| task.name.match?(/^db:seed$/) }
|
|
76
|
+
db_seed_task.already_invoked
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# TODO This should really be in the API package and included from there.
|
|
80
|
+
if defined?(BulletTrain::Api)
|
|
81
|
+
def to_api_json
|
|
82
|
+
# TODO So many performance improvements available here.
|
|
83
|
+
controller = "Api::#{BulletTrain::Api.current_version.upcase}::ApplicationController".constantize.new
|
|
84
|
+
# TODO We need to fix host names here.
|
|
85
|
+
controller.request = ActionDispatch::Request.new({})
|
|
86
|
+
local_class_key = self.class.name.underscore.split("/").last.to_sym
|
|
87
|
+
controller.render_to_string(
|
|
88
|
+
"api/#{BulletTrain::Api.current_version}/#{self.class.name.underscore.pluralize}/_#{local_class_key}",
|
|
89
|
+
locals: {
|
|
90
|
+
local_class_key => self
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
end
|
|
94
|
+
end
|
|
60
95
|
end
|
|
@@ -18,6 +18,17 @@ module Teams::Base
|
|
|
18
18
|
# integrations
|
|
19
19
|
has_many :integrations_stripe_installations, class_name: "Integrations::StripeInstallation", dependent: :destroy if stripe_enabled?
|
|
20
20
|
|
|
21
|
+
# TODO Probably we can provide a way for gem packages to define these kinds of extensions.
|
|
22
|
+
if billing_enabled?
|
|
23
|
+
# subscriptions
|
|
24
|
+
has_many :billing_subscriptions, class_name: "Billing::Subscription", dependent: :destroy, foreign_key: :team_id
|
|
25
|
+
|
|
26
|
+
# TODO We need a way for `bullet_train-billing-stripe` to define these.
|
|
27
|
+
if defined?(Billing::Stripe::Subscription)
|
|
28
|
+
has_many :billing_stripe_subscriptions, class_name: "Billing::Stripe::Subscription", dependent: :destroy, foreign_key: :team_id
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
21
32
|
# validations
|
|
22
33
|
validates :name, presence: true
|
|
23
34
|
validates :time_zone, inclusion: {in: ActiveSupport::TimeZone.all.map(&:name)}, allow_nil: true
|
|
@@ -48,4 +59,12 @@ module Teams::Base
|
|
|
48
59
|
# generic functions need to function for a team model as well, so we do this.
|
|
49
60
|
self
|
|
50
61
|
end
|
|
62
|
+
|
|
63
|
+
# TODO Probably we can provide a way for gem packages to define these kinds of extensions.
|
|
64
|
+
if billing_enabled?
|
|
65
|
+
def needs_billing_subscription?
|
|
66
|
+
return false if freemium_enabled?
|
|
67
|
+
billing_subscriptions.active.empty?
|
|
68
|
+
end
|
|
69
|
+
end
|
|
51
70
|
end
|
|
@@ -3,14 +3,19 @@ module Users::Base
|
|
|
3
3
|
|
|
4
4
|
included do
|
|
5
5
|
if two_factor_authentication_enabled?
|
|
6
|
-
devise :two_factor_authenticatable, :two_factor_backupable, :
|
|
7
|
-
:registerable, :recoverable, :rememberable, :trackable, :validatable,
|
|
8
|
-
otp_secret_encryption_key: ENV["TWO_FACTOR_ENCRYPTION_KEY"]
|
|
6
|
+
devise :two_factor_authenticatable, :two_factor_backupable, otp_secret_encryption_key: ENV["TWO_FACTOR_ENCRYPTION_KEY"]
|
|
9
7
|
else
|
|
10
|
-
devise :
|
|
11
|
-
:recoverable, :rememberable, :trackable, :validatable
|
|
8
|
+
devise :database_authenticatable
|
|
12
9
|
end
|
|
13
10
|
|
|
11
|
+
devise :omniauthable
|
|
12
|
+
devise :pwned_password
|
|
13
|
+
devise :registerable
|
|
14
|
+
devise :recoverable
|
|
15
|
+
devise :rememberable
|
|
16
|
+
devise :trackable
|
|
17
|
+
devise :validatable
|
|
18
|
+
|
|
14
19
|
# teams
|
|
15
20
|
has_many :memberships, dependent: :destroy
|
|
16
21
|
has_many :scaffolding_absolutely_abstract_creative_concepts_collaborators, through: :memberships
|
|
@@ -32,11 +37,8 @@ module Users::Base
|
|
|
32
37
|
after_update :set_teams_time_zone
|
|
33
38
|
end
|
|
34
39
|
|
|
35
|
-
# TODO we need to update this to some sort of invalid email address or something
|
|
36
|
-
# people know to ignore. it would be a security problem to have this pointing
|
|
37
|
-
# at anybody's real email address.
|
|
38
40
|
def email_is_oauth_placeholder?
|
|
39
|
-
!!email.match(/noreply
|
|
41
|
+
!!email.match(/noreply@\h{32}\.example\.com/)
|
|
40
42
|
end
|
|
41
43
|
|
|
42
44
|
def label_string
|
|
@@ -61,8 +63,7 @@ module Users::Base
|
|
|
61
63
|
|
|
62
64
|
def create_default_team
|
|
63
65
|
# This creates a `Membership`, because `User` `has_many :teams, through: :memberships`
|
|
64
|
-
|
|
65
|
-
default_team = teams.create(name: "Your Team", time_zone: time_zone)
|
|
66
|
+
default_team = teams.create(name: I18n.t("teams.new.default_team_name"), time_zone: time_zone)
|
|
66
67
|
memberships.find_by(team: default_team).update role_ids: [Role.admin.id]
|
|
67
68
|
update(current_team: default_team)
|
|
68
69
|
end
|
data/app/models/invitation.rb
CHANGED
data/app/models/membership.rb
CHANGED
data/app/models/team.rb
CHANGED
data/app/models/user.rb
CHANGED
|
@@ -46,7 +46,9 @@
|
|
|
46
46
|
<% else %>
|
|
47
47
|
<%= link_to t('.buttons.promote'), [:promote, :account, @membership], method: :post, data: { confirm: t('global.confirm_message') }, class: first_button_primary if can? :promote, @membership %>
|
|
48
48
|
<% end %>
|
|
49
|
-
|
|
49
|
+
<% if (can? :destroy, @membership) && (!@membership.platform_agent?) %>
|
|
50
|
+
<%= button_to t(".buttons.#{membership_destroy_locale_key(@membership)}"), [:account, @membership], method: :delete, data: { confirm: t(".buttons.confirmations.#{membership_destroy_locale_key(@membership)}", model_locales(@membership)) }, class: first_button_primary %>
|
|
51
|
+
<% end %>
|
|
50
52
|
<% end %>
|
|
51
53
|
|
|
52
54
|
<%= link_to t('global.buttons.back'), [:account, @team, :memberships], class: first_button_primary %>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<% if other_teams.any? %>
|
|
39
39
|
<%= link_to t('global.buttons.back'), main_app.account_teams_path, class: first_button_primary %>
|
|
40
40
|
<% else %>
|
|
41
|
-
<%= link_to t('menus.main.labels.logout'), main_app.destroy_user_session_path, class: first_button_primary, method: 'delete' %>
|
|
41
|
+
<%= link_to t('menus.main.labels.logout'), main_app.destroy_user_session_path(@user, onboard_logout: true), class: first_button_primary, method: 'delete' %>
|
|
42
42
|
<% end %>
|
|
43
43
|
</div>
|
|
44
44
|
<% end %>
|
|
@@ -23,8 +23,7 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
|
|
25
25
|
<div class="xl:col-span-1 space-y-8">
|
|
26
|
-
<%= render 'account/oauth
|
|
27
|
-
<% # 🚅 super scaffolding will insert new oauth providers above this line. %>
|
|
26
|
+
<%= render 'account/users/oauth' %>
|
|
28
27
|
|
|
29
28
|
<%= render 'account/shared/box', divider: true do |p| %>
|
|
30
29
|
<% p.content_for :title, t('.password.header') %>
|
|
@@ -33,7 +32,7 @@
|
|
|
33
32
|
<%= form_for [:account, @user], html: {id: dom_id(@user, :password), class: 'form'} do |form| %>
|
|
34
33
|
<% with_field_settings form: form do %>
|
|
35
34
|
<%= render 'shared/fields/password_field', method: :current_password %>
|
|
36
|
-
<%= render 'shared/fields/password_field', method: :password %>
|
|
35
|
+
<%= render 'shared/fields/password_field', method: :password, options: {show_strength_indicator: true} %>
|
|
37
36
|
<%= render 'shared/fields/password_field', method: :password_confirmation %>
|
|
38
37
|
<% end %>
|
|
39
38
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
<div class="grid grid-cols-2 gap-5">
|
|
16
16
|
<div>
|
|
17
|
-
<%= render 'shared/fields/password_field', form: f, method: :password %>
|
|
17
|
+
<%= render 'shared/fields/password_field', form: f, method: :password, options: {show_strength_indicator: true} %>
|
|
18
18
|
</div>
|
|
19
19
|
<div>
|
|
20
20
|
<%= render 'shared/fields/password_field', form: f, method: :password_confirmation, other_options: {error: f.object.errors.full_messages_for(:password).first, hide_custom_error: true} %>
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
<%= form.submit t('global.buttons.sign_in'), class: 'button full' %>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</
|
|
50
|
-
|
|
45
|
+
<% if devise_mapping.rememberable? %>
|
|
46
|
+
<div class="flex items-center">
|
|
47
|
+
<%= form.check_box :remember_me, class: "h-4 w-4 text-blue focus:ring-blue-dark border-gray-300 rounded" %>
|
|
48
|
+
<%= form.label :remember_me, class: "ml-2 block" %>
|
|
49
|
+
</div>
|
|
50
|
+
<% end %>
|
|
51
51
|
<% end %>
|
|
52
52
|
<% end %>
|
|
53
53
|
<% end %>
|
|
@@ -32,22 +32,20 @@
|
|
|
32
32
|
<meta property="og:url" content="<%= request.base_url + request.path %>" />
|
|
33
33
|
<meta property="og:description" content="<%= description.truncate(200) %>" />
|
|
34
34
|
</head>
|
|
35
|
-
<body class="bg-light-
|
|
35
|
+
<body class="bg-light-gradient text-gray-700 text-sm font-normal dark:bg-dark-gradient dark:text-darkPrimary-300">
|
|
36
36
|
<div class="md:p-5">
|
|
37
37
|
<div class="h-screen md:h-auto overflow-hidden md:rounded-lg flex shadow"
|
|
38
38
|
data-controller="mobile-menu"
|
|
39
39
|
data-mobile-menu-hidden-class="hidden"
|
|
40
|
-
data-mobile-menu-show-event-name-value="mobile-menu:show"
|
|
41
|
-
data-mobile-menu-hide-event-name-value="mobile-menu:hide"
|
|
42
40
|
>
|
|
43
41
|
|
|
44
42
|
<% menu = capture do %>
|
|
45
43
|
<div class="flex items-center flex-shrink-0 p-4 bg-blue-darker md:rounded-tl-lg">
|
|
46
|
-
<%= image_tag image_path("
|
|
44
|
+
<%= image_tag image_path("logo/logo.png"), class: 'h-5 w-auto mx-auto' %>
|
|
47
45
|
|
|
48
46
|
<div class="lg:hidden absolute right-0">
|
|
49
47
|
<button class="ml-1 flex items-center justify-center h-10 w-10 rounded-full focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white"
|
|
50
|
-
data-action="
|
|
48
|
+
data-action="mobile-menu#close"
|
|
51
49
|
>
|
|
52
50
|
<span class="sr-only">Close Application Menu</span>
|
|
53
51
|
<svg class="h-6 w-6 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
|
|
@@ -104,6 +102,12 @@
|
|
|
104
102
|
<i class="fal fa-bolt ti ti-bolt"></i>
|
|
105
103
|
<% end %>
|
|
106
104
|
<% end %>
|
|
105
|
+
|
|
106
|
+
<%= render 'account/shared/menu/item', url: '/docs/javascript', label: 'JavaScript' do |p| %>
|
|
107
|
+
<% p.content_for :icon do %>
|
|
108
|
+
<i class="fa-brands fa-js ti ti-pulse"></i>
|
|
109
|
+
<% end %>
|
|
110
|
+
<% end %>
|
|
107
111
|
<% end %>
|
|
108
112
|
|
|
109
113
|
<%= render 'account/shared/menu/section', title: 'Developer Tools' do %>
|
|
@@ -113,6 +117,12 @@
|
|
|
113
117
|
<% end %>
|
|
114
118
|
<% end %>
|
|
115
119
|
|
|
120
|
+
<%= render 'account/shared/menu/item', url: '/docs/action-models', label: 'Action Models' do |p| %>
|
|
121
|
+
<% p.content_for :icon do %>
|
|
122
|
+
<i class="fal fa-bars-progress ti ti-target"></i>
|
|
123
|
+
<% end %>
|
|
124
|
+
<% end %>
|
|
125
|
+
|
|
116
126
|
<%= render 'account/shared/menu/item', url: '/docs/seeds', label: 'Database Seeds' do |p| %>
|
|
117
127
|
<% p.content_for :icon do %>
|
|
118
128
|
<i class="fal fa-seedling ti ti-server"></i>
|
|
@@ -253,20 +263,12 @@
|
|
|
253
263
|
|
|
254
264
|
<div class="lg:hidden hidden"
|
|
255
265
|
data-mobile-menu-target="wrapper"
|
|
256
|
-
|
|
257
|
-
data-controller="reveal"
|
|
258
|
-
data-reveal-away-value="true"
|
|
259
|
-
data-reveal-hide-keys-value="escape"
|
|
260
|
-
|
|
261
|
-
data-action="mobile-menu:show->reveal#show mobile-menu:hide->reveal#hide mobile-menu-toggle->reveal#toggle reveal:hidden->mobile-menu#hideWrapper"
|
|
262
266
|
>
|
|
263
267
|
<div class="fixed inset-0 flex z-40">
|
|
264
268
|
<button
|
|
265
|
-
data-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
data-reveal
|
|
269
|
-
data-transition
|
|
269
|
+
data-mobile-menu-target="revealable"
|
|
270
|
+
data-action="mobile-menu#close"
|
|
271
|
+
|
|
270
272
|
data-transition-enter="transition-opacity ease-linear duration-200"
|
|
271
273
|
data-transition-enter-start="opacity-0"
|
|
272
274
|
data-transition-enter-end="opacity-100"
|
|
@@ -276,12 +278,11 @@
|
|
|
276
278
|
|
|
277
279
|
class="fixed inset-0" aria-hidden="true"
|
|
278
280
|
>
|
|
279
|
-
<div class="absolute inset-0 bg-light-
|
|
281
|
+
<div class="absolute inset-0 bg-light-gradient opacity-75"></div>
|
|
280
282
|
</button>
|
|
281
283
|
<div
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
data-transition
|
|
284
|
+
data-mobile-menu-target="revealable"
|
|
285
|
+
|
|
285
286
|
data-transition-enter="transition ease-in-out duration-200 transform"
|
|
286
287
|
data-transition-enter-start="-translate-x-full"
|
|
287
288
|
data-transition-enter-end="translate-x-0"
|
|
@@ -289,7 +290,7 @@
|
|
|
289
290
|
data-transition-leave-start="translate-x-0"
|
|
290
291
|
data-transition-leave-end="-translate-x-full"
|
|
291
292
|
|
|
292
|
-
class="relative flex-1 flex flex-col max-w-xs w-full
|
|
293
|
+
class="relative flex-1 flex flex-col max-w-xs w-full pb-4 bg-dark-gradient shadow-xl"
|
|
293
294
|
>
|
|
294
295
|
<%= menu %>
|
|
295
296
|
</div>
|
|
@@ -297,17 +298,17 @@
|
|
|
297
298
|
</div>
|
|
298
299
|
</div>
|
|
299
300
|
|
|
300
|
-
<div class="hidden lg:flex lg:flex-shrink-0 bg-gradient-to-b from-
|
|
301
|
+
<div class="hidden lg:flex lg:flex-shrink-0 overflow-y-auto bg-gradient-to-b from-primary-700 to-primary-800 dark:from-darkPrimary-800 dark:to-darkPrimary-800">
|
|
301
302
|
<div class="w-64">
|
|
302
303
|
<%= menu %>
|
|
303
304
|
</div>
|
|
304
305
|
</div>
|
|
305
306
|
|
|
306
|
-
<div class="flex flex-col w-0 flex-1 overflow-
|
|
307
|
+
<div class="flex flex-col w-0 flex-1 overflow-y-auto bg-gray-100 dark:bg-darkPrimary-800 lg:border-l dark:border-gray-500">
|
|
307
308
|
<main class="flex-1 relative z-0 overflow-y-auto focus:outline-none" tabindex="0">
|
|
308
309
|
|
|
309
310
|
<button class="lg:hidden h-12 w-12 ml-1 flex-none inline-flex items-center justify-center rounded-md text-gray-500 hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue"
|
|
310
|
-
data-action="mobile-menu#
|
|
311
|
+
data-action="mobile-menu#open"
|
|
311
312
|
>
|
|
312
313
|
<span class="sr-only">Open Application Menu</span>
|
|
313
314
|
<svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
|