Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
0c764ce
Create pipeline that will automatically check for Accessibility Issue…
malincrist Feb 22, 2022
df45107
Added an input field for a hostname if it was not specified (#1666)
jsorohova Feb 23, 2022
96da0d2
Added options to show/hide code samples (#1664)
malincrist Feb 24, 2022
d24a9ea
Upgraded paperbits to v0.1.488 (#1668)
malincrist Feb 28, 2022
2d25366
Added check for media files in a snapshot folder. Cleaned up the defa…
azaslonov Feb 28, 2022
0bc857b
Bump follow-redirects from 1.14.7 to 1.14.8 (#1654)
dependabot[bot] Feb 28, 2022
56c61fd
An optional flag to publish changes post importing using scripts.v3/g…
randiratnayake Feb 28, 2022
4281f86
Removed duplicate widget registration. (#1679)
azaslonov Mar 2, 2022
20341ea
Added Terms of Use to all authentication pages (#1648)
jsorohova Mar 3, 2022
235936c
Fixed search by tag issues for "List of APIs (Tiles)" widget. (#1680)
azaslonov Mar 4, 2022
e578b41
Migrated developerPortalType from constants to settings provider (#1685)
ygrik Mar 9, 2022
b6349fd
Synchronized GraphQL parameters between query editor and explorer and…
javierbo1989 Mar 10, 2022
a007f4d
Added support for union types in the graphql console (#1688)
javierbo1989 Mar 11, 2022
c4207bd
Fix AAD/B2C message shown on SignUp page error (#1687)
jonasanker Mar 15, 2022
52b2665
Implemented support for complex schemas as a property (#1694)
jsorohova Mar 22, 2022
07e2fd4
custom-html widget iframe allow fix (#1698)
JMach1 Mar 22, 2022
1729f8c
Temporarily removed authorization server info from operation details.…
azaslonov Mar 25, 2022
5cb43eb
Merged back fixes from managed version. (#1702)
azaslonov Mar 26, 2022
1f376bc
Add "API: Products (dropdown)" widget (#1695)
mrcarlosdev Mar 29, 2022
742102f
When the oepration changes, while the next operation is loading, hide…
malincrist Mar 29, 2022
d046ebe
removed duplicated call to /apis for the API list widget (#1703)
malincrist Mar 29, 2022
6c48c25
Removed the check for the terms of use consent, since it's not used (…
malincrist Mar 29, 2022
34e7882
Upgraded dependencies. (#1706)
azaslonov Mar 29, 2022
cff22e4
Check if onChange is defined before invoking it (#1710)
malincrist Mar 31, 2022
5ca2eaa
Create SECURITY.md
azaslonov Apr 1, 2022
11db424
Load API list when the API list dropdown widget is first initialized …
malincrist Apr 4, 2022
1da7c6b
Fixing 'generate' command run instructions (#1721)
pkarda Apr 12, 2022
f4c5ff5
Upgraded dependencies. (#1722)
azaslonov Apr 12, 2022
ed5bdae
markdownService processMarkdown - length as optional param (#1724)
JMach1 Apr 13, 2022
692e6f9
Supporting Graphql Subscriptions (#1723)
javierbo1989 Apr 15, 2022
fc1cf64
Fixed nested complex schemas rendering (#1726)
jsorohova Apr 15, 2022
94bdd0c
Landing focus on Try It blade (#1729)
javierbo1989 Apr 19, 2022
9160102
Added iframe sandbox "allow-popups" attribute (#1736)
JMach1 Apr 21, 2022
d23d304
Added a support for read-only properties displaying (#1742)
jsorohova Apr 27, 2022
211a6ff
Hide "subscribe" button when subscriptions are pending (#1747)
malincrist Apr 29, 2022
eabd1f7
Fixed disappearing authorization header (#1752)
jsorohova May 3, 2022
ac4c62d
Fixed copy to clipboard command. Fixed liquid templates (#1749)
malincrist May 3, 2022
1580846
Wss protocol validations, building graphql path, added subscription-k…
javierbo1989 May 3, 2022
25cd312
Added all definitions listed in props to the list of definitions (#1755)
jsorohova May 6, 2022
0e0edd6
Added support for new captcha API and prepare current one for depreca…
ygrik May 9, 2022
09c4e92
Switched Auth servers loading from publishing to get request (#1764)
ygrik May 10, 2022
68160f3
Create codeql-analysis.yml (#1771)
azaslonov May 16, 2022
0de3544
Fixed luminosity ratio for placeholders (#1769)
malincrist May 16, 2022
7792148
Fixed: default schema view combobox gets dismissed (#1770)
malincrist May 16, 2022
ea351d0
Fixed Authorization header behaviour (#1777)
jsorohova May 19, 2022
51936b6
Migrate msal to @azure/msal-browser (#1643)
ygrik May 20, 2022
4607229
Fixed luminosity rato for margin and padding borders from the box edi…
malincrist May 31, 2022
becf65c
Accessibility/luminosity on selection (#1790)
JMach1 May 31, 2022
ad0f69f
Change workshop container height (#1785)
Mielek Jun 1, 2022
7787473
Fixed wildcard operation path behavior (#1793)
malincrist Jun 2, 2022
87ca051
Revert "Change workshop container height (#1785)" (#1795)
Mielek Jun 3, 2022
2f3fd32
validation-summary added to profile - templates/default.json updated …
JMach1 Jun 3, 2022
83130aa
Upgraded dependencies (#1800)
azaslonov Jun 5, 2022
bb48b1b
tslint --fix (#1802)
JMach1 Jun 6, 2022
4bbf6a4
Fixed operation list layout issue. (#1804)
azaslonov Jun 7, 2022
e2f535b
Fixed Custom HTML widget layout and icons. (#1808)
azaslonov Jun 7, 2022
beb8094
consoleHeader.ts move validation above return early (#1803)
JMach1 Jun 9, 2022
c5e5cce
Upgraded dependencies. (#1815)
azaslonov Jun 11, 2022
77b9b12
Pasted gql queries with required parameters displayed properly in the…
javierbo1989 Jun 13, 2022
6672d4c
Removed unneccessary focus from widget editors (#1806)
malincrist Jun 13, 2022
273b8f1
Fixed height in graphql console (#1811)
javierbo1989 Jun 13, 2022
85cf24c
Dispatch errors to validation-summary refactor (#1799)
JMach1 Jun 14, 2022
e075f08
Migrated from deprecated TSLint to ESLint with @typescript-eslint/esl…
azaslonov Jun 14, 2022
5cb91a6
Added warning message in editor and console error in runtime if backe…
ygrik Jun 16, 2022
27478ec
Release date column should show date of creation of release not date …
dldl-cmd Jun 16, 2022
265fc0f
Add top param for document content type (#1796)
harunrst Jun 16, 2022
b9f96a5
Enhancing login error message (#1817)
maciejtreder Jun 17, 2022
874a533
Improved load and show GraphQL schemas. (#1807)
ygrik Jun 20, 2022
2142f03
Fixed Auth header not being cleared on No auth select (#1836)
jsorohova Jun 23, 2022
e955330
accessability issue fix (#1837)
FlorianGiner Jun 23, 2022
4d5935d
Fixed operation list layout and accessibility issues. (#1839)
azaslonov Jun 24, 2022
04e7f69
Fixed consoles height (#1840)
malincrist Jun 27, 2022
24a1aab
Fixed multiple mapcharts to work independently on mouse move (#1843)
malincrist Jun 29, 2022
17feb36
Fixed delegation flow (#1852)
ygrik Jul 7, 2022
4951856
Create .editorconfig (#1854)
JanuszNowak Jul 11, 2022
34cb018
operation-details examples column (#1856)
JMach1 Jul 11, 2022
091cbef
Fixed required attribute for Other properties in complex schemas (#1850)
jsorohova Jul 11, 2022
dc94b40
Introduce base dev portal logger (#1848)
f-alizada Jul 14, 2022
371e066
examples for headers fix (#1859)
JMach1 Jul 14, 2022
1149682
Upgraded dependencies to latest versions. (#1860)
azaslonov Jul 15, 2022
b2b3c41
Added file download to Test console. (#1849)
jsorohova Jul 15, 2022
25c7525
Switching to the latest API version (#1858)
maciejtreder Jul 15, 2022
47abee5
Merging back from managed repo. (#1861)
azaslonov Jul 15, 2022
5249058
Fixed "copy" button reveals secrets in test console (#1863)
malincrist Jul 21, 2022
89f08c5
Fixed headers when sending request from test console (#1869)
malincrist Jul 22, 2022
85d4347
Create eslint.yml (#1870)
azaslonov Jul 22, 2022
23da159
Added logging to OAuthService. Removed unused method. (#1871)
azaslonov Jul 22, 2022
c5d060d
Fixed authentication method to include id_token cases. (#1874)
azaslonov Jul 27, 2022
17a9fca
Fixed validation error handling in Basic sign-in flow. (#1875)
azaslonov Jul 27, 2022
334b4d2
Description rendering for examples (#1876)
jsorohova Jul 27, 2022
b45e399
Fixed the focus switch on test console opening. (#1879)
azaslonov Jul 29, 2022
df7affd
Fixed default release name format. (#1882)
azaslonov Aug 2, 2022
2f351a2
Fixed: api-details page breaks for long display name (#1884)
malincrist Aug 3, 2022
9d96c0a
Removed duplicated ids for group by tag (#1883)
malincrist Aug 3, 2022
1c61c99
Fixed: remove/edit test console required headers (#1892)
malincrist Aug 8, 2022
2514e77
Added suppression tags for cred scan false-positives. (#1895)
azaslonov Aug 8, 2022
0d0f2b3
Replaced logging to console with error when mapping grant types. (#1897)
azaslonov Aug 8, 2022
634f23f
Fixed cached schemas for operations (#1898)
ygrik Aug 9, 2022
13055ae
Added token as GitHub secret (#1899)
malincrist Aug 9, 2022
4b1df4b
Fixed: show subscription keys only if they are active (#1886)
malincrist Aug 9, 2022
952b008
Upgraded paperbits dependencies (#1900)
malincrist Aug 12, 2022
8309436
Add exception trace to log (#1901)
f-alizada Aug 12, 2022
d8deb7f
Remove response from error object (#1904)
f-alizada Aug 12, 2022
9bc9530
Unified Test console request and error handling (#1905)
azaslonov Aug 13, 2022
f417633
Fixed: ensure ARIA attributes are allowed for an element's role (#1906)
malincrist Aug 16, 2022
0c91e7c
Revert "Upgraded paperbits dependencies (#1900)" (#1911)
azaslonov Aug 16, 2022
41aadce
Custom widget scaffolding tool (#1910)
JMach1 Aug 18, 2022
d2d7830
pointless spaces removed (#1915)
JMach1 Aug 19, 2022
f7b3ef0
custom widgets df testing fixes (#1917)
JMach1 Aug 22, 2022
37c884e
Fixed operation console error on response without content type header…
ygrik Aug 25, 2022
4f38182
Improved luminosity ratio for focus indicators (#1916)
jsorohova Aug 26, 2022
51ec561
Custom widget development instructions - widget folder path fix (#1923)
JMach1 Aug 27, 2022
6c8538e
Fixed formatting response body (#1929)
malincrist Sep 6, 2022
1afb427
Added handling and telemetry for failed captcha initialization. (#1932)
azaslonov Sep 7, 2022
3ebd4a8
Fixed description error appearing on SOAP APIs (#1934)
jsorohova Sep 7, 2022
b5141c9
Added handling for hash part of URL in case of server-side redirect. …
azaslonov Sep 8, 2022
f59530d
Remove locales from search (#1937)
Mielek Sep 9, 2022
474d3b8
Fixed authorization header remove logic (#1940)
malincrist Sep 14, 2022
0c4bb80
Added support for PKCE extension for Authorization code grant. (#1945)
azaslonov Sep 15, 2022
f4ad331
sync hash between main window URL & custom widget iframes src (#1949)
JMach1 Sep 20, 2022
d812a1e
collapsibles refactor to use native details summary components (#1960)
JMach1 Sep 28, 2022
368b9a7
fixed scrolling issue with gql console (#1964)
javierbo1989 Oct 4, 2022
f2ccec0
Fixing inconsistency between Sample request body select label and ari…
jsorohova Oct 6, 2022
d60af57
Fixed handling of unknown status codes. Added default status text for…
azaslonov Oct 14, 2022
c5b68e7
Added support for popups. (#1893)
azaslonov Oct 14, 2022
fb62ef0
returnUrl open-redirect security bug fixed (#1975)
JMach1 Oct 20, 2022
d10f4af
Fixed section styles. Made backendUrl warning dismissible. (#1978)
azaslonov Oct 21, 2022
72c7fa6
Upgraded dependencies. Added Forms module. (#1922)
azaslonov Oct 22, 2022
fb057d4
Custom widgets - added time zone to "deployed" timestamp (#1942)
JMach1 Oct 26, 2022
502b1ee
custom-widget - auto-sizing of the editor window fixed (#1977)
JMach1 Nov 1, 2022
6982df6
Fixed the build script for FuncApp-based publisher example. (#1983)
azaslonov Nov 1, 2022
0ae10ca
Update CONTRIBUTIONS.md (#1986)
mikebudzynski Nov 4, 2022
c719f2f
Contributions update 2 (#1987)
mikebudzynski Nov 4, 2022
9837cc8
Accessibility improvement - request body format accessibility improve…
jsorohova Nov 8, 2022
52a9546
scrollbars color adjusted to improve accessibility (#1990)
JMach1 Nov 8, 2022
6567e23
Fied: every form element has a label in List of APIs(tiles) editor (#…
malincrist Nov 9, 2022
1df8a84
Upgraded paperbits dependencies (#1994)
malincrist Nov 9, 2022
7dc7404
operation-console aria-labels added (#1997)
JMach1 Nov 14, 2022
986767f
List of APIs & operations collapsible by tags (#2003)
JMach1 Nov 18, 2022
652e4b7
Fixed issues with Text block and Map widget editors. (#2009)
azaslonov Nov 20, 2022
d85abf8
fixed readme and yaml (#2008)
mazer-rakham Nov 20, 2022
6e09ea8
Fixed Table view/Raw view visibility on high contrast theme (#1999)
jsorohova Nov 20, 2022
e066bac
package-lock.json updated (#2014)
JMach1 Nov 22, 2022
4608b6e
Bugfix - Custom widget URL hash sync in published portal (#1993)
JMach1 Nov 28, 2022
aa3a332
Added missing icon. (#2022)
azaslonov Nov 28, 2022
f30cc70
API version selector redesigned (#2024)
JMach1 Dec 1, 2022
0939b62
Examples column added to operation details table (#2012)
JMach1 Dec 1, 2022
579f823
Fixed: Sign in button visible after successful sign in (#2021)
malincrist Dec 1, 2022
9ec70a4
Subscription Key is a required field now in the test console if API r…
javierbo1989 Dec 2, 2022
3e7af5c
Fixed Table widget editor issues. (#2027)
azaslonov Dec 4, 2022
cc1b8e0
Fixed issues with dependency libraries. (#2037)
azaslonov Dec 11, 2022
e8d0e23
Fix pipeline (#2040)
harunrst Dec 16, 2022
159c0ad
Fixed URL concatenation for PKCE auth flow. (#2043)
azaslonov Dec 19, 2022
cc428e4
Sign in & sign up messages corrected (#2049)
JMach1 Dec 27, 2022
bc35b86
Custom widgets iframes media & clipboard access allowed (#2050)
JMach1 Jan 3, 2023
4af4744
Fixed required attribute displaying in complex schemas (#2060)
jsorohova Jan 12, 2023
effbd87
decreased the apis schema refresh timeout from 60 to 5 min (#2065)
ygrik Jan 17, 2023
e5f5675
Fixed announcing correct state information for tab items (#2066)
malincrist Jan 17, 2023
56e0fa5
Add unit test workflow (#2064)
f-alizada Jan 19, 2023
f23b624
Fixed permalink validation issues. (#2071)
azaslonov Jan 19, 2023
12be6aa
fixed report view with other country (#2075)
javierbo1989 Jan 20, 2023
3e18b2d
Added missing aria-labels (#2076)
JMach1 Jan 24, 2023
2fbcb75
Display close account button for users signed in with delegation (#2073)
malincrist Feb 2, 2023
9baaa04
sync graphql-language-service library (#2097)
javierbo1989 Feb 10, 2023
3845892
Added line breaks to parameter names on API details page (#2096)
jsorohova Feb 13, 2023
c8867b0
Adding default domain to hostnames (#2051)
javierbo1989 Feb 13, 2023
40d19b8
Upgraded dependencies. (#2084)
azaslonov Feb 13, 2023
a468b81
E2E tests (#2061)
JMach1 Feb 17, 2023
26904e3
Extend api list with two apis. Add randomizer (#2108)
f-alizada Feb 20, 2023
6103542
Extend test widget functionality (#2109)
f-alizada Feb 20, 2023
cdb86a7
Fixed several designer issues. (#2111)
azaslonov Feb 20, 2023
396ea23
Used custom dropdown from paperbits in widget editor (#2118)
malincrist Feb 27, 2023
e985668
Fixed: product name disappears when changing subscription (#2120)
malincrist Mar 1, 2023
a984002
Added negative lookahead to getResourceName regex (#2122)
JMach1 Mar 2, 2023
8ce9465
Remove heading block that contains popup (#2126)
malincrist Mar 6, 2023
69db90c
Upgraded dependencies. (#2127)
azaslonov Mar 7, 2023
23c45d0
Upgraded dependencies. (#2130)
azaslonov Mar 11, 2023
ef9ff61
Upgraded dependencies to fix several designer issues. (#2133)
azaslonov Mar 15, 2023
76d5918
Fix trailing slash issue (#2137)
harunrst Mar 24, 2023
630aced
Update liquid, trancate-html libs (#2140)
f-alizada Mar 28, 2023
7f3dd27
Update paperbits dependencies to 0.1.576 (#2141)
f-alizada Mar 30, 2023
19271d1
prevent infinity loop on logging unhandled error (#2147)
ygrik Apr 4, 2023
fe5c83c
properly process unhandled error on logger error (#2148)
ygrik Apr 4, 2023
0b43193
Re-enabled popup controls and snippets. (#2156)
azaslonov Apr 20, 2023
a1086a7
Fixed UI bugs for Subscriptions on the profile page (#2185)
jsorohova May 23, 2023
e873140
Custom widgets - send location info of the main window to widgets (#2…
JMach1 May 25, 2023
5e6df1a
Fixed non-working images in API descriptions (#2188)
jsorohova May 29, 2023
3869cf4
Provide proper error on GET request with body (#2138)
harunrst May 29, 2023
655f8ef
added "group by tag" toggle for api list dropdown widget; implemented…
malincrist May 31, 2023
ef4b854
Added developer portal type header for all requests (#2171)
harunrst May 31, 2023
f73c9b6
Made page content section stretch by default for all viewport sizes (…
malincrist May 31, 2023
9993be4
Replace deprecated methods from cred generation (#2192)
f-alizada Jun 1, 2023
6df1119
Revert "Added developer portal type header for all requests (#2171)" …
harunrst Jun 1, 2023
2f6572a
Added pagination for user subscriptions (#2189)
malincrist Jun 1, 2023
435f7b8
Upgraded dependencies. (#2191)
azaslonov Jun 3, 2023
53bfff2
Fixed scroll to operation (#2200)
malincrist Jun 5, 2023
4cb0764
Increase dev-portal version to 2.24.0 (#2199)
f-alizada Jun 5, 2023
7977733
Upgrade paperbits to 0.1.587 (#2204)
f-alizada Jun 7, 2023
c2d53d5
Removed duplicated styles (#2206)
jsorohova Jun 8, 2023
72d11e5
Removed menu styles from test console (#2197)
malincrist Jun 12, 2023
518c428
Add dropdown for the case when there are multiple examples (#2208)
f-alizada Jun 13, 2023
c3a0eeb
Remove not needed async and wait for the server listen event before t…
f-alizada Jun 14, 2023
2805ab9
Subscription key improvements (#2212)
malincrist Jun 20, 2023
f299905
fixed regex that extracts resource name (#2205)
malincrist Jun 20, 2023
9fe6440
Upgraded dependencies and default theme. (#2198)
azaslonov Jun 25, 2023
255c87c
fix typos and spelling errors (#2195)
Jul 3, 2023
a0c75d7
Updated widget registration model. (#2235)
azaslonov Jul 10, 2023
d395754
Add navigation menu for default pages (#2257)
f-alizada Jul 25, 2023
e350f81
Playwright tests (#2254)
f-alizada Aug 7, 2023
add7c20
Support downloading excel and csv responses with content disposition …
Aug 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
root = true

[*]
trim_trailing_whitespace = true
35 changes: 35 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint"
],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
],
rules: {
"no-constant-condition": "warn",
"no-async-promise-executor": "off",
"no-extra-boolean-cast": "warn",
"no-useless-escape": "off",
"no-ex-assign": "warn",
"prefer-spread": "off",
"prefer-const": "warn",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/quotes": [
"warn",
"double",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
]
}
};
13 changes: 13 additions & 0 deletions .github/scripts/wait-for-server.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
param ($HostName = $(throw "HostName parameter is required."))
$Counter = 0
while ($Counter -ne 2 ){
Start-Sleep -Seconds 4
$Response = Invoke-WebRequest -Uri $HostName
if ($Response.StatusCode -eq 200){
Write-Host "server returned 200"
exit 0
}
$Counter++
}

Write-Error "Server didn't return 200 status"
70 changes: 70 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '25 16 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'typescript' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# 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
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
45 changes: 45 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# ESLint is a tool for identifying and reporting on patterns
# found in ECMAScript/JavaScript code.
# More details at https://github.com/eslint/eslint
# and https://eslint.org

name: ESLint

on:
pull_request:
branches:
- master

jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install
run:
npm install
npm install @microsoft/eslint-formatter-sarif@2.1.7

- name: Run ESLint
run: npx eslint src/**/*.ts
--config .eslintrc.cjs
--format @microsoft/eslint-formatter-sarif
--output-file ./eslint-results.sarif
continue-on-error: true

- name: Upload report artifacts
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ./eslint-results.sarif
wait-for-processing: true
continue-on-error: true
38 changes: 38 additions & 0 deletions .github/workflows/mainCI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Use Node.js 16.x
uses: actions/checkout@v2
with:
node-version: 16.x

- name: Install
run: npm install

- name: Build
run: npm run build-static-data

- name: Scan for accessibility issues
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
uses: microsoft/accessibility-insights-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
site-dir: ${{ github.workspace }}/dist/website
localhost-port: 12345
input-urls: http://localhost:12345/profile http://localhost:12345/500 http://localhost:12345/404

- name: Upload report artifact
uses: actions/upload-artifact@v2
with:
name: accessibility-reports
path: ${{ github.workspace }}/_accessibility-reports
60 changes: 60 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Test

on:
pull_request:
branches:
- master

jobs:
tests:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install
run: npm install

- name: Run tests
run: npm run test

end2end-tests:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install
run: npm install

- name: Compile
run: npx tsc -p tests\tsconfig.json

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Build static data
run: npm run build-mock-static-data

- name: Start mock server
run: npm run serve-website &
shell: bash

- name: Wait for the server
run: ./.github/scripts/wait-for-server.ps1 -HostName "http://localhost:8080"
shell: pwsh

- name: Run tests
run: npx playwright test tests/ --workers 1

- uses: actions/upload-artifact@v3
if: failure()
with:
name: playwright-report
path: test-results/
retention-days: 30
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ node_modules/
src/config.design.json
src/config.publish.json
src/config.runtime.json

test-results/
tsconfig.tsbuildinfo
2 changes: 1 addition & 1 deletion .pipeline/migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
command: "install"

- pwsh: |
node ./migrate --sourceSubscriptionId "$(sourceSubscriptionId)" --sourceResourceGroupName "$(sourceResourceGroupName)" --sourceServiceName "$(sourceServiceName)" --destServiceName "$(destServiceName)" --destSubscriptionId "$(destSubscriptionId)" --destResourceGroupName "$(destResourceGroupName)" --sourceTenantId "$(sourceAzureTenantId)" --sourceServicePrincipal "$(sourceServicePrincipal)" --sourceSecret "$(sourceServicePrincipalSecret)" --destTenantId "$(sourceAzureTenantId)" --destServicePrincipal "$(destServicePrincipal)" --destSecret "$(destServicePrincipalSecret)"
node ./migrate --sourceSubscriptionId "$(sourceSubscriptionId)" --sourceResourceGroupName "$(sourceResourceGroupName)" --sourceServiceName "$(sourceServiceName)" --destServiceName "$(destServiceName)" --destSubscriptionId "$(destSubscriptionId)" --destResourceGroupName "$(destResourceGroupName)" --sourceTenantId "$(sourceAzureTenantId)" --sourceServicePrincipal "$(sourceServicePrincipal)" --sourceSecret "$(sourceServicePrincipalSecret)" --destTenantId "$(destAzureTenantId)" --destServicePrincipal "$(destServicePrincipal)" --destSecret "$(destServicePrincipalSecret)"
workingDirectory: "$(System.DefaultWorkingDirectory)/scripts.v3"
displayName: Run Migrate cmd from $(sourceServiceName) to $(destinationServiceName)

Expand Down
4 changes: 2 additions & 2 deletions .pipeline/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ Then select Run. This saves and executes your pipeline for the fist time, seen b
| destServiceName | Destination APIM service name |
| destSubscriptionId | Destination APIM service resource subscription ID |
| destResourceGroupName | Destination APIM service resource group name |
| sourceTenantId | Source Azure tenant ID |
| sourceAzureTenantId | Source Azure tenant ID |
| sourceServicePrincipal | Source Azure service principal |
| sourceServicePrincipalSecret | Source Azure service principal secret |
| destTenantId | Destination Azure tenant ID |
| destAzureTenantId | Destination Azure tenant ID |
| destServicePrincipal | Destination Azure service principal|
| destServicePrincipalSecret | Destination Azure service principal secret |
| existingEnvUrls | Existing environment URLs (URLs used in the developer portal from source APIM to replace, if we have multiple urls then comma separated values to be given.) |
Expand Down
2 changes: 0 additions & 2 deletions CONTRIBUTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ This project welcomes contributions and suggestions. Most contributions require
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

**Refer to the [contribution guidelines](https://github.com/Azure/api-management-developer-portal/wiki/Widget-contribution-guidelines) for more information.**
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You can **report bugs** or **submit feature requests** in [the repository's Issu

Microsoft Azure Support assistance is limited to managed portals and only the initial setup of self-hosted portals ([documentation](https://aka.ms/apimdocs/selfhostportal)); best effort support is provided for problems that are caused by environmental factors, such as (but not limited to): hosting platform, development environment, network configuration. Other self-hosted portal assistance requests (for example, problem with custom widgets) should be submitted [on Stack Overflow](https://aka.ms/apimso) with the `azure-api-management` tag. **We don't provide support through GitHub Issues**.

We welcome and appreciate [community contributions](CONTRIBUTIONS.md). Refer to the [contribution guidelines](https://aka.ms/apimdocs/portal/contribute) for more information.
We welcome and appreciate [community contributions](CONTRIBUTIONS.md).

## <a name="license"></a> License

Expand Down
21 changes: 21 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
7 changes: 7 additions & 0 deletions community/widgets/document-details/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const widgetName = "document-details";
export const widgetDisplayName = "Document details";
export const widgetCategory = "Community";
export const widgetSelector = "document-details";
export const widgetRuntimeSelector = "document-details-runtime";
export const widgetEditorSelector = "document-details-editor";
export const defaultFileName = "sample_document.html";
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class DocumentDetailsViewModelBinder implements ViewModelBinder<DocumentD
const binding: IWidgetBinding<DocumentDetailsModel, DocumentDetailsViewModel> = {
name: widgetName,
displayName: widgetDisplayName,
readonly: bindingContext?.readonly,
layer: bindingContext?.layer,
model: model,
flow: ComponentFlow.Block,
editor: widgetEditorSelector,
Expand Down
7 changes: 7 additions & 0 deletions environmentConstants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

const staticDataEnvironment = "staticData";
const mockStaticDataEnvironment = "mockStaticData";
module.exports = {
staticDataEnvironment,
mockStaticDataEnvironment
}
4 changes: 4 additions & 0 deletions examples/publisher/azure-function/publish/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import { InversifyInjector } from "@paperbits/common/injection";
import { IPublisher } from "@paperbits/common/publishing";
import { CoreModule } from "@paperbits/core/core.module";
import { CorePublishModule } from "@paperbits/core/core.publish.module";
import { FormsModule } from "@paperbits/forms/forms.module";
import { ApimPublishModule } from "../../../../src/apim.publish.module";
import { StylePublishModule } from "@paperbits/styles/styles.publish.module";
import { ProseMirrorModule } from "@paperbits/prosemirror/prosemirror.module";
import { ConsoleLogger } from "@paperbits/common/logging";
import { StaticSettingsProvider } from "../../../../src/components/staticSettingsProvider";
import { PublishingCacheModule } from "../../../../src/persistence/publishingCacheModule";


export async function publish(): Promise<void> {
Expand Down Expand Up @@ -40,9 +42,11 @@ export async function publish(): Promise<void> {
injector.bindModule(new CorePublishModule());
injector.bindModule(new StylePublishModule());
injector.bindModule(new ProseMirrorModule());
injector.bindModule(new FormsModule());
injector.bindModule(new ApimPublishModule());
injector.bindInstance("settingsProvider", settingsProvider);
injector.bindInstance("outputBlobStorage", outputBlobStorage);
injector.bindModule(new PublishingCacheModule());
injector.resolve("autostart");

const publisher = injector.resolve<IPublisher>("sitePublisher");
Expand Down
Loading