mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-02 17:53:30 +00:00
* refactor: clean up code in SuperagentHttpClient and upload.spec - Removed unnecessary eslint-disable comment in SuperagentHttpClient for improved code clarity. - Refactored promise handling in upload.spec to utilize an array for better management of multiple promises during file upload error handling. * chore: update cspell and ESLint configurations - Added "webscript" to the cspell dictionary for improved spell checking. - Updated ESLint configuration to disable the "@typescript-eslint/no-explicit-any" rule, allowing more flexibility in type definitions. * fix: enhance ImgViewerComponent to handle cleanup and prevent errors after destruction - Added a `destroyed` flag to manage component lifecycle and prevent operations on a destroyed instance. - Implemented `afterEach` hooks in tests to ensure proper fixture cleanup. - Updated key event handlers and methods to check for the `destroyed` state before executing actions, improving stability and preventing errors. Co-authored-by: Cursor <cursoragent@cursor.com> * fix: add aria-hidden attribute to notification history button for accessibility - Updated the notification history button to include the `aria-hidden` attribute, improving accessibility for screen readers and enhancing user experience. * fix: improve key event handling in ImgViewerComponent - Updated key event handlers to check for the presence of the cropper before executing actions, enhancing stability and preventing errors when the component is destroyed. - Removed redundant checks from individual arrow key handlers, streamlining the code. --------- Co-authored-by: Cursor <cursoragent@cursor.com>
Alfresco JavaScript API
JavaScript client API for the Alfresco REST API and Activiti REST API.
API clients documentation
- Authentication Api
- Content Api
- Model Api
- Process Api (AAE)
- Search Api
- Governance Classification Api
- Governance Core Api
- Discovery Content API
Guides
- Authentication
- Calling Custom Endpoints
- Error Events
- ECM Examples, full docs: Content API
- BPM Examples, full docs: APS 2.X API
Prerequisites
The minimal supported versions are:
- Alfresco Platform Repository: version 5.2.a-EA or newer
- Activiti: 1.5
- Node.js (Long Term Support version)
Installing
Using NPM:
npm install @alfresco/js-api
Development
To run the build
npm run build
To run the test
npm run test