Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Ping CRM to latest version of Inertia.js #99

Merged
merged 23 commits into from
Feb 27, 2021
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9b2b7d7
Update $page object to use $page.props
reinink Dec 22, 2020
27272fb
Update app.js to use new Inertia exports
reinink Dec 22, 2020
b061668
Update login form to use the new Inertia form
reinink Dec 22, 2020
d41b483
Update logout link to a button
reinink Dec 22, 2020
9d64030
Remove old code from layout
reinink Dec 22, 2020
a1eaaf7
Update main menu to use url on Inertia page object
reinink Dec 22, 2020
f8d9865
Update create contact form to use the new Inertia form
reinink Dec 22, 2020
312a5eb
Update edit contact form to use the new Inertia form
reinink Dec 22, 2020
8b76723
Update create organization form to use the new Inertia form
reinink Dec 22, 2020
19d8005
Update edit organization form to use the new Inertia form
reinink Dec 22, 2020
f1b1fec
Update create user form to use the new Inertia form
reinink Dec 22, 2020
3c9d00d
Update edit user form to use the new Inertia form
reinink Dec 22, 2020
9a01ae5
Fix edit user form resetting
reinink Dec 22, 2020
5ea932a
Fix issue with "remember" boolean on login page
reinink Feb 27, 2021
a0c6028
Standardize form submit handlers
reinink Feb 27, 2021
3cf207b
Fix owner attribute
reinink Feb 27, 2021
13ce803
Update PHP dependencies
reinink Feb 27, 2021
6ea4d09
Simplify pagination
reinink Feb 27, 2021
12d3c1b
Add support for PHP 8
reinink Feb 27, 2021
f3b8bba
Update NPM dependencies
reinink Feb 27, 2021
5dab72d
Clean up code formatting
reinink Feb 27, 2021
adc0db7
Upgrade to Tailwind 2.0 and Laravel Mix 6
reinink Feb 27, 2021
e1f57c3
Tweak pagination line height
reinink Feb 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix issue with "remember" boolean on login page
reinink committed Feb 27, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 5ea932ab90ae21d020cdc516ad57462f1ffe9cb6
14 changes: 12 additions & 2 deletions resources/js/Pages/Auth/Login.vue
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
<div class="p-6 bg-indigo-800 min-h-screen flex justify-center items-center">
<div class="w-full max-w-md">
<logo class="block mx-auto w-full max-w-xs fill-white" height="50" />
<form class="mt-8 bg-white rounded-lg shadow-xl overflow-hidden" @submit.prevent="form.post(route('login.attempt'))">
<form class="mt-8 bg-white rounded-lg shadow-xl overflow-hidden" @submit.prevent="submit">
<div class="px-10 py-12">
<h1 class="text-center font-bold text-3xl">Welcome Back!</h1>
<div class="mx-auto mt-6 w-24 border-b-2" />
@@ -39,9 +39,19 @@ export default {
form: this.$inertia.form({
email: 'johndoe@example.com',
password: 'secret',
remember: null,
remember: false,
}),
}
},
methods: {
submit() {
this.form
.transform(data => ({
...data,
remember: data.remember ? 'on' : '',
}))
.post(this.route('login.attempt'))
},
},
}
</script>