Skip to content

Commit 1396077

Browse files
committed
Merge tag 'v1.10.15' into deploy-auto
* Fix missing element desktop preferences ([\element-hq#8798](matrix-org/matrix-react-sdk#8798)). Contributed by @t3chguy.
2 parents d63c26c + ba38b73 commit 1396077

File tree

126 files changed

+5659
-3306
lines changed

Some content is hidden

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

126 files changed

+5659
-3306
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ insert_final_newline = true
2121
indent_style = space
2222
indent_size = 4
2323
trim_trailing_whitespace = true
24+
25+
[*.{yml,yaml}]
26+
indent_size = 2
27+
28+
[package.json]
29+
indent_size = 2

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
src/vector/modernizr.js
2+
# Legacy skinning file that some people might still have
23
src/component-index.js

.eslintrc.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ module.exports = {
1212
// Things we do that break the ideal style
1313
"quotes": "off",
1414
},
15+
settings: {
16+
react: {
17+
version: 'detect'
18+
}
19+
},
1520
overrides: [{
1621
files: ["src/**/*.{ts,tsx}"],
1722
extends: [
@@ -25,6 +30,41 @@ module.exports = {
2530

2631
// We disable this while we're transitioning
2732
"@typescript-eslint/no-explicit-any": "off",
33+
// We're okay with assertion errors when we ask for them
34+
"@typescript-eslint/no-non-null-assertion": "off",
35+
36+
// Ban matrix-js-sdk/src imports in favour of matrix-js-sdk/src/matrix imports to prevent unleashing hell.
37+
"no-restricted-imports": ["error", {
38+
"paths": [{
39+
"name": "matrix-js-sdk",
40+
"message": "Please use matrix-js-sdk/src/matrix instead",
41+
}, {
42+
"name": "matrix-js-sdk/",
43+
"message": "Please use matrix-js-sdk/src/matrix instead",
44+
}, {
45+
"name": "matrix-js-sdk/src",
46+
"message": "Please use matrix-js-sdk/src/matrix instead",
47+
}, {
48+
"name": "matrix-js-sdk/src/",
49+
"message": "Please use matrix-js-sdk/src/matrix instead",
50+
}, {
51+
"name": "matrix-js-sdk/src/index",
52+
"message": "Please use matrix-js-sdk/src/matrix instead",
53+
}, {
54+
"name": "matrix-react-sdk",
55+
"message": "Please use matrix-react-sdk/src/index instead",
56+
}, {
57+
"name": "matrix-react-sdk/",
58+
"message": "Please use matrix-react-sdk/src/index instead",
59+
}],
60+
"patterns": [{
61+
"group": ["matrix-js-sdk/lib", "matrix-js-sdk/lib/", "matrix-js-sdk/lib/**"],
62+
"message": "Please use matrix-js-sdk/src/* instead",
63+
}, {
64+
"group": ["matrix-react-sdk/lib", "matrix-react-sdk/lib/", "matrix-react-sdk/lib/**"],
65+
"message": "Please use matrix-react-sdk/src/* instead",
66+
}],
67+
}],
2868
},
2969
}],
3070
};
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Report a security vulnerability
4-
url: https://github.com/vector-im/element-web/security/policy
5-
about: Please review our security policy for more details
63
- name: Questions & support
74
url: https://matrix.to/#/#element-web:matrix.org
85
about: Please ask and answer questions here.

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and Package
2+
on:
3+
pull_request: { }
4+
push:
5+
branches: [ master ]
6+
# develop pushes and repository_dispatch handled in build_develop.yaml
7+
env:
8+
# These must be set for fetchdep.sh to get the right branch
9+
REPOSITORY: ${{ github.repository }}
10+
PR_NUMBER: ${{ github.event.pull_request.number }}
11+
jobs:
12+
build:
13+
name: "Build"
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- uses: actions/setup-node@v3
19+
with:
20+
cache: 'yarn'
21+
22+
- name: Install Dependencies
23+
run: "./scripts/layered.sh"
24+
25+
- name: Build & Package
26+
run: "./scripts/ci_package.sh"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Separate to the main build workflow for access to develop
2+
# environment secrets, largely similar to build.yaml.
3+
name: Build and Package develop
4+
on:
5+
push:
6+
branches: [ develop ]
7+
repository_dispatch:
8+
types: [ element-web-notify ]
9+
jobs:
10+
build:
11+
name: "Build & Upload source maps to Sentry"
12+
runs-on: ubuntu-latest
13+
environment: develop
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- uses: actions/setup-node@v3
18+
with:
19+
cache: 'yarn'
20+
21+
- name: Install Dependencies
22+
run: "./scripts/layered.sh"
23+
24+
- name: Build, Package & Upload sourcemaps
25+
run: "./scripts/ci_package.sh"
26+
env:
27+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
28+
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
29+
SENTRY_URL: ${{ secrets.SENTRY_URL }}
30+
SENTRY_ORG: sentry
31+
SENTRY_PROJECT: riot-web

.github/workflows/preview_changelog.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Pull Request
2+
on:
3+
pull_request_target:
4+
types: [ opened, edited, labeled, unlabeled, synchronize ]
5+
concurrency: ${{ github.workflow }}-${{ github.event.pull_request.head.ref }}
6+
jobs:
7+
changelog:
8+
name: Preview Changelog
9+
if: github.event.action != 'synchronize'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: matrix-org/allchange@main
13+
with:
14+
ghToken: ${{ secrets.GITHUB_TOKEN }}
15+
16+
enforce-label:
17+
name: Enforce Labels
18+
runs-on: ubuntu-latest
19+
permissions:
20+
pull-requests: read
21+
steps:
22+
- uses: yogevbd/enforce-label-action@2.1.0
23+
with:
24+
REQUIRED_LABELS_ANY: "T-Defect,T-Enhancement,T-Task"
25+
BANNED_LABELS: "X-Blocked"
26+
BANNED_LABELS_DESCRIPTION: "Preventing merge whilst PR is marked blocked!"

.github/workflows/sentry-sourcemaps.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/sonarqube.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: SonarQube
2+
on:
3+
workflow_run:
4+
workflows: [ "Tests" ]
5+
types:
6+
- completed
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch }}
9+
cancel-in-progress: true
10+
jobs:
11+
prdetails:
12+
name: ℹ️ PR Details
13+
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request'
14+
uses: matrix-org/matrix-js-sdk/.github/workflows/pr_details.yml@develop
15+
with:
16+
owner: ${{ github.event.workflow_run.head_repository.owner.login }}
17+
branch: ${{ github.event.workflow_run.head_branch }}
18+
19+
sonarqube:
20+
name: 🩻 SonarQube
21+
needs: prdetails
22+
# Only wait for prdetails if it isn't skipped
23+
if: |
24+
always() &&
25+
(needs.prdetails.result == 'success' || needs.prdetails.result == 'skipped') &&
26+
github.event.workflow_run.conclusion == 'success'
27+
uses: matrix-org/matrix-js-sdk/.github/workflows/sonarcloud.yml@develop
28+
with:
29+
repo: ${{ github.event.workflow_run.head_repository.full_name }}
30+
pr_id: ${{ needs.prdetails.outputs.pr_id }}
31+
head_branch: ${{ needs.prdetails.outputs.head_branch || github.event.workflow_run.head_branch }}
32+
base_branch: ${{ needs.prdetails.outputs.base_branch }}
33+
revision: ${{ github.event.workflow_run.head_sha }}
34+
coverage_workflow_name: tests.yml
35+
coverage_run_id: ${{ github.event.workflow_run.id }}
36+
secrets:
37+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)