vendor: amis 6.13.0 base (fork root)
This commit is contained in:
31
.github/ISSUE_TEMPLATE/bug-report.md
vendored
Normal file
31
.github/ISSUE_TEMPLATE/bug-report.md
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: 报告问题,帮助我们做的更好
|
||||
title: ''
|
||||
labels: need confirm
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
#### 描述问题:
|
||||
|
||||
请用一段清晰简洁的文字描述问题是什么...
|
||||
|
||||
#### 截图或视频:
|
||||
|
||||
可以的话,尽可能提供截图或视频来补充描述你的问题...
|
||||
|
||||
#### 如何复现(请务必完整填写下面内容):
|
||||
|
||||
1. 你是如何使用 amis 的?
|
||||
`sdk`、`npm` 或`其他`...
|
||||
|
||||
2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
|
||||
|
||||
3. 粘贴有问题的完整 `amis schema` 代码:
|
||||
```
|
||||
code here...
|
||||
```
|
||||
|
||||
4. 操作步骤
|
||||
请简单描述一下复现的操作步骤...
|
||||
1
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
1
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
blank_issues_enabled: false
|
||||
20
.github/ISSUE_TEMPLATE/feature-request.md
vendored
Normal file
20
.github/ISSUE_TEMPLATE/feature-request.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: 为我们提出一个新的想法
|
||||
title: ''
|
||||
labels: enhancement
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
#### 是否关联于某个问题吗:
|
||||
请用一段简单清晰的文字描述你的想法是关联于某个问题,例如:因为我没办法实现xxx...
|
||||
|
||||
#### 预期的解决方案:
|
||||
请简单描述你想达到的效果...
|
||||
|
||||
#### 其他可接受方案:
|
||||
请简单描述其他你可以接受的效果...
|
||||
|
||||
#### 任何附加信息:
|
||||
请添加任何可以补充说明上述问题的材料,例如图片或视频等...
|
||||
40
.github/ISSUE_TEMPLATE/rfc.md
vendored
Normal file
40
.github/ISSUE_TEMPLATE/rfc.md
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
---
|
||||
name: RFC
|
||||
about: request for comments
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
## 概述
|
||||
|
||||
简单地描述这项功能。
|
||||
|
||||
## 动机
|
||||
|
||||
为什么要做出这个更改?应对什么样的场景?会产生什么结果?
|
||||
|
||||
## 示例
|
||||
|
||||
如果提案新增或更改 JSON 配置。
|
||||
|
||||
## 详细设计
|
||||
|
||||
可选。
|
||||
|
||||
## 缺陷
|
||||
|
||||
我们是不是可以不做这个功能,请考虑:
|
||||
|
||||
- 实现这个功能的投入:包括代码的复杂度、代码体积的增加
|
||||
- 这个功能是不是不需要 amis 提供,比如基于 amis 自己扩展更合适
|
||||
- 对 amis 现有功能的影响,以及用户进行迁移的成本
|
||||
|
||||
## 替代选择
|
||||
|
||||
还有其他的方案也可以实现这个功能吗?
|
||||
|
||||
## 适配策略
|
||||
|
||||
如果我们实现了这个提案,有没有什么办法可以帮助开发者更好地适应这个改动?
|
||||
21
.github/ISSUE_TEMPLATE/usage-question.md
vendored
Normal file
21
.github/ISSUE_TEMPLATE/usage-question.md
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
name: Usage question
|
||||
about: amis 使用方法问题
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
#### 实现场景:
|
||||
请简单描述你想要实现的原始场景,例如:我想要实现xxx的功能...
|
||||
|
||||
#### 存在的问题:
|
||||
请简单描述你现在遇到的不符合预期的问题...
|
||||
|
||||
#### 当前方案:
|
||||
请粘贴你当前方案的完整 amis schema 代码...
|
||||
|
||||
```
|
||||
code here...
|
||||
```
|
||||
27
.github/labeler.yml
vendored
Normal file
27
.github/labeler.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
# labeler "simple" schema
|
||||
# Comment is applied to both issues and pull requests.
|
||||
# If you need a more robust solution, consider the "full" schema.
|
||||
comment: |
|
||||
👍 Thanks for this!
|
||||
🏷 I have applied any labels matching special text in your issue.
|
||||
|
||||
Please review the labels and make any necessary changes.
|
||||
|
||||
# Labels is an object where:
|
||||
# - keys are labels
|
||||
# - values are array of string patterns to match against title + body in issues/prs
|
||||
labels:
|
||||
'bug':
|
||||
- '(?i)\bbug[s]?\b'
|
||||
'help wanted':
|
||||
- '(?i)\bhelp( wanted)?\b'
|
||||
'feat':
|
||||
- '(?i)\bfeat'
|
||||
'fix':
|
||||
- '(?i)\bfix'
|
||||
'style':
|
||||
- '(?i)\bstyle'
|
||||
'chore':
|
||||
- '(?i)\bchore'
|
||||
'doc':
|
||||
- '(?i)\bdoc[s]?'
|
||||
58
.github/release-drafter.yml
vendored
Normal file
58
.github/release-drafter.yml
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
categories:
|
||||
- title: 新功能 Features 🚀
|
||||
label: feat
|
||||
- title: 问题修复 Bugfix 🐛
|
||||
labels:
|
||||
- 'fix'
|
||||
- 'fixes'
|
||||
- title: 依赖更新
|
||||
label: dep
|
||||
- title: 日常维护 Chore
|
||||
label: chore
|
||||
- title: 样式调整 Style 🌈
|
||||
labels:
|
||||
- 'style'
|
||||
- 'styles'
|
||||
- title: 文档更新 Docs
|
||||
labels:
|
||||
- 'doc'
|
||||
- 'docs'
|
||||
- title: 单元测试 test
|
||||
label: test
|
||||
|
||||
autolabeler:
|
||||
- label: 'feat'
|
||||
branch:
|
||||
- '/feat-.+/i'
|
||||
title:
|
||||
- '/feat/i'
|
||||
- label: 'fix'
|
||||
branch:
|
||||
- '/fix-.+/i'
|
||||
title:
|
||||
- '/fix/i'
|
||||
- label: 'chore'
|
||||
branch:
|
||||
- '/chore-.+/i'
|
||||
title:
|
||||
- '/chore/i'
|
||||
- label: 'style'
|
||||
branch:
|
||||
- '/style[s]?-.+/i'
|
||||
title:
|
||||
- '/style/i'
|
||||
- label: 'doc'
|
||||
branch:
|
||||
- '/doc[s]?-.+/i'
|
||||
title:
|
||||
- '/doc/i'
|
||||
- label: 'test'
|
||||
branch:
|
||||
- '/test[s]?-.+/i'
|
||||
title:
|
||||
- '/test/i'
|
||||
template: |
|
||||
|
||||
## 更新记录
|
||||
|
||||
$CHANGES
|
||||
18
.github/workflows/auto-labeler.yml
vendored
Normal file
18
.github/workflows/auto-labeler.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: Community
|
||||
on:
|
||||
issues:
|
||||
types: [opened, edited, milestoned]
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
|
||||
labeler:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check Labels
|
||||
id: labeler
|
||||
uses: jimschubert/labeler-action@v2
|
||||
with:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
67
.github/workflows/codeql-analysis.yml
vendored
Normal file
67
.github/workflows/codeql-analysis.yml
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
# 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: ['**']
|
||||
schedule:
|
||||
- cron: '21 7 * * 2'
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: ['javascript']
|
||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
||||
# Learn more:
|
||||
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
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.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
|
||||
# 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@v3
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# and modify them (or add more) to build your code if your project
|
||||
# uses a compiled language
|
||||
|
||||
#- run: |
|
||||
# make bootstrap
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3
|
||||
53
.github/workflows/gh-pages.yml
vendored
Normal file
53
.github/workflows/gh-pages.yml
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
name: gh-pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20.x]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
|
||||
steps:
|
||||
- uses: n1hility/cancel-previous-runs@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: actions/checkout@master
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: build gh-pages
|
||||
run: |
|
||||
npm i --legacy-peer-deps
|
||||
cd packages/office-viewer
|
||||
npm i --legacy-peer-deps
|
||||
cd ../../
|
||||
npm run build --workspaces
|
||||
sh deploy-gh-pages.sh
|
||||
- name: Deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@3.7.1
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
BRANCH: gh-pages # The branch the action should deploy to.
|
||||
FOLDER: gh-pages # The folder the action should deploy.
|
||||
CLEAN: true # Automatically remove deleted files from the deploy branch
|
||||
SINGLE_COMMIT: true
|
||||
- name: Generate coverage report
|
||||
env:
|
||||
NODE_OPTIONS: '--max-old-space-size=8192'
|
||||
run: |
|
||||
npm run coverage
|
||||
- uses: codecov/codecov-action@v4
|
||||
with:
|
||||
name: codecov-umbrella # optional
|
||||
fail_ci_if_error: false # optional (default = false)
|
||||
verbose: true # optional (default = false)
|
||||
65
.github/workflows/pr-test.yml
vendored
Normal file
65
.github/workflows/pr-test.yml
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
name: PR test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ['**']
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20.x]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: npm install
|
||||
env:
|
||||
NODE_OPTIONS: '--max-old-space-size=8192'
|
||||
run: |
|
||||
npm i --legacy-peer-deps
|
||||
cd packages/office-viewer
|
||||
npm i --legacy-peer-deps
|
||||
cd ../../
|
||||
- name: build amis-formula
|
||||
run: |
|
||||
npm run build --workspace amis-formula
|
||||
- name: build amis-core
|
||||
run: |
|
||||
npm run build --workspace amis-core
|
||||
- name: build amis-ui
|
||||
run: |
|
||||
npm run build --workspace amis-ui
|
||||
- name: build amis
|
||||
run: |
|
||||
npm run build --workspace amis
|
||||
- name: check schema.json
|
||||
run: |
|
||||
cp ./packages/amis/schema.json .
|
||||
- name: build amis-editor-core
|
||||
run: |
|
||||
npm run build --workspace amis-editor-core
|
||||
- name: build amis-editor
|
||||
run: |
|
||||
npm run build --workspace amis-editor
|
||||
- name: typescript check
|
||||
env:
|
||||
NODE_OPTIONS: '--max-old-space-size=8192'
|
||||
run: |
|
||||
npm run typecheck
|
||||
- name: test
|
||||
run: |
|
||||
npm test --workspaces
|
||||
cd packages/office-viewer
|
||||
npm test
|
||||
cd ../../
|
||||
sh deploy-gh-pages.sh
|
||||
Reference in New Issue
Block a user