[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make a new web component


Fabien Bodard

Le lun. 7 juil. 2025 à 14:45, Lee <t.lee.davidson@xxxxxxxxx> a écrit :

> On 7/7/25 3:49 AM, Fabien Bodard wrote:
> > I begin to understand the basis but I stuck on adding this  (LeafLet
> map) :
> >
> > <link rel="stylesheet" href="
> https://unpkg.com/leaflet@1.9.4/dist/leaflet.css <
> https://unpkg.com/leaflet@1.9.4/dist/
> > leaflet.css>"
> integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
> crossorigin="" />
> >
> > <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js <
> https://unpkg.com/leaflet@1.9.4/dist/leaflet.js>"
> > integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
> crossorigin=""></script>
> >
> > How I'm I supposed to do to add this pre requise. ?
> >
> > (I've read a big part of the web.gui code but nothing about external js
> code)
> >
> > Thank you
> >
>
> Just a thought: A component should probably not rely on externally
> retrieved sources. The sources should be downloaded and saved
> locally so they are always available. And, having the sources "frozen" at
> a certain version would prevent any unexpected surprises.
>

Well both can have good reason

- local: more stability, but need to be updated
- extern: more secure update, but can lead to a end of service from the
provider.

In our case you are right... We want stability even if internet die.







>
> --
> Lee
>
> --- Gambas User List Netiquette [
> https://gambaswiki.org/wiki/doc/netiquette] ----
> --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user]
> ----
>
>
>

Follow-Ups:
Re: How to make a new web componentBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
How to make a new web componentFabien Bodard <gambas.fr@xxxxxxxxx>
Re: How to make a new web componentLee <t.lee.davidson@xxxxxxxxx>