mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user