[ACS-5041] update license headers to reflect hyland copyright guidelines (#8472)

* ACS-5041 Changed json to js

* ACS-5041 Corrected paths

* ACS-5041 Changed json to js

* ACS-5041 Updated eslintrc

* ACS-5041 Small correction

* ACS-5041 Small correction

* ACS-5041 Updated license headers

* ACS-5041 Updated license headers

* ACS-5041 Replaced references to alfresco

* ACS-5041 Added Hyland to known words

* ACS-5041 Fixed coverage issue

* ACS-5041 Fixed duplication issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed test

* ACS-5041 Fixed test

* ACS-5041 Reverted one change

* ACS-5041 Added missing license to files after rebase
This commit is contained in:
AleksanderSklorz
2023-04-20 09:34:03 +02:00
committed by GitHub
parent aa9edeff54
commit 98c0a3c7be
2645 changed files with 4595 additions and 4676 deletions
@@ -1,6 +1,6 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,18 +35,18 @@ describe('Upload component', async () => {
let acsUser: UserModel;
const pngFile = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location
});
const mediumFile = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.MEDIUM_FILE.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.MEDIUM_FILE.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.MEDIUM_FILE.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.MEDIUM_FILE.file_location
});
const largeFile = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.LARGE_FILE.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.LARGE_FILE.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.LARGE_FILE.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.LARGE_FILE.file_location
});
beforeAll(async () => {
@@ -58,7 +58,7 @@ describe('Upload component', async () => {
await contentServicesPage.goToDocumentList();
});
const deleteNodesInCurrentPage = async function () {
const deleteNodesInCurrentPage = async function() {
const nodeList = await contentServicesPage.getElementsDisplayedId();
for (const node of nodeList) {
@@ -1,6 +1,6 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -43,23 +43,23 @@ describe('Upload component - Excluded Files', () => {
let acsUser: UserModel;
const iniExcludedFile = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.INI.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.INI.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.INI.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.INI.file_location
});
const txtFileModel = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_location
});
const pngFile = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location
});
const folderUpload = new FolderModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.TEXT_FOLDER.folder_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.TEXT_FOLDER.folder_location
name: browser.params.resources.Files.ADF_DOCUMENTS.TEXT_FOLDER.folder_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.TEXT_FOLDER.folder_location
});
const acceptedFileInsideFolder = new FolderModel({
@@ -114,7 +114,7 @@ describe('Upload component - Excluded Files', () => {
it('[C212862] Should not allow upload file excluded in the files extension of app.config.json', async () => {
await LocalStorageUtil.setConfigField('files', JSON.stringify({
excluded: ['.DS_Store', 'desktop.ini', '*.txt'],
'match-options': { 'nocase': true }
'match-options': { nocase: true }
}));
await contentServicesPage.goToDocumentList();
@@ -128,7 +128,7 @@ describe('Upload component - Excluded Files', () => {
it('[C260125] Should not upload excluded file when they are in a Folder', async () => {
await LocalStorageUtil.setConfigField('files', JSON.stringify({
excluded: ['*.cpio'],
'match-options': { 'nocase': true }
'match-options': { nocase: true }
}));
await uploadToggles.enableFolderUpload();
@@ -147,7 +147,7 @@ describe('Upload component - Excluded Files', () => {
it('[C274688] Should extension type added as excluded and accepted not be uploaded', async () => {
await LocalStorageUtil.setConfigField('files', JSON.stringify({
excluded: ['.DS_Store', 'desktop.ini', '*.png'],
'match-options': { 'nocase': true }
'match-options': { nocase: true }
}));
await contentServicesPage.goToDocumentList();
@@ -1,6 +1,6 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -40,24 +40,24 @@ describe('Upload component', () => {
const FILES = browser.params.resources.Files;
const firstPdfFileModel = new FileModel({
'name': FILES.ADF_DOCUMENTS.PDF_B.file_name,
'location': FILES.ADF_DOCUMENTS.PDF_B.file_location
name: FILES.ADF_DOCUMENTS.PDF_B.file_name,
location: FILES.ADF_DOCUMENTS.PDF_B.file_location
});
const docxFileModel = new FileModel({
'name': FILES.ADF_DOCUMENTS.DOCX.file_name,
'location': FILES.ADF_DOCUMENTS.DOCX.file_location
name: FILES.ADF_DOCUMENTS.DOCX.file_name,
location: FILES.ADF_DOCUMENTS.DOCX.file_location
});
const pdfFileModel = new FileModel({
'name': FILES.ADF_DOCUMENTS.PDF.file_name,
'location': FILES.ADF_DOCUMENTS.PDF.file_location
name: FILES.ADF_DOCUMENTS.PDF.file_name,
location: FILES.ADF_DOCUMENTS.PDF.file_location
});
const pngFileModelTwo = new FileModel({
'name': FILES.ADF_DOCUMENTS.PNG_B.file_name,
'location': FILES.ADF_DOCUMENTS.PNG_B.file_location
name: FILES.ADF_DOCUMENTS.PNG_B.file_name,
location: FILES.ADF_DOCUMENTS.PNG_B.file_location
});
const pngFileModel = new FileModel({
'name': FILES.ADF_DOCUMENTS.PNG.file_name,
'location': FILES.ADF_DOCUMENTS.PNG.file_location
name: FILES.ADF_DOCUMENTS.PNG.file_name,
location: FILES.ADF_DOCUMENTS.PNG.file_location
});
const filesLocation = [pdfFileModel.location, docxFileModel.location, pngFileModel.location, firstPdfFileModel.location];
const filesName = [pdfFileModel.name, docxFileModel.name, pngFileModel.name, firstPdfFileModel.name];
@@ -1,6 +1,6 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -46,28 +46,28 @@ describe('Upload component', () => {
let acsUser: UserModel;
const firstPdfFileModel = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PDF_B.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PDF_B.file_path
name: browser.params.resources.Files.ADF_DOCUMENTS.PDF_B.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PDF_B.file_path
});
const docxFileModel = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.DOCX.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.DOCX.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.DOCX.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.DOCX.file_location
});
const pdfFileModel = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_location
});
const pngFileModel = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location
});
const fileWithSpecificSize = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.TXT_400B.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.TXT_400B.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.TXT_400B.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.TXT_400B.file_location
});
const emptyFile = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_location
});
beforeAll(async () => {
@@ -1,6 +1,6 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,21 +35,21 @@ describe('Upload - User permission', () => {
const usersActions = new UsersActions(apiService);
const emptyFile = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_location
});
const pngFile = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location
});
const pdfFile = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_location
});
let acsUser, acsUserTwo, consumerSite, managerSite;
let acsUser; let acsUserTwo; let consumerSite; let managerSite;
beforeAll(async () => {
await apiService.loginWithProfile('admin');
@@ -1,6 +1,6 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -46,19 +46,19 @@ describe('Version component actions', () => {
let acsUser: UserModel;
const txtFileModel = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.TXT.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.TXT.file_path
name: browser.params.resources.Files.ADF_DOCUMENTS.TXT.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.TXT.file_path
});
const fileModelVersionTwo = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.TXT.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.TXT.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.TXT.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.TXT.file_location
});
let uploadActions;
const bigFileToCancel = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.LARGE_FILE.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.LARGE_FILE.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.LARGE_FILE.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.LARGE_FILE.file_location
});
beforeAll(async () => {
@@ -1,6 +1,6 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -54,18 +54,18 @@ describe('Version component permissions', () => {
const nodesApi = new NodesApi(apiService.getInstance());
const newVersionFile = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG_B.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG_B.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG_B.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG_B.file_location
});
const lockFileModel = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG_C.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG_C.file_path
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG_C.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG_C.file_path
});
const differentCreatorFile = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG_D.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG_D.file_path
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG_D.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG_D.file_path
});
const uploadActions = new UploadActions(apiService);
@@ -133,8 +133,8 @@ describe('Version component permissions', () => {
describe('Manager', () => {
const sameCreatorFile = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_path
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_path
});
beforeAll(async () => {
@@ -205,8 +205,8 @@ describe('Version component permissions', () => {
describe('Contributor', () => {
const sameCreatorFile = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_path
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_path
});
beforeAll(async () => {
@@ -260,8 +260,8 @@ describe('Version component permissions', () => {
describe('Collaborator', () => {
const sameCreatorFile = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_path
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_path
});
beforeAll(async () => {
@@ -1,6 +1,6 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -42,13 +42,13 @@ describe('Version Properties', () => {
let acsUser: UserModel;
const txtFileModel = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_path
name: browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_path
});
const fileModelVersionTwo = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location
});
const uploadActions = new UploadActions(apiService);
@@ -1,6 +1,6 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,28 +36,28 @@ describe('Version component', () => {
let acsUser: UserModel;
const txtFileModel = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.TXT.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.TXT.file_path
name: browser.params.resources.Files.ADF_DOCUMENTS.TXT.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.TXT.file_path
});
const fileModelVersionTwo = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location
});
const fileModelVersionThree = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG_B.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG_B.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG_B.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG_B.file_location
});
const fileModelVersionFor = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG_C.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG_C.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG_C.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG_C.file_location
});
const fileModelVersionFive = new FileModel({
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG_D.file_name,
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG_D.file_location
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG_D.file_name,
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG_D.file_location
});
const uploadActions = new UploadActions(apiService);