[ACA-3775] add missing plugin configuration (#1820)

* add missing plugin files, update readme

* add missing providers

* about and settings extensions

* leave only about
This commit is contained in:
Denys Vuika 2020-11-24 12:29:56 +00:00 committed by GitHub
parent b504a224ea
commit aba16339dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 156 additions and 48 deletions

View File

@ -77,12 +77,17 @@
},
{
"glob": "aos.plugin.json",
"input": "node_modules/@alfresco/adf-office-services-ext/assets",
"input": "projects/adf-office-services-ext/assets",
"output": "./assets/plugins"
},
{
"glob": "aos.plugin.json",
"input": "projects/adf-office-services-ext/assets",
"glob": "about.plugin.json",
"input": "projects/aca-about/assets",
"output": "./assets/plugins"
},
{
"glob": "settings.plugin.json",
"input": "projects/aca-settings/assets",
"output": "./assets/plugins"
}
],

View File

@ -713,6 +713,15 @@
"minItems": 0,
"uniqueItems": true
},
"$ignoreReferenceList": {
"description": "Plugins references to exclude",
"type": "array",
"items": {
"type": "string"
},
"minItems": 0,
"uniqueItems": true
},
"rules": {
"description": "List of rule definitions",
"type": "array",

50
package-lock.json generated
View File

@ -5,12 +5,12 @@
"requires": true,
"dependencies": {
"@alfresco/adf-cli": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/@alfresco/adf-cli/-/adf-cli-4.1.0.tgz",
"integrity": "sha512-G5XvgWukvVmoLCm5YO6A0FCJ7hHfCKwhX2urqO1M9Dmh13JgfYsJFl5s06TetdWmZMDCdU85nuVJaPKrOl9cXQ==",
"version": "4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6",
"resolved": "https://registry.npmjs.org/@alfresco/adf-cli/-/adf-cli-4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6.tgz",
"integrity": "sha512-PSA/LAScqA3vsJSOyu+4HRQENfI9IrQuwiDUHIn/sjXkc++L4Q5i47rvAP5UpWs4oSE4k6w5tMKsW/GdxAcDlw==",
"dev": true,
"requires": {
"@alfresco/js-api": "4.1.0",
"@alfresco/js-api": "4.2.0-3a7bedfc17429a8d30ce676b0c582087d037edaa",
"commander": "^4.0.0",
"ejs": "^2.6.1",
"license-checker": "^25.0.1",
@ -21,9 +21,9 @@
},
"dependencies": {
"@alfresco/js-api": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-4.1.0.tgz",
"integrity": "sha512-9eWihZ3lNtI08cffrnTqB9G8j9syDbLegyTescj8J1vqcxaXF7pvFCfP1zcNRIzfEErx8ncqjFf+IMbh8lvb7A==",
"version": "4.2.0-3a7bedfc17429a8d30ce676b0c582087d037edaa",
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-4.2.0-3a7bedfc17429a8d30ce676b0c582087d037edaa.tgz",
"integrity": "sha512-cGPksQX87nJdGdXSdCX6ZJvgPt7dXnTbwfJ6h0In/6jR8vc6LkTUl/HOIsYo9dTyHVef94JzWWKbtw5V6fOk/g==",
"dev": true,
"requires": {
"event-emitter": "^0.3.5",
@ -40,42 +40,42 @@
}
},
"@alfresco/adf-content-services": {
"version": "4.2.0-6ca8f53bab727b80dfd6fe0d5645187cdcb6082e",
"resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-4.2.0-6ca8f53bab727b80dfd6fe0d5645187cdcb6082e.tgz",
"integrity": "sha512-hVTTwkK9RxyPv6pJSzIkF9t3CdJ+VWdyPWuXHNEkdUqwtKSfP04+1RdFrAie1NVeKTw+jSMvywYrd526p8F6Xw==",
"version": "4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6",
"resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6.tgz",
"integrity": "sha512-GDM0NcbgnCyGsE9WHjBNhyCUAjvSHmYhJ3a1GPVEA0oXA99GG8tEr7CVkVrJyq+6g5lGzh/ihrj4DH52S/R0zQ==",
"requires": {
"tslib": "^2.0.0"
}
},
"@alfresco/adf-core": {
"version": "4.2.0-6ca8f53bab727b80dfd6fe0d5645187cdcb6082e",
"resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-4.2.0-6ca8f53bab727b80dfd6fe0d5645187cdcb6082e.tgz",
"integrity": "sha512-3dbHg4//0mWuxn15LKl0VrGVZiyeQUrf7asJzyPZejgdpqRkkbw9vMQ2yTke3wjv83/Pb4zzBRXGn/Hmn02qGg==",
"version": "4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6",
"resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6.tgz",
"integrity": "sha512-mZSrREoc9jV8uBIJfZJX4V86qj5iA6pWmmj2wfrCdq1nfsPWbhiEcqiQN9OpfvwMm58bdrzXX/FIS+Fox1U4Jg==",
"requires": {
"tslib": "^2.0.0"
}
},
"@alfresco/adf-extensions": {
"version": "4.2.0-6ca8f53bab727b80dfd6fe0d5645187cdcb6082e",
"resolved": "https://registry.npmjs.org/@alfresco/adf-extensions/-/adf-extensions-4.2.0-6ca8f53bab727b80dfd6fe0d5645187cdcb6082e.tgz",
"integrity": "sha512-aMk8Xq5xYXLTRxp33o6BAco34o51uqVqsrZSvphVbvlGbdL0GfMcG8e+OFRTjIb3opW7AyPkV66i1yfnU8pSig==",
"version": "4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6",
"resolved": "https://registry.npmjs.org/@alfresco/adf-extensions/-/adf-extensions-4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6.tgz",
"integrity": "sha512-fE2Gm+qj8R2nfIj3xTHXZdykHwAMOw0mUk64PNjGF067d2aYoJiLX8EMKy/LL7hfmmLYUdPjOiTa1YmL7P6t9g==",
"requires": {
"tslib": "^2.0.0"
}
},
"@alfresco/adf-testing": {
"version": "4.2.0-6ca8f53bab727b80dfd6fe0d5645187cdcb6082e",
"resolved": "https://registry.npmjs.org/@alfresco/adf-testing/-/adf-testing-4.2.0-6ca8f53bab727b80dfd6fe0d5645187cdcb6082e.tgz",
"integrity": "sha512-DdElhTIV+q4VPaWNe9UWcTsJdcI9eJEiHNRq+9WcAQPfsU7r+sgAFK17AipOkMgt0XbqJR2CfGmPKX5E+e1/Hg==",
"version": "4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6",
"resolved": "https://registry.npmjs.org/@alfresco/adf-testing/-/adf-testing-4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6.tgz",
"integrity": "sha512-V5+DGjZuWBk1ENYP8LWj2lZir/Ny7Nf32e3ktvHnvX0SC/dWLlCr+xEw3HhT5W+WZDNjCmhFvB53gjahy2UeBA==",
"dev": true,
"requires": {
"tslib": "^2.0.0"
}
},
"@alfresco/js-api": {
"version": "4.2.0-f9c54eaf48fe91e8d4671269cb5d6b8d00445bc0",
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-4.2.0-f9c54eaf48fe91e8d4671269cb5d6b8d00445bc0.tgz",
"integrity": "sha512-GZ2WdqWDcOR1kVi7shhmqkywjBIvWdsoHE+E97yg1ZOCzI6TbUQNjbiaPcHZlcjowrzJBJ74eXMnQy4dfFH6Ig==",
"version": "4.2.0-3a7bedfc17429a8d30ce676b0c582087d037edaa",
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-4.2.0-3a7bedfc17429a8d30ce676b0c582087d037edaa.tgz",
"integrity": "sha512-cGPksQX87nJdGdXSdCX6ZJvgPt7dXnTbwfJ6h0In/6jR8vc6LkTUl/HOIsYo9dTyHVef94JzWWKbtw5V6fOk/g==",
"requires": {
"event-emitter": "^0.3.5",
"minimatch": "3.0.4",
@ -10019,9 +10019,9 @@
}
},
"debug": {
"version": "3.2.6",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
"integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==",
"version": "3.2.7",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
"integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
"dev": true,
"requires": {
"ms": "^2.1.1"

View File

@ -1,6 +1,7 @@
{
"name": "alfresco-content-app",
"version": "2.1.0",
"author": "Alfresco Software, Ltd.",
"commit": "",
"license": "LGPL-3.0",
"scripts": {
@ -24,10 +25,10 @@
},
"private": true,
"dependencies": {
"@alfresco/adf-content-services": "4.2.0-6ca8f53bab727b80dfd6fe0d5645187cdcb6082e",
"@alfresco/adf-core": "4.2.0-6ca8f53bab727b80dfd6fe0d5645187cdcb6082e",
"@alfresco/adf-extensions": "4.2.0-6ca8f53bab727b80dfd6fe0d5645187cdcb6082e",
"@alfresco/js-api": "4.2.0-f9c54eaf48fe91e8d4671269cb5d6b8d00445bc0",
"@alfresco/adf-content-services": "4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6",
"@alfresco/adf-core": "4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6",
"@alfresco/adf-extensions": "4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6",
"@alfresco/js-api": "4.2.0-3a7bedfc17429a8d30ce676b0c582087d037edaa",
"@angular/animations": "10.0.4",
"@angular/cdk": "^10.0.2",
"@angular/common": "10.0.4",
@ -56,8 +57,8 @@
"zone.js": "~0.10.2"
},
"devDependencies": {
"@alfresco/adf-cli": "4.1.0",
"@alfresco/adf-testing": "4.2.0-6ca8f53bab727b80dfd6fe0d5645187cdcb6082e",
"@alfresco/adf-cli": "4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6",
"@alfresco/adf-testing": "4.2.0-418cd0e2d38c1e10b372ec44ae85a80f292c23d6",
"@angular-custom-builders/lite-serve": "^0.2.2",
"@angular-devkit/build-angular": "~0.1001.4",
"@angular-devkit/build-ng-packagr": "~0.1001.3",

View File

@ -63,4 +63,6 @@ Update the `app.extensions.json` extension configuration to enable extra routes
}
```
Alternatively, you can use the `assets/about.plugin.json` file.
Compile and distribute/run the application.

View File

@ -0,0 +1,45 @@
{
"$schema": "../../../extension.schema.json",
"$id": "14157f82-6489-4187-9b68-1a5e38fadeca",
"$name": "About Plugin",
"$version": "0.0.1",
"$vendor": "Alfresco Software, Ltd.",
"$license": "LGPL-3.0",
"actions": [
{
"id": "app.actions.about",
"type": "NAVIGATE_URL",
"payload": "/about"
}
],
"routes": [
{
"id": "app.about",
"path": "about",
"layout": "app.layout.main",
"component": "app.about.component"
}
],
"features": {
"header": [
{
"id": "app.header.more",
"children": [
{
"id": "app.header.about",
"order": 100,
"title": "APP.BROWSE.ABOUT.TITLE",
"description": "APP.BROWSE.ABOUT.TITLE",
"icon": "info",
"actions": {
"click": "app.actions.about"
}
}
]
}
]
}
}

View File

@ -35,11 +35,12 @@ import { ExtensionListComponent } from './extension-list/extension-list.componen
import { StatusListComponent } from './status-list/status-list.component';
import { ModuleListComponent } from './module-list/module-list.component';
import { LicenseListComponent } from './license-list/license-list.component';
import { ExtensionService } from '@alfresco/adf-extensions';
import { ExtensionService, provideExtensionConfig } from '@alfresco/adf-extensions';
@NgModule({
imports: [CommonModule, CoreModule.forChild(), MatTableModule, SharedModule, PageLayoutModule],
declarations: [AboutComponent, PackageListComponent, ExtensionListComponent, StatusListComponent, ModuleListComponent, LicenseListComponent]
declarations: [AboutComponent, PackageListComponent, ExtensionListComponent, StatusListComponent, ModuleListComponent, LicenseListComponent],
providers: [provideExtensionConfig(['about.plugin.json'])]
})
export class AcaAboutModule {
constructor(extensions: ExtensionService) {

View File

@ -105,4 +105,6 @@ Update the `app.extensions.json` extension configuration to enable extra routes
}
```
Alternatively, you can use the `assets/settings.plugin.json` file.
Compile and distribute/run the application.

View File

@ -0,0 +1,45 @@
{
"$schema": "../../../extension.schema.json",
"$id": "b1eac381-0268-450f-b1dc-8f041fba575d",
"$name": "Settings Plugin",
"$version": "0.0.1",
"$vendor": "Alfresco Software, Ltd.",
"$license": "LGPL-3.0",
"actions": [
{
"id": "app.actions.settings",
"type": "NAVIGATE_URL",
"payload": "/settings"
}
],
"routes": [
{
"id": "app.settings",
"path": "settings",
"layout": "blank",
"component": "app.settings.component"
}
],
"features": {
"header": [
{
"id": "app.header.more",
"children": [
{
"id": "app.header.settings",
"order": 110,
"title": "APP.SETTINGS.TITLE",
"description": "APP.SETTINGS.TITLE",
"icon": "info",
"actions": {
"click": "app.actions.settings"
}
}
]
}
]
}
}

View File

@ -24,7 +24,7 @@
*/
import { NgModule } from '@angular/core';
import { ExtensionService } from '@alfresco/adf-extensions';
import { ExtensionService, provideExtensionConfig } from '@alfresco/adf-extensions';
import { CommonModule } from '@angular/common';
import { CoreModule } from '@alfresco/adf-core';
@ -33,7 +33,8 @@ import { RouterModule } from '@angular/router';
@NgModule({
imports: [CommonModule, RouterModule, CoreModule.forChild()],
declarations: [SettingsComponent]
declarations: [SettingsComponent],
providers: [provideExtensionConfig(['settings.plugin.json'])]
})
export class AcaSettingsModule {
constructor(extensions: ExtensionService) {

View File

@ -2,11 +2,10 @@
"$schema": "../../../extension.schema.json",
"$id": "9a635542-d87a-4558-ae64-ffa199d1a364",
"$version": "0.0.10",
"$name": "keensoft.aos.plugin",
"$name": "Edit in Office",
"$description": "Extension that provides Office Edit Online Action",
"$vendor": "Keensoft",
"$license": "Apache-2.0",
"$runtime": "1.6.0",
"$vendor": "Alfresco Software, Ltd.",
"$license": "LGPL-3.0",
"actions": [
{

View File

@ -26,16 +26,13 @@
import { ExtensionService, provideExtensionConfig } from '@alfresco/adf-extensions';
import { NgModule } from '@angular/core';
import { EffectsModule } from '@ngrx/effects';
import { AosEditOnlineService } from './aos-extension.service';
import { AosEffects } from './effects/aos.effects';
import { canOpenWithOffice } from './evaluators';
import { TranslationService } from '@alfresco/adf-core';
import { canOpenWithOffice } from './evaluators';
@NgModule({
imports: [EffectsModule.forFeature([AosEffects])],
providers: [AosEditOnlineService, provideExtensionConfig(['aos.plugin.json'])]
providers: [provideExtensionConfig(['aos.plugin.json'])]
})
export class AosExtensionModule {
constructor(extensions: ExtensionService, translation: TranslationService) {

View File

@ -25,11 +25,12 @@
import { NgModule } from '@angular/core';
import { AosExtensionModule } from '@alfresco/adf-office-services-ext';
import { AcaAboutModule } from '@alfresco/aca-about';
// Main entry point for external extensions only.
// For any application-specific code use CoreExtensionsModule instead.
@NgModule({
imports: [AosExtensionModule]
imports: [AosExtensionModule, AcaAboutModule]
})
export class AppExtensionsModule {}