Skip to content

Commit 8f34cb9

Browse files
committed
Bringing up to date with master branch.
2 parents eeade01 + 7454ba1 commit 8f34cb9

File tree

313 files changed

+10611
-6045
lines changed

Some content is hidden

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

313 files changed

+10611
-6045
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
root = true
2+
3+
[*]
4+
trim_trailing_whitespace = true

.eslintrc.cjs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
module.exports = {
2+
root: true,
3+
parser: "@typescript-eslint/parser",
4+
plugins: [
5+
"@typescript-eslint"
6+
],
7+
extends: [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/recommended",
10+
],
11+
rules: {
12+
"no-constant-condition": "warn",
13+
"no-async-promise-executor": "off",
14+
"no-extra-boolean-cast": "warn",
15+
"no-useless-escape": "off",
16+
"no-ex-assign": "warn",
17+
"prefer-spread": "off",
18+
"prefer-const": "warn",
19+
"@typescript-eslint/ban-types": "off",
20+
"@typescript-eslint/ban-ts-comment": "off",
21+
"@typescript-eslint/no-explicit-any": "off",
22+
"@typescript-eslint/no-unused-vars": "off",
23+
"@typescript-eslint/no-inferrable-types": "off",
24+
"@typescript-eslint/no-empty-interface": "off",
25+
"@typescript-eslint/no-this-alias": "off",
26+
"@typescript-eslint/quotes": [
27+
"warn",
28+
"double",
29+
{
30+
"avoidEscape": true,
31+
"allowTemplateLiterals": true
32+
}
33+
]
34+
}
35+
};
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ master ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ master ]
20+
schedule:
21+
- cron: '25 16 * * 4'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'typescript' ]
36+
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v3
40+
41+
# Initializes the CodeQL tools for scanning.
42+
- name: Initialize CodeQL
43+
uses: github/codeql-action/init@v2
44+
with:
45+
languages: ${{ matrix.language }}
46+
# If you wish to specify custom queries, you can do so here or in a config file.
47+
# By default, queries listed here will override any specified in a config file.
48+
# Prefix the list here with "+" to use these queries and those in the config file.
49+
50+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
51+
# queries: security-extended,security-and-quality
52+
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v2
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
61+
62+
# If the Autobuild fails above, remove it and uncomment the following three lines.
63+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
64+
65+
# - run: |
66+
# echo "Run, Build Application using script"
67+
# ./location_of_script_within_repo/buildscript.sh
68+
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v2

.github/workflows/eslint.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# ESLint is a tool for identifying and reporting on patterns
6+
# found in ECMAScript/JavaScript code.
7+
# More details at https://github.com/eslint/eslint
8+
# and https://eslint.org
9+
10+
name: ESLint
11+
12+
on:
13+
pull_request:
14+
branches:
15+
- master
16+
17+
jobs:
18+
eslint:
19+
name: Run eslint scanning
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
security-events: write
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v3
27+
28+
- name: Install
29+
run:
30+
npm install
31+
npm install @microsoft/eslint-formatter-sarif@2.1.7
32+
33+
- name: Run ESLint
34+
run: npx eslint src/**/*.ts
35+
--config .eslintrc.cjs
36+
--format @microsoft/eslint-formatter-sarif
37+
--output-file ./eslint-results.sarif
38+
continue-on-error: true
39+
40+
- name: Upload report artifacts
41+
uses: github/codeql-action/upload-sarif@v2
42+
with:
43+
sarif_file: ./eslint-results.sarif
44+
wait-for-processing: true
45+
continue-on-error: true

.github/workflows/mainCI.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
pull_request:
5-
branches:
5+
branches:
66
- master
77

88
jobs:
@@ -14,21 +14,23 @@ jobs:
1414
uses: actions/checkout@v2
1515
with:
1616
node-version: 16.x
17-
17+
1818
- name: Install
1919
run: npm install
20-
20+
2121
- name: Build
2222
run: npm run build-static-data
23-
23+
2424
- name: Scan for accessibility issues
25+
env:
26+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
2527
uses: microsoft/accessibility-insights-action@v2
26-
with:
28+
with:
2729
repo-token: ${{ secrets.GITHUB_TOKEN }}
28-
site-dir: ${{ github.workspace }}/dist/website
30+
site-dir: ${{ github.workspace }}/dist/website
2931
localhost-port: 12345
3032
input-urls: http://localhost:12345/profile http://localhost:12345/500 http://localhost:12345/404
31-
33+
3234
- name: Upload report artifact
3335
uses: actions/upload-artifact@v2
3436
with:

SECURITY.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
Use this section to tell people about which versions of your project are
6+
currently being supported with security updates.
7+
8+
| Version | Supported |
9+
| ------- | ------------------ |
10+
| 5.1.x | :white_check_mark: |
11+
| 5.0.x | :x: |
12+
| 4.0.x | :white_check_mark: |
13+
| < 4.0 | :x: |
14+
15+
## Reporting a Vulnerability
16+
17+
Use this section to tell people how to report a vulnerability.
18+
19+
Tell them where to go, how often they can expect to get an update on a
20+
reported vulnerability, what to expect if the vulnerability is accepted or
21+
declined, etc.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export const widgetName = "document-details";
2+
export const widgetDisplayName = "Document details";
3+
export const widgetCategory = "Community";
4+
export const widgetSelector = "document-details";
5+
export const widgetRuntimeSelector = "document-details-runtime";
6+
export const widgetEditorSelector = "document-details-editor";
7+
export const defaultFileName = "sample_document.html";

community/widgets/document-details/ko/documentDetailsViewModelBinder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class DocumentDetailsViewModelBinder implements ViewModelBinder<DocumentD
2121
const binding: IWidgetBinding<DocumentDetailsModel, DocumentDetailsViewModel> = {
2222
name: widgetName,
2323
displayName: widgetDisplayName,
24-
readonly: bindingContext?.readonly,
24+
layer: bindingContext?.layer,
2525
model: model,
2626
flow: ComponentFlow.Block,
2727
editor: widgetEditorSelector,
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export const widgetName = "conference-session";
2+
export const widgetDisplayName = "Conference session";
3+
export const widgetCategory = "Community";
4+
export const widgetSelector = "conference-session";
5+
export const widgetRuntimeSelector = "conference-session-runtime";
6+
export const widgetEditorSelector = "conference-session-editor";
7+
export const defaultSessionNumber = "107";

examples/widgets/conference-session/ko/conferenceSessionViewModelBinder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class ConferenceSessionViewModelBinder implements ViewModelBinder<Confere
2121
const binding: IWidgetBinding<ConferenceSessionModel, ConferenceSessionViewModel> = {
2222
name: widgetName,
2323
displayName: widgetDisplayName,
24-
readonly: bindingContext?.readonly,
24+
layer: bindingContext?.layer,
2525
model: model,
2626
draggable: true,
2727
flow: ComponentFlow.Block,

0 commit comments

Comments
 (0)