mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
@@ -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.
|
||||
@@ -45,8 +45,8 @@ describe('Viewer', () => {
|
||||
const uploadActions = new UploadActions(apiService);
|
||||
|
||||
const archiveFolderInfo = new FolderModel({
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.ARCHIVE_FOLDER.folder_name,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.ARCHIVE_FOLDER.folder_path
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.ARCHIVE_FOLDER.folder_name,
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.ARCHIVE_FOLDER.folder_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.
|
||||
@@ -47,13 +47,13 @@ describe('Viewer', () => {
|
||||
let pngFileUploaded;
|
||||
|
||||
const pngFileInfo = 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
|
||||
});
|
||||
|
||||
const otherFolderInfo = new FolderModel({
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.OTHER_FOLDER.folder_name,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.OTHER_FOLDER.folder_path
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.OTHER_FOLDER.folder_name,
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.OTHER_FOLDER.folder_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.
|
||||
@@ -38,8 +38,8 @@ describe('Viewer', () => {
|
||||
const acsUser = new UserModel();
|
||||
|
||||
const excelFolderInfo = new FolderModel({
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.EXCEL_FOLDER.folder_name,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.EXCEL_FOLDER.folder_path
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.EXCEL_FOLDER.folder_name,
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.EXCEL_FOLDER.folder_path
|
||||
});
|
||||
|
||||
const apiService = createApiService();
|
||||
|
@@ -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,13 +43,13 @@ describe('Viewer', () => {
|
||||
const acsUser = new UserModel();
|
||||
|
||||
const imgFolderInfo = new FolderModel({
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.IMG_FOLDER.folder_name,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.IMG_FOLDER.folder_path
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.IMG_FOLDER.folder_name,
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.IMG_FOLDER.folder_path
|
||||
});
|
||||
|
||||
const imgRenditionFolderInfo = new FolderModel({
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.IMG_RENDITION_FOLDER.folder_name,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.IMG_RENDITION_FOLDER.folder_path
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.IMG_RENDITION_FOLDER.folder_name,
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.IMG_RENDITION_FOLDER.folder_path
|
||||
});
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -79,8 +79,8 @@ describe('Viewer', () => {
|
||||
});
|
||||
|
||||
describe('Image Folder Uploaded', () => {
|
||||
let uploadedImages, uploadedImgRenditionFolderInfo;
|
||||
let imgFolderUploaded, imgFolderRenditionUploaded;
|
||||
let uploadedImages; let uploadedImgRenditionFolderInfo;
|
||||
let imgFolderUploaded; let imgFolderRenditionUploaded;
|
||||
|
||||
beforeAll(async () => {
|
||||
imgFolderUploaded = await uploadActions.createFolder(imgFolderInfo.name, '-my-');
|
||||
|
@@ -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,8 +42,8 @@ describe('Viewer', () => {
|
||||
const acsUser = new UserModel();
|
||||
|
||||
const pptFolderInfo = new FolderModel({
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.PPT_FOLDER.folder_name,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.PPT_FOLDER.folder_path
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.PPT_FOLDER.folder_name,
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.PPT_FOLDER.folder_path
|
||||
});
|
||||
|
||||
let site;
|
||||
|
@@ -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,8 +42,8 @@ describe('Viewer', () => {
|
||||
const acsUser = new UserModel();
|
||||
|
||||
const textFolderInfo = new FolderModel({
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.TEXT_FOLDER.folder_name,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.TEXT_FOLDER.folder_path
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.TEXT_FOLDER.folder_name,
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.TEXT_FOLDER.folder_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.
|
||||
@@ -44,8 +44,8 @@ describe('Viewer', () => {
|
||||
const acsUser = new UserModel();
|
||||
|
||||
const wordFolderInfo = new FolderModel({
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.WORD_FOLDER.folder_name,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.WORD_FOLDER.folder_path
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.WORD_FOLDER.folder_name,
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.WORD_FOLDER.folder_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,44 +42,44 @@ describe('Content Services Viewer', () => {
|
||||
let zoom;
|
||||
|
||||
const pdfFile = new FileModel({
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_name,
|
||||
'firstPageText': browser.params.resources.Files.ADF_DOCUMENTS.PDF.first_page_text,
|
||||
'secondPageText': browser.params.resources.Files.ADF_DOCUMENTS.PDF.second_page_text,
|
||||
'lastPageNumber': browser.params.resources.Files.ADF_DOCUMENTS.PDF.last_page_number
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_name,
|
||||
firstPageText: browser.params.resources.Files.ADF_DOCUMENTS.PDF.first_page_text,
|
||||
secondPageText: browser.params.resources.Files.ADF_DOCUMENTS.PDF.second_page_text,
|
||||
lastPageNumber: browser.params.resources.Files.ADF_DOCUMENTS.PDF.last_page_number
|
||||
});
|
||||
const protectedFile = new FileModel({
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.PDF_PROTECTED.file_name,
|
||||
'firstPageText': browser.params.resources.Files.ADF_DOCUMENTS.PDF_PROTECTED.first_page_text,
|
||||
'secondPageText': browser.params.resources.Files.ADF_DOCUMENTS.PDF_PROTECTED.second_page_text,
|
||||
'lastPageNumber': browser.params.resources.Files.ADF_DOCUMENTS.PDF_PROTECTED.last_page_number,
|
||||
'password': browser.params.resources.Files.ADF_DOCUMENTS.PDF_PROTECTED.password,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.PDF_PROTECTED.file_path
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.PDF_PROTECTED.file_name,
|
||||
firstPageText: browser.params.resources.Files.ADF_DOCUMENTS.PDF_PROTECTED.first_page_text,
|
||||
secondPageText: browser.params.resources.Files.ADF_DOCUMENTS.PDF_PROTECTED.second_page_text,
|
||||
lastPageNumber: browser.params.resources.Files.ADF_DOCUMENTS.PDF_PROTECTED.last_page_number,
|
||||
password: browser.params.resources.Files.ADF_DOCUMENTS.PDF_PROTECTED.password,
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.PDF_PROTECTED.file_path
|
||||
});
|
||||
const docxFile = new FileModel({
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.DOCX.file_path,
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.DOCX.file_name,
|
||||
'firstPageText': browser.params.resources.Files.ADF_DOCUMENTS.DOCX.first_page_text
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.DOCX.file_path,
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.DOCX.file_name,
|
||||
firstPageText: browser.params.resources.Files.ADF_DOCUMENTS.DOCX.first_page_text
|
||||
});
|
||||
const jpgFile = new FileModel({
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.JPG.file_path,
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.JPG.file_name
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.JPG.file_path,
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.JPG.file_name
|
||||
});
|
||||
const mp4File = new FileModel({
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.MP4.file_path,
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.MP4.file_name
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.MP4.file_path,
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.MP4.file_name
|
||||
});
|
||||
const unsupportedFile = new FileModel({
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.UNSUPPORTED.file_path,
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.UNSUPPORTED.file_name
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.UNSUPPORTED.file_path,
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.UNSUPPORTED.file_name
|
||||
});
|
||||
const unsupportedFileByLocation = new FileModel({
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.UNSUPPORTED.file_location,
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.UNSUPPORTED.file_name
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.UNSUPPORTED.file_location,
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.UNSUPPORTED.file_name
|
||||
});
|
||||
const pptFile = new FileModel({
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.PPT.file_path,
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.PPT.file_name,
|
||||
'firstPageText': browser.params.resources.Files.ADF_DOCUMENTS.PPT.first_page_text
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.PPT.file_path,
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.PPT.file_name,
|
||||
firstPageText: browser.params.resources.Files.ADF_DOCUMENTS.PPT.first_page_text
|
||||
});
|
||||
|
||||
const apiService = createApiService();
|
||||
|
@@ -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.
|
||||
@@ -38,13 +38,13 @@ describe('Viewer', () => {
|
||||
let txtFileUploaded;
|
||||
|
||||
const txtFileInfo = 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
|
||||
});
|
||||
|
||||
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.
|
||||
@@ -38,13 +38,13 @@ describe('Viewer', () => {
|
||||
const dataTable = new DataTableComponentPage();
|
||||
|
||||
const pngFile = 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
|
||||
});
|
||||
|
||||
const fileForOverlay = new FileModel({
|
||||
'name': 'fileForOverlay.png',
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_path
|
||||
name: 'fileForOverlay.png',
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_path
|
||||
});
|
||||
const apiService = createApiService();
|
||||
const usersActions = new UsersActions(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.
|
||||
@@ -51,16 +51,16 @@ describe('Viewer', () => {
|
||||
const contentList = contentServicesPage.getDocumentList();
|
||||
|
||||
const pngFileInfo = 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
|
||||
});
|
||||
|
||||
const wordFileInfo = new FileModel({
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.DOCX.file_name,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.DOCX.file_path
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.DOCX.file_name,
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.DOCX.file_path
|
||||
});
|
||||
|
||||
let pngFileShared, wordFileUploaded;
|
||||
let pngFileShared; let wordFileUploaded;
|
||||
|
||||
beforeAll(async () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
@@ -86,7 +86,7 @@ describe('Viewer', () => {
|
||||
|
||||
wordFileUploaded = await uploadActions.uploadFile(wordFileInfo.location, wordFileInfo.name, '-my-');
|
||||
|
||||
pngFileShared = await sharedlinksApi.createSharedLink({ 'nodeId': pngFileUploaded.entry.id });
|
||||
pngFileShared = await sharedlinksApi.createSharedLink({ nodeId: pngFileUploaded.entry.id });
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
Reference in New Issue
Block a user