mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[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:
@@ -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.
|
||||
|
45
projects/aca-about/assets/about.plugin.json
Normal file
45
projects/aca-about/assets/about.plugin.json
Normal 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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@@ -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) {
|
||||
|
@@ -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.
|
||||
|
45
projects/aca-settings/assets/settings.plugin.json
Normal file
45
projects/aca-settings/assets/settings.plugin.json
Normal 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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@@ -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) {
|
||||
|
@@ -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": [
|
||||
{
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user