kaze 0.6.0 → 0.7.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/lib/kaze/commands/install_command.rb +10 -4
- data/lib/kaze/version.rb +1 -1
- data/stubs/inertia-react-ts/app/javascript/Components/Checkbox.tsx +1 -4
- data/stubs/inertia-react-ts/app/javascript/Components/DangerButton.tsx +1 -1
- data/stubs/inertia-react-ts/app/javascript/Components/Dropdown.tsx +2 -7
- data/stubs/inertia-react-ts/app/javascript/Components/InputError.tsx +1 -1
- data/stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx +1 -4
- data/stubs/inertia-react-ts/app/javascript/Components/NavLink.tsx +4 -4
- data/stubs/inertia-react-ts/app/javascript/Components/PrimaryButton.tsx +1 -1
- data/stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx +1 -1
- data/stubs/inertia-react-ts/app/javascript/Components/TextInput.tsx +1 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d575337712c9b2651ca597a59bb56dfea851cf552ff3d1e4878d2182b6bff4a5
|
4
|
+
data.tar.gz: 8e91a3772f93eba05dbe2e656a087c015789ccf75b70b5132fd2ba419009effc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2562af016d65f894dd72e473a4b159bbf27799018872f4c5b4d29c8fb3290af031c3f5b2f487a3f2ef8552ed95247c2ad2a78cdbb31c62a91583376e1ca051c
|
7
|
+
data.tar.gz: 5d110365415c3d2878dbfb8c4f364af7200f5cfba500731ced7c47fbdde0680d9d27ac28e4c1c681f8804d28c397d5754fcde08ec4d6ecb7a973c313ebe5127b
|
@@ -76,12 +76,18 @@ class Kaze::Commands::InstallCommand < Thor
|
|
76
76
|
|
77
77
|
def run_command(command)
|
78
78
|
Open3.popen3(command) do |stdin, stdout, stderr, wait_thr|
|
79
|
-
Thread.new do
|
80
|
-
|
79
|
+
stdout_thread = Thread.new do
|
80
|
+
while (line = stdout.gets) do
|
81
|
+
say line
|
82
|
+
end
|
81
83
|
end
|
82
|
-
Thread.new do
|
83
|
-
|
84
|
+
stderr_thread = Thread.new do
|
85
|
+
while (line = stderr.gets) do
|
86
|
+
say line, :red
|
87
|
+
end
|
84
88
|
end
|
89
|
+
stdout_thread.join
|
90
|
+
stderr_thread.join
|
85
91
|
wait_thr.value
|
86
92
|
end
|
87
93
|
end
|
data/lib/kaze/version.rb
CHANGED
@@ -8,10 +8,7 @@ export default function Checkbox({
|
|
8
8
|
<input
|
9
9
|
{...props}
|
10
10
|
type="checkbox"
|
11
|
-
className={
|
12
|
-
'rounded dark:bg-gray-900 border-gray-300 dark:border-gray-700 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800 ' +
|
13
|
-
className
|
14
|
-
}
|
11
|
+
className={`rounded dark:bg-gray-900 border-gray-300 dark:border-gray-700 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800 ${className}`}
|
15
12
|
/>
|
16
13
|
)
|
17
14
|
}
|
@@ -12,7 +12,7 @@ export default function DangerButton({
|
|
12
12
|
className={
|
13
13
|
`inline-flex items-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 active:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 transition ease-in-out duration-150 ${
|
14
14
|
disabled && 'opacity-25'
|
15
|
-
} `
|
15
|
+
} ${className}`
|
16
16
|
}
|
17
17
|
disabled={disabled}
|
18
18
|
>
|
@@ -94,9 +94,7 @@ const Content = ({
|
|
94
94
|
onClick={() => setOpen(false)}
|
95
95
|
>
|
96
96
|
<div
|
97
|
-
className={
|
98
|
-
`rounded-md ring-1 ring-black ring-opacity-5 ` + contentClasses
|
99
|
-
}
|
97
|
+
className={`rounded-md ring-1 ring-black ring-opacity-5 ${contentClasses}`}
|
100
98
|
>
|
101
99
|
{children}
|
102
100
|
</div>
|
@@ -114,10 +112,7 @@ const DropdownLink = ({
|
|
114
112
|
return (
|
115
113
|
<Link
|
116
114
|
{...props}
|
117
|
-
className={
|
118
|
-
'block w-full px-4 py-2 text-start text-sm leading-5 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:bg-gray-100 dark:focus:bg-gray-800 transition duration-150 ease-in-out ' +
|
119
|
-
className
|
120
|
-
}
|
115
|
+
className={`block w-full px-4 py-2 text-start text-sm leading-5 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:bg-gray-100 dark:focus:bg-gray-800 transition duration-150 ease-in-out ${className}`}
|
121
116
|
>
|
122
117
|
{children}
|
123
118
|
</Link>
|
@@ -9,10 +9,7 @@ export default function InputLabel({
|
|
9
9
|
return (
|
10
10
|
<label
|
11
11
|
{...props}
|
12
|
-
className={
|
13
|
-
`block font-medium text-sm text-gray-700 dark:text-gray-300 ` +
|
14
|
-
className
|
15
|
-
}
|
12
|
+
className={`block font-medium text-sm text-gray-700 dark:text-gray-300 ${className}`}
|
16
13
|
>
|
17
14
|
{value ? value : children}
|
18
15
|
</label>
|
@@ -10,11 +10,11 @@ export default function NavLink({
|
|
10
10
|
<Link
|
11
11
|
{...props}
|
12
12
|
className={
|
13
|
-
|
14
|
-
|
13
|
+
`inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium leading-5 transition duration-150 ease-in-out focus:outline-none ${
|
14
|
+
active
|
15
15
|
? 'border-indigo-400 dark:border-indigo-600 text-gray-900 dark:text-gray-100 focus:border-indigo-700 '
|
16
|
-
: 'border-transparent text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 hover:border-gray-300 dark:hover:border-gray-700 focus:text-gray-700 dark:focus:text-gray-300 focus:border-gray-300 dark:focus:border-gray-700 '
|
17
|
-
className
|
16
|
+
: 'border-transparent text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 hover:border-gray-300 dark:hover:border-gray-700 focus:text-gray-700 dark:focus:text-gray-300 focus:border-gray-300 dark:focus:border-gray-700 '
|
17
|
+
} ${className}`
|
18
18
|
}
|
19
19
|
>
|
20
20
|
{children}
|
@@ -12,7 +12,7 @@ export default function PrimaryButton({
|
|
12
12
|
className={
|
13
13
|
`inline-flex items-center px-4 py-2 bg-gray-800 dark:bg-gray-200 border border-transparent rounded-md font-semibold text-xs text-white dark:text-gray-800 uppercase tracking-widest hover:bg-gray-700 dark:hover:bg-white focus:bg-gray-700 dark:focus:bg-white active:bg-gray-900 dark:active:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 transition ease-in-out duration-150 ${
|
14
14
|
disabled && 'opacity-25'
|
15
|
-
} `
|
15
|
+
} ${className}`
|
16
16
|
}
|
17
17
|
disabled={disabled}
|
18
18
|
>
|
@@ -14,7 +14,7 @@ export default function SecondaryButton({
|
|
14
14
|
className={
|
15
15
|
`inline-flex items-center px-4 py-2 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-500 rounded-md font-semibold text-xs text-gray-700 dark:text-gray-300 uppercase tracking-widest shadow-sm hover:bg-gray-50 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 disabled:opacity-25 transition ease-in-out duration-150 ${
|
16
16
|
disabled && 'opacity-25'
|
17
|
-
} `
|
17
|
+
} ${className}`
|
18
18
|
}
|
19
19
|
disabled={disabled}
|
20
20
|
>
|
@@ -31,10 +31,7 @@ export default forwardRef(function TextInput(
|
|
31
31
|
<input
|
32
32
|
{...props}
|
33
33
|
type={type}
|
34
|
-
className={
|
35
|
-
'border-gray-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 focus:border-indigo-500 dark:focus:border-indigo-600 focus:ring-indigo-500 dark:focus:ring-indigo-600 rounded-md shadow-sm ' +
|
36
|
-
className
|
37
|
-
}
|
34
|
+
className={`border-gray-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 focus:border-indigo-500 dark:focus:border-indigo-600 focus:ring-indigo-500 dark:focus:ring-indigo-600 rounded-md shadow-sm ${className}`}
|
38
35
|
ref={localRef}
|
39
36
|
/>
|
40
37
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaze
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cuong Giang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|