Skip to content

Commit 85a17dd

Browse files
authored
Merge pull request #108 from lushanyanYX/feat/aurora-theme
Feat/aurora theme
2 parents ae24da0 + 87a7d52 commit 85a17dd

50 files changed

Lines changed: 2501 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "feat: 新增vchart-aurora-theme主题包\n\n新增aurora主题包,包含完整的主题配置和示例代码\n\n",
5+
"type": "none",
6+
"packageName": "@visactor/vchart-aurora-theme"
7+
}
8+
],
9+
"packageName": "@visactor/vchart-aurora-theme",
10+
"email": "yangxian.x@bytedance.com"
11+
}

common/config/rush/pnpm-lock.yaml

Lines changed: 84 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dist
2+
build
3+
esm
4+
cjs
5+
node_modules
6+
coverage
7+
8+
# ignore big data files
9+
__tests__/data/*
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
require('@rushstack/eslint-patch/modern-module-resolution');
2+
3+
module.exports = {
4+
extends: ['@internal/eslint-config/profile/lib'],
5+
overrides: [
6+
{
7+
files: ['**/__tests__/**', '**/*.test.ts'],
8+
// 测试文件允许以下规则
9+
rules: {
10+
'@typescript-eslint/no-empty-function': 'off',
11+
'no-console': 'off',
12+
'dot-notation': 'off',
13+
'promise/catch-or-return': 'off'
14+
}
15+
}
16+
],
17+
parserOptions: {
18+
tsconfigRootDir: __dirname,
19+
project: './tsconfig.eslint.json',
20+
sourceType: 'module',
21+
ecmaFeatures: {
22+
jsx: true // 让eslint支持jsx语法
23+
}
24+
},
25+
ignorePatterns: ['scripts/**', 'bundler.config.js']
26+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# @visactor/vchart-aurora-theme
2+
3+
<!-- 以下为自动生成 -->
4+
5+
- [aurora](https://raw.githubusercontent.com/VisActor/vchart-theme/main/packages/vchart-semi-theme/public/aurora.json) light theme for ChartHub.
6+
<!-- 以上为自动生成 -->
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
describe('vchart-semi-theme', () => {
2+
it('for test.', () => {
3+
const a = 1;
4+
expect(a).toBe(1);
5+
});
6+
});
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* @type {Partial<import('@internal/bundler').Config>}
3+
*/
4+
module.exports = {
5+
formats: ['cjs', 'es', 'umd'],
6+
outputDir: {
7+
es: 'esm',
8+
cjs: 'cjs',
9+
umd: 'build'
10+
},
11+
name: 'vchart-semi-theme',
12+
umdOutputFilename: 'index'
13+
};
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
6+
<meta name="theme-color" content="#000000" />
7+
<title>React App</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<!--
12+
This HTML file is a template.
13+
If you open it directly in the browser, you will see an empty page.
14+
15+
You can add webfonts, meta tags, or analytics to this file.
16+
The build step will place the bundled scripts into the <body> tag.
17+
18+
To begin the development, run `npm start` or `yarn start`.
19+
To create a production bundle, use `npm run build` or `yarn build`.
20+
-->
21+
<script type="module" src="/src/index.jsx"></script>
22+
</body>
23+
</html>
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import type { IChartInfo } from '@internal/chart-demo';
2+
import {
3+
areaSpec,
4+
barGroupHorizontalSpec,
5+
barGroupSpec,
6+
barStackedHorizontalSpec,
7+
barStackedPercentSpec,
8+
barStackedSpec,
9+
funnelSpec,
10+
lineSpec,
11+
pieSpec,
12+
radarSpec
13+
} from './chartSpec';
14+
15+
export const charts: IChartInfo[] = [
16+
{
17+
title: 'Grouped Bar Chart',
18+
spec: barGroupSpec
19+
},
20+
{
21+
title: 'Stacked Bar Chart',
22+
spec: barStackedSpec
23+
},
24+
{
25+
title: 'Horizontal Grouped Bar Chart',
26+
spec: barGroupHorizontalSpec
27+
},
28+
{
29+
title: 'Horizontal Stacked Bar Chart',
30+
spec: barStackedHorizontalSpec
31+
},
32+
{
33+
title: 'Stacked Percentage Bar Chart',
34+
spec: barStackedPercentSpec
35+
},
36+
{
37+
title: 'Line Chart',
38+
spec: lineSpec
39+
},
40+
{
41+
title: 'Area Chart',
42+
spec: areaSpec
43+
},
44+
{
45+
title: 'Pie Chart',
46+
spec: pieSpec
47+
},
48+
{
49+
title: 'Radar Chart',
50+
spec: radarSpec
51+
},
52+
{
53+
title: 'Funnel Chart',
54+
spec: funnelSpec
55+
}
56+
];

0 commit comments

Comments
 (0)