Skip to content

API and Product details pages #2214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 248 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
248 commits
Select commit Hold shift + click to select a range
f214b57
Create pipeline that will automatically check for Accessibility Issue…
malincrist Feb 22, 2022
755e575
Added an input field for a hostname if it was not specified (#1666)
jsorohova Feb 23, 2022
4749b0f
Added options to show/hide code samples (#1664)
malincrist Feb 24, 2022
dc65843
Upgraded paperbits to v0.1.488 (#1668)
malincrist Feb 28, 2022
bb1b6d8
Added check for media files in a snapshot folder. Cleaned up the defa…
azaslonov Feb 28, 2022
879e5fd
Bump follow-redirects from 1.14.7 to 1.14.8 (#1654)
dependabot[bot] Feb 28, 2022
7feb80f
An optional flag to publish changes post importing using scripts.v3/g…
randiratnayake Feb 28, 2022
449eee5
Removed duplicate widget registration. (#1679)
azaslonov Mar 2, 2022
1faf43d
Added Terms of Use to all authentication pages (#1648)
jsorohova Mar 3, 2022
26fdbde
Fixed search by tag issues for "List of APIs (Tiles)" widget. (#1680)
azaslonov Mar 4, 2022
83ba3c4
Migrated developerPortalType from constants to settings provider (#1685)
ygrik Mar 9, 2022
01e29f4
Synchronized GraphQL parameters between query editor and explorer and…
javierbo1989 Mar 10, 2022
37a39a9
Added support for union types in the graphql console (#1688)
javierbo1989 Mar 11, 2022
095a98f
Fix AAD/B2C message shown on SignUp page error (#1687)
jonasanker Mar 15, 2022
b016f64
Implemented support for complex schemas as a property (#1694)
jsorohova Mar 22, 2022
5fc04cc
custom-html widget iframe allow fix (#1698)
JMach1 Mar 22, 2022
aa38608
Temporarily removed authorization server info from operation details.…
azaslonov Mar 25, 2022
8fd31a7
Merged back fixes from managed version. (#1702)
azaslonov Mar 26, 2022
e1ccd0d
Add "API: Products (dropdown)" widget (#1695)
mrcarlosdev Mar 29, 2022
136cd9a
When the oepration changes, while the next operation is loading, hide…
malincrist Mar 29, 2022
c09f70b
removed duplicated call to /apis for the API list widget (#1703)
malincrist Mar 29, 2022
d84471e
Removed the check for the terms of use consent, since it's not used (…
malincrist Mar 29, 2022
320cf6d
Upgraded dependencies. (#1706)
azaslonov Mar 29, 2022
450b417
Check if onChange is defined before invoking it (#1710)
malincrist Mar 31, 2022
d9722e1
Create SECURITY.md
azaslonov Apr 1, 2022
90d7396
Load API list when the API list dropdown widget is first initialized …
malincrist Apr 4, 2022
5a0b34b
Fixing 'generate' command run instructions (#1721)
pkarda Apr 12, 2022
3933591
Upgraded dependencies. (#1722)
azaslonov Apr 12, 2022
90ec54e
markdownService processMarkdown - length as optional param (#1724)
JMach1 Apr 13, 2022
97942f9
Supporting Graphql Subscriptions (#1723)
javierbo1989 Apr 15, 2022
f0e53b1
Fixed nested complex schemas rendering (#1726)
jsorohova Apr 15, 2022
d666b5c
Landing focus on Try It blade (#1729)
javierbo1989 Apr 19, 2022
c23d45f
Added iframe sandbox "allow-popups" attribute (#1736)
JMach1 Apr 21, 2022
a53307e
Added a support for read-only properties displaying (#1742)
jsorohova Apr 27, 2022
7a3cab5
Hide "subscribe" button when subscriptions are pending (#1747)
malincrist Apr 29, 2022
2fe93d5
Fixed disappearing authorization header (#1752)
jsorohova May 3, 2022
2a89d9e
Fixed copy to clipboard command. Fixed liquid templates (#1749)
malincrist May 3, 2022
ae0f3b4
Wss protocol validations, building graphql path, added subscription-k…
javierbo1989 May 3, 2022
62ac274
Added all definitions listed in props to the list of definitions (#1755)
jsorohova May 6, 2022
086d370
Added support for new captcha API and prepare current one for depreca…
ygrik May 9, 2022
685ca42
Switched Auth servers loading from publishing to get request (#1764)
ygrik May 10, 2022
ad55781
Create codeql-analysis.yml (#1771)
azaslonov May 16, 2022
178f23b
Fixed luminosity ratio for placeholders (#1769)
malincrist May 16, 2022
9640a18
Fixed: default schema view combobox gets dismissed (#1770)
malincrist May 16, 2022
4e4e3dc
Fixed Authorization header behaviour (#1777)
jsorohova May 19, 2022
732a102
Migrate msal to @azure/msal-browser (#1643)
ygrik May 20, 2022
59171db
Fixed luminosity rato for margin and padding borders from the box edi…
malincrist May 31, 2022
082165f
Accessibility/luminosity on selection (#1790)
JMach1 May 31, 2022
18642f5
Change workshop container height (#1785)
Mielek Jun 1, 2022
ef5d6e2
Fixed wildcard operation path behavior (#1793)
malincrist Jun 2, 2022
ecd01d8
Revert "Change workshop container height (#1785)" (#1795)
Mielek Jun 3, 2022
5453d0a
validation-summary added to profile - templates/default.json updated …
JMach1 Jun 3, 2022
46c0eed
Upgraded dependencies (#1800)
azaslonov Jun 5, 2022
0b89a49
tslint --fix (#1802)
JMach1 Jun 6, 2022
665a1aa
Fixed operation list layout issue. (#1804)
azaslonov Jun 7, 2022
cd68452
Fixed Custom HTML widget layout and icons. (#1808)
azaslonov Jun 7, 2022
9911fa4
consoleHeader.ts move validation above return early (#1803)
JMach1 Jun 9, 2022
03723eb
Upgraded dependencies. (#1815)
azaslonov Jun 11, 2022
e6019c6
Pasted gql queries with required parameters displayed properly in the…
javierbo1989 Jun 13, 2022
9155b39
Removed unneccessary focus from widget editors (#1806)
malincrist Jun 13, 2022
c28d383
Fixed height in graphql console (#1811)
javierbo1989 Jun 13, 2022
8a470c9
Dispatch errors to validation-summary refactor (#1799)
JMach1 Jun 14, 2022
8bd631c
Migrated from deprecated TSLint to ESLint with @typescript-eslint/esl…
azaslonov Jun 14, 2022
667db1b
Added warning message in editor and console error in runtime if backe…
ygrik Jun 16, 2022
1b10211
Release date column should show date of creation of release not date …
dldl-cmd Jun 16, 2022
912d6ca
Add top param for document content type (#1796)
harunrst Jun 16, 2022
09b8b05
Enhancing login error message (#1817)
maciejtreder Jun 17, 2022
d28081d
Improved load and show GraphQL schemas. (#1807)
ygrik Jun 20, 2022
27ccc2b
Fixed Auth header not being cleared on No auth select (#1836)
jsorohova Jun 23, 2022
ad517d8
accessability issue fix (#1837)
FlorianGiner Jun 23, 2022
f651c32
Fixed operation list layout and accessibility issues. (#1839)
azaslonov Jun 24, 2022
d76f5c6
Fixed consoles height (#1840)
malincrist Jun 27, 2022
7ed0714
Fixed multiple mapcharts to work independently on mouse move (#1843)
malincrist Jun 29, 2022
4181267
Fixed delegation flow (#1852)
ygrik Jul 7, 2022
54a615a
Create .editorconfig (#1854)
JanuszNowak Jul 11, 2022
113f7fa
operation-details examples column (#1856)
JMach1 Jul 11, 2022
868e527
Fixed required attribute for Other properties in complex schemas (#1850)
jsorohova Jul 11, 2022
320b877
Introduce base dev portal logger (#1848)
f-alizada Jul 14, 2022
cf7bba3
examples for headers fix (#1859)
JMach1 Jul 14, 2022
bbf83b6
Upgraded dependencies to latest versions. (#1860)
azaslonov Jul 15, 2022
28f741c
Added file download to Test console. (#1849)
jsorohova Jul 15, 2022
48bf216
Switching to the latest API version (#1858)
maciejtreder Jul 15, 2022
7ccf492
Merging back from managed repo. (#1861)
azaslonov Jul 15, 2022
9a08abf
Fixed "copy" button reveals secrets in test console (#1863)
malincrist Jul 21, 2022
891f652
Fixed headers when sending request from test console (#1869)
malincrist Jul 22, 2022
37738b0
Create eslint.yml (#1870)
azaslonov Jul 22, 2022
d23d80f
Added logging to OAuthService. Removed unused method. (#1871)
azaslonov Jul 22, 2022
86029d7
Fixed authentication method to include id_token cases. (#1874)
azaslonov Jul 27, 2022
04a60a7
Fixed validation error handling in Basic sign-in flow. (#1875)
azaslonov Jul 27, 2022
841c9e9
Description rendering for examples (#1876)
jsorohova Jul 27, 2022
eddfe7c
Fixed the focus switch on test console opening. (#1879)
azaslonov Jul 29, 2022
4fbeaf0
Fixed default release name format. (#1882)
azaslonov Aug 2, 2022
571a0ef
Fixed: api-details page breaks for long display name (#1884)
malincrist Aug 3, 2022
2eb80c2
Removed duplicated ids for group by tag (#1883)
malincrist Aug 3, 2022
c5f9ed3
Fixed: remove/edit test console required headers (#1892)
malincrist Aug 8, 2022
ead4db4
Added suppression tags for cred scan false-positives. (#1895)
azaslonov Aug 8, 2022
b9331e2
Replaced logging to console with error when mapping grant types. (#1897)
azaslonov Aug 8, 2022
dc2cb22
Fixed cached schemas for operations (#1898)
ygrik Aug 9, 2022
565da46
Added token as GitHub secret (#1899)
malincrist Aug 9, 2022
d103ed7
Fixed: show subscription keys only if they are active (#1886)
malincrist Aug 9, 2022
fa21c79
Upgraded paperbits dependencies (#1900)
malincrist Aug 12, 2022
9f7c2f3
Add exception trace to log (#1901)
f-alizada Aug 12, 2022
1fe767c
Remove response from error object (#1904)
f-alizada Aug 12, 2022
0b15b80
Unified Test console request and error handling (#1905)
azaslonov Aug 13, 2022
fc0f6a3
Fixed: ensure ARIA attributes are allowed for an element's role (#1906)
malincrist Aug 16, 2022
f842f09
Revert "Upgraded paperbits dependencies (#1900)" (#1911)
azaslonov Aug 16, 2022
70192ed
Custom widget scaffolding tool (#1910)
JMach1 Aug 18, 2022
b38f013
pointless spaces removed (#1915)
JMach1 Aug 19, 2022
6f68cb3
custom widgets df testing fixes (#1917)
JMach1 Aug 22, 2022
f000e99
Fixed operation console error on response without content type header…
ygrik Aug 25, 2022
d9c5f5d
Improved luminosity ratio for focus indicators (#1916)
jsorohova Aug 26, 2022
4eacc82
Custom widget development instructions - widget folder path fix (#1923)
JMach1 Aug 27, 2022
e692006
Fixed formatting response body (#1929)
malincrist Sep 6, 2022
9db1575
Added handling and telemetry for failed captcha initialization. (#1932)
azaslonov Sep 7, 2022
68a0895
Fixed description error appearing on SOAP APIs (#1934)
jsorohova Sep 7, 2022
bda9b68
Added handling for hash part of URL in case of server-side redirect. …
azaslonov Sep 8, 2022
7abc96f
Remove locales from search (#1937)
Mielek Sep 9, 2022
0f2cf74
Fixed authorization header remove logic (#1940)
malincrist Sep 14, 2022
51c4cd5
Added support for PKCE extension for Authorization code grant. (#1945)
azaslonov Sep 15, 2022
7454ba1
sync hash between main window URL & custom widget iframes src (#1949)
JMach1 Sep 20, 2022
c0a2d16
collapsibles refactor to use native details summary components (#1960)
JMach1 Sep 28, 2022
e655760
fixed scrolling issue with gql console (#1964)
javierbo1989 Oct 4, 2022
de1a00c
Fixing inconsistency between Sample request body select label and ari…
jsorohova Oct 6, 2022
9d32a08
Fixed handling of unknown status codes. Added default status text for…
azaslonov Oct 14, 2022
185e263
Added support for popups. (#1893)
azaslonov Oct 14, 2022
4691aa9
returnUrl open-redirect security bug fixed (#1975)
JMach1 Oct 20, 2022
0aacd89
Fixed section styles. Made backendUrl warning dismissible. (#1978)
azaslonov Oct 21, 2022
fd8ccc5
Upgraded dependencies. Added Forms module. (#1922)
azaslonov Oct 22, 2022
9e83756
Custom widgets - added time zone to "deployed" timestamp (#1942)
JMach1 Oct 26, 2022
60fffcb
custom-widget - auto-sizing of the editor window fixed (#1977)
JMach1 Nov 1, 2022
0a7ebc3
Fixed the build script for FuncApp-based publisher example. (#1983)
azaslonov Nov 1, 2022
f7b1db1
Update CONTRIBUTIONS.md (#1986)
mikebudzynski Nov 4, 2022
5dbc3eb
Contributions update 2 (#1987)
mikebudzynski Nov 4, 2022
3053459
Accessibility improvement - request body format accessibility improve…
jsorohova Nov 8, 2022
b7bb2ca
scrollbars color adjusted to improve accessibility (#1990)
JMach1 Nov 8, 2022
b779eca
Fied: every form element has a label in List of APIs(tiles) editor (#…
malincrist Nov 9, 2022
4d881c8
Upgraded paperbits dependencies (#1994)
malincrist Nov 9, 2022
ab9fbac
operation-console aria-labels added (#1997)
JMach1 Nov 14, 2022
ec4cf8d
List of APIs & operations collapsible by tags (#2003)
JMach1 Nov 18, 2022
bc5adf4
Fixed issues with Text block and Map widget editors. (#2009)
azaslonov Nov 20, 2022
a054f7a
fixed readme and yaml (#2008)
mazer-rakham Nov 20, 2022
1b56198
Fixed Table view/Raw view visibility on high contrast theme (#1999)
jsorohova Nov 20, 2022
d01c4dc
package-lock.json updated (#2014)
JMach1 Nov 22, 2022
180ab06
Bugfix - Custom widget URL hash sync in published portal (#1993)
JMach1 Nov 28, 2022
b032636
Added missing icon. (#2022)
azaslonov Nov 28, 2022
b6c2538
API version selector redesigned (#2024)
JMach1 Dec 1, 2022
51a8615
Examples column added to operation details table (#2012)
JMach1 Dec 1, 2022
b79cf29
Fixed: Sign in button visible after successful sign in (#2021)
malincrist Dec 1, 2022
6d55bb1
Subscription Key is a required field now in the test console if API r…
javierbo1989 Dec 2, 2022
57df309
Fixed Table widget editor issues. (#2027)
azaslonov Dec 4, 2022
f2a4522
Fixed issues with dependency libraries. (#2037)
azaslonov Dec 11, 2022
e676ca0
Fix pipeline (#2040)
harunrst Dec 16, 2022
95ad3ac
Fixed URL concatenation for PKCE auth flow. (#2043)
azaslonov Dec 19, 2022
98b7a51
Sign in & sign up messages corrected (#2049)
JMach1 Dec 27, 2022
27f1f68
Custom widgets iframes media & clipboard access allowed (#2050)
JMach1 Jan 3, 2023
1ffc195
Fixed required attribute displaying in complex schemas (#2060)
jsorohova Jan 12, 2023
74b505e
decreased the apis schema refresh timeout from 60 to 5 min (#2065)
ygrik Jan 17, 2023
bf8eaea
Fixed announcing correct state information for tab items (#2066)
malincrist Jan 17, 2023
1af8390
Add unit test workflow (#2064)
f-alizada Jan 19, 2023
db86b10
Fixed permalink validation issues. (#2071)
azaslonov Jan 19, 2023
8e337de
fixed report view with other country (#2075)
javierbo1989 Jan 20, 2023
d42778b
Added missing aria-labels (#2076)
JMach1 Jan 24, 2023
681d3be
Display close account button for users signed in with delegation (#2073)
malincrist Feb 2, 2023
4d3da8b
sync graphql-language-service library (#2097)
javierbo1989 Feb 10, 2023
3525dcf
Added line breaks to parameter names on API details page (#2096)
jsorohova Feb 13, 2023
f83e998
Adding default domain to hostnames (#2051)
javierbo1989 Feb 13, 2023
0bbeebc
Upgraded dependencies. (#2084)
azaslonov Feb 13, 2023
6291f5f
E2E tests (#2061)
JMach1 Feb 17, 2023
7565f08
Extend api list with two apis. Add randomizer (#2108)
f-alizada Feb 20, 2023
efef2e3
Extend test widget functionality (#2109)
f-alizada Feb 20, 2023
089976e
Fixed several designer issues. (#2111)
azaslonov Feb 20, 2023
e3bc2ad
Used custom dropdown from paperbits in widget editor (#2118)
malincrist Feb 27, 2023
1e31d82
Fixed: product name disappears when changing subscription (#2120)
malincrist Mar 1, 2023
e7f9384
Added negative lookahead to getResourceName regex (#2122)
JMach1 Mar 2, 2023
e5110d7
Remove heading block that contains popup (#2126)
malincrist Mar 6, 2023
cccb3ba
Upgraded dependencies. (#2127)
azaslonov Mar 7, 2023
23250f8
Upgraded dependencies. (#2130)
azaslonov Mar 11, 2023
f24d938
Upgraded dependencies to fix several designer issues. (#2133)
azaslonov Mar 15, 2023
dc90ffa
API wiki wip
malincrist Mar 16, 2023
5c6afaa
use markdownService
malincrist Mar 17, 2023
1eab938
sticky scrolling menu
malincrist Mar 21, 2023
fb1df11
implemented downlaod API definition, collapse/expand menu items
malincrist Mar 21, 2023
ac66d32
render videos, style for api dropdown, render operation method
malincrist Mar 23, 2023
1d424ca
Fix trailing slash issue (#2137)
harunrst Mar 24, 2023
e2191f3
Update liquid, trancate-html libs (#2140)
f-alizada Mar 28, 2023
32690ad
Update paperbits dependencies to 0.1.576 (#2141)
f-alizada Mar 30, 2023
35ca393
operations by tags WIP
malincrist Apr 3, 2023
97560e5
prevent infinity loop on logging unhandled error (#2147)
ygrik Apr 4, 2023
cc76d74
properly process unhandled error on logger error (#2148)
ygrik Apr 4, 2023
a672e90
customizations for operations
malincrist Apr 6, 2023
3853790
added download icon
malincrist Apr 6, 2023
6c21786
Re-enabled popup controls and snippets. (#2156)
azaslonov Apr 20, 2023
91263a6
implemented search this page
malincrist Apr 26, 2023
bb27f9a
implemented about page
malincrist Apr 28, 2023
c1ffb42
display last modified, display API does not exist
malincrist Apr 28, 2023
180927a
no operation/deocumentations to display
malincrist Apr 28, 2023
d4efd51
implemented products that use this API page
malincrist May 1, 2023
3db9c30
display operation details WIP
malincrist May 2, 2023
3dcce71
revert
malincrist May 2, 2023
76ef507
added loadings
malincrist May 2, 2023
6dc4f13
quick view for products
malincrist May 15, 2023
0edd595
fixed issues with published portal
malincrist May 16, 2023
135cd56
style for product quick view
malincrist May 17, 2023
f2da6d9
Fixed UI bugs for Subscriptions on the profile page (#2185)
jsorohova May 23, 2023
1d7a335
Custom widgets - send location info of the main window to widgets (#2…
JMach1 May 25, 2023
6cd21cc
API changelog; accessibility issues
malincrist May 26, 2023
4b9cbca
Fixed non-working images in API descriptions (#2188)
jsorohova May 29, 2023
563c918
Provide proper error on GET request with body (#2138)
harunrst May 29, 2023
c8833dc
added "group by tag" toggle for api list dropdown widget; implemented…
malincrist May 31, 2023
87b17a7
Added developer portal type header for all requests (#2171)
harunrst May 31, 2023
50b221d
Made page content section stretch by default for all viewport sizes (…
malincrist May 31, 2023
431919f
Replace deprecated methods from cred generation (#2192)
f-alizada Jun 1, 2023
7dba93f
Revert "Added developer portal type header for all requests (#2171)" …
harunrst Jun 1, 2023
d175857
Added pagination for user subscriptions (#2189)
malincrist Jun 1, 2023
d548db9
added operation details customizations
malincrist Jun 1, 2023
125a80f
Upgraded dependencies. (#2191)
azaslonov Jun 3, 2023
5328b8c
Fixed scroll to operation (#2200)
malincrist Jun 5, 2023
acf7591
Increase dev-portal version to 2.24.0 (#2199)
f-alizada Jun 5, 2023
dec4850
Upgrade paperbits to 0.1.587 (#2204)
f-alizada Jun 7, 2023
cdef0c8
Removed duplicated styles (#2206)
jsorohova Jun 8, 2023
555a770
added bradcrumbs; fixed styles; graphql WIP
malincrist Jun 8, 2023
b95915b
Removed menu styles from test console (#2197)
malincrist Jun 12, 2023
043ce54
Add dropdown for the case when there are multiple examples (#2208)
f-alizada Jun 13, 2023
e0951b5
display graphql nodes; extracted menu in a separate component; versio…
malincrist Jun 14, 2023
94f231d
Remove not needed async and wait for the server listen event before t…
f-alizada Jun 14, 2023
4e3ec4d
Merge branch 'master' into malincrist/feature/api-wiki
malincrist Jun 15, 2023
6120ee9
fxed issue with loading operation details
malincrist Jun 15, 2023
690d243
Subscription key improvements (#2212)
malincrist Jun 20, 2023
252c03c
fixed regex that extracts resource name (#2205)
malincrist Jun 20, 2023
3616602
lint fix
malincrist Jun 20, 2023
72a6dbe
Merge branch 'master' into malincrist/feature/api-wiki
malincrist Jun 21, 2023
5132b19
get last modified date from changelog
malincrist Jun 22, 2023
2fa8e26
Upgraded dependencies and default theme. (#2198)
azaslonov Jun 25, 2023
c002ff8
fix typos and spelling errors (#2195)
Jul 3, 2023
444bed6
product template page wip
malincrist Jul 4, 2023
18592a8
Updated widget registration model. (#2235)
azaslonov Jul 10, 2023
7b783de
product details page WIP
malincrist Jul 20, 2023
60faac4
implemented subscription form
malincrist Jul 21, 2023
4dec541
minor fixes
malincrist Jul 24, 2023
bd98534
more minor fixes
malincrist Jul 24, 2023
36f53ae
Add navigation menu for default pages (#2257)
f-alizada Jul 25, 2023
1eb54f4
UX improvments; bugfixes
malincrist Jul 31, 2023
9d5c2ed
Playwright tests (#2254)
f-alizada Aug 7, 2023
d7d47e5
Fix seach bar overlapping (#2276)
SenpuDev Aug 22, 2023
188c135
merg
malincrist Aug 24, 2023
bebc058
upgrade to new registration model
malincrist Aug 29, 2023
ca9872b
changed default to use new widgets
malincrist Aug 30, 2023
3084b1b
changed default to use image, null checks
malincrist Sep 5, 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/[email protected]

- 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 [[email protected]](mailto:[email protected]) 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