-
-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into hotfixes/dashboard-scripts
- Loading branch information
Showing
189 changed files
with
5,336 additions
and
4,832 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
# This action is centrally managed in https://github.com/asyncapi/.github/ | ||
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo | ||
|
||
# It does magic only if there is package.json file in the root of the project | ||
name: PR testing - if Node project | ||
|
||
|
@@ -14,65 +11,61 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
# Using macos-13 instead of latest (macos-14) due to an issue with Puppeteer and such runner. | ||
# See: https://github.com/puppeteer/puppeteer/issues/12327 and https://github.com/asyncapi/parser-js/issues/1001 | ||
os: [ubuntu-latest, macos-13, windows-latest] | ||
steps: | ||
- if: > | ||
!github.event.pull_request.draft && !( | ||
(github.actor == 'asyncapi-bot' && ( | ||
startsWith(github.event.pull_request.title, 'ci: update of files from global .github repo') || | ||
startsWith(github.event.pull_request.title, 'ci: update of files from global .github repo') || | ||
startsWith(github.event.pull_request.title, 'chore(release):') | ||
)) || | ||
(github.actor == 'asyncapi-bot-eve' && ( | ||
startsWith(github.event.pull_request.title, 'ci: update of files from global .github repo') || | ||
startsWith(github.event.pull_request.title, 'ci: update of files from global .github repo') || | ||
startsWith(github.event.pull_request.title, 'chore(release):') | ||
)) || | ||
(github.actor == 'allcontributors[bot]' && | ||
(github.actor == 'allcontributors[bot]' && | ||
startsWith(github.event.pull_request.title, 'docs: add') | ||
) | ||
) | ||
id: should_run | ||
name: Should Run | ||
run: echo "shouldrun=true" >> $GITHUB_OUTPUT | ||
shell: bash | ||
- if: steps.should_run.outputs.shouldrun == 'true' | ||
- if: steps.should_run.outputs.shouldrun == 'true' | ||
name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
shell: bash | ||
- if: steps.should_run.outputs.shouldrun == 'true' | ||
- if: steps.should_run.outputs.shouldrun == 'true' | ||
name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- if: steps.should_run.outputs.shouldrun == 'true' | ||
- if: steps.should_run.outputs.shouldrun == 'true' | ||
name: Check if Node.js project and has package.json | ||
id: packagejson | ||
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT | ||
shell: bash | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Check package-lock version | ||
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master | ||
id: lockversion | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Check if .nvmrc exists | ||
id: nvmrc | ||
run: test -e .nvmrc && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT | ||
shell: bash | ||
- if: steps.nvmrc.outputs.exists == 'true' | ||
name: Read Node.js version from .nvmrc | ||
id: nodeversion | ||
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT | ||
shell: bash | ||
- if: steps.packagejson.outputs.exists == 'true' && steps.nvmrc.outputs.exists == 'true' | ||
name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "${{ steps.lockversion.outputs.version }}" | ||
- if: steps.lockversion.outputs.version == '18' && matrix.os == 'windows-latest' | ||
#npm cli 10 is buggy because of some cache issue | ||
name: Install npm cli 8 | ||
shell: bash | ||
run: npm install -g [email protected] | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Install dependencies | ||
shell: bash | ||
node-version: "${{ steps.nodeversion.outputs.version }}" | ||
- name: Install dependencies | ||
run: npm ci | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Test | ||
run: npm test --if-present | ||
- if: steps.packagejson.outputs.exists == 'true' && matrix.os == 'ubuntu-latest' | ||
#linting should run just one and not on all possible operating systems | ||
name: Run linter | ||
run: npm run lint --if-present | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Run tests for netlify edge-functions | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize, ready_for_review] | ||
|
||
jobs: | ||
netlify-tests: | ||
strategy: | ||
matrix: | ||
deno-version: [1.46.0] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Deno | ||
uses: denoland/setup-deno@3a041055d2e2068f6e2c59904ee0ec2dfa9d9665 | ||
with: | ||
deno-version: ${{ matrix.deno-version }} | ||
- name: Test with Deno | ||
run: deno test --allow-env --trace-ops netlify/**/*.test.ts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ cypress/videos | |
*storybook.log | ||
/storybook-static/ | ||
coverage | ||
deno.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
20.11.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { create } from '@storybook/theming/create'; | ||
|
||
export default create({ | ||
// Brand Information | ||
brandTitle: 'AsyncAPI Initiative', | ||
brandUrl: 'https://www.asyncapi.com/', | ||
brandImage: 'img/logos/asyncapi-horizontal-white-logo.svg', | ||
brandTarget: '_blank', | ||
|
||
// Typography | ||
fontBase: '"Work Sans", sans-serif', | ||
fontCode: 'monospace', | ||
|
||
|
||
// Themes | ||
base: 'dark', | ||
|
||
/* -- FULL THEME IS NOT BEING USED DUE TO LACK OF STORYBOOK SUPPORT FOR CUSTOMIZING THE SETTINGS & ACTIONS BAR BG/TEXTCOLOR INDEPENDENTLY. -- | ||
colorPrimary: '#47BCEE', | ||
colorSecondary: '#8851FB', | ||
// UI | ||
appBg: '#1b1130', | ||
appContentBg: '#ffffff', | ||
appPreviewBg: '#ffffff', | ||
appBorderColor: '#dfe6ea', | ||
appBorderRadius: 4, | ||
// Text colors | ||
textColor: '#ffffff', | ||
textInverseColor: '#ffffff', | ||
textMutedColor: '#5c6870', | ||
inputTextColor: '#2e3438', | ||
// Toolbar | ||
barTextColor: '#9E9E9E', | ||
// Toolbar default and active colors | ||
booleanBg: '#dfe6ea', | ||
booleanSelectedBg: '#8851FB' | ||
*/ | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { addons } from '@storybook/manager-api'; | ||
import AsyncAPIStorybookTheme from './AsyncAPIStorybookTheme'; | ||
|
||
addons.setConfig({ | ||
theme: AsyncAPIStorybookTheme, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Bindings in AsyncAPI provide a way to add protocol-specific information to the AsyncAPI documentation. They can be added to different document parts, such as servers, channels, or messages; they specify standard details specific to a particular protocol. The purpose of bindings is to enhance the API's understanding and usage by providing additional context and configuration options for different protocols. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import type { AccordionItemType } from '@/types/components/AccordionItemType'; | ||
|
||
import Accordion from './Accordion'; | ||
|
||
const meta: Meta<typeof Accordion> = { | ||
title: 'Components/Accordion', | ||
component: Accordion | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof Accordion>; | ||
|
||
const sampleAccordionItemList: AccordionItemType[] = [ | ||
{ | ||
title: 'Accordion Item 1', | ||
content: 'This is the content of accordion item 1.' | ||
}, | ||
{ | ||
title: 'Accordion Item 2', | ||
content: 'This is the content of accordion item 2.' | ||
}, | ||
{ | ||
title: 'Accordion Item 3', | ||
content: 'This is the content of accordion item 3.' | ||
} | ||
]; | ||
|
||
export const SampleAccordion: Story = { | ||
args: { | ||
accordionItems: sampleAccordionItemList | ||
} | ||
}; |
Oops, something went wrong.