kaze 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9138221bd4a2ceb298c1663380c4b20ea389ae6d140be70e8e5566fcd8c9d37f
4
- data.tar.gz: 0b7ef58519530ffe3210a5f427451266788b82259ec18481a6f2a3a5aa7e0410
3
+ metadata.gz: 336badecc2e53010ae7f52cee62d408f0b96ecd531d75756e2b5d41a39562705
4
+ data.tar.gz: 59584c2cc1af205395911e560095118893912880d472a4f34bab62dd19c0e7a5
5
5
  SHA512:
6
- metadata.gz: 65894c1042fa1b3af7cb836a75af0a2eb5115701bafa4ad8a911c6be363341e58aa910776cb61c0fdec5deb2cbef09ec0d8fc5a4c32a8ddd25d6d816c3d60677
7
- data.tar.gz: afe217578c1e3cb6122b07cfac695b2217eeda27161a99d6cca2c2131ab5a6c72f472558949031b0916189b8895b81b0748c3186f62e9e51db6b6bb7877f98c0
6
+ metadata.gz: be7e44a88f14d01c30678d1496b67812555c0b310929e5ee0076e2e3ce57861252dba469f48c301633fe37d709ce07104cef203f240cfe0273efdfe26f353144
7
+ data.tar.gz: d6189eea9107e68cd86365296626a2cfa058530c91e33b6e4fcbdca28930a81c1f19d026211f38468b80fda3540b7b560a8fcd974f9b3cdc3d56ac1e3bca76e0
@@ -70,7 +70,7 @@ class Kaze::Commands::App::InertiaReactStack < Kaze::Commands::App::BaseStack
70
70
  run_commands([ 'pnpm install', 'pnpm run build' ])
71
71
  elsif File.exist?("#{Dir.pwd}/yarn.lock")
72
72
  run_commands([ 'yarn install', 'yarn build' ])
73
- elsif File.exist?("#{Dir.pwd}/bun.lockb")
73
+ elsif File.exist?("#{Dir.pwd}/bun.lock") || File.exist?("#{Dir.pwd}/bun.lockb")
74
74
  run_commands([ 'bun install', 'bun run build' ])
75
75
  else
76
76
  run_commands([ 'npm install', 'npm run build' ])
@@ -70,7 +70,7 @@ class Kaze::Commands::App::InertiaVueStack < Kaze::Commands::App::BaseStack
70
70
  run_commands([ 'pnpm install', 'pnpm run build' ])
71
71
  elsif File.exist?("#{Dir.pwd}/yarn.lock")
72
72
  run_commands([ 'yarn install', 'yarn build' ])
73
- elsif File.exist?("#{Dir.pwd}/bun.lockb")
73
+ elsif File.exist?("#{Dir.pwd}/bun.lock") || File.exist?("#{Dir.pwd}/bun.lockb")
74
74
  run_commands([ 'bun install', 'bun run build' ])
75
75
  else
76
76
  run_commands([ 'npm install', 'npm run build' ])
data/lib/kaze/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kaze
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -6,10 +6,9 @@
6
6
  <title><%= content_for(:title) || "Rails" %></title>
7
7
  <%= csrf_meta_tags %>
8
8
  <%= csp_meta_tag %>
9
- <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
10
- <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
9
+ <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": Rails.env.production? ? "reload" : "" %>
10
+ <%= stylesheet_link_tag "application", "data-turbo-track": Rails.env.production? ? "reload" : "" %>
11
11
  <%= javascript_importmap_tags %>
12
- <%= hotwire_livereload_tags if Rails.env.development? %>
13
12
  <%= turbo_refreshes_with method: :morph, scroll: :preserve %>
14
13
  <%= yield :head %>
15
14
  </head>
@@ -6,10 +6,9 @@
6
6
  <title><%= content_for(:title) || "Rails" %></title>
7
7
  <%= csrf_meta_tags %>
8
8
  <%= csp_meta_tag %>
9
- <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
10
- <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
9
+ <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": Rails.env.production? ? "reload" : "" %>
10
+ <%= stylesheet_link_tag "application", "data-turbo-track": Rails.env.production? ? "reload" : "" %>
11
11
  <%= javascript_importmap_tags %>
12
- <%= hotwire_livereload_tags if Rails.env.development? %>
13
12
  <%= turbo_refreshes_with method: :morph, scroll: :preserve %>
14
13
  </head>
15
14
  <body class="font-sans text-gray-900 antialiased">
@@ -6,10 +6,9 @@
6
6
  <title><%= content_for(:title) || "Rails" %></title>
7
7
  <%= csrf_meta_tags %>
8
8
  <%= csp_meta_tag %>
9
- <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
10
- <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
9
+ <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": Rails.env.production? ? "reload" : "" %>
10
+ <%= stylesheet_link_tag "application", "data-turbo-track": Rails.env.production? ? "reload" : "" %>
11
11
  <%= javascript_importmap_tags %>
12
- <%= hotwire_livereload_tags if Rails.env.development? %>
13
12
  <%= turbo_refreshes_with method: :morph, scroll: :preserve %>
14
13
  </head>
15
14
  <body class="font-sans antialiased">
@@ -65,7 +65,7 @@ export default function Login({ status }: { status?: string }) {
65
65
 
66
66
  <div className="block mt-4">
67
67
  <label className="flex items-center">
68
- <Checkbox name="remember" checked={data.remember} onChange={(e) => setData('remember', e.target.checked)} />
68
+ <Checkbox name="remember" checked={data.remember} onChange={(e) => setData('remember', (e.target.checked || false) as false)} />
69
69
  <span className="ms-2 text-sm text-gray-600 dark:text-gray-400">Remember me</span>
70
70
  </label>
71
71
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaze
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cuong Giang