-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: transfer over from https://github.com/Tencent/omi
- Loading branch information
Showing
3,054 changed files
with
195,776 additions
and
1 deletion.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,13 @@ | ||
snapshot* | ||
node_modules | ||
src/_common | ||
script/test/cypress | ||
temp* | ||
|
||
_site | ||
esm | ||
es | ||
lib | ||
dist | ||
cjs | ||
usage |
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,128 @@ | ||
{ | ||
"extends": [ | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"jest": true, | ||
"es6": true | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"globals": { | ||
"cy": "readonly", | ||
"Cypress": "readonly", | ||
"clipboardData": "readonly", | ||
"PKG_VERSION": true, | ||
"defineProps": "readonly", | ||
"defineEmits": "readonly" | ||
}, | ||
"parserOptions": { | ||
"parser": "@typescript-eslint/parser", | ||
"sourceType": "module", | ||
"allowImportExportEverywhere": true, | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"settings": { | ||
"import/extensions": [ | ||
".js", | ||
".jsx", | ||
".ts", | ||
".tsx" | ||
] | ||
}, | ||
"rules": { | ||
"no-console": [ | ||
"error", | ||
{ | ||
"allow": ["info", "warn", "error"] | ||
} | ||
], | ||
// code style config | ||
"no-continue": "off", | ||
"no-restricted-syntax": "off", | ||
"no-plusplus": "off", | ||
"no-param-reassign": "off", | ||
"no-shadow": "off", | ||
"no-underscore-dangle": "off", | ||
"no-unused-vars": "off", | ||
"no-unused-expressions": "off", | ||
"no-return-assign": "off", | ||
"no-use-before-define": "off", | ||
"func-names": "off", | ||
"guard-for-in": "off", | ||
"consistent-return": "off", | ||
"no-restricted-globals": "off", | ||
"default-param-last": "off", | ||
"default-case": "off", | ||
"prefer-spread": "off", | ||
|
||
// import config | ||
"import/extensions": "off", | ||
"import/no-unresolved": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"import/prefer-default-export": "off", | ||
"import/no-relative-packages": "off", | ||
|
||
// typescript config | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-require-imports": 0, | ||
"@typescript-eslint/no-var-requires": 0, | ||
"@typescript-eslint/prefer-for-of": 0, | ||
"@typescript-eslint/ban-types": 0, | ||
"@typescript-eslint/no-unused-vars": [ | ||
1, | ||
{ | ||
"argsIgnorePattern": "^_", | ||
"varsIgnorePattern": "^_" | ||
} | ||
], | ||
"@typescript-eslint/no-empty-function": 0, | ||
"@typescript-eslint/ban-ts-comment": 0, | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"**/_example/*", | ||
"script/**/*", | ||
"script/*", | ||
"*.js", | ||
"site/**/*", | ||
"site/*" | ||
], | ||
"rules": { | ||
"no-var-requires": 0, | ||
"no-console": 0, | ||
"no-unused-expressions": 0, | ||
"no-alert": 0 | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
"*.ts", | ||
"*.tsx" | ||
], | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": 0 | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
"*.test.js" | ||
], | ||
"rules": { | ||
"import/no-dynamic-require": "off", | ||
"global-require": "off" | ||
} | ||
}, | ||
{ | ||
"files": "*" | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @pengYYYYY @chaishi @xiaosansiji @honkinglin @leejim @uyarn |
Empty file.
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,5 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: 使用 issue-helper 新建 | ||
url: https://Tencent.github.io/tdesign/issue-helper/?lang=zh-CN&repo=Tencent/tdesign-omi | ||
about: 使用 https://Tencent.github.io/tdesign/issue-helper/ 创建 issue,其中包含 bug 和 feature,表单提交更加严格。 |
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,30 @@ | ||
name: 反馈新功能 | ||
description: 通过 github 模板进行新功能反馈。 | ||
title: "[组件名称] 描述问题的标题" | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
# 欢迎你的参与 | ||
tdesign-omi 的 Issue 列表接受 bug 报告或是新功能请求。也可加入官方社区:<img width="80px" src="https://user-images.githubusercontent.com/15634204/157386871-bf84c2ea-a02f-4c1c-b6fd-577450cdbcf7.png" /> | ||
在发布一个 Issue 前,请确保: | ||
- 在 [常见问题](https://tdesign.tencent.com/about/faq)、[更新日志](https://github.com/Tencent/omi/blob/main/CHANGELOG.md) 和 [旧Issue列表](https://github.com/Tencent/omi/issues?q=is%3Aissue) 中搜索过你的问题。(你的问题可能已有人提出,也可能已在最新版本中被修正) | ||
- 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 issue。 | ||
- type: textarea | ||
id: functionContent | ||
attributes: | ||
label: 这个功能解决了什么问题 | ||
description: 请详尽说明这个需求的用例和场景。最重要的是:解释清楚是怎样的用户体验需求催生了这个功能上的需求。我们将考虑添加在现有 API 无法轻松实现的功能。新功能的用例也应当足够常见。 | ||
placeholder: 请填写 | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: functionalExpectations | ||
attributes: | ||
label: 你建议的方案是什么 | ||
placeholder: 请填写 | ||
validations: | ||
required: 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,52 @@ | ||
<!-- | ||
首先,感谢你的贡献!😄 | ||
请阅读并遵循 [TDesign 贡献指南](https://github.com/Tencent/tdesign/blob/main/docs/contributing.md),填写以下 pull request 的信息。 | ||
PR 在维护者审核通过后会合并,谢谢! | ||
--> | ||
|
||
### 🤔 这个 PR 的性质是? | ||
|
||
- [ ] 日常 bug 修复 | ||
- [ ] 新特性提交 | ||
- [ ] 文档改进 | ||
- [ ] 演示代码改进 | ||
- [ ] 组件样式/交互改进 | ||
- [ ] CI/CD 改进 | ||
- [ ] 重构 | ||
- [ ] 代码风格优化 | ||
- [ ] 测试用例 | ||
- [ ] 分支合并 | ||
- [ ] 其他 | ||
|
||
### 🔗 相关 Issue | ||
|
||
<!-- | ||
1. 描述相关需求的来源,如相关的 issue 讨论链接。 | ||
--> | ||
|
||
### 💡 需求背景和解决方案 | ||
|
||
<!-- | ||
1. 要解决的具体问题。 | ||
2. 列出最终的 API 实现和用法。 | ||
3. 涉及UI/交互变动需要有截图或 GIF。 | ||
--> | ||
|
||
### 📝 更新日志 | ||
|
||
<!-- | ||
从用户角度描述具体变化,以及可能的 breaking change 和其他风险。 | ||
--> | ||
|
||
- fix(组件名称): 处理问题或特性描述 ... | ||
|
||
- [ ] 本条 PR 不需要纳入 Changelog | ||
|
||
### ☑️ 请求合并前的自查清单 | ||
|
||
⚠️ 请自检并全部**勾选全部选项**。⚠️ | ||
|
||
- [ ] 文档已补充或无须补充 | ||
- [ ] 代码演示已提供或无须提供 | ||
- [ ] TypeScript 定义已补充或无须补充 | ||
- [ ] Changelog 已提供或无须提供 |
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 @@ | ||
# Basic dependabot.yml file with | ||
# minimum configuration for two package managers | ||
|
||
version: 2 | ||
updates: | ||
# Enable version updates for npm | ||
- package-ecosystem: 'npm' | ||
# Look for `package.json` and `lock` files in the `root` directory | ||
directory: '/' | ||
# Check the npm registry for updates every day (weekdays) | ||
schedule: | ||
interval: 'monthly' | ||
|
||
# Enable version updates for Docker | ||
- package-ecosystem: 'docker' | ||
# Look for a `Dockerfile` in the `root` directory | ||
directory: '/' | ||
# Check for updates once a week | ||
schedule: | ||
interval: 'monthly' |
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,89 @@ | ||
name: Auto Release | ||
|
||
on: | ||
pull_request: | ||
branches: [develop] | ||
types: [opened, synchronize, reopened, closed] | ||
paths: | ||
- "package.json" | ||
issue_comment: | ||
types: [edited] | ||
|
||
jobs: | ||
generator: | ||
runs-on: ubuntu-latest | ||
if: > | ||
github.event_name == 'pull_request' && | ||
github.event.pull_request.merged == false && | ||
startsWith(github.head_ref, 'release/') | ||
steps: | ||
- run: echo "The head of this PR starts with 'release/'" | ||
- uses: actions/checkout@v3 | ||
- uses: 94dreamer/auto-release@develop | ||
id: changelog | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Add comment | ||
uses: peter-evans/create-or-update-comment@v1 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
${{ steps.changelog.outputs.changelog }} | ||
comment_add_log: | ||
runs-on: ubuntu-latest | ||
if: > | ||
github.event_name == 'issue_comment' | ||
&& github.event.issue.pull_request | ||
&& github.event.sender.login == github.event.issue.user.login | ||
&& startsWith(github.event.comment.body, '## 🌈 ') | ||
steps: | ||
- id: comment | ||
shell: bash | ||
run: | | ||
result=$(curl ${{github.event.issue.pull_request.url}} -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}") | ||
headrefreg='"ref": "(release/[[:digit:]]{1,2}\.[[:digit:]]{1,2}\.[[:digit:]]{1,2})",' | ||
if [[ $result =~ $headrefreg ]] | ||
then | ||
echo "属于 release pr 的 comment ${BASH_REMATCH[1]}" | ||
else | ||
echo "不属于 release pr 的 comment" && exit 1 | ||
fi | ||
echo "::set-output name=branch::${BASH_REMATCH[1]}" | ||
# zsh $match[1] | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ steps.comment.outputs.branch }} | ||
- name: Commit and push if needed | ||
env: | ||
BODY: ${{ github.event.comment.body }} | ||
run: | | ||
txt=$(cat CHANGELOG.md) | ||
echo "${txt%%##*}$BODY${txt##*---}" > CHANGELOG.md | ||
git add . | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git commit -m "chore: changelog's changes" | ||
git push | ||
echo "💾 pushed changelog's changes" | ||
merge_tag: | ||
runs-on: ubuntu-latest | ||
if: > | ||
github.event_name == 'pull_request' && | ||
github.event.pull_request.merged == true && | ||
startsWith(github.head_ref, 'release/') | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: develop | ||
token: ${{ secrets.PERSONAL_TOKEN }} | ||
- name: tag and push if needed | ||
run: | | ||
data=$(cat package.json) | ||
re="\"version\": \"([^\"]*)\"" | ||
[[ $data =~ $re ]] | ||
echo "${BASH_REMATCH[1]}" | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git tag ${BASH_REMATCH[1]} | ||
git push origin ${BASH_REMATCH[1]} | ||
echo "pushed tag ${BASH_REMATCH[1]}" |
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,52 @@ | ||
# force copy from tencent/tdesign | ||
name: Issue Add Assigness | ||
|
||
on: | ||
issues: | ||
types: [opened, edited] | ||
|
||
jobs: | ||
mark-duplicate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: wow-actions/auto-comment@v1 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
issuesOpened: | | ||
👋 @{{ author }},感谢给 TDesign 提出了 issue。 | ||
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。 | ||
# https://docs.github.com/cn/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#issues | ||
- uses: 94dreamer/issue-assignees@main | ||
id: assignees | ||
with: | ||
project_name: ${{github.event.repository.name}} | ||
issue_title: ${{github.event.issue.title}} | ||
|
||
- run: echo ${{ steps.assignees.outputs.contributors }} | ||
- name: Add assigness | ||
if: steps.assignees.outputs.contributors != '' | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'add-assignees' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
assignees: ${{ steps.assignees.outputs.contributors }} | ||
|
||
- run: | | ||
contributors=${{ steps.assignees.outputs.contributors }} | ||
contributorstring=${contributors//,/ @} | ||
echo "::set-output name=string::@$contributorstring" | ||
id: contributors | ||
- name: 通知贡献者 | ||
if: steps.assignees.outputs.contributors != '' | ||
uses: actions-cool/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: | | ||
♥️ 有劳 ${{ steps.contributors.outputs.string }} 尽快确认问题。 | ||
确认有效后将下一步计划和可能需要的时间回复给 @${{ github.event.issue.user.login }} 。 | ||
<!-- AUTO_ASSIGENEES_NOTIFY_HOOK --> | ||
number: ${{ github.event.issue.number }} | ||
body-include: "<!-- AUTO_ASSIGENEES_NOTIFY_HOOK -->" |
Oops, something went wrong.