Skip to content

Allow apps to opt-out of any shipped javascript libraries #8425

Description

@juliusknorr

From #7738

My idea here was to maybe provide a set of building blocks, that are not shipped within Nextcloud itself, but within the app via NPM/yarn/whatever modules, that the app itself need to ship.
Should we make this a breaking change or require apps to opt-in by using a special info.xml flag like ?
EDIT: we could also make the transition slowly by:

opt-in using in Nextcloud 14
opt-out using in Nextcloud 15
have a breaking change with Nextcloud 16

Those are the components we should try to migrate away from jQuery, so we don't have a dependency on that for normal app pages (feel free to add stuff I might have forgotten):

  • App menu
  • Notifications (should already be fine since it is a webpack bundled app)
  • Contacts menu
  • Popover handling
  • Search
  • avatar plugin
  • placeholder plugin
  • heartbeat
  • cron
  • tooltips
  • l10n (uses $.get)

@nextcloud/javascript

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developAccepted and waiting to be taken care ofdesignDesign, UI, UX, etc.enhancement

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions