From 70d50b69352a28a342869756ccae570b9b0a932b Mon Sep 17 00:00:00 2001 From: Jess Archer Date: Tue, 6 Sep 2022 00:26:39 +1000 Subject: [PATCH] [1.x] Remove "Breeze" component prefix (#179) * Remove Breeze prefix from components * Standardize layout components * Rename components that conflict with HTML elements --- .../views/auth/confirm-password.blade.php | 8 ++-- .../views/auth/forgot-password.blade.php | 8 ++-- .../resources/views/auth/login.blade.php | 12 +++--- .../resources/views/auth/register.blade.php | 20 ++++----- .../views/auth/reset-password.blade.php | 16 +++---- .../views/auth/verify-email.blade.php | 4 +- ...{label.blade.php => input-label.blade.php} | 0 ...ton.blade.php => primary-button.blade.php} | 0 .../{input.blade.php => text-input.blade.php} | 0 .../Components/{Label.jsx => InputLabel.jsx} | 2 +- .../{Button.jsx => PrimaryButton.jsx} | 2 +- .../Components/{Input.jsx => TextInput.jsx} | 2 +- ...henticated.jsx => AuthenticatedLayout.jsx} | 0 .../js/Layouts/{Guest.jsx => GuestLayout.jsx} | 0 .../js/Pages/Auth/ConfirmPassword.jsx | 20 ++++----- .../js/Pages/Auth/ForgotPassword.jsx | 16 +++---- .../resources/js/Pages/Auth/Login.jsx | 24 +++++------ .../resources/js/Pages/Auth/Register.jsx | 32 +++++++------- .../resources/js/Pages/Auth/ResetPassword.jsx | 28 ++++++------- .../resources/js/Pages/Auth/VerifyEmail.jsx | 10 ++--- .../resources/js/Pages/Dashboard.jsx | 6 +-- .../Components/{Label.vue => InputLabel.vue} | 0 .../{Button.vue => PrimaryButton.vue} | 0 .../Components/{Input.vue => TextInput.vue} | 0 ...henticated.vue => AuthenticatedLayout.vue} | 32 +++++++------- .../js/Layouts/{Guest.vue => GuestLayout.vue} | 4 +- .../js/Pages/Auth/ConfirmPassword.vue | 24 +++++------ .../js/Pages/Auth/ForgotPassword.vue | 24 +++++------ .../resources/js/Pages/Auth/Login.vue | 34 +++++++-------- .../resources/js/Pages/Auth/Register.vue | 42 +++++++++---------- .../resources/js/Pages/Auth/ResetPassword.vue | 36 ++++++++-------- .../resources/js/Pages/Auth/VerifyEmail.vue | 12 +++--- .../resources/js/Pages/Dashboard.vue | 6 +-- 33 files changed, 212 insertions(+), 212 deletions(-) rename stubs/default/resources/views/components/{label.blade.php => input-label.blade.php} (100%) rename stubs/default/resources/views/components/{button.blade.php => primary-button.blade.php} (100%) rename stubs/default/resources/views/components/{input.blade.php => text-input.blade.php} (100%) rename stubs/inertia-react/resources/js/Components/{Label.jsx => InputLabel.jsx} (72%) rename stubs/inertia-react/resources/js/Components/{Button.jsx => PrimaryButton.jsx} (83%) rename stubs/inertia-react/resources/js/Components/{Input.jsx => TextInput.jsx} (96%) rename stubs/inertia-react/resources/js/Layouts/{Authenticated.jsx => AuthenticatedLayout.jsx} (100%) rename stubs/inertia-react/resources/js/Layouts/{Guest.jsx => GuestLayout.jsx} (100%) rename stubs/inertia-vue/resources/js/Components/{Label.vue => InputLabel.vue} (100%) rename stubs/inertia-vue/resources/js/Components/{Button.vue => PrimaryButton.vue} (100%) rename stubs/inertia-vue/resources/js/Components/{Input.vue => TextInput.vue} (100%) rename stubs/inertia-vue/resources/js/Layouts/{Authenticated.vue => AuthenticatedLayout.vue} (80%) rename stubs/inertia-vue/resources/js/Layouts/{Guest.vue => GuestLayout.vue} (73%) diff --git a/stubs/default/resources/views/auth/confirm-password.blade.php b/stubs/default/resources/views/auth/confirm-password.blade.php index 466593a4f..f740f1aeb 100644 --- a/stubs/default/resources/views/auth/confirm-password.blade.php +++ b/stubs/default/resources/views/auth/confirm-password.blade.php @@ -18,18 +18,18 @@
- + -
- + {{ __('Confirm') }} - +
diff --git a/stubs/default/resources/views/auth/forgot-password.blade.php b/stubs/default/resources/views/auth/forgot-password.blade.php index 0642fa882..6945044eb 100644 --- a/stubs/default/resources/views/auth/forgot-password.blade.php +++ b/stubs/default/resources/views/auth/forgot-password.blade.php @@ -21,15 +21,15 @@
- + - +
- + {{ __('Email Password Reset Link') }} - +
diff --git a/stubs/default/resources/views/auth/login.blade.php b/stubs/default/resources/views/auth/login.blade.php index ecbe17485..7db47774a 100644 --- a/stubs/default/resources/views/auth/login.blade.php +++ b/stubs/default/resources/views/auth/login.blade.php @@ -17,16 +17,16 @@
- + - +
- + - @@ -47,9 +47,9 @@ @endif - + {{ __('Log in') }} - +
diff --git a/stubs/default/resources/views/auth/register.blade.php b/stubs/default/resources/views/auth/register.blade.php index a0c4fbe02..aada77d9d 100644 --- a/stubs/default/resources/views/auth/register.blade.php +++ b/stubs/default/resources/views/auth/register.blade.php @@ -14,23 +14,23 @@
- + - +
- + - +
- + - @@ -38,9 +38,9 @@
- + -
@@ -50,9 +50,9 @@ {{ __('Already registered?') }} - + {{ __('Register') }} - +
diff --git a/stubs/default/resources/views/auth/reset-password.blade.php b/stubs/default/resources/views/auth/reset-password.blade.php index 979d1b45c..56ed19abe 100644 --- a/stubs/default/resources/views/auth/reset-password.blade.php +++ b/stubs/default/resources/views/auth/reset-password.blade.php @@ -17,31 +17,31 @@
- + - +
- + - +
- + -
- + {{ __('Reset Password') }} - +
diff --git a/stubs/default/resources/views/auth/verify-email.blade.php b/stubs/default/resources/views/auth/verify-email.blade.php index dc0ae7f40..15e313d25 100644 --- a/stubs/default/resources/views/auth/verify-email.blade.php +++ b/stubs/default/resources/views/auth/verify-email.blade.php @@ -21,9 +21,9 @@ @csrf
- + {{ __('Resend Verification Email') }} - +
diff --git a/stubs/default/resources/views/components/label.blade.php b/stubs/default/resources/views/components/input-label.blade.php similarity index 100% rename from stubs/default/resources/views/components/label.blade.php rename to stubs/default/resources/views/components/input-label.blade.php diff --git a/stubs/default/resources/views/components/button.blade.php b/stubs/default/resources/views/components/primary-button.blade.php similarity index 100% rename from stubs/default/resources/views/components/button.blade.php rename to stubs/default/resources/views/components/primary-button.blade.php diff --git a/stubs/default/resources/views/components/input.blade.php b/stubs/default/resources/views/components/text-input.blade.php similarity index 100% rename from stubs/default/resources/views/components/input.blade.php rename to stubs/default/resources/views/components/text-input.blade.php diff --git a/stubs/inertia-react/resources/js/Components/Label.jsx b/stubs/inertia-react/resources/js/Components/InputLabel.jsx similarity index 72% rename from stubs/inertia-react/resources/js/Components/Label.jsx rename to stubs/inertia-react/resources/js/Components/InputLabel.jsx index 4c0a34cbe..93c0adea7 100644 --- a/stubs/inertia-react/resources/js/Components/Label.jsx +++ b/stubs/inertia-react/resources/js/Components/InputLabel.jsx @@ -1,6 +1,6 @@ import React from 'react'; -export default function Label({ forInput, value, className, children }) { +export default function InputLabel({ forInput, value, className, children }) { return (