cakephp-sandbox icon indicating copy to clipboard operation
cakephp-sandbox copied to clipboard

Templating Icon fa6 example is using fa5

Open umer936 opened this issue 1 year ago • 9 comments

https://sandbox.dereuromark.de/sandbox/templating-examples/icon-sets/fa6

has

<link rel="stylesheet" href="/assets/fontawesome-free/css/solid.css">

which goes to fa5. I noticed this because I was doing the exact same error in my project so I checked your sandbox and found the same thing 😄

umer936 avatar Sep 11 '24 00:09 umer936

Where did you see this linked? I think I removed that a while ago It is after all only a showcase of the plugin and possible sets Currently only fa4 should be available via https://sandbox.dereuromark.de/sandbox/templating-examples/icons

dereuromark avatar Sep 12 '24 11:09 dereuromark

If you have a fix on how to pull fa6, maybe you can make a PR here, and we can reactivate that link/action too :)

dereuromark avatar Sep 12 '24 12:09 dereuromark

Lol I'm not sure where I got to that link from. Google somewhere maybe?


I was unable to get a version of sandbox going to test my changes.

AssetCompress couldn't find the correct files and then also didn't have an assets folder in webroot so I ended up with "Cannot find meta data file path /web/cakephp-sandbox/webroot/assets/font-awesome/less/variables.less for Templating\View\Icon\FontAwesome4Icon."

Not sure if I missed a step of grabbing those.


Regardless, essentially https://github.com/dereuromark/cakephp-sandbox/blob/master/plugins/Sandbox/templates/TemplatingExamples/icon_sets.php has it loading solid.css, but what's at solid.css is font-awesome 5.15.4 from https://sandbox.dereuromark.de/assets/fontawesome-free/css/solid.css , not fa6. In my case I just changed the CDN to the fa6 link rather than the fa5 link.

umer936 avatar Sep 12 '24 16:09 umer936

Check setup.sh and build.sh They Show the steps

dereuromark avatar Sep 12 '24 16:09 dereuromark

The assets folder should be Auto created using the setup.sh

dereuromark avatar Sep 12 '24 16:09 dereuromark

Ah. I totally didn't read SETUP.md lol. Ok I'll look later.

umer936 avatar Sep 12 '24 16:09 umer936

@umer936 Did you have a chance to revisit?

dereuromark avatar Oct 23 '24 15:10 dereuromark

I did but kept getting stuck. I tried just running it but I don't have php or composer installed on the host system, just in docker containers. So then I tried https://github.com/dereuromark/sandbox-docker which also relies on php.

So I spun up a devcontainer + docker-compose with php and mysql and ran the setup with just the main project and it mostly succeeded but then I ended up with asset_compress issues likely because I didn't have certain build packages from npm. The webpage shows "could not locate bootstrap.css in css-combined."

umer936 avatar Oct 28 '24 18:10 umer936

Try ddev It usually ships with a lot out of the box

As for bootstrap.css missing: Did you run composer assets etc as per build.sh? That all assets are downloaded before you try building the asset compress file(s)?

dereuromark avatar Oct 28 '24 18:10 dereuromark

I still use devilbox by the way: https://github.com/devilbox-community/devilbox

dereuromark avatar Mar 29 '25 14:03 dereuromark

Nowadays I use ddev, I updated the local docs/README accordingly. Should work out of the box.

dereuromark avatar Oct 12 '25 00:10 dereuromark

https://github.com/dereuromark/cakephp-sandbox/commit/9a2e334f0e90796f5ab1cc433dc721bb71ffb248

dereuromark avatar Oct 12 '25 00:10 dereuromark