-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'asyncapi:master' into doc/introduction
- Loading branch information
Showing
20 changed files
with
1,014 additions
and
356 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Monthly issue metrics | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '3 2 1 * *' | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: read | ||
|
||
jobs: | ||
build: | ||
name: issue metrics | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Get dates for last month | ||
shell: bash | ||
run: | | ||
# Calculate the first day of the previous month | ||
first_day=$(date -d "last month" +%Y-%m-01) | ||
# Calculate the last day of the previous month | ||
last_day=$(date -d "$first_day +1 month -1 day" +%Y-%m-%d) | ||
#Set an environment variable with the date range | ||
echo "$first_day..$last_day" | ||
echo "last_month=$first_day..$last_day" >> "$GITHUB_ENV" | ||
- name: Run issue-metrics tool | ||
uses: github/issue-metrics@v2 | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SEARCH_QUERY: 'repo:shapeitapp/shapeitapp created:${{ env.last_month }}' | ||
|
||
- name: Create issue | ||
uses: peter-evans/create-issue-from-file@v4 | ||
with: | ||
title: Monthly issue metrics report | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
content-filepath: ./issue_metrics.md | ||
assignees: Amzani |
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,76 @@ | ||
import { useState } from "react"; | ||
import { ChipInput } from "@asyncapi/studio-ui"; | ||
|
||
const meta = { | ||
component: ChipInput, | ||
parameters: { | ||
layout: 'fullscreen', | ||
backgrounds: { | ||
default: 'light' | ||
} | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export const Default = () => { | ||
const [currentChips, setCurrentChips] = useState<string[]>([]); | ||
|
||
return ( | ||
<div className="p-4 bg-gray-100 flex items-center"> | ||
<ChipInput | ||
name="chip-input-default" | ||
id="chip-input-id-default" | ||
chips={currentChips} | ||
onChange={setCurrentChips} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export const WithTags = () => { | ||
const [currentChips, setCurrentChips] = useState<string[]>(['production', 'platform']); | ||
|
||
return ( | ||
<div className="p-4 bg-gray-100 flex items-center"> | ||
<ChipInput | ||
name="chip-input-chip-text" | ||
id="chip-input-id-chip-text" | ||
chips={currentChips} | ||
onChange={setCurrentChips} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export const WithSomeDefaultText = () => { | ||
const [currentChips, setCurrentChips] = useState<string[]>(['production', 'platform']); | ||
|
||
return ( | ||
<div className="p-4 bg-gray-100 flex items-center"> | ||
<ChipInput | ||
name="chip-input-default-text-in-input" | ||
id="chip-input-id-default-text-in-input" | ||
chips={currentChips} | ||
onChange={setCurrentChips} | ||
defaultValue="registr" | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export const WithCustomPlaceholder = () => { | ||
const [currentChips, setCurrentChips] = useState<string[]>([]); | ||
|
||
return ( | ||
<div className="p-4 bg-gray-100 flex items-center"> | ||
<ChipInput | ||
name="chip-input-custom-placeholder" | ||
id="chip-input-id-placeholder" | ||
chips={currentChips} | ||
onChange={setCurrentChips} | ||
placeholder="Enter a custom chip" | ||
/> | ||
</div> | ||
); | ||
}; |
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
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
Oops, something went wrong.