mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
about and package fixes (#1746)
This commit is contained in:
717
package-lock.json
generated
717
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "alfresco-content-app",
|
||||
"version": "2.1.0",
|
||||
"commit": "<build-generated-commit>",
|
||||
"commit": "",
|
||||
"license": "LGPL-3.0",
|
||||
"scripts": {
|
||||
"postinstall": "ngcc",
|
||||
@@ -34,7 +34,6 @@
|
||||
"@alfresco/adf-core": "4.1.0",
|
||||
"@alfresco/adf-extensions": "4.1.0",
|
||||
"@alfresco/js-api": "4.1.0",
|
||||
"@angular-custom-builders/lite-serve": "^0.2.2",
|
||||
"@angular/animations": "10.0.4",
|
||||
"@angular/cdk": "^10.0.2",
|
||||
"@angular/common": "10.0.4",
|
||||
@@ -54,23 +53,18 @@
|
||||
"@ngrx/store": "^9.2.0",
|
||||
"@ngrx/store-devtools": "^9.2.0",
|
||||
"@ngx-translate/core": "^13.0.0",
|
||||
"browser-sync": "^2.26.12",
|
||||
"chalk": "^4.1.0",
|
||||
"http-server": "^0.12.3",
|
||||
"inquirer": "^7.3.3",
|
||||
"minimatch-browser": "^1.0.0",
|
||||
"moment": "^2.27.0",
|
||||
"moment-es6": "1.0.0",
|
||||
"ora": "^5.0.0",
|
||||
"pdfjs-dist": "2.5.207",
|
||||
"rxjs": "^6.6.3",
|
||||
"tslib": "^2.0.1",
|
||||
"winston": "^3.3.3",
|
||||
"zone.js": "~0.10.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@alfresco/adf-cli": "4.1.0",
|
||||
"@alfresco/adf-testing": "4.1.0",
|
||||
"@angular-custom-builders/lite-serve": "^0.2.2",
|
||||
"@angular-devkit/build-angular": "~0.1001.4",
|
||||
"@angular-devkit/build-ng-packagr": "~0.1001.3",
|
||||
"@angular/cli": "^10.1.4",
|
||||
@@ -84,13 +78,17 @@
|
||||
"@types/superagent": "^4.1.10",
|
||||
"adf-tslint-rules": "0.0.7",
|
||||
"ajv-cli": "^3.3.0",
|
||||
"browser-sync": "^2.26.12",
|
||||
"chalk": "^4.1.0",
|
||||
"codelyzer": "^6.0.1",
|
||||
"commander": "^6.1.0",
|
||||
"connect-history-api-fallback": "^1.6.0",
|
||||
"cpr": "^3.0.1",
|
||||
"cspell": "^4.1.0",
|
||||
"dotenv": "^8.2.0",
|
||||
"http-server": "^0.12.3",
|
||||
"husky": "^4.3.0",
|
||||
"inquirer": "^7.3.3",
|
||||
"jasmine-core": "~3.6.0",
|
||||
"jasmine-spec-reporter": "~6.0.0",
|
||||
"karma": "^5.2.3",
|
||||
@@ -103,6 +101,7 @@
|
||||
"lite-server": "^2.4.0",
|
||||
"ng-packagr": "^10.1.2",
|
||||
"node-stream-zip": "^1.11.3",
|
||||
"ora": "^5.1.0",
|
||||
"prettier": "^2.1.2",
|
||||
"protractor": "^7.0.0",
|
||||
"protractor-retry": "^1.2.13",
|
||||
@@ -118,7 +117,8 @@
|
||||
"tslint-config-prettier": "^1.18.0",
|
||||
"tslint-plugin-prettier": "^2.3.0",
|
||||
"typescript": "3.9.7",
|
||||
"webdriver-manager": "12.1.7"
|
||||
"webdriver-manager": "12.1.7",
|
||||
"winston": "^3.3.3"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{ts,js,css,scss,html}": [
|
||||
|
@@ -30,6 +30,7 @@ import { Observable } from 'rxjs';
|
||||
import { map } from 'rxjs/operators';
|
||||
import { AppExtensionService, ContentApiService } from '@alfresco/aca-shared';
|
||||
import { dependencies, version, name, commit } from 'package.json';
|
||||
|
||||
@Component({
|
||||
selector: 'app-about',
|
||||
templateUrl: './about.component.html',
|
||||
@@ -44,7 +45,7 @@ export class AboutComponent implements OnInit {
|
||||
statusEntries: Array<{ property: string; value: string }>;
|
||||
licenseEntries: Array<{ property: string; value: string }>;
|
||||
adfRepoUrl = 'https://github.com/Alfresco/alfresco-ng2-components/commits';
|
||||
appRepoUrl = `https://github.com/Alfresco/${name}/commits/${commit}`;
|
||||
appRepoUrl = !!commit ? `https://github.com/Alfresco/${name}/commits/${commit}` : null;
|
||||
adfVersion = '';
|
||||
appVersion = version;
|
||||
|
||||
@@ -57,7 +58,12 @@ export class AboutComponent implements OnInit {
|
||||
if (key === '@alfresco/adf-core') {
|
||||
this.adfVersion = dependencies[key].split('-')[0];
|
||||
const adfCurrentCommit = dependencies[key].split('-')[1] || '';
|
||||
|
||||
if (adfCurrentCommit) {
|
||||
this.adfRepoUrl = this.adfRepoUrl.concat('/', adfCurrentCommit);
|
||||
} else {
|
||||
this.adfRepoUrl = null;
|
||||
}
|
||||
}
|
||||
return {
|
||||
name: key,
|
||||
|
Reference in New Issue
Block a user