Skip to content

Commit 9b1f798

Browse files
authored
Merge pull request #617 from GetStream/v5
V5
2 parents db950dc + a77641d commit 9b1f798

365 files changed

Lines changed: 21394 additions & 27906 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.json

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"root": true,
33
"ignorePatterns": ["projects/**/*"],
4-
"plugins": ["unused-imports", "cypress", "jasmine"],
5-
"env": {
6-
"jasmine": true
7-
},
4+
"plugins": ["unused-imports"],
85
"overrides": [
96
{
107
"files": ["*.ts"],
@@ -16,19 +13,38 @@
1613
"eslint:recommended",
1714
"plugin:@typescript-eslint/recommended-requiring-type-checking",
1815
"plugin:@angular-eslint/all",
19-
"plugin:cypress/recommended",
20-
"plugin:jasmine/recommended",
2116
"plugin:prettier/recommended" // This should always be the last in the extends array
2217
],
2318
"rules": {
2419
"@angular-eslint/sort-ngmodule-metadata-arrays": "off",
2520
"@angular-eslint/prefer-on-push-component-change-detection": "off",
2621
"unused-imports/no-unused-imports": "error",
2722
"no-console": ["error", { "allow": ["warn", "error"] }],
28-
"jasmine/no-spec-dupes": [1, "branch"],
2923
"@typescript-eslint/unbound-method": "off"
3024
}
3125
},
26+
{
27+
"files": ["*.spec.ts", "**/mocks/*.ts"],
28+
"parserOptions": {
29+
"project": ["tsconfig.json"],
30+
"createDefaultProgram": true
31+
},
32+
"extends": [
33+
"eslint:recommended",
34+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
35+
"plugin:@angular-eslint/all",
36+
"plugin:prettier/recommended" // This should always be the last in the extends array
37+
],
38+
"rules": {
39+
"@angular-eslint/sort-ngmodule-metadata-arrays": "off",
40+
"@angular-eslint/prefer-on-push-component-change-detection": "off",
41+
"unused-imports/no-unused-imports": "error",
42+
"no-console": ["error", { "allow": ["warn", "error"] }],
43+
"@typescript-eslint/unbound-method": "off",
44+
"@typescript-eslint/no-explicit-any": "off",
45+
"@typescript-eslint/ban-types": "off"
46+
}
47+
},
3248
{
3349
"files": ["*.html"],
3450
"extends": [
@@ -39,7 +55,12 @@
3955
"@angular-eslint/template/i18n": "off",
4056
"@angular-eslint/template/cyclomatic-complexity": "off",
4157
"@angular-eslint/template/no-call-expression": "off",
42-
"@angular-eslint/template/no-autofocus": "off"
58+
"@angular-eslint/template/no-autofocus": "off",
59+
"@angular-eslint/template/no-interpolation-in-attributes": "off",
60+
"@angular-eslint/template/button-has-type": "off",
61+
"@angular-eslint/template/no-inline-styles": "off",
62+
"@angular-eslint/template/accessibility-interactive-supports-focus": "off",
63+
"@angular-eslint/template/attributes-order": "off"
4364
}
4465
}
4566
]

.github/workflows/workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
node-version: [16.x]
18+
node-version: [18.x]
1919

2020
steps:
2121
- uses: actions/checkout@v2

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ chrome-profiler-events*.json
3131
.history/*
3232

3333
# misc
34+
/.angular/cache
3435
/.sass-cache
3536
/connect.lock
3637
/coverage
@@ -56,3 +57,4 @@ Thumbs.db
5657

5758
# Encapsulated stream-chat-css
5859
projects/stream-chat-angular/src/assets/styles
60+
projects/stream-chat-angular/src/assets/assets

README.md

Lines changed: 11 additions & 25 deletions

angular.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"cli": {
4-
"defaultCollection": "@angular-eslint/schematics"
4+
"schematicCollections": ["@angular-eslint/schematics"],
5+
"analytics": false
56
},
67
"version": 1,
78
"newProjectRoot": "projects",
@@ -323,5 +324,12 @@
323324
}
324325
}
325326
},
326-
"defaultProject": "stream-chat-angular"
327+
"schematics": {
328+
"@angular-eslint/schematics:application": {
329+
"setParserOptionsProject": true
330+
},
331+
"@angular-eslint/schematics:library": {
332+
"setParserOptionsProject": true
333+
}
334+
}
327335
}

copy-generated-service-docs.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ fs.readdir(sourcePath, (err: any, files: string[]) => {
3131
}
3232

3333
// Remove the thre prefix from the title
34-
const result = data.replace(/# Class:/g, '#').replace('<T\\>', '');
34+
const result = data
35+
.replace(/# Class:/g, '#')
36+
.replace('<T\\>', '')
37+
.replace('\\', '');
3538

3639
fs.writeFile(`${sourcePath}/${file}`, result, 'utf8', (err: any) => {
3740
if (err) {

docusaurus/angular-docusaurus-dontent-docs.plugin.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ module.exports = {
55
{
66
lastVersion: "current",
77
versions: {
8-
5: {
9-
label: "v5 (beta)",
10-
banner: "unreleased",
11-
path: "5",
12-
},
138
current: {
9+
label: "v5",
10+
},
11+
4: {
1412
label: "v4",
13+
banner: "unmaintained",
14+
path: "4",
1515
},
1616
},
1717
},

docusaurus/angular_versioned_docs/version-5/assets/angular-logo.png renamed to docusaurus/angular_versioned_docs/version-4/assets/angular-logo.png

File renamed without changes.

docusaurus/angular_versioned_docs/version-5/assets/attachment-preview-list-screenshot.png renamed to docusaurus/angular_versioned_docs/version-4/assets/attachment-preview-list-screenshot.png

File renamed without changes.

docusaurus/angular_versioned_docs/version-5/assets/attachment-size-warning.png renamed to docusaurus/angular_versioned_docs/version-4/assets/attachment-size-warning.png

File renamed without changes.

0 commit comments

Comments
 (0)