-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jandiasnow-work/beta
chore: init project
- Loading branch information
Showing
47 changed files
with
22,795 additions
and
1 deletion.
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 @@ | ||
module.exports = require('@yuntijs/lint').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 @@ | ||
module.exports = require('@yuntijs/lint').commitlint; |
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,108 @@ | ||
import { defineConfig } from 'dumi'; | ||
|
||
import { homepage, name } from './package.json'; | ||
|
||
const isProduction = process.env.NODE_ENV === 'production'; | ||
const isWin = process.platform === 'win32'; | ||
|
||
const themeConfig = { | ||
logo: 'https://avatars.githubusercontent.com/u/148947838', | ||
footerConfig: { | ||
resources: { | ||
title: 'Resources', | ||
items: [ | ||
{ | ||
description: 'CloudNative Components', | ||
openExternal: true, | ||
title: 'Yunti Charts', | ||
url: 'https://github.com/yuntijs/yunti-charts', | ||
}, | ||
{ | ||
description: 'Awesome lint configs', | ||
openExternal: true, | ||
title: 'Yunti Lint', | ||
url: 'https://github.com/yuntijs/yunti-lint', | ||
}, | ||
], | ||
}, | ||
moreProducts: { | ||
title: 'More Products', | ||
items: [ | ||
{ | ||
description: 'Framework for k8s', | ||
openExternal: true, | ||
title: 'Kubebb', | ||
url: 'https://github.com/kubebb', | ||
}, | ||
{ | ||
description: 'One-stop LLMOps platform', | ||
openExternal: true, | ||
title: 'KubeAGI', | ||
url: 'https://github.com/kubeagi', | ||
}, | ||
], | ||
}, | ||
}, | ||
actions: [ | ||
{ | ||
link: homepage, | ||
openExternal: true, | ||
text: 'Github', | ||
}, | ||
{ | ||
link: '/components/action-icon', | ||
text: 'Get Started', | ||
type: 'primary', | ||
}, | ||
], | ||
apiHeader: { | ||
docUrl: `{github}/tree/master/src/{atomId}/index.md`, | ||
match: ['/components'], | ||
pkg: name, | ||
sourceUrl: `{github}/tree/master/src/{atomId}/index.tsx`, | ||
}, | ||
description: 'Yunti Charts is an open-source Charts component library for building web apps', | ||
footer: 'Made with ☁️ by YuntiJS', | ||
giscus: { | ||
category: 'Q&A', | ||
categoryId: 'DIC_kwDOLI-Zns4Ccyx5', | ||
repo: 'yuntijs/yunti-charts', | ||
repoId: 'R_kgDOLI-Zng', | ||
}, | ||
name: 'Charts', | ||
nav: [ | ||
{ link: '/components/line-chart', title: 'Components' }, | ||
{ link: '/changelog', title: 'Changelog' }, | ||
], | ||
socialLinks: { | ||
github: homepage, | ||
}, | ||
title: 'Yunti Charts', | ||
}; | ||
|
||
export default defineConfig({ | ||
apiParser: {}, | ||
base: isProduction ? '/yunti-charts/' : '/', | ||
define: { | ||
'process.env': process.env, | ||
}, | ||
extraBabelPlugins: ['babel-plugin-antd-style'], | ||
favicons: ['https://avatars.githubusercontent.com/u/148947838?s=64&v=4'], | ||
locales: [{ id: 'en-US', name: 'English' }], | ||
mfsu: isWin ? undefined : {}, | ||
npmClient: 'pnpm', | ||
publicPath: '/yunti-charts/', | ||
outputPath: './dist/yunti-charts/', | ||
resolve: { | ||
entryFile: './src/index.ts', | ||
}, | ||
styles: [ | ||
`html, body { background: transparent; } | ||
@media (prefers-color-scheme: dark) { | ||
html, body { background: #000; } | ||
}`, | ||
], | ||
themeConfig, | ||
title: 'Yunti Charts', | ||
}); |
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,34 @@ | ||
# Eslintignore for YuntiJS | ||
################################################################ | ||
|
||
# dependencies | ||
node_modules | ||
|
||
# ci | ||
.coverage | ||
coverage | ||
|
||
# test | ||
jest* | ||
_test_ | ||
__test__ | ||
|
||
# umi | ||
.umi | ||
.umi-production | ||
.umi-test | ||
.dumi/tmp* | ||
|
||
# production | ||
dist | ||
es | ||
lib | ||
logs | ||
|
||
# misc | ||
# add other ignore file below | ||
/src/assets | ||
|
||
# files generated by yunti lowcode | ||
*.jsx | ||
*.js |
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 @@ | ||
module.exports = require('@yuntijs/lint').eslint; |
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,22 @@ | ||
import { defineConfig } from 'father'; | ||
|
||
export default defineConfig({ | ||
esm: { output: 'es' }, | ||
umd: { | ||
output: 'umd', | ||
name: 'YuntiCharts', | ||
entry: { | ||
'src/index': { | ||
name: 'YuntiCharts', | ||
}, | ||
}, | ||
sourcemap: true, | ||
externals: { | ||
'react': 'var window.React', | ||
'antd': 'var window.antd', | ||
'react-dom': 'var window.ReactDOM', | ||
'prop-types': 'var window.PropTypes', | ||
"@antv/g2": "var window.G2" | ||
}, | ||
}, | ||
}); |
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,45 @@ | ||
name: '🐛 反馈缺陷 Bug Report' | ||
description: '反馈一个问题缺陷 | Report an bug' | ||
title: '[Bug] ' | ||
labels: '🐛 Bug' | ||
body: | ||
- type: dropdown | ||
attributes: | ||
label: '💻 系统环境 | Operating System' | ||
options: | ||
- Windows | ||
- macOS | ||
- Ubuntu | ||
- Other Linux | ||
- Other | ||
validations: | ||
required: true | ||
- type: dropdown | ||
attributes: | ||
label: '🌐 浏览器 | Browser' | ||
options: | ||
- Chrome | ||
- Edge | ||
- Safari | ||
- Firefox | ||
- Other | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: '🐛 问题描述 | Bug Description' | ||
description: A clear and concise description of the bug. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: '🚦 期望结果 | Expected Behavior' | ||
description: A clear and concise description of what you expected to happen. | ||
- type: textarea | ||
attributes: | ||
label: '📷 复现步骤 | Recurrence Steps' | ||
description: A clear and concise description of how to recurrence. | ||
- type: textarea | ||
attributes: | ||
label: '📝 补充信息 | Additional Information' | ||
description: If your problem needs further explanation, or if the issue you're seeing cannot be reproduced in a gist, please add more information here. |
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: '🌠 功能需求 Feature Request' | ||
description: '需求或建议 | Suggest an idea' | ||
title: '[Request] ' | ||
labels: '🌠 Feature Request' | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: '🥰 需求描述 | Feature Description' | ||
description: Please add a clear and concise description of the problem you are seeking to solve with this feature request. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: '🧐 解决方案 | Proposed Solution' | ||
description: Describe the solution you'd like in a clear and concise manner. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: '📝 补充信息 | Additional Information' | ||
description: Add any other context about the problem here. |
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,15 @@ | ||
name: '😇 疑问或帮助 Help Wanted' | ||
description: '疑问或需要帮助 | Need help' | ||
title: '[Question] ' | ||
labels: '😇 Help Wanted' | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: '🧐 问题描述 | Proposed Solution' | ||
description: A clear and concise description of the proplem. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: '📝 补充信息 | Additional Information' | ||
description: Add any other context about the problem here. |
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,7 @@ | ||
--- | ||
name: '📝 其他 Other' | ||
about: '其他问题 | Other issues' | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
--- |
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,18 @@ | ||
#### 💻 变更类型 | Change Type | ||
|
||
<!-- For change type, change [ ] to [x]. --> | ||
|
||
- [ ] ✨ feat | ||
- [ ] 🐛 fix | ||
- [ ] ♻️ refactor | ||
- [ ] 💄 style | ||
- [ ] 🔨 chore | ||
- [ ] 📝 docs | ||
|
||
#### 🔀 变更说明 | Description of Change | ||
|
||
<!-- Thank you for your Pull Request. Please provide a description above. --> | ||
|
||
#### 📝 补充信息 | Additional Information | ||
|
||
<!-- Add any other context about the Pull Request here. --> |
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,46 @@ | ||
name: Deploy to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- alpha | ||
- beta | ||
- main | ||
# Review gh actions docs if you want to further define triggers, paths, etc | ||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy to GitHub Pages | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js v18.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install pnpm v8.x | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: Install deps | ||
run: pnpm i | ||
|
||
- name: Build website | ||
run: npm run docs:build | ||
|
||
# Popular action to deploy to GitHub Pages: | ||
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GH_TOKEN }} | ||
publish_dir: ./dist/yunti-charts |
Oops, something went wrong.