-
Notifications
You must be signed in to change notification settings - Fork 841
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
Dark Mode v2 #1229
Dark Mode v2 #1229
Conversation
Thanks for tackling this one again @fotrino! I'll check it out properly once it's marked ready. |
Hi @jessarcher when you have a chance, take a look at the PR. Thanks! |
So does this essentially duplicate the Livewire views in Jetstream for the time being? The old legacy views and the new views that support dark mode? |
Yes, exactly. This will prevent any issues in previous installations without published views & new ones will work as user defines upon installation (with or without dark mode) because all the components are being published from the livewire stubs. |
@fotrino ... @jessarcher can correct me if I'm wrong, but we also batted around the idea of just tagging a Jetstream 3.0 - this would allow us to make the change without having to have the duplicated views for backwards compatibility. |
@taylorotwell that sounds even better! What do you think about moving the files from Also, the following command |
I agree re: moving this to Jetstream 3.0. We'll just need to mention in the upgrade guide about publishing views prior to upgrading (if the user hasn't already).
I had already done some work on this in #1118. If you take a look at
I'd already removed this in I've just gone ahead and merged the latest The main conflict you may run into with the Inertia stack is that in 3.x the authenticated user is now shared under Thanks again for your work on this! |
Hey @fotrino! Based on @jessarcher's feedback, could you send this PR to 10.x accordingly? Thanks! |
Hey @taylorotwell, just created a PR on |
This PR brings back Dark Mode changes introduced in PR 1209 without causing issues to existing applications with Jetstream installed as it was mentioned in Issue 1226.
Changes
As suggested by @jessarcher in this comment, the views from
views/resources
remain unchanged to avoid issues with previous installs.Original files from
views/resources
have been copied tostubs/livewire/resources/views/
to keep track of changes.On new installations, the following directories
stubs/livewire/resources/views/components
stubs/livewire/resources/views/mail
will be copied toviews/vendor/jetstream/
.On new installations without
--dark
directive, the commandphp artisan vendor:publish --tag=jetstream-views --force
was removed. Views are already published as mentioned in point above.The changes introduced to strip dark classes PR 1224, dark nav menu in PR 1225 have been included.
Step to verify Issue 1226 is Fixed
composer require laravel/jetstream
php artisan jetstream:install livewire --teams
views/vendor/jetstream
"laravel/jetstream": "dev-dark-mode-v2"
composer update