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

Update basset paths #44

Merged
merged 2 commits into from
Oct 31, 2023
Merged

Update basset paths #44

merged 2 commits into from
Oct 31, 2023

Conversation

arb362
Copy link
Contributor

@arb362 arb362 commented Oct 27, 2023

Change reference from icons to new font folder

WHY

BEFORE - What was wrong? What was happening before this PR?

Wasn't caching the correct folder path due to updates in the elFinder Material Theme

AFTER - What is happening after this PR?

It will cache the correct files in the correct folders

Closes #43

HOW

How did you achieve that, in technical terms?

Updated the folder Path

Is it a breaking change or non-breaking change?

Not a breaking change.

How can we test the before & after?

If you run it as is, you will get 404 error and no icons when opening the file manager. If you run this pull request the icons will display and no 404 errors

Additional Notes

Ideally you would lock the version via jsdelivr but I wasn't going to propose that without a conversation.
i.e. https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0/Material/css/theme.min.css

Change reference from icons to new font folder
@karandatwani92 karandatwani92 mentioned this pull request Oct 29, 2023
@pxpm
Copy link
Contributor

pxpm commented Oct 30, 2023

Hey @arb362 thanks for the report and the PR.

When I saw some people having the issue, others don't I figured out this had to be something sketchy.

What's happening is that some people pull version v2.x where the icons are inside the icons folder. Other people are getting the v3, which has the icons inside the font folder.

So my suggestion is to pin the version on this URLs, so that we all get the same version.

Can you change your PR's to include the version in the urls ?

- https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme/Material/font/material.svg
+ https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0/Material/font/material.svg

If you don't have time/desire to do it, I will do the changes myself and merge it.

Thanks again 🙏

@pxpm pxpm self-assigned this Oct 30, 2023
@pxpm pxpm added the bug Something isn't working label Oct 30, 2023
@arb362
Copy link
Contributor Author

arb362 commented Oct 30, 2023

Sure thing @pxpm! Thanks for checking into it.
I have added the version to the URLs.

@pxpm
Copy link
Contributor

pxpm commented Oct 31, 2023

Thanks @arb362 I will merge this as is, and subsequently merge a new PR to add this new urls to the regex. 🙏

Thanks again for your help here!

@pxpm pxpm merged commit da7b575 into Laravel-Backpack:main Oct 31, 2023
2 checks passed
@pxpm pxpm mentioned this pull request Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Missing Icons/Font
3 participants