bullet_train-themes-light 1.6.29 → 1.6.31

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: 841453615fd5367056dc21793ef27dc4df0164e5d2de26ce35e0ef2596518433
4
- data.tar.gz: 6ab2432307a1e12de018f465502803a607c3b8ec433f21d475c415318d21fb9d
3
+ metadata.gz: e344964ae6f517ad4c2305e095f247e385683c3ac72856139444902c95bc34c7
4
+ data.tar.gz: 2d6204b2e2ac09ff7150f2cb880ea79020b45c57ebcbcb52f2c0505f5755a9ae
5
5
  SHA512:
6
- metadata.gz: ca763a0baeadb7cbae6c41f12e3ebeab4696da85e7c89c75eac381800dbf4823303aa45407e83c3bc44159191c6754b1fc232ea54f49b499755c6c09379ef0f0
7
- data.tar.gz: ff3cbc6b120b77d29a21ce3a8ac616befe043ab4274ad3c8aefdf40c8cf65fb571f85bf0ba4dd0f07c54d478d31ce00fddbe010c5124c8f0da5aa55c04fde5f2
6
+ metadata.gz: af0b55d4813625cc5ea016074e3b62b0ee6062914a8fd1dfd2c127da5580a7a308ea0d7258fc8b4c62726bdd19ca8b3ddbce383333959ac5ae958501c71607e2
7
+ data.tar.gz: 1c65271a8b3099ca2947758d97a33bab2b9c9699f6cb46fb23d97f7fab1c44bdc631807c285892145f8f44b297bfbaa08f46fc21be7b68360447b570829cceb7
@@ -0,0 +1,6 @@
1
+ module LightThemeHelper
2
+ # override in app/helpers/application_helper.rb
3
+ def current_theme
4
+ :light
5
+ end
6
+ end
@@ -4,7 +4,9 @@ module BulletTrain
4
4
  class Engine < ::Rails::Engine
5
5
  initializer "bullet_train.themes.light.register" do |app|
6
6
  BulletTrain::Themes.themes[:light] = BulletTrain::Themes::Light::Theme.new
7
- BulletTrain.linked_gems << "bullet_train-themes-light"
7
+ if BulletTrain.respond_to?(:linked_gems)
8
+ BulletTrain.linked_gems << "bullet_train-themes-light"
9
+ end
8
10
  end
9
11
  end
10
12
  end
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Light
4
- VERSION = "1.6.29"
4
+ VERSION = "1.6.31"
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,15 @@
1
+ const { execSync } = require("child_process");
2
+
3
+ const themeStylesheetsDir = execSync(`bundle exec bin/theme stylesheets-dir ${process.env.THEME} 2> /dev/null`).toString().trim()
4
+ const themeStylesheet = execSync(`bundle exec bin/theme tailwind-stylesheet ${process.env.THEME} 2> /dev/null`).toString().trim()
5
+
6
+ module.exports = {
7
+ resolve: (id, basedir, importOptions) => {
8
+ if (id.startsWith('$ThemeStylesheetsDir')) {
9
+ id = id.replace('$ThemeStylesheetsDir', themeStylesheetsDir);
10
+ } else if (id.startsWith('$ThemeStylesheet')) {
11
+ id = id.replace('$ThemeStylesheet', themeStylesheet);
12
+ }
13
+ return id;
14
+ }
15
+ }
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.6.29
4
+ version: 1.6.31
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-02-07 00:00:00.000000000 Z
11
+ date: 2024-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -146,6 +146,7 @@ files:
146
146
  - app/assets/stylesheets/tailwindcss/base.css
147
147
  - app/assets/stylesheets/tailwindcss/components.css
148
148
  - app/assets/stylesheets/tailwindcss/utilities.css
149
+ - app/helpers/light_theme_helper.rb
149
150
  - app/javascript/application.light.js
150
151
  - app/views/showcase/engine/_head.html.erb
151
152
  - app/views/showcase/previews/field_partials/_about_field_partials.erb
@@ -245,6 +246,7 @@ files:
245
246
  - lib/bullet_train/themes/light/version.rb
246
247
  - lib/tasks/application.rb
247
248
  - lib/tasks/bullet_train/themes/light_tasks.rake
249
+ - postcss-import-config.js
248
250
  - tailwind.light.config.js
249
251
  - tailwind.mailer.light.config.js
250
252
  homepage: https://github.com/bullet-train-co/bullet_train-core/tree/main/bullet_train-themes-light