-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
2b90a66
commit df33a41
Showing
26 changed files
with
306 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
path = require("path"); | ||
module.exports = { | ||
"extends": "../../.eslintrc.json", | ||
"ignorePatterns": [ | ||
"!**/*" | ||
], | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.ts" | ||
], | ||
"parserOptions": { | ||
"project": [ | ||
path.join(__dirname, "tsconfig.lib.json"), | ||
path.join(__dirname, "tsconfig.spec.json") | ||
], | ||
"createDefaultProgram": true | ||
}, | ||
"rules": { | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# About Plugin for Alfresco Content App | ||
|
||
Provides the "About" page for ACA and ACA-based apps. | ||
|
||
## Installing | ||
|
||
Import the module into the application: | ||
|
||
```ts | ||
// src/app/extensions.module.ts | ||
|
||
import { AcaAboutModule } from '@alfresco/aca-about'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
// other modules | ||
AcaAboutModule | ||
] | ||
}) | ||
export class AcaAboutModule {} | ||
``` | ||
|
||
Update the `app.extensions.json` extension configuration to enable extra routes and components: | ||
|
||
```json | ||
{ | ||
"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" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
Alternatively, you can use the `assets/about.plugin.json` file. | ||
|
||
Compile and distribute/run the application. |
2 changes: 1 addition & 1 deletion
2
...ca-content/about/assets/about.plugin.json → projects/aca-about/assets/about.plugin.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Karma configuration file, see link for more information | ||
// https://karma-runner.github.io/1.0/config/configuration-file.html | ||
const { join } = require('path'); | ||
const getBaseKarmaConfig = require('../../karma.conf'); | ||
|
||
module.exports = function (config) { | ||
const baseConfig = getBaseKarmaConfig(); | ||
config.set({ | ||
...baseConfig, | ||
coverageReporter: { | ||
...baseConfig.coverageReporter, | ||
dir: join(__dirname, '../../coverage/aca-about'), | ||
}, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json", | ||
"dest": "../../dist/@alfresco/aca-about", | ||
|
||
"lib": { | ||
"entryFile": "src/public-api.ts" | ||
}, | ||
"assets": [ | ||
"assets" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "@alfresco/aca-about", | ||
"version": "0.0.1", | ||
"license": "LGPL-3.0", | ||
"peerDependencies": { | ||
"@angular/common": "^14.1.0", | ||
"@angular/core": "^14.1.0" | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.3.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Alfresco/alfresco-content-app.git" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"name": "aca-about", | ||
"projectType": "library", | ||
"sourceRoot": "projects/aca-about/src", | ||
"prefix": "lib", | ||
"targets": { | ||
"build": { | ||
"executor": "@angular-devkit/build-angular:ng-packagr", | ||
"options": { | ||
"tsConfig": "projects/aca-about/tsconfig.lib.json", | ||
"project": "projects/aca-about/ng-package.json" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"tsConfig": "projects/aca-about/tsconfig.lib.prod.json" | ||
} | ||
}, | ||
"defaultConfiguration": "production", | ||
"outputs": [ | ||
"{workspaceRoot}/dist/@alfresco/aca-about" | ||
] | ||
}, | ||
"test": { | ||
"executor": "@angular-devkit/build-angular:karma", | ||
"options": { | ||
"codeCoverage": true, | ||
"main": "projects/aca-about/src/test.ts", | ||
"tsConfig": "projects/aca-about/tsconfig.spec.json", | ||
"karmaConfig": "projects/aca-about/karma.conf.js" | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@angular-eslint/builder:lint", | ||
"options": { | ||
"lintFilePatterns": [ | ||
"projects/aca-about/**/*.ts", | ||
"projects/aca-about/**/*.html" | ||
], | ||
"cache": true, | ||
"cacheLocation": ".eslintcache", | ||
"ignorePath": ".eslintignore" | ||
}, | ||
"outputs": [ | ||
"{options.outputFile}" | ||
] | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/*! | ||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved. | ||
* | ||
* Alfresco Example Content Application | ||
* | ||
* This file is part of the Alfresco Example Content Application. | ||
* If the software was purchased under a paid Alfresco license, the terms of | ||
* the paid license agreement will prevail. Otherwise, the software is | ||
* provided under the following open source license terms: | ||
* | ||
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* The Alfresco Example Content Application is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
// This file is required by karma.conf.js and loads recursively all the .spec and framework files | ||
|
||
import 'zone.js'; | ||
import 'zone.js/testing'; | ||
import { getTestBed } from '@angular/core/testing'; | ||
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; | ||
|
||
declare const require: { | ||
context( | ||
path: string, | ||
deep?: boolean, | ||
filter?: RegExp | ||
): { | ||
keys(): string[]; | ||
<T>(id: string): T; | ||
}; | ||
}; | ||
|
||
// First, initialize the Angular testing environment. | ||
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), { | ||
teardown: { destroyAfterEach: false } | ||
}); | ||
// Then we find all the tests. | ||
const context = require.context('./', true, /\.spec\.ts$/); | ||
// And load the modules. | ||
context.keys().map(context); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* To learn more about this file see: https://angular.io/config/tsconfig. */ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "../../out-tsc/lib", | ||
"declarationMap": true, | ||
"target": "es2020", | ||
"declaration": true, | ||
"inlineSources": true, | ||
"types": [], | ||
"lib": [ | ||
"dom", | ||
"es2018" | ||
] | ||
}, | ||
"angularCompilerOptions": { | ||
"skipTemplateCodegen": true, | ||
"strictMetadataEmit": true, | ||
"enableResourceInlining": true | ||
}, | ||
"exclude": [ | ||
"src/test.ts", | ||
"**/*.spec.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* To learn more about this file see: https://angular.io/config/tsconfig. */ | ||
{ | ||
"extends": "./tsconfig.lib.json", | ||
"compilerOptions": { | ||
"declarationMap": false, | ||
"paths": { | ||
"@alfresco/aca-shared": ["dist/@alfresco/aca-shared"], | ||
"@alfresco/aca-shared/store": ["dist/@alfresco/aca-shared/store"], | ||
"@alfresco/aca-shared/rules": ["dist/@alfresco/aca-shared/rules"] | ||
} | ||
}, | ||
"angularCompilerOptions": { | ||
"compilationMode": "partial" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* To learn more about this file see: https://angular.io/config/tsconfig. */ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "../../out-tsc/spec", | ||
"types": [ | ||
"jasmine" | ||
] | ||
}, | ||
"files": [ | ||
"src/test.ts" | ||
], | ||
"include": [ | ||
"**/*.spec.ts", | ||
"**/*.d.ts" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.