KaiLega / engrid-XYZ

0 stars 0 forks source link

Ciao da 4Site! #1

Open bryancasler opened 2 years ago

bryancasler commented 2 years ago

Hello! I saw you copied our engrid-scripts repository. If you have any questions, let us know. I don't speak Italian but I'll do my best to help.

Google Translate Ciao! Ho visto che hai copiato il nostro repository di script engrid. Se avete domande, fatecelo sapere. Non parlo italiano ma farò del mio meglio per aiutare.

KaiLega commented 2 years ago

Hello, Well yes.. thanks for asking! Actually I followed all the steps but it didn't work. When I go to localhost, it doesn't find anything.. Any clue?

Il giorno mer 17 nov 2021 alle ore 02:32 bryancasler < @.***> ha scritto:

Hello! I saw you copied our engrid-scripts repository. If you have any questions, let us know. I don't speak Italian but I'll do my best to help.

Google Translate Ciao! Ho visto che hai copiato il nostro repository di script engrid. Se avete domande, fatecelo sapere. Non parlo italiano ma farò del mio meglio per aiutare.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/KaiLega/engrid-XYZ/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWIMVAE44LLHUFZS25MLW2DUMMAZNANCNFSM5IFXLIHQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--

Kaichi Yu Ufficio Sistemi Informativi Legambiente Onlus Via Salaria 403 00199 Roma tel. 06 86 26 83 20 fax 06 23 32 57 70 www.legambiente.it @.**@.

[image: Clicca per visitare la pagina] http://www.legambiente.it/banner/firma.php *prima di stampare questa email pensa all'ambiente

bryancasler commented 2 years ago

Hey Kai, not sure where you are stuck but we changed how engrid works to improve the workflow for our developers. We don't have it fully documented because it's one of the few things we are trying to keep secret-ish as a competitive advantage, and it was done just for us, but I'm happy to share with you how it works.

The new setup allows you to "develop" on live pages by swapping out the engrid.min.css and engrid.min.js after the page loads with locally compiled assets. This is done by specifying a URL argument that triggers the swap assets=local.

First, on your computer, you need to get your local assets so they serve up from the same domain as your repository.

e.g. Repository Name: engrid-oc e.g. Assets: https://www.engrid-oc.test/dist/engrid.css

Once you've done that, then you need to configure your Page Template similar to below. The ENgrid assets must be named engrid.min.css and engrid.min.js

e.g. https://donate.oceanconservancy.org/page/93339/donate/1?mode=DEMO

After <link href="https://aaf1a18515da0e792f78-c27fdabe952dfc357fe25ebf5c8897ee.ssl.cf5.rackcdn.com/1991/engrid.min.css" rel="stylesheet" type="text/css">

Before <script async src="https://aaf1a18515da0e792f78-c27fdabe952dfc357fe25ebf5c8897ee.ssl.cf5.rackcdn.com/1991/engrid.min.js"></script>

Now you can load a "live" page with the URL argument added on https://donate.oceanconservancy.org/page/93339/donate/1?mode=DEMO&assets=local

And after page loads, it will swap out the live engrid assets for local engrid assets.

Recording: https://d.pr/v/xO0m6I