bullet_train 1.6.28 → 1.6.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/account/markdown_helper.rb +1 -1
- data/app/views/layouts/docs.html.erb +6 -0
- data/docs/action-models.md +4 -4
- data/docs/index.md +1 -0
- data/docs/stylesheets.md +16 -0
- data/docs/upgrades.md +1 -1
- data/lib/bullet_train/resolver.rb +7 -0
- data/lib/bullet_train/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16b060ec914c03447d1c8abcca50aa9b75c00a975ec04013173088b67d76b2ab
|
4
|
+
data.tar.gz: fa0e341a42e660cbdd889d7f4e95e517fc3b930ec24184d895271f01ae1257c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e283d6dcf94770920e558958790e32cd5f4a6f80b8a51f59e14a5ead26d9beee9d25fe50448ba78ec5163afe6fbd22b756db67d56d3440fb70f76a6ef0f7e20
|
7
|
+
data.tar.gz: adfbaf616f7a78c9052bebf187dad24d257524ecc5f32923ce6d4b267547677d1a79d157b7d05acd1260ee8f341a8f47e5c73fdd11a3ae7c50ba90c53e0ea4e7
|
@@ -111,6 +111,12 @@
|
|
111
111
|
<% end %>
|
112
112
|
<% end %>
|
113
113
|
|
114
|
+
<%= render 'account/shared/menu/item', url: '/docs/stylesheets', label: 'Style Sheets' do |p| %>
|
115
|
+
<% p.icon do %>
|
116
|
+
<i class="fa-brands fa-js ti ti-brush"></i>
|
117
|
+
<% end %>
|
118
|
+
<% end %>
|
119
|
+
|
114
120
|
<%= render 'account/shared/menu/item', url: '/docs/i18n', label: 'Internationalization' do |p| %>
|
115
121
|
<% p.icon do %>
|
116
122
|
<i class="fa-brands fa-js ti ti-world"></i>
|
data/docs/action-models.md
CHANGED
@@ -63,9 +63,9 @@ Don't forget to run `bundle install` and `rails restart`.
|
|
63
63
|
You can get detailed information about using Super Scaffolding to generate different types of Action Models like so:
|
64
64
|
|
65
65
|
```
|
66
|
-
rails generate super_scaffold:
|
67
|
-
rails generate super_scaffold:
|
68
|
-
rails generate super_scaffold:
|
66
|
+
rails generate super_scaffold:action_models:targets_many
|
67
|
+
rails generate super_scaffold:action_models:targets_one
|
68
|
+
rails generate super_scaffold:action_models:targets_one_parent
|
69
69
|
```
|
70
70
|
|
71
71
|
## Basic Example
|
@@ -79,7 +79,7 @@ rails generate super_scaffold Project Team name:text_field
|
|
79
79
|
### 2. Generate and scaffold an archive action for projects.
|
80
80
|
|
81
81
|
```
|
82
|
-
rails generate super_scaffold:
|
82
|
+
rails generate super_scaffold:action_models:targets_many Archive Project Team
|
83
83
|
```
|
84
84
|
|
85
85
|
### 3. Implement the action logic.
|
data/docs/index.md
CHANGED
data/docs/stylesheets.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Style Sheets
|
2
|
+
Bullet Train's stock UI theme, called “Light”, is built to use `tailwindcss` extensively, where most of the styling is defined within the `.html.erb` theme partials.
|
3
|
+
|
4
|
+
As such, there are two ways to update the styling of your app: either by modifying theme partials, or by adding your own custom CSS.
|
5
|
+
|
6
|
+
## Modify Theme Partials
|
7
|
+
|
8
|
+
Since `tailwindcss` is used, most style changes are done by ejecting theme partials into your app's `app/views` directory, and modifying the Tailwind classes within the `.html.erb` templates.
|
9
|
+
|
10
|
+
You can eject only the theme files you wish to override or you can eject the whole UI theme for customization. You can find more information in the [indirection documentation](indirection) about using `bin/resolve` to find the theme partials to eject. Or see the [themes documentation](themes) for details on using the "Light" UI theme as a starting point for creating your own.
|
11
|
+
|
12
|
+
## Add custom CSS
|
13
|
+
|
14
|
+
To add your own custom CSS, add to the `app/assets/stylesheets/application.css` file found in your app. In this file, you'll be able to use Tailwind `@apply` directives and add `@import` statements to include the CSS from third-party `npm` packages.
|
15
|
+
|
16
|
+
For further modifications to the theme's style sheet (for example, to change the order in which base Tailwind stylesheets are included), you can eject the theme's css by using the command `rake bullet_train:themes:light:eject_css`.
|
data/docs/upgrades.md
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
## The Stepwise Upgrade Method
|
16
16
|
|
17
|
-
This method will ensure that the version of the Bullet Train gems that your app uses will stay in sync with the
|
17
|
+
This method will ensure that the version of the Bullet Train gems that your app uses will stay in sync with the application framework provided by the starter repo.
|
18
18
|
If you've ever upgraded a Rails app from version to version this process should feel fairly similar.
|
19
19
|
|
20
20
|
## Pulling Updates from the Starter Repository
|
@@ -151,6 +151,13 @@ module BulletTrain
|
|
151
151
|
result[:package_name] = package_name
|
152
152
|
end
|
153
153
|
end
|
154
|
+
|
155
|
+
# If we can't find the package name, check if it's because the file path is in the root of the gem
|
156
|
+
# and not in a subdirectory like app, config or lib.
|
157
|
+
if result[:package_name].nil? && base_path.split("/").size == 3
|
158
|
+
result[:project_path] = "./#{base_path.split("/").last}"
|
159
|
+
result[:package_name] = base_path.split("/").second
|
160
|
+
end
|
154
161
|
end
|
155
162
|
end
|
156
163
|
result
|
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.6.
|
4
|
+
version: 1.6.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -749,6 +749,7 @@ files:
|
|
749
749
|
- docs/overriding.md
|
750
750
|
- docs/permissions.md
|
751
751
|
- docs/seeds.md
|
752
|
+
- docs/stylesheets.md
|
752
753
|
- docs/super-scaffolding.md
|
753
754
|
- docs/super-scaffolding/delegated-types.md
|
754
755
|
- docs/super-scaffolding/options.md
|