-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.ts
114 lines (106 loc) · 3.22 KB
/
codegen.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import apexChartsDocsConverter from './apexChartsDocsConverter/main';
const URLS = [
{
url: 'https://apexcharts.com/docs/options/annotations/',
name: 'annotations',
},
// {url: "https://apexcharts.com/docs/options/colors/", name: "colors"},
{
url: 'https://apexcharts.com/docs/options/datalabels/',
name: 'dataLabels',
},
{
url: 'https://apexcharts.com/docs/options/fill/',
name: 'fill',
},
{
url: 'https://apexcharts.com/docs/options/forecastdatapoints/',
name: 'forecastDataPoints',
},
{
url: 'https://apexcharts.com/docs/options/grid/',
name: 'grid',
},
// {url: "https://apexcharts.com/docs/options/labels/", name: "labels"},
{
url: 'https://apexcharts.com/docs/options/legend/',
name: 'legend',
},
{
url: 'https://apexcharts.com/docs/options/markers/',
name: 'markers',
},
{
url: 'https://apexcharts.com/docs/options/nodata/',
name: 'noData',
},
// { url: 'https://apexcharts.com/docs/options/responsive/', name: 'responsive' },
{
url: 'https://apexcharts.com/docs/options/states/',
name: 'states',
},
{
url: 'https://apexcharts.com/docs/options/stroke/',
name: 'stroke',
},
{
url: 'https://apexcharts.com/docs/options/subtitle/',
name: 'subtitle',
},
{
url: 'https://apexcharts.com/docs/options/theme/',
name: 'theme',
},
{
url: 'https://apexcharts.com/docs/options/title/',
name: 'title',
},
{
url: 'https://apexcharts.com/docs/options/tooltip/',
name: 'tooltip',
},
{
url: 'https://apexcharts.com/docs/options/xaxis/',
name: 'xaxis',
},
{
url: 'https://apexcharts.com/docs/options/yaxis/',
name: 'yaxis',
},
];
console.info('Regenerating sources...');
const names = process.argv.slice(2);
apexChartsDocsConverter(
names.length ?
URLS.filter((v) => names.includes(v.name)) :
URLS,
`src/generated-sources`,
`src/generated-sources/locale`,
);
/*
https://apexcharts.com/docs/options/chart/animations/
https://apexcharts.com/docs/options/chart/background/
https://apexcharts.com/docs/options/chart/brush/
https://apexcharts.com/docs/options/chart/defaultlocale/
https://apexcharts.com/docs/options/chart/dropshadow/
https://apexcharts.com/docs/options/chart/fontfamily/
https://apexcharts.com/docs/options/chart/forecolor/
https://apexcharts.com/docs/options/chart/group/
https://apexcharts.com/docs/options/chart/events/
https://apexcharts.com/docs/options/chart/height/
https://apexcharts.com/docs/options/chart/id/
https://apexcharts.com/docs/options/chart/locales/
https://apexcharts.com/docs/options/chart/offsetx/
https://apexcharts.com/docs/options/chart/offsety/
https://apexcharts.com/docs/options/chart/parentheightoffset/
https://apexcharts.com/docs/options/chart/redrawonparentresize/
https://apexcharts.com/docs/options/chart/redrawonwindowresize/
https://apexcharts.com/docs/options/chart/selection/
https://apexcharts.com/docs/options/chart/sparkline/
https://apexcharts.com/docs/options/chart/stacked/
https://apexcharts.com/docs/options/chart/stacktype/
https://apexcharts.com/docs/options/chart/toolbar/
https://apexcharts.com/docs/options/chart/type/
https://apexcharts.com/docs/options/chart/width/
https://apexcharts.com/docs/options/chart/zoom/
*/