mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-08-07 17:48:27 +00:00
[ACS-3339] Manage Rules screen / listing - Manage rules screen template & minimal listing (#2596)
* First commit: rules listing * [ACS-3339] Manage Rules screen / listing - Manage rules screen template & minimal listing * some changes for rule model * some changes requested for PR * a couple more fixes * removed initial value from aca-rule-details * spelling error fixed
This commit is contained in:
committed by
GitHub
parent
9a650f5265
commit
5f009e89fa
66
projects/aca-folder-rules/src/lib/mock/node.mock.ts
Normal file
66
projects/aca-folder-rules/src/lib/mock/node.mock.ts
Normal file
@@ -0,0 +1,66 @@
|
||||
/*!
|
||||
* @license
|
||||
* Alfresco Example Content Application
|
||||
*
|
||||
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
||||
*
|
||||
* 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
|
||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
export const dummyGetNodeResponse = {
|
||||
entry: {
|
||||
aspectNames: ['rule:rules', 'cm:titled', 'cm:auditable'],
|
||||
createdAt: '2022-08-16T07:58:21.416+0000',
|
||||
isFolder: true,
|
||||
isFile: false,
|
||||
createdByUser: {
|
||||
id: 'username',
|
||||
displayName: 'username'
|
||||
},
|
||||
modifiedAt: '2022-08-16T07:59:45.771+0000',
|
||||
modifiedByUser: {
|
||||
id: 'username',
|
||||
displayName: 'username'
|
||||
},
|
||||
name: 'folder1',
|
||||
id: '76659fe3-5f93-483d-948e-38b9e006cc94',
|
||||
nodeType: 'cm:folder',
|
||||
parentId: 'eb48d545-61f7-4ebd-861d-5fe5b072472f'
|
||||
}
|
||||
};
|
||||
|
||||
export const dummyNodeInfo = {
|
||||
aspectNames: ['rule:rules', 'cm:titled', 'cm:auditable'],
|
||||
createdAt: '2022-08-16T07:58:21.416+0000',
|
||||
isFolder: true,
|
||||
isFile: false,
|
||||
createdByUser: {
|
||||
id: 'username',
|
||||
displayName: 'username'
|
||||
},
|
||||
modifiedAt: '2022-08-16T07:59:45.771+0000',
|
||||
modifiedByUser: {
|
||||
id: 'username',
|
||||
displayName: 'username'
|
||||
},
|
||||
name: 'folder1',
|
||||
id: '76659fe3-5f93-483d-948e-38b9e006cc94',
|
||||
nodeType: 'cm:folder',
|
||||
parentId: 'eb48d545-61f7-4ebd-861d-5fe5b072472f'
|
||||
};
|
@@ -1,3 +1,28 @@
|
||||
/*!
|
||||
* @license
|
||||
* Alfresco Example Content Application
|
||||
*
|
||||
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
||||
*
|
||||
* 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
|
||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Rule } from '../model/rule.model';
|
||||
|
||||
export const dummyResponse = {
|
||||
@@ -12,12 +37,12 @@ export const dummyResponse = {
|
||||
entries: [
|
||||
{
|
||||
entry: {
|
||||
shared: false,
|
||||
isShared: false,
|
||||
cascade: false,
|
||||
asynchronous: false,
|
||||
name: 'rule1',
|
||||
id: 'd388ed54-a522-410f-a158-6dbf5a833731',
|
||||
triggers: ['INBOUND'],
|
||||
triggers: ['inbound'],
|
||||
actions: [
|
||||
{
|
||||
actionDefinitionId: 'copy',
|
||||
@@ -33,12 +58,12 @@ export const dummyResponse = {
|
||||
},
|
||||
{
|
||||
entry: {
|
||||
shared: false,
|
||||
isShared: false,
|
||||
cascade: false,
|
||||
asynchronous: false,
|
||||
name: 'rule2',
|
||||
id: 'e0e645ca-e6c0-47d4-9936-1a8872a6c30b',
|
||||
triggers: ['INBOUND'],
|
||||
triggers: ['inbound'],
|
||||
actions: [
|
||||
{
|
||||
actionDefinitionId: 'move',
|
||||
@@ -64,8 +89,8 @@ export const dummyRules: Rule[] = [
|
||||
cascade: false,
|
||||
asynchronous: false,
|
||||
errorScript: '',
|
||||
shared: false,
|
||||
triggers: ['INBOUND'],
|
||||
isShared: false,
|
||||
triggers: ['inbound'],
|
||||
conditions: null,
|
||||
actions: [
|
||||
{
|
||||
@@ -86,8 +111,8 @@ export const dummyRules: Rule[] = [
|
||||
cascade: false,
|
||||
asynchronous: false,
|
||||
errorScript: '',
|
||||
shared: false,
|
||||
triggers: ['INBOUND'],
|
||||
isShared: false,
|
||||
triggers: ['inbound'],
|
||||
conditions: null,
|
||||
actions: [
|
||||
{
|
||||
|
Reference in New Issue
Block a user