mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
* [ADF-3668] Fix facet fields 0 buckets * [ADF-3668] add test for case when labels are i18n keys * [ADF-3668] add translations on demo-shell - for manual testing * [ADF-3668] allow translations for the bucket labels * [ADF-3668] Fix facet queries buckets for translated labels * [ADF-3668] Fix e2e tests * [ADF-3668] Fix facet queries filtering when having translated labels * [ADF-3668] add translations on demo-shell - for manual testing * [ADF-3668] case covered by translationMock custom instant * [ADF-3668] move test translations to demo-shell resources * [ADF-3668] code review changes
535 lines
17 KiB
JSON
535 lines
17 KiB
JSON
{
|
|
"$schema": "../../lib/core/app-config/schema.json",
|
|
"ecmHost": "http://{hostname}:{port}",
|
|
"bpmHost": "http://{hostname}:{port}",
|
|
"baseShareUrl": null,
|
|
"loginRoute": "login",
|
|
"providers": "ALL",
|
|
"contextRootBpm": "activiti-app",
|
|
"authType" : "BASIC",
|
|
"oauth2": {
|
|
"host": "http://localhost:30081/auth/realms/myrealm",
|
|
"clientId": "activiti",
|
|
"scope": "openid",
|
|
"secret": "",
|
|
"implicitFlow": true,
|
|
"silentLogin": true,
|
|
"redirectUri": "/",
|
|
"redirectUriLogout": "/logout"
|
|
},
|
|
"application": {
|
|
"name": "Alfresco ADF Application",
|
|
"copyright": "© 2016 - 2018 Alfresco Software, Inc. All Rights Reserved."
|
|
},
|
|
"languages": [
|
|
{
|
|
"key": "en",
|
|
"label": "English"
|
|
},
|
|
{
|
|
"key": "fr",
|
|
"label": "French"
|
|
},
|
|
{
|
|
"key": "de",
|
|
"label": "German"
|
|
},
|
|
{
|
|
"key": "it",
|
|
"label": "Italian"
|
|
},
|
|
{
|
|
"key": "es",
|
|
"label": "Spanish"
|
|
},
|
|
{
|
|
"key": "ja",
|
|
"label": "Japanese"
|
|
},
|
|
{
|
|
"key": "nl",
|
|
"label": "Dutch"
|
|
},
|
|
{
|
|
"key": "pt-BR",
|
|
"label": "Brazilian Portuguese"
|
|
},
|
|
{
|
|
"key": "nb",
|
|
"label": "Norwegian"
|
|
},
|
|
{
|
|
"key": "ru",
|
|
"label": "Russian"
|
|
},
|
|
{
|
|
"key": "zh-CN",
|
|
"label": "Simplified Chinese"
|
|
}
|
|
],
|
|
"search": {
|
|
"include": ["path", "allowableOperations"],
|
|
"sorting": {
|
|
"options": [
|
|
{ "key": "name", "label": "Name", "type": "FIELD", "field": "cm:name", "ascending": true },
|
|
{ "key": "content.sizeInBytes", "label": "Size", "type": "FIELD", "field": "content.size", "ascending": true },
|
|
{ "key": "createdByUser", "label": "Author", "type": "FIELD", "field": "cm:creator", "ascending": true },
|
|
{ "key": "createdAt", "label": "Created", "type": "FIELD", "field": "cm:created", "ascending": true },
|
|
{ "key": "score", "label": "Relevance", "type": "FIELD", "field": "score", "ascending": false}
|
|
],
|
|
"defaults": [
|
|
{
|
|
"key": "score",
|
|
"type": "FIELD",
|
|
"field": "score",
|
|
"ascending": false
|
|
}
|
|
]
|
|
},
|
|
"filterQueries": [
|
|
{ "query": "TYPE:'cm:folder' OR TYPE:'cm:content'" },
|
|
{ "query": "NOT cm:creator:System" }
|
|
],
|
|
"facetFields": {
|
|
"expanded": true,
|
|
"fields": [
|
|
{ "field": "content.mimetype", "mincount": 1, "label": "SEARCH.FACET_FIELDS.TYPE" },
|
|
{ "field": "content.size", "mincount": 1, "label": "SEARCH.FACET_FIELDS.SIZE" },
|
|
{ "field": "creator", "mincount": 1, "label": "SEARCH.FACET_FIELDS.CREATOR" },
|
|
{ "field": "modifier", "mincount": 1, "label": "SEARCH.FACET_FIELDS.MODIFIER" },
|
|
{ "field": "created", "mincount": 1, "label": "SEARCH.FACET_FIELDS.CREATED" }
|
|
]
|
|
},
|
|
"facetQueries": {
|
|
"label": "SEARCH.FACET_QUERIES.MY_FACET_QUERIES",
|
|
"pageSize": 5,
|
|
"queries": [
|
|
{ "query": "created:2018", "label": "SEARCH.FACET_QUERIES.CREATED_THIS_YEAR" },
|
|
{ "query": "content.mimetype", "label": "SEARCH.FACET_QUERIES.MIMETYPE" },
|
|
{ "query": "content.size:[0 TO 10240]", "label": "SEARCH.FACET_QUERIES.XTRASMALL"},
|
|
{ "query": "content.size:[10240 TO 102400]", "label": "SEARCH.FACET_QUERIES.SMALL"},
|
|
{ "query": "content.size:[102400 TO 1048576]", "label": "SEARCH.FACET_QUERIES.MEDIUM" },
|
|
{ "query": "content.size:[1048576 TO 16777216]", "label": "SEARCH.FACET_QUERIES.LARGE" },
|
|
{ "query": "content.size:[16777216 TO 134217728]", "label": "SEARCH.FACET_QUERIES.XTRALARGE" },
|
|
{ "query": "content.size:[134217728 TO MAX]", "label": "SEARCH.FACET_QUERIES.XXTRALARGE" }
|
|
]
|
|
},
|
|
"categories": [
|
|
{
|
|
"id": "queryName",
|
|
"name": "Name",
|
|
"enabled": true,
|
|
"expanded": true,
|
|
"component": {
|
|
"selector": "text",
|
|
"settings": {
|
|
"pattern": "cm:name:'(.*?)'",
|
|
"field": "cm:name",
|
|
"placeholder": "Enter the name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "checkList",
|
|
"name": "Check List",
|
|
"enabled": true,
|
|
"component": {
|
|
"selector": "check-list",
|
|
"settings": {
|
|
"pageSize": 5,
|
|
"operator": "OR",
|
|
"options": [
|
|
{ "name": "Folder", "value": "TYPE:'cm:folder'" },
|
|
{ "name": "Document", "value": "TYPE:'cm:content'" }
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "contentSize",
|
|
"name": "Content Size",
|
|
"enabled": true,
|
|
"component": {
|
|
"selector": "slider",
|
|
"settings": {
|
|
"field": "cm:content.size",
|
|
"min": 0,
|
|
"max": 18,
|
|
"step": 1,
|
|
"thumbLabel": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "contentSizeRange",
|
|
"name": "Content Size (range)",
|
|
"enabled": true,
|
|
"component": {
|
|
"selector": "number-range",
|
|
"settings": {
|
|
"field": "cm:content.size",
|
|
"format": "[{FROM} TO {TO}]"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "createdDateRange",
|
|
"name": "Created Date (range)",
|
|
"enabled": true,
|
|
"component": {
|
|
"selector": "date-range",
|
|
"settings": {
|
|
"field": "cm:created",
|
|
"dateFormat": "DD-MMM-YY"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "queryType",
|
|
"name": "Type",
|
|
"enabled": true,
|
|
"component": {
|
|
"selector": "radio",
|
|
"settings": {
|
|
"field": null,
|
|
"pageSize": 5,
|
|
"options": [
|
|
{ "name": "APP.SEARCH.RADIO.NONE", "value": "", "default": true },
|
|
{ "name": "APP.SEARCH.RADIO.ALL", "value": "TYPE:'cm:folder' OR TYPE:'cm:content'" },
|
|
{ "name": "APP.SEARCH.RADIO.FOLDER", "value": "TYPE:'cm:folder'" },
|
|
{ "name": "APP.SEARCH.RADIO.DOCUMENT", "value": "TYPE:'cm:content'" }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"pagination": {
|
|
"size": 20,
|
|
"supportedPageSizes": [ 5, 10, 15, 20 ]
|
|
},
|
|
"files": {
|
|
"excluded": [".DS_Store", "desktop.ini", ".git"],
|
|
"match-options": {
|
|
"nocase": true
|
|
}
|
|
},
|
|
"logLevel": "trace",
|
|
"activiti": {
|
|
"rest": {
|
|
"fields": [
|
|
{
|
|
"processId": "0",
|
|
"taskId": "7501",
|
|
"fieldId": "label10",
|
|
"values": [
|
|
{
|
|
"id": "f1",
|
|
"name": "Field 1"
|
|
},
|
|
{
|
|
"id": "f2",
|
|
"name": "Field 2"
|
|
},
|
|
{
|
|
"id": "f3",
|
|
"name": "Field 3"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"document-list": {
|
|
"presets": {
|
|
"-trashcan-": [
|
|
{
|
|
"key": "$thumbnail",
|
|
"type": "image",
|
|
"srTitle": "ADF-DOCUMENT-LIST.LAYOUT.THUMBNAIL",
|
|
"sortable": false
|
|
},
|
|
{
|
|
"key": "name",
|
|
"type": "text",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.NAME",
|
|
"cssClass": "full-width ellipsis-cell",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "path",
|
|
"type": "location",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.LOCATION",
|
|
"format": "/files",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "content.sizeInBytes",
|
|
"type": "fileSize",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.SIZE",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "archivedAt",
|
|
"type": "date",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.DELETED_ON",
|
|
"format": "timeAgo",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "archivedByUser.displayName",
|
|
"type": "text",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.DELETED_BY",
|
|
"sortable": true
|
|
}
|
|
],
|
|
"-sites-": [
|
|
{
|
|
"key": "$thumbnail",
|
|
"type": "image",
|
|
"srTitle": "ADF-DOCUMENT-LIST.LAYOUT.THUMBNAIL",
|
|
"sortable": false
|
|
},
|
|
{
|
|
"key": "title",
|
|
"type": "text",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.NAME",
|
|
"cssClass": "full-width ellipsis-cell",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "visibility",
|
|
"type": "text",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.STATUS",
|
|
"sortable": true
|
|
}
|
|
],
|
|
"-mysites-": [
|
|
{
|
|
"key": "$thumbnail",
|
|
"type": "image",
|
|
"srTitle": "ADF-DOCUMENT-LIST.LAYOUT.THUMBNAIL",
|
|
"sortable": false
|
|
},
|
|
{
|
|
"key": "title",
|
|
"type": "text",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.NAME",
|
|
"cssClass": "full-width ellipsis-cell",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "visibility",
|
|
"type": "text",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.STATUS",
|
|
"sortable": true
|
|
}
|
|
],
|
|
"-favorites-": [
|
|
{
|
|
"key": "$thumbnail",
|
|
"type": "image",
|
|
"srTitle": "ADF-DOCUMENT-LIST.LAYOUT.THUMBNAIL",
|
|
"sortable": false
|
|
},
|
|
{
|
|
"key": "name",
|
|
"type": "text",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.NAME",
|
|
"cssClass": "full-width ellipsis-cell",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "path",
|
|
"type": "location",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.LOCATION",
|
|
"format": "/files",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "content.sizeInBytes",
|
|
"type": "fileSize",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.SIZE",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "modifiedAt",
|
|
"type": "date",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.MODIFIED_ON",
|
|
"format": "timeAgo",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "modifiedByUser.displayName",
|
|
"type": "text",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.MODIFIED_BY",
|
|
"sortable": true
|
|
}
|
|
],
|
|
"-recent-": [
|
|
{
|
|
"key": "$thumbnail",
|
|
"type": "image",
|
|
"srTitle": "ADF-DOCUMENT-LIST.LAYOUT.THUMBNAIL",
|
|
"sortable": false
|
|
},
|
|
{
|
|
"key": "name",
|
|
"type": "text",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.NAME",
|
|
"cssClass": "full-width ellipsis-cell",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "path",
|
|
"type": "location",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.LOCATION",
|
|
"cssClass": "ellipsis-cell",
|
|
"format": "/files",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "content.sizeInBytes",
|
|
"type": "fileSize",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.SIZE",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "modifiedAt",
|
|
"type": "date",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.MODIFIED_ON",
|
|
"format": "timeAgo",
|
|
"sortable": true
|
|
}
|
|
],
|
|
"-sharedlinks-": [
|
|
{
|
|
"key": "$thumbnail",
|
|
"type": "image",
|
|
"srTitle": "ADF-DOCUMENT-LIST.LAYOUT.THUMBNAIL",
|
|
"sortable": false
|
|
},
|
|
{
|
|
"key": "name",
|
|
"type": "text",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.NAME",
|
|
"cssClass": "full-width ellipsis-cell",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "path",
|
|
"type": "location",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.LOCATION",
|
|
"cssClass": "ellipsis-cell",
|
|
"format": "/files",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "content.sizeInBytes",
|
|
"type": "fileSize",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.SIZE",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "modifiedAt",
|
|
"type": "date",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.MODIFIED_ON",
|
|
"format": "timeAgo",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "modifiedByUser.displayName",
|
|
"type": "text",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.MODIFIED_BY",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "sharedByUser.displayName",
|
|
"type": "text",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.SHARED_BY",
|
|
"sortable": true
|
|
}
|
|
],
|
|
"default": [
|
|
{
|
|
"key": "$thumbnail",
|
|
"type": "image",
|
|
"srTitle": "ADF-DOCUMENT-LIST.LAYOUT.THUMBNAIL",
|
|
"sortable": false
|
|
},
|
|
{
|
|
"key": "name",
|
|
"type": "text",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.NAME",
|
|
"cssClass": "full-width ellipsis-cell",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "content.sizeInBytes",
|
|
"type": "fileSize",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.SIZE",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "modifiedAt",
|
|
"type": "date",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.MODIFIED_ON",
|
|
"format": "timeAgo",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "modifiedByUser.displayName",
|
|
"type": "text",
|
|
"title": "ADF-DOCUMENT-LIST.LAYOUT.MODIFIED_BY",
|
|
"sortable": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"adf-task-list": {
|
|
"presets": {
|
|
"default": [
|
|
{
|
|
"key": "name",
|
|
"type": "text",
|
|
"title": "ADF_TASK_LIST.PROPERTIES.NAME",
|
|
"sortable": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"adf-start-process": {
|
|
"name": "My Default Name",
|
|
"processDefinitionName": "My default process def name"
|
|
},
|
|
"adf-process-list": {
|
|
"presets": {
|
|
"default": [
|
|
{
|
|
"key": "name",
|
|
"type": "text",
|
|
"title": "ADF_PROCESS_LIST.PROPERTIES.NAME",
|
|
"sortable": true
|
|
},
|
|
{
|
|
"key": "id",
|
|
"type": "text",
|
|
"title": "ADF_PROCESS_LIST.PROPERTIES.ID",
|
|
"sortable": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"content-metadata": {
|
|
"presets": {
|
|
"default": {
|
|
"exif:exif": "*"
|
|
}
|
|
}
|
|
},
|
|
"sideNav": {
|
|
"expandedSidenav": true,
|
|
"preserveState": true
|
|
}
|
|
}
|