kaze 0.14.0 → 0.15.0

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: 76266303b2438a2b8150e105b949336025535af3fd5333a6046b6cc304c1838f
4
- data.tar.gz: 93c6e63fbd507419b506721869aaf2624057a9e27baf53c111ea6318a8dd9a40
3
+ metadata.gz: a44c66f7525581cd33d1fab5a820c60eea40817aa3c312ee06933c60fed20fb4
4
+ data.tar.gz: 0fd2a38cc0d061c040dcf3159f4128565bc108e8d027b24b6cede84d7fde810d
5
5
  SHA512:
6
- metadata.gz: 94150da33b21e62478df0c05903f3405e3c15d3753d566f145726dd61e773d5074f9ccd4bd68df1f531ae30fd51390eedd80ec4b1805689b3a432f3513c72f3e
7
- data.tar.gz: 0d14fa92c8c2929b6d1286acba751e62af9f807389b36ab9564e21b905bde434e186861b053e8367e04f21a26eb335b4aa5360abc876178b28c35241232e348d
6
+ metadata.gz: 72ade6f9944a454c4f4b618ad03fac989cea4b0860242195dd386f04333761ff3d8e520777ea05e22ca7e96c50792c4d8757f24150545d3efec0be417e02605f
7
+ data.tar.gz: 36bf2356230cba133ef344012dee99a8729c41474c43392498e148e333f6b21229d5e26635201dc05ef68a34577f418fb10aa955ad23a731fac89a9e1915999a
data/lib/kaze/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kaze
2
- VERSION = '0.14.0'
2
+ VERSION = '0.15.0'
3
3
  end
@@ -1,4 +1,4 @@
1
- import { useEffect, FormEventHandler } from 'react'
1
+ import { FormEventHandler } from 'react'
2
2
  import Checkbox from '@/Components/Checkbox'
3
3
  import GuestLayout from '@/Layouts/GuestLayout'
4
4
  import InputError from '@/Components/InputError'
@@ -15,16 +15,12 @@ export default function Login({ status }: { status?: string }) {
15
15
  remember: false,
16
16
  })
17
17
 
18
- useEffect(() => {
19
- return () => {
20
- reset('password')
21
- }
22
- }, [])
23
-
24
18
  const submit: FormEventHandler = (e) => {
25
19
  e.preventDefault()
26
20
 
27
- post(login_path())
21
+ post(login_path(), {
22
+ onFinish: () => reset('password'),
23
+ })
28
24
  }
29
25
 
30
26
  return (
@@ -1,4 +1,4 @@
1
- import { useEffect, FormEventHandler } from 'react'
1
+ import { FormEventHandler } from 'react'
2
2
  import GuestLayout from '@/Layouts/GuestLayout'
3
3
  import InputError from '@/Components/InputError'
4
4
  import InputLabel from '@/Components/InputLabel'
@@ -15,16 +15,12 @@ export default function Register() {
15
15
  password_confirmation: '',
16
16
  })
17
17
 
18
- useEffect(() => {
19
- return () => {
20
- reset('password', 'password_confirmation')
21
- }
22
- }, [])
23
-
24
18
  const submit: FormEventHandler = (e) => {
25
19
  e.preventDefault()
26
20
 
27
- post(register_path())
21
+ post(register_path(), {
22
+ onFinish: () => reset('password', 'password_confirmation'),
23
+ })
28
24
  }
29
25
 
30
26
  return (
@@ -1,4 +1,4 @@
1
- import { useEffect, FormEventHandler } from 'react'
1
+ import { FormEventHandler } from 'react'
2
2
  import GuestLayout from '@/Layouts/GuestLayout'
3
3
  import InputError from '@/Components/InputError'
4
4
  import InputLabel from '@/Components/InputLabel'
@@ -14,16 +14,12 @@ export default function ResetPassword({ token }: { token: string }) {
14
14
  password_confirmation: '',
15
15
  })
16
16
 
17
- useEffect(() => {
18
- return () => {
19
- reset('password', 'password_confirmation')
20
- }
21
- }, [])
22
-
23
17
  const submit: FormEventHandler = (e) => {
24
18
  e.preventDefault()
25
19
 
26
- post(password_store_path())
20
+ post(password_store_path(), {
21
+ onFinish: () => reset('password', 'password_confirmation'),
22
+ })
27
23
  }
28
24
 
29
25
  return (
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.14.0
4
+ version: 0.15.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-07-08 00:00:00.000000000 Z
11
+ date: 2024-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor