wintercms / wn-tailwindui-plugin

Provides the TailwindUI-based modern backend skin for the Winter CMS backend
MIT License
15 stars 9 forks source link

Missing backend JS files #31

Closed Monologophobia closed 1 year ago

Monologophobia commented 1 year ago

Winter CMS Build

1.2.1

PHP Version

8.1.13

Database engine

sqlite / any

Plugins installed

wn-tailwindui-plugin

Issue description

Installing this plugin removes

/modules/system/assets/js/build/system.debug.js
/modules/backend/assets/ui/js/build/manifest.js
/modules/backend/assets/ui/js/build/vendor.js

This prevents $.request as CSRF header is not added to AJAX requests.

Steps to replicate

composer create-project wintercms/winter

At this point, the files are intact.

composer require winter/wn-tailwindui-plugin

Now the files are missing.

Login to backend check network requests image image

Workaround

Download the above files from the main repository or use composer require winter/wn-tailwindui-plugin:dev-main#ed9af5c which was the last commit before the changes.

Monologophobia commented 1 year ago

Sorry, slight correction. It's not that the files are removed, it's just that they don't exist in 1.2.1. I assume this means this wn-tailwindui-plugin:dev-main is only compatible with wintercms:develop rather than 1.2.1?

josephcrowell commented 1 year ago

Yep change the references for the Winter CMS core packages to "dev-develop" in your composer.json.

Monologophobia commented 1 year ago

@josephcrowell Thanks for the confirmation.

May be worth mentioning this in the README but that may be a tad excessive as it's an in-dev plugin without a stable version yet.

bennothommo commented 1 year ago

It's come up a couple of times now, so I've added a note in the README to use the develop branch of Winter. Thanks @Monologophobia :)