[AAE-10472] Upgrade and deprecate libs (#7788)

* upgrade and deprecate libs

* upgrade flex layout

* cleanup tslint libs

* diable the test

* exclude flaky e2e
This commit is contained in:
Denys Vuika 2022-08-26 16:56:51 +01:00 committed by GitHub
parent 4a39161ad3
commit 6f209726e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 325 additions and 1501 deletions

View File

@ -146,7 +146,7 @@ describe('Document List Component', () => {
await expect(await contentServicesPage.getAttributeValueForElement(testFile.name, cardProperties.CREATED)).toMatch(/(ago|few)/); await expect(await contentServicesPage.getAttributeValueForElement(testFile.name, cardProperties.CREATED)).toMatch(/(ago|few)/);
}); });
// tslint:disable-next-line: ban // eslint-disable-next-line ban/ban
xit('[C280129] Should keep Gallery View when accessing a folder', async () => { xit('[C280129] Should keep Gallery View when accessing a folder', async () => {
await contentServicesPage.navigateToCardFolder(folderName); await contentServicesPage.navigateToCardFolder(folderName);

View File

@ -2,5 +2,7 @@
"C269081": "https://alfresco.atlassian.net/browse/ADF-5385", "C269081": "https://alfresco.atlassian.net/browse/ADF-5385",
"C272819": "https://alfresco.atlassian.net/browse/ADF-5385", "C272819": "https://alfresco.atlassian.net/browse/ADF-5385",
"C362241": "https://alfresco.atlassian.net/browse/ADF-5385", "C362241": "https://alfresco.atlassian.net/browse/ADF-5385",
"C260040": "https://alfresco.atlassian.net/browse/AAE-8041" "C260040": "https://alfresco.atlassian.net/browse/AAE-8041",
"C292004": "https://alfresco.atlassian.net/browse/AAE-10468",
"C297613": "https://alfresco.atlassian.net/browse/AAE-10468"
} }

View File

@ -15,7 +15,6 @@
* limitations under the License. * limitations under the License.
*/ */
/* tslint:disable */
export const checkboxVisibilityFormJson = { export const checkboxVisibilityFormJson = {
formRepresentation: { formRepresentation: {
id: 'form-fb9245f6-1132-47bd-b0b3-823bb85002da', id: 'form-fb9245f6-1132-47bd-b0b3-823bb85002da',

View File

@ -15,7 +15,6 @@
* limitations under the License. * limitations under the License.
*/ */
/* tslint:disable */
export const customDateFormAPS1 = `{ export const customDateFormAPS1 = `{
"formRepresentation":{ "formRepresentation":{
"id": 18977, "id": 18977,

View File

@ -15,7 +15,6 @@
* limitations under the License. * limitations under the License.
*/ */
/* tslint:disable */
export const displayValueTextJson = { export const displayValueTextJson = {
formRepresentation : { formRepresentation : {
id : 'form-340a2672-429b-454f-9bb1-7b4d7362bb89' , id : 'form-340a2672-429b-454f-9bb1-7b4d7362bb89' ,

View File

@ -15,96 +15,95 @@
* limitations under the License. * limitations under the License.
*/ */
/* tslint:disable */
export const peopleSingleModeFormMock = { export const peopleSingleModeFormMock = {
"formRepresentation": { formRepresentation: {
"id": "form-d74a4136-af83-4333-ac37-a6a74ac7aa84", id: 'form-d74a4136-af83-4333-ac37-a6a74ac7aa84',
"name": "singlepeople", name: 'singlepeople',
"description": "", description: '',
"version": 0, version: 0,
"standAlone": true, standAlone: true,
"formDefinition": { formDefinition: {
"tabs": [], tabs: [],
"fields": [ fields: [
{ {
"id": "7c9ea025-4ae6-4a5a-9184-da8f7d5c5543", id: '7c9ea025-4ae6-4a5a-9184-da8f7d5c5543',
"name": "Label", name: 'Label',
"type": "container", type: 'container',
"tab": null, tab: null,
"numberOfColumns": 2, numberOfColumns: 2,
"fields": { fields: {
"1": [ 1: [
{ {
"id": "PeopleSingleMode", id: 'PeopleSingleMode',
"name": "People", name: 'People',
"type": "people", type: 'people',
"readOnly": false, readOnly: false,
"required": false, required: false,
"colspan": 1, colspan: 1,
"optionType": "single", optionType: 'single',
"visibilityCondition": null, visibilityCondition: null,
"params": { params: {
"existingColspan": 1, existingColspan: 1,
"maxColspan": 2 maxColspan: 2
} }
} }
], ],
"2": [] 2: []
} }
} }
], ],
"outcomes": [], outcomes: [],
"metadata": {}, metadata: {},
"variables": [] variables: []
} }
} }
}; };
export const peopleMultipleModeFormMock = { export const peopleMultipleModeFormMock = {
"formRepresentation": { formRepresentation: {
"id": "form-0fec4293-a33a-4408-923c-ba2d0645459c", id: 'form-0fec4293-a33a-4408-923c-ba2d0645459c',
"name": "people", name: 'people',
"description": "", description: '',
"version": 0, version: 0,
"standAlone": true, standAlone: true,
"formDefinition": { formDefinition: {
"tabs": [], tabs: [],
"fields": [ fields: [
{ {
"id": "44e485d4-c286-425a-b488-3fda1707d319", id: '44e485d4-c286-425a-b488-3fda1707d319',
"name": "Label", name: 'Label',
"type": "container", type: 'container',
"tab": null, tab: null,
"numberOfColumns": 2, numberOfColumns: 2,
"fields": { fields: {
"1": [ 1: [
{ {
"id": "PeopleMultipleMode", id: 'PeopleMultipleMode',
"name": "People", name: 'People',
"type": "people", type: 'people',
"readOnly": false, readOnly: false,
"required": false, required: false,
"colspan": 1, colspan: 1,
"optionType": "multiple", optionType: 'multiple',
"visibilityCondition": null, visibilityCondition: null,
"params": { params: {
"existingColspan": 1, existingColspan: 1,
"maxColspan": 2 maxColspan: 2
} }
} }
], ],
"2": [] 2: []
} }
} }
], ],
"outcomes": [], outcomes: [],
"metadata": {}, metadata: {},
"variables": [ variables: [
{ {
"id": "d6060d6b-1cb0-45dc-a18b-4d7898a9a5ad", id: 'd6060d6b-1cb0-45dc-a18b-4d7898a9a5ad',
"name": "people", name: 'people',
"type": "string", type: 'string',
"value": "user1" value: 'user1'
} }
] ]
} }
@ -112,50 +111,50 @@ export const peopleMultipleModeFormMock = {
}; };
export const peopleRequiredFormMock = { export const peopleRequiredFormMock = {
"formRepresentation": { formRepresentation: {
"id": "form-0fec4293-a33a-4408-923c-ba2d0645459c", id: 'form-0fec4293-a33a-4408-923c-ba2d0645459c',
"name": "people", name: 'people',
"description": "", description: '',
"version": 0, version: 0,
"standAlone": true, standAlone: true,
"formDefinition": { formDefinition: {
"tabs": [], tabs: [],
"fields": [ fields: [
{ {
"id": "44e485d4-c286-425a-b488-3fda1707d319", id: '44e485d4-c286-425a-b488-3fda1707d319',
"name": "Label", name: 'Label',
"type": "container", type: 'container',
"tab": null, tab: null,
"numberOfColumns": 2, numberOfColumns: 2,
"fields": { fields: {
"1": [ 1: [
{ {
"id": "PeopleRequired", id: 'PeopleRequired',
"name": "People", name: 'People',
"type": "people", type: 'people',
"readOnly": false, readOnly: false,
"required": true, required: true,
"colspan": 1, colspan: 1,
"optionType": "single", optionType: 'single',
"visibilityCondition": null, visibilityCondition: null,
"params": { params: {
"existingColspan": 1, existingColspan: 1,
"maxColspan": 2 maxColspan: 2
} }
} }
], ],
"2": [] 2: []
} }
} }
], ],
"outcomes": [], outcomes: [],
"metadata": {}, metadata: {},
"variables": [ variables: [
{ {
"id": "d6060d6b-1cb0-45dc-a18b-4d7898a9a5ad", id: 'd6060d6b-1cb0-45dc-a18b-4d7898a9a5ad',
"name": "people", name: 'people',
"type": "string", type: 'string',
"value": "user1" value: 'user1'
} }
] ]
} }
@ -163,50 +162,50 @@ export const peopleRequiredFormMock = {
}; };
export const groupSingleModeFormMock = { export const groupSingleModeFormMock = {
"formRepresentation": { formRepresentation: {
"id": "form-0fec4293-a33a-4408-923c-ba2d0645459c", id: 'form-0fec4293-a33a-4408-923c-ba2d0645459c',
"name": "people", name: 'people',
"description": "", description: '',
"version": 0, version: 0,
"standAlone": true, standAlone: true,
"formDefinition": { formDefinition: {
"tabs": [], tabs: [],
"fields": [ fields: [
{ {
"id": "abccf2c9-b526-45c7-abd4-b969bdf8ce15", id: 'abccf2c9-b526-45c7-abd4-b969bdf8ce15',
"name": "Label", name: 'Label',
"type": "container", type: 'container',
"tab": null, tab: null,
"numberOfColumns": 2, numberOfColumns: 2,
"fields": { fields: {
"1": [ 1: [
{ {
"id": "GroupSingleMode", id: 'GroupSingleMode',
"name": "Group of people", name: 'Group of people',
"type": "functional-group", type: 'functional-group',
"readOnly": false, readOnly: false,
"required": false, required: false,
"colspan": 1, colspan: 1,
"optionType": "single", optionType: 'single',
"visibilityCondition": null, visibilityCondition: null,
"params": { params: {
"existingColspan": 1, existingColspan: 1,
"maxColspan": 2 maxColspan: 2
} }
} }
], ],
"2": [] 2: []
} }
} }
], ],
"outcomes": [], outcomes: [],
"metadata": {}, metadata: {},
"variables": [ variables: [
{ {
"id": "d6060d6b-1cb0-45dc-a18b-4d7898a9a5ad", id: 'd6060d6b-1cb0-45dc-a18b-4d7898a9a5ad',
"name": "people", name: 'people',
"type": "string", type: 'string',
"value": "user1" value: 'user1'
} }
] ]
} }
@ -214,50 +213,50 @@ export const groupSingleModeFormMock = {
}; };
export const groupMultipleModeFormMock = { export const groupMultipleModeFormMock = {
"formRepresentation": { formRepresentation: {
"id": "form-0fec4293-a33a-4408-923c-ba2d0645459c", id: 'form-0fec4293-a33a-4408-923c-ba2d0645459c',
"name": "people", name: 'people',
"description": "", description: '',
"version": 0, version: 0,
"standAlone": true, standAlone: true,
"formDefinition": { formDefinition: {
"tabs": [], tabs: [],
"fields": [ fields: [
{ {
"id": "abccf2c9-b526-45c7-abd4-b969bdf8ce15", id: 'abccf2c9-b526-45c7-abd4-b969bdf8ce15',
"name": "Label", name: 'Label',
"type": "container", type: 'container',
"tab": null, tab: null,
"numberOfColumns": 2, numberOfColumns: 2,
"fields": { fields: {
"1": [ 1: [
{ {
"id": "GroupMultipleMode", id: 'GroupMultipleMode',
"name": "Group of people", name: 'Group of people',
"type": "functional-group", type: 'functional-group',
"readOnly": false, readOnly: false,
"required": false, required: false,
"colspan": 1, colspan: 1,
"optionType": "multiple", optionType: 'multiple',
"visibilityCondition": null, visibilityCondition: null,
"params": { params: {
"existingColspan": 1, existingColspan: 1,
"maxColspan": 2 maxColspan: 2
} }
} }
], ],
"2": [] 2: []
} }
} }
], ],
"outcomes": [], outcomes: [],
"metadata": {}, metadata: {},
"variables": [ variables: [
{ {
"id": "d6060d6b-1cb0-45dc-a18b-4d7898a9a5ad", id: 'd6060d6b-1cb0-45dc-a18b-4d7898a9a5ad',
"name": "people", name: 'people',
"type": "string", type: 'string',
"value": "user1" value: 'user1'
} }
] ]
} }
@ -265,50 +264,50 @@ export const groupMultipleModeFormMock = {
}; };
export const groupRequiredFormMock = { export const groupRequiredFormMock = {
"formRepresentation": { formRepresentation: {
"id": "form-0fec4293-a33a-4408-923c-ba2d0645459c", id: 'form-0fec4293-a33a-4408-923c-ba2d0645459c',
"name": "people", name: 'people',
"description": "", description: '',
"version": 0, version: 0,
"standAlone": true, standAlone: true,
"formDefinition": { formDefinition: {
"tabs": [], tabs: [],
"fields": [ fields: [
{ {
"id": "abccf2c9-b526-45c7-abd4-b969bdf8ce15", id: 'abccf2c9-b526-45c7-abd4-b969bdf8ce15',
"name": "Label", name: 'Label',
"type": "container", type: 'container',
"tab": null, tab: null,
"numberOfColumns": 2, numberOfColumns: 2,
"fields": { fields: {
"1": [ 1: [
{ {
"id": "GroupRequired", id: 'GroupRequired',
"name": "Group of people", name: 'Group of people',
"type": "functional-group", type: 'functional-group',
"readOnly": false, readOnly: false,
"required": true, required: true,
"colspan": 1, colspan: 1,
"optionType": "single", optionType: 'single',
"visibilityCondition": null, visibilityCondition: null,
"params": { params: {
"existingColspan": 1, existingColspan: 1,
"maxColspan": 2 maxColspan: 2
} }
} }
], ],
"2": [] 2: []
} }
} }
], ],
"outcomes": [], outcomes: [],
"metadata": {}, metadata: {},
"variables": [ variables: [
{ {
"id": "d6060d6b-1cb0-45dc-a18b-4d7898a9a5ad", id: 'd6060d6b-1cb0-45dc-a18b-4d7898a9a5ad',
"name": "people", name: 'people',
"type": "string", type: 'string',
"value": "user1" value: 'user1'
} }
] ]
} }
@ -316,50 +315,50 @@ export const groupRequiredFormMock = {
}; };
export const peopleReadOnlyFormMock = { export const peopleReadOnlyFormMock = {
"formRepresentation": { formRepresentation: {
"id": "form-0fec4293-a33a-4408-923c-ba2d0645459c", id: 'form-0fec4293-a33a-4408-923c-ba2d0645459c',
"name": "people", name: 'people',
"description": "", description: '',
"version": 0, version: 0,
"standAlone": true, standAlone: true,
"formDefinition": { formDefinition: {
"tabs": [], tabs: [],
"fields": [ fields: [
{ {
"id": "44e485d4-c286-425a-b488-3fda1707d319", id: '44e485d4-c286-425a-b488-3fda1707d319',
"name": "Label", name: 'Label',
"type": "container", type: 'container',
"tab": null, tab: null,
"numberOfColumns": 2, numberOfColumns: 2,
"fields": { fields: {
"1": [ 1: [
{ {
"id": "PeopleReadOnly", id: 'PeopleReadOnly',
"name": "People", name: 'People',
"type": "people", type: 'people',
"readOnly": true, readOnly: true,
"required": false, required: false,
"colspan": 1, colspan: 1,
"optionType": "single", optionType: 'single',
"visibilityCondition": null, visibilityCondition: null,
"params": { params: {
"existingColspan": 1, existingColspan: 1,
"maxColspan": 2 maxColspan: 2
} }
} }
], ],
"2": [] 2: []
} }
} }
], ],
"outcomes": [], outcomes: [],
"metadata": {}, metadata: {},
"variables": [ variables: [
{ {
"id": "d6060d6b-1cb0-45dc-a18b-4d7898a9a5ad", id: 'd6060d6b-1cb0-45dc-a18b-4d7898a9a5ad',
"name": "people", name: 'people',
"type": "string", type: 'string',
"value": "user1" value: 'user1'
} }
] ]
} }
@ -367,50 +366,50 @@ export const peopleReadOnlyFormMock = {
}; };
export const groupReadOnlyFormMock = { export const groupReadOnlyFormMock = {
"formRepresentation": { formRepresentation: {
"id": "form-0fec4293-a33a-4408-923c-ba2d0645459c", id: 'form-0fec4293-a33a-4408-923c-ba2d0645459c',
"name": "people", name: 'people',
"description": "", description: '',
"version": 0, version: 0,
"standAlone": true, standAlone: true,
"formDefinition": { formDefinition: {
"tabs": [], tabs: [],
"fields": [ fields: [
{ {
"id": "abccf2c9-b526-45c7-abd4-b969bdf8ce15", id: 'abccf2c9-b526-45c7-abd4-b969bdf8ce15',
"name": "Label", name: 'Label',
"type": "container", type: 'container',
"tab": null, tab: null,
"numberOfColumns": 2, numberOfColumns: 2,
"fields": { fields: {
"1": [ 1: [
{ {
"id": "GroupReadOnly", id: 'GroupReadOnly',
"name": "Group of people", name: 'Group of people',
"type": "functional-group", type: 'functional-group',
"readOnly": true, readOnly: true,
"required": false, required: false,
"colspan": 1, colspan: 1,
"optionType": "single", optionType: 'single',
"visibilityCondition": null, visibilityCondition: null,
"params": { params: {
"existingColspan": 1, existingColspan: 1,
"maxColspan": 2 maxColspan: 2
} }
} }
], ],
"2": [] 2: []
} }
} }
], ],
"outcomes": [], outcomes: [],
"metadata": {}, metadata: {},
"variables": [ variables: [
{ {
"id": "d6060d6b-1cb0-45dc-a18b-4d7898a9a5ad", id: 'd6060d6b-1cb0-45dc-a18b-4d7898a9a5ad',
"name": "people", name: 'people',
"type": "string", type: 'string',
"value": "user1" value: 'user1'
} }
] ]
} }

View File

@ -15,7 +15,6 @@
* limitations under the License. * limitations under the License.
*/ */
/* tslint:disable */
export const tabFieldValueVisibilityJson = { export const tabFieldValueVisibilityJson = {
formRepresentation: { formRepresentation: {
id: 'form-3aff57d3-62af-4adf-9b14-1d8f44a28077', id: 'form-3aff57d3-62af-4adf-9b14-1d8f44a28077',

View File

@ -1,6 +0,0 @@
{
"extends": "../tslint.json",
"rules": {
"no-floating-promises": true
}
}

View File

@ -1,6 +1,4 @@
#!/usr/bin/env node #!/usr/bin/env node
// tslint:disable: adf-file-name
// tslint:disable: no-var-requires
const minimist = require('minimist'); const minimist = require('minimist');
const path = require('path'); const path = require('path');
const fs = require('fs'); const fs = require('fs');

View File

@ -1,5 +1,3 @@
/* tslint:disable:adf-license-banner */
/* Copyright 2012 Mozilla Foundation /* Copyright 2012 Mozilla Foundation
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -33,7 +33,6 @@ export class ViewUtilService {
* Content groups based on categorization of files that can be viewed in the web browser. This * Content groups based on categorization of files that can be viewed in the web browser. This
* implementation or grouping is tied to the definition the ng component: ViewerComponent * implementation or grouping is tied to the definition the ng component: ViewerComponent
*/ */
// tslint:disable-next-line:variable-name
static ContentGroup = { static ContentGroup = {
IMAGE: 'image', IMAGE: 'image',
MEDIA: 'media', MEDIA: 'media',
@ -44,7 +43,6 @@ export class ViewUtilService {
/** /**
* The name of the rendition with the media subtitles in the supported format * The name of the rendition with the media subtitles in the supported format
*/ */
/* tslint:disable-next-line */
static SUBTITLES_RENDITION_NAME = 'webvtt'; static SUBTITLES_RENDITION_NAME = 'webvtt';
/** /**

View File

@ -1,13 +0,0 @@
{
"extends": "../tslint.json",
"rules": {
"adf-license-banner": [true, "lib/+(core|content-services|process-services|process-services-cloud|insights|extensions|testing)/**/*.ts", "./license-community.txt"],
"template-accessibility-alt-text": true,
"template-accessibility-label-for": true,
"template-accessibility-tabindex-no-positive": true,
"template-accessibility-table-scope": true,
"template-accessibility-valid-aria": true,
"template-no-autofocus": true,
"no-floating-promises": false
}
}

970
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -75,7 +75,7 @@
"@angular/common": "14.1.3", "@angular/common": "14.1.3",
"@angular/compiler": "14.1.3", "@angular/compiler": "14.1.3",
"@angular/core": "14.1.3", "@angular/core": "14.1.3",
"@angular/flex-layout": "^13.0.0-beta.38", "@angular/flex-layout": "^14.0.0-beta.40",
"@angular/forms": "14.1.3", "@angular/forms": "14.1.3",
"@angular/material": "14.1.2", "@angular/material": "14.1.2",
"@angular/material-moment-adapter": "14.1.2", "@angular/material-moment-adapter": "14.1.2",
@ -89,8 +89,8 @@
"@editorjs/underline": "1.0.0", "@editorjs/underline": "1.0.0",
"@mat-datetimepicker/core": "^9.0.68", "@mat-datetimepicker/core": "^9.0.68",
"@mat-datetimepicker/moment": "^9.0.68", "@mat-datetimepicker/moment": "^9.0.68",
"@ngx-translate/core": "^13.0.0", "@ngx-translate/core": "^14.0.0",
"adf-tslint-rules": "0.0.7", "@storybook/core-server": "6.4.22",
"apollo-angular": "^2.6.0", "apollo-angular": "^2.6.0",
"chart.js": "2.9.4", "chart.js": "2.9.4",
"cropperjs": "1.5.12", "cropperjs": "1.5.12",
@ -107,8 +107,7 @@
"rxjs": "6.6.6", "rxjs": "6.6.6",
"subscriptions-transport-ws": "^0.11.0", "subscriptions-transport-ws": "^0.11.0",
"tslib": "^2.0.0", "tslib": "^2.0.0",
"zone.js": "~0.11.4", "zone.js": "~0.11.4"
"@storybook/core-server": "6.4.22"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "14.1.3", "@angular-devkit/build-angular": "14.1.3",
@ -144,7 +143,6 @@
"@typescript-eslint/parser": "5.30.0", "@typescript-eslint/parser": "5.30.0",
"@typescript-eslint/typescript-estree": "5.30.7", "@typescript-eslint/typescript-estree": "5.30.7",
"ajv-cli": "^4.2.0", "ajv-cli": "^4.2.0",
"codelyzer": "^6.0.0",
"commander": "6.2.1", "commander": "6.2.1",
"concurrently": "^7.0.0", "concurrently": "^7.0.0",
"cspell": "^5.5.1", "cspell": "^5.5.1",
@ -181,7 +179,6 @@
"nconf": "^0.11.1", "nconf": "^0.11.1",
"ng-mocks": "^10.5.4", "ng-mocks": "^10.5.4",
"ng-packagr": "14.0.3", "ng-packagr": "14.0.3",
"node-sass": "^4.14.1",
"nx": "14.4.2", "nx": "14.4.2",
"postcss": "^8.4.5", "postcss": "^8.4.5",
"postcss-sass": "^0.5.0", "postcss-sass": "^0.5.0",
@ -190,14 +187,12 @@
"protractor-screenshoter-plugin": "0.10.3", "protractor-screenshoter-plugin": "0.10.3",
"protractor-smartrunner": "^2.0.0-beta6", "protractor-smartrunner": "^2.0.0-beta6",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"rxjs-tslint-rules": "^4.34.7",
"sass-loader": "10.1.1", "sass-loader": "10.1.1",
"selenium-webdriver": "4.1.0", "selenium-webdriver": "4.1.0",
"stylelint": "^14.2.0", "stylelint": "^14.2.0",
"stylelint-config-standard-scss": "^3.0.0", "stylelint-config-standard-scss": "^3.0.0",
"ts-node": "^10.4.0", "ts-node": "^10.4.0",
"tsconfig-paths": "^3.12.0", "tsconfig-paths": "^3.12.0",
"tslint": "6.1.3",
"typescript": "4.7.4", "typescript": "4.7.4",
"webdriver-manager": "12.1.8", "webdriver-manager": "12.1.8",
"webpack-cli": "^4.9.2" "webpack-cli": "^4.9.2"

View File

@ -19,6 +19,5 @@ var root = {
}; };
var query = "\n {\n document {\n metadata(key: \"Status\")\n heading {\n link {\n text {\n value\n }\n }\n }\n paragraph {\n plaintext\n }\n }\n }\n"; var query = "\n {\n document {\n metadata(key: \"Status\")\n heading {\n link {\n text {\n value\n }\n }\n }\n paragraph {\n plaintext\n }\n }\n }\n";
graphql_1.graphql(schema, query, root).then(function (response) { graphql_1.graphql(schema, query, root).then(function (response) {
// tslint:disable-next-line: no-console
console.log(JSON.stringify(response)); console.log(JSON.stringify(response));
}); });

View File

@ -44,6 +44,5 @@ const query = `
`; `;
graphql(schema, query, root).then((response) => { graphql(schema, query, root).then((response) => {
// tslint:disable-next-line: no-console
console.log(JSON.stringify(response)); console.log(JSON.stringify(response));
}); });

View File

@ -1,5 +1,4 @@
"use strict"; "use strict";
// tslint:disable: no-console
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
var path = require("path"); var path = require("path");
var fs = require("fs"); var fs = require("fs");

View File

@ -1,5 +1,3 @@
// tslint:disable: no-console
import * as path from 'path'; import * as path from 'path';
import * as fs from 'fs'; import * as fs from 'fs';
import * as process from 'process'; import * as process from 'process';

View File

@ -1,5 +1,4 @@
"use strict"; "use strict";
// tslint:disable: no-console
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.processDocs = void 0; exports.processDocs = void 0;
var path = require("path"); var path = require("path");

View File

@ -1,5 +1,3 @@
// tslint:disable: no-console
import * as path from 'path'; import * as path from 'path';
import * as fs from 'fs'; import * as fs from 'fs';
import { selectAll } from 'unist-util-select'; import { selectAll } from 'unist-util-select';

View File

@ -1,5 +1,4 @@
"use strict"; "use strict";
// tslint:disable: no-console
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.processDocs = void 0; exports.processDocs = void 0;
var fs = require("fs"); var fs = require("fs");

View File

@ -1,5 +1,3 @@
// tslint:disable: no-console
import * as fs from 'fs'; import * as fs from 'fs';
import * as path from 'path'; import * as path from 'path';
import * as ejs from 'ejs'; import * as ejs from 'ejs';

View File

@ -1,5 +1,4 @@
"use strict"; "use strict";
// tslint:disable: no-console
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.processDocs = void 0; exports.processDocs = void 0;
var path = require("path"); var path = require("path");

View File

@ -1,5 +1,3 @@
// tslint:disable: no-console
import * as path from 'path'; import * as path from 'path';
import * as fs from 'fs'; import * as fs from 'fs';
import { selectAll } from 'unist-util-select'; import { selectAll } from 'unist-util-select';

View File

@ -1,5 +1,4 @@
"use strict"; "use strict";
// tslint:disable: no-console
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.processDocs = void 0; exports.processDocs = void 0;
var fs = require("fs"); var fs = require("fs");

View File

@ -1,5 +1,3 @@
// tslint:disable: no-console
import * as fs from 'fs'; import * as fs from 'fs';
import * as path from 'path'; import * as path from 'path';
import * as replaceSection from 'mdast-util-heading-range'; import * as replaceSection from 'mdast-util-heading-range';

View File

@ -1,238 +0,0 @@
{
"rulesDirectory": [
"./node_modules/codelyzer",
"./tools/tslint-rules/"
],
"extends": [
"rxjs-tslint-rules"
],
"rules": {
"adf-license-banner": [
true,
"{demo-shell,e2e}/**/*.ts",
"./license-community.txt"
],
"align": [
true,
"parameters",
"statements"
],
"ban": [
true,
"eval",
"fdescribe",
"fit",
"xit",
"xdescribe"
],
"class-name": true,
"comment-format": [
true,
"check-space"
],
"curly": true,
"eofline": true,
"forin": true,
"indent": [
true,
"spaces"
],
"interface-name": false,
"jsdoc-format": true,
"label-position": true,
"max-line-length": [
true,
240
],
"member-ordering": [
true,
{
"order": [
"static-field",
"instance-field",
"static-method",
"instance-method"
]
}
],
"no-any": false,
"no-arg": true,
"no-bitwise": false,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": true,
"no-console": [
true,
"log",
"error",
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-construct": true,
"no-constructor-vars": false,
"no-debugger": true,
"no-duplicate-super": true,
"no-duplicate-variable": true,
"no-empty": false,
"no-eval": true,
"no-inferrable-types": false,
"no-internal-module": true,
"no-require-imports": false,
"no-shadowed-variable": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-var-keyword": true,
"no-var-requires": true,
"object-literal-sort-keys": false,
"no-return-await": true,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [
true,
"single",
"avoid-escape"
],
"radix": true,
"semicolon": [
true,
"always"
],
"switch-default": true,
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never"
}
],
"triple-equals": [
true,
"allow-null-check"
],
"typedef": false,
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"use-strict": false,
"variable-name": [
true,
"check-format",
"allow-leading-underscore",
"ban-keywords"
],
"callable-types": true,
"import-spacing": true,
"interface-over-type-literal": true,
"member-access": false,
"no-empty-interface": true,
"no-string-literal": false,
"no-string-throw": true,
"prefer-const": true,
"unified-signatures": true,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-typecast",
"check-type",
"check-typecast",
"check-module"
],
"component-selector": [
true,
"element",
["adf", "app"],
"kebab-case"
],
"directive-selector": [
true,
["element", "attribute"],
["adf", "app"],
"kebab-case"
],
"naming-convention": [
{
"type": "enumMember",
"format": "PascalCase"
}
],
"no-input-prefix": true,
"ordered-imports": false,
"template-conditional-complexity": [
true,
2
],
"no-host-metadata-property": false,
"use-pipe-transform-interface": true,
"component-class-suffix": true,
"directive-class-suffix": true,
"file-name-casing": [true, "kebab-case"],
"adf-file-name": true,
"adf-class-name": true,
"adf-prefix-name": true,
"no-input-rename": true,
"no-output-rename": true,
"no-duplicate-imports": true,
"rxjs-ban-operators": {
"severity": "error"
},
"rxjs-no-unsafe-takeuntil": {
"severity": "error"
},
"rxjs-no-create": {
"severity": "error"
},
"rxjs-no-ignored-subscribe": {
"severity": "error"
},
"rxjs-no-subject-unsubscribe": {
"severity": "error"
},
"rxjs-no-subject-value": {
"severity": "error"
},
"rxjs-no-unsafe-catch": {
"options": [
{
"observable": "action(s|\\$)?"
}
],
"severity": "error"
},
"rxjs-no-unsafe-switchmap": {
"options": [
{
"disallow": [
"add",
"create",
"delete",
"post",
"put",
"remove",
"set",
"update"
],
"observable": "action(s|\\$)?"
}
],
"severity": "error"
}
}
}