Skip to content

Make it easier to inject custom JS / CSS / HTML snippets (aka. custom userscripts)#746

Open
Raruto wants to merge 106 commits into
devfrom
standalone-ors
Open

Make it easier to inject custom JS / CSS / HTML snippets (aka. custom userscripts)#746
Raruto wants to merge 106 commits into
devfrom
standalone-ors

Conversation

@Raruto
Copy link
Copy Markdown
Member

@Raruto Raruto commented Feb 9, 2024

TODO


Precedes: g3w-suite/g3w-client#485

Follows: g3w-suite/g3w-client#574

Motivation

  1. make branding more easier for 3rd party developers (ie. no more G3WSUITE_CUSTOM_STATIC_URL hell!)

  2. closes: Remove yarn as project dependency #352

  3. closes: Remove google font from AdmintLTE template #359

  4. Deprecate/archive the following repositories:

  5. reduce entry barrier for other developers allowing them to test code changes without having to recompile it (ie. npm/yarn should not be a mandatory dependency to develop/deploy a plugin)

  6. Lazy loading active language translation (i18n) instead to include all locales within the generated bundle g3w-client#412

Related: g3w-suite/g3w-client#292 g3w-suite/g3w-client#442


Before (v3.9.x)

• "g3w-admin"

image

• "django-admin"

image

image


After (v4.0.x)

• "g3w-admin"

image

• "django-admin"

image

image

• "userscripts" (new)

image

image

@Raruto Raruto changed the title Remove yarn + convert "openrouteservice", "qplotly" and "qtimeseries" to standalone plugins (ie. no more build step for static plugin.js, g3wadmin.js and g3wadmin.css) Make it easier to inject custom JS / CSS / HTML snippets (aka. custom userscripts) Apr 4, 2025
@Raruto Raruto added this to the v4.0 milestone Apr 4, 2025
@Raruto Raruto marked this pull request as ready for review April 4, 2025 09:57
@Raruto Raruto requested a review from wlorenzetti April 4, 2025 09:59
@Raruto Raruto added breaking Any code changes that are not or may not be backward compatible and removed refactoring Anything which could result in a API change labels Apr 4, 2025
Raruto added a commit that referenced this pull request May 8, 2025
Raruto added a commit that referenced this pull request May 19, 2025
wlorenzetti added a commit that referenced this pull request May 22, 2025
…cale) (#1113)

* Add model for layer scale user constraint

* Add model for scale user visibility constraint.

* Create base CRUD API rest for ScaleVisibilityLayerConstraint

* Add tests

* Add widget js workflow

* Add widget counter by layer

* Add invalidation project cache on CRUD

* Add anonymous user management

* Reomve anonymous user reference

* Typo

* extract `data-widget-scalevisconstraintManagerList.js` for easier future porting

ref: #746

* null coalesce

---------

Co-authored-by: Raruto <Raruto@users.noreply.github.com>
wlorenzetti added a commit that referenced this pull request May 23, 2025
…yer) (#1105)

* Add 'info_result_number_fields' management

* Add test

* g3w-suite/g3w-client@1865d61

* inline `onchange` for easier future porting

ref: #746

* i18n

* `info_result_number_fields` → `max_preview_fields`

* ref: g3w-suite/g3w-client@e64d167

* Set max to number fo database colums. Show input only for vector layers.

* enforce min/max values

* min/max from input attributes

* g3w-suite/g3w-client@1d07df9

* Fix get value >= 10

* Fic count fields number for fake layers

---------

Co-authored-by: volterra79 <boccacci.francesco@gmail.com>
Co-authored-by: Raruto <Raruto@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Any code changes that are not or may not be backward compatible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove google font from AdmintLTE template Remove yarn as project dependency

2 participants