chamilo / chamilo-lms

Chamilo is a learning management system focused on ease of use and accessibility
https://chamilo.org
GNU General Public License v3.0
798 stars 480 forks source link

CHAMILO PWA #4961

Open Apfeldenker opened 11 months ago

Apfeldenker commented 11 months ago

Would it be possible to make Chamilo a progressive web app, without profound changes in the code? I thought of some plugin, but maybe someone thought of it before.

ywarnier commented 11 months ago

Any recommend link to read about PWA? Chamilo 2 (due mid-2024) will come with a VueJS layer on top for part of the interface (to be extended in the future). Maybe that will already answer part of the issue...

Apfeldenker commented 11 months ago

PWAs are progressive web apps, to function we'd need a manifest, app-icon set and a service worker

Apfeldenker commented 11 months ago

However, now I have another question. How is it possible to make the LMS use the icons provided with a theme? Maybe it has something to do with the fact that I only provided 32x and 64x images.

ywarnier commented 11 months ago

You should be able to find what you need here: https://docs.chamilo.org/developer-guide/theming_through_css/extending_the_icons_set

Apfeldenker commented 11 months ago

I already put the images inside /icons/… folder, but they don’t change. I now use css with alt-text to replace them, but this seems to not be the best way to do it. I uploaded them in a new folder trough Admin, do I maybe need some cache cleanup or do I need to have the icons in every size for it to work?Am 26.10.2023 um 23:28 schrieb Yannick Warnier @.***>: You should be able to find what you need here: https://docs.chamilo.org/developer-guide/theming_through_css/extending_the_icons_set

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

ywarnier commented 11 months ago

@Apfeldenker You should upload the new CSS through the CSS uploader feature (as a zip file with a new directory name), indeed. If you upload them directly, you can also do it but you need to upload in app/Resources/public/css/themes/ and web/css/themes/.

Also, icons can be cached for a very long time if you have some Expires/Headers settings in your Apache/Nginx config. But that's independent from Chamilo

ywarnier commented 11 months ago

On the topic of PWA, this seems to be a nice feature to add for Chamilo 2 (probably 2.1). I don't think it's a great idea for 1.11, as it does not much in terms of improving Chamilo for the user, unless you can store some data on the client side, which we hope to be doing efficiently in Chamilo 2.

Apfeldenker commented 11 months ago

Ok, thanks.Am 05.11.2023 um 11:51 schrieb Yannick Warnier @.***>: @Apfeldenker You should upload the new CSS through the CSS uploader feature (as a zip file with a new directory name), indeed. If you upload them directly, you can also do it but you need to upload in app/Resources/public/css/themes/ and web/css/themes/. Also, icons can be cached for a very long time if you have some Expires/Headers settings in your Apache/Nginx config. But that's independent from Chamilo

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>