@nocobase/plugin-data-visualization 2.0.0-alpha.5 → 2.0.0-alpha.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/2ba6e739852f8f86.js +10 -0
- package/dist/client/3326d830e1c77b0a.js +47 -0
- package/dist/client/8795975cb8946be4.js +10 -0
- package/dist/client/924c5f5607998e1c.js +10 -0
- package/dist/client/flow/components/AntdFilterSelector.d.ts +35 -0
- package/dist/client/flow/{models/ChartPreviewer.d.ts → components/DaraButton.d.ts} +5 -1
- package/dist/client/flow/models/ChartBlockModel.d.ts +18 -19
- package/dist/client/flow/models/ChartOptionsBuilder.d.ts +3 -5
- package/dist/client/flow/models/ChartOptionsBuilder.service.d.ts +45 -3
- package/dist/client/flow/models/ChartOptionsPanel.d.ts +1 -0
- package/dist/client/flow/models/{ChartEventsEditor.d.ts → EventsEditor.d.ts} +2 -1
- package/dist/client/flow/models/QueryBuilder.d.ts +7 -1
- package/dist/client/flow/models/QueryBuilder.service.d.ts +19 -0
- package/dist/client/flow/resources/ChartResource.d.ts +1 -4
- package/dist/client/flow/utils.d.ts +4 -0
- package/dist/client/index.js +1 -1
- package/dist/client/utils.d.ts +11 -11
- package/dist/externalVersion.js +10 -9
- package/dist/locale/de-DE.json +122 -79
- package/dist/locale/en-US.json +122 -86
- package/dist/locale/es-ES.json +145 -0
- package/dist/locale/fr-FR.json +145 -0
- package/dist/locale/hu-HU.json +145 -0
- package/dist/locale/id-ID.json +145 -0
- package/dist/locale/it-IT.json +122 -79
- package/dist/locale/ja-JP.json +130 -78
- package/dist/locale/ko-KR.json +140 -70
- package/dist/locale/nl-NL.json +149 -99
- package/dist/locale/pt-BR.json +145 -0
- package/dist/locale/ru-RU.json +145 -0
- package/dist/locale/tr-TR.json +145 -0
- package/dist/locale/uk-UA.json +145 -0
- package/dist/locale/vi-VN.json +145 -0
- package/dist/locale/zh-CN.json +122 -87
- package/dist/locale/zh-TW.json +145 -0
- package/dist/node_modules/koa-compose/package.json +1 -1
- package/dist/node_modules/moment-timezone/package.json +1 -1
- package/dist/server/actions/query.js +20 -2
- package/package.json +5 -2
- package/dist/client/33f0f13fb9c8b63c.js +0 -10
- package/dist/client/b60420c7da874e70.js +0 -47
- package/dist/client/d5982ab2df5b1822.js +0 -10
- package/dist/client/e5eee84a69b5014e.js +0 -10
- package/dist/client/flow/models/FormItemLite.d.ts +0 -13
- package/dist/client/flow/models/queryBuilder.logic.d.ts +0 -25
package/dist/locale/zh-CN.json
CHANGED
|
@@ -1,110 +1,145 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"Delete": "删除",
|
|
4
|
-
"Cancel": "取消",
|
|
5
|
-
"Submit": "提交",
|
|
2
|
+
"Abbreviation": "缩写",
|
|
6
3
|
"Actions": "操作",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
4
|
+
"Add chart": "添加图表",
|
|
5
|
+
"Add custom field": "添加自定义字段",
|
|
6
|
+
"Add field": "添加字段",
|
|
7
|
+
"Add transformation": "添加数据转换",
|
|
8
|
+
"Aggregation": "聚合",
|
|
9
|
+
"Alias": "别名",
|
|
10
|
+
"Are you sure to cancel?": "确定要取消吗?",
|
|
11
|
+
"Area": "面积图",
|
|
12
|
+
"Aspect ratio": "宽高比",
|
|
13
|
+
"Auto map by data columns": "根据数据列自动映射",
|
|
14
|
+
"Auto refresh": "自动刷新",
|
|
15
|
+
"Avg": "平均值",
|
|
16
|
+
"Bar": "条形图",
|
|
17
|
+
"Builder": "构建器",
|
|
18
|
+
"Built-in": "内置图表",
|
|
19
|
+
"Cancel": "取消",
|
|
20
|
+
"Category field": "分类字段",
|
|
9
21
|
"Chart": "图表",
|
|
22
|
+
"Chart options": "图表选项",
|
|
23
|
+
"Chart settings": "图表设置",
|
|
24
|
+
"Chart type": "图表类型",
|
|
10
25
|
"ChartV2": "图表V2",
|
|
11
26
|
"Charts": "图表",
|
|
27
|
+
"Choose the appropriate chart": "选择合适的图表",
|
|
28
|
+
"Collapse": "折叠",
|
|
29
|
+
"Collection": "数据表",
|
|
30
|
+
"Column": "柱状图",
|
|
31
|
+
"Config reference: ": "配置参考: ",
|
|
12
32
|
"Configure": "配置",
|
|
13
|
-
"Duplicate": "复制",
|
|
14
33
|
"Configure chart": "配置图表",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
34
|
+
"Container": "容器",
|
|
35
|
+
"Count": "计数",
|
|
36
|
+
"Currency": "货币",
|
|
37
|
+
"Current filter": "当前筛选",
|
|
19
38
|
"Data": "数据",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
39
|
+
"Data query": "数据查询",
|
|
40
|
+
"Date range": "日期范围",
|
|
41
|
+
"Delete": "删除",
|
|
23
42
|
"Dimensions": "维度",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
43
|
+
"Distinct": "去重",
|
|
44
|
+
"Divide": "除以",
|
|
45
|
+
"Doughnut": "环形图",
|
|
46
|
+
"Dual axes": "双轴图",
|
|
47
|
+
"Duplicate": "复制",
|
|
48
|
+
"Edit": "编辑",
|
|
49
|
+
"Edit field properties": "编辑字段属性",
|
|
50
|
+
"Enable": "启用",
|
|
28
51
|
"Enable cache": "启用缓存",
|
|
29
|
-
"
|
|
52
|
+
"Events": "事件",
|
|
53
|
+
"Expand": "展开",
|
|
54
|
+
"Exponential": "科学记数法",
|
|
30
55
|
"Field": "字段",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
56
|
+
"Filter": "过滤",
|
|
57
|
+
"Fix errors or field mismatch, output SQL or ECharts options": "修复错误或字段不匹配问题,并输出查询SQL 或 ECharts options",
|
|
58
|
+
"Fix preview errors or field mismatch": "修复预览错误/字段不匹配",
|
|
59
|
+
"Fixed height": "固定高度",
|
|
34
60
|
"Format": "格式",
|
|
35
|
-
"
|
|
36
|
-
"Please run query to retrive data.": "请执行查询来获取数据。",
|
|
37
|
-
"Type": "类型",
|
|
38
|
-
"Add field": "添加字段",
|
|
39
|
-
"Add chart": "添加图表",
|
|
40
|
-
"xField": "x轴字段",
|
|
41
|
-
"yField": "y轴字段",
|
|
42
|
-
"seriesField": "分类字段",
|
|
43
|
-
"angleField": "角度字段",
|
|
44
|
-
"colorField": "颜色字段",
|
|
45
|
-
"Line": "折线图",
|
|
46
|
-
"Area": "面积图",
|
|
47
|
-
"Column": "柱状图",
|
|
48
|
-
"Bar": "条形图",
|
|
49
|
-
"Pie": "饼图",
|
|
50
|
-
"Dual axes": "双轴图",
|
|
51
|
-
"Scatter": "散点图",
|
|
61
|
+
"Funnel": "漏斗图",
|
|
52
62
|
"Gauge": "仪表盘",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
63
|
+
"Height": "高",
|
|
64
|
+
"Hide data": "收起数据",
|
|
65
|
+
"Horizontal": "水平",
|
|
66
|
+
"Inner radius (%)": "内半径 (%)",
|
|
67
|
+
"Input": "输入框",
|
|
68
|
+
"JSON config": "JSON 配置",
|
|
69
|
+
"Label": "标签",
|
|
70
|
+
"Label content": "标签内容",
|
|
71
|
+
"Legend": "图例",
|
|
72
|
+
"Limit": "结果数量",
|
|
73
|
+
"Line": "折线图",
|
|
74
|
+
"Map X/Y/category/value by columns and generate ECharts options": "请根据字段列映射 X/Y/分类/值并生成 ECharts options",
|
|
75
|
+
"Max": "最大值",
|
|
76
|
+
"Max size (%)": "最大尺寸 (%)",
|
|
77
|
+
"Measures": "度量",
|
|
78
|
+
"Min": "最小值",
|
|
79
|
+
"Min size (%)": "最小尺寸 (%)",
|
|
80
|
+
"Multiply": "乘以",
|
|
81
|
+
"Offset": "跳过数量",
|
|
82
|
+
"Optimize color, ordering and aggregation, output ECharts options": "请优化颜色、排序与聚合,并输出 ECharts options",
|
|
83
|
+
"Optimize visual encoding": "优化视觉编码",
|
|
84
|
+
"Optional series": "可选分类",
|
|
85
|
+
"Original field": "原始字段",
|
|
86
|
+
"Outer radius (%)": "外半径 (%)",
|
|
55
87
|
"Percent": "百分比",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
88
|
+
"Pie": "饼图",
|
|
89
|
+
"Please click 'Run Query' to fetch data before configuring chart options": "请先点击”运行查询“获取数据,再配置图表选项",
|
|
58
90
|
"Please configure and run query": "请配置并执行数据查询",
|
|
59
91
|
"Please configure chart": "请配置图表",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
92
|
+
"Please run query to retrive data.": "请执行查询来获取数据。",
|
|
93
|
+
"Please select a chart type.": "请选择图表类型",
|
|
94
|
+
"Query": "查询",
|
|
95
|
+
"Recommend chart type by data structure and explain reasons": "请根据数据结构推荐图表类型并解释原因",
|
|
96
|
+
"Run query": "执行查询",
|
|
62
97
|
"Same properties set in the form above will be overwritten by this JSON config.": "上面表单中设置的相同属性将被JSON配置覆盖。",
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
98
|
+
"Scatter": "散点图",
|
|
99
|
+
"Select Field": "选择字段",
|
|
100
|
+
"Select a source field to use metadata of the field": "选择来源字段可以复用字段的元数据配置",
|
|
101
|
+
"Select field": "选择字段",
|
|
102
|
+
"Show background": "显示背景",
|
|
103
|
+
"Show border": "显示边框",
|
|
104
|
+
"Show padding": "显示内边距",
|
|
105
|
+
"Size": "尺寸",
|
|
106
|
+
"Smooth": "平滑",
|
|
107
|
+
"Sort": "排序",
|
|
108
|
+
"Split line": "分隔线",
|
|
109
|
+
"Stack": "堆叠",
|
|
110
|
+
"Statistic": "统计",
|
|
111
|
+
"Submit": "提交",
|
|
66
112
|
"Sum": "求和",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"Max": "最大值",
|
|
71
|
-
"Please select a chart type.": "请选择图表类型",
|
|
72
|
-
"Collection": "数据表",
|
|
73
|
-
"isStack": "堆叠",
|
|
74
|
-
"isPercent": "显示为百分比",
|
|
75
|
-
"isGroup": "分组",
|
|
76
|
-
"smooth": "平滑曲线",
|
|
77
|
-
"Collapse": "折叠",
|
|
78
|
-
"Expand": "展开",
|
|
79
|
-
"Current filter": "当前筛选",
|
|
80
|
-
"Add custom field": "添加自定义字段",
|
|
81
|
-
"To filter with custom fields, use \"Current filter\" variables in the chart configuration.": "要通过自定义字段筛选,需要在图表配置中使用“当前筛选”变量。",
|
|
82
|
-
"Input": "输入框",
|
|
83
|
-
"Date range": "日期范围",
|
|
113
|
+
"TTL (second)": "缓存时间 (秒)",
|
|
114
|
+
"Table": "表格",
|
|
115
|
+
"The first 10 records of the query result:": "查询结果的前 10 条记录:",
|
|
84
116
|
"Time range": "时间范围",
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
117
|
+
"Title": "名称",
|
|
118
|
+
"To filter with custom fields, use \"Current filter\" variables in the chart configuration.": "要通过自定义字段筛选,需要在图表配置中使用“当前筛选”变量。",
|
|
119
|
+
"Tooltip": "提示",
|
|
120
|
+
"Transform": "数据转换",
|
|
88
121
|
"Transformation": "数据转换",
|
|
89
|
-
"Add transformation": "添加数据转换",
|
|
90
|
-
"Container": "容器",
|
|
91
|
-
"Show border": "显示边框",
|
|
92
122
|
"Transformation tip": "一个字段可以应用多次转换,会按照顺序执行,请注意每次转换后的数据类型,拖动可以调整转换顺序。",
|
|
93
|
-
"Type conversion": "类型转换",
|
|
94
123
|
"Transformer": "转换方法",
|
|
95
|
-
"
|
|
124
|
+
"Type": "类型",
|
|
125
|
+
"Type conversion": "类型转换",
|
|
126
|
+
"Value field": "数值字段",
|
|
127
|
+
"Vertical": "垂直",
|
|
128
|
+
"View data": "查看数据",
|
|
96
129
|
"Width": "宽",
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
|
|
130
|
+
"X axis label rotate": "X轴标签旋转",
|
|
131
|
+
"You changes are not saved. If you click OK, your changes will be lost.": "您的更改尚未保存。如果您点击“确定”,您的更改将丢失。",
|
|
132
|
+
"angleField": "角度字段",
|
|
133
|
+
"ascending": "升序",
|
|
134
|
+
"colorField": "颜色字段",
|
|
135
|
+
"descending": "降序",
|
|
136
|
+
"isGroup": "分组",
|
|
137
|
+
"isPercent": "显示为百分比",
|
|
138
|
+
"isStack": "堆叠",
|
|
139
|
+
"percent": "百分比",
|
|
140
|
+
"seriesField": "分类字段",
|
|
141
|
+
"smooth": "平滑曲线",
|
|
142
|
+
"value": "数值",
|
|
143
|
+
"xField": "x轴字段",
|
|
144
|
+
"yField": "y轴字段"
|
|
145
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Abbreviation": "Abbreviation",
|
|
3
|
+
"Actions": "Actions",
|
|
4
|
+
"Add chart": "Add chart",
|
|
5
|
+
"Add custom field": "Add custom field",
|
|
6
|
+
"Add field": "Add field",
|
|
7
|
+
"Add transformation": "Add transformation",
|
|
8
|
+
"Aggregation": "Aggregation",
|
|
9
|
+
"Alias": "Alias",
|
|
10
|
+
"Are you sure to cancel?": "Are you sure to cancel?",
|
|
11
|
+
"Area": "Area",
|
|
12
|
+
"Aspect ratio": "Aspect ratio",
|
|
13
|
+
"Auto map by data columns": "Auto map by data columns",
|
|
14
|
+
"Auto refresh": "Auto refresh",
|
|
15
|
+
"Avg": "Avg",
|
|
16
|
+
"Bar": "Bar",
|
|
17
|
+
"Builder": "Builder",
|
|
18
|
+
"Built-in": "Built-in",
|
|
19
|
+
"Cancel": "Cancel",
|
|
20
|
+
"Category field": "Category field",
|
|
21
|
+
"Chart": "Chart",
|
|
22
|
+
"Chart options": "Chart options",
|
|
23
|
+
"Chart settings": "Chart settings",
|
|
24
|
+
"Chart type": "Chart type",
|
|
25
|
+
"ChartV2": "ChartV2",
|
|
26
|
+
"Charts": "Charts",
|
|
27
|
+
"Choose the appropriate chart": "Choose the appropriate chart",
|
|
28
|
+
"Collapse": "Collapse",
|
|
29
|
+
"Collection": "Collection",
|
|
30
|
+
"Column": "Column",
|
|
31
|
+
"Config reference: ": "Config reference: ",
|
|
32
|
+
"Configure": "Configure",
|
|
33
|
+
"Configure chart": "Configure chart",
|
|
34
|
+
"Container": "Container",
|
|
35
|
+
"Count": "Count",
|
|
36
|
+
"Currency": "Currency",
|
|
37
|
+
"Current filter": "Current filter",
|
|
38
|
+
"Data": "Data",
|
|
39
|
+
"Data query": "Data query",
|
|
40
|
+
"Date range": "Date range",
|
|
41
|
+
"Delete": "Delete",
|
|
42
|
+
"Dimensions": "Dimensions",
|
|
43
|
+
"Distinct": "Distinct",
|
|
44
|
+
"Divide": "Divide",
|
|
45
|
+
"Doughnut": "Doughnut Chart",
|
|
46
|
+
"Dual axes": "Dual axes",
|
|
47
|
+
"Duplicate": "Duplicate",
|
|
48
|
+
"Edit": "Edit",
|
|
49
|
+
"Edit field properties": "Edit field properties",
|
|
50
|
+
"Enable": "Enable",
|
|
51
|
+
"Enable cache": "Enable cache",
|
|
52
|
+
"Events": "Events",
|
|
53
|
+
"Expand": "Expand",
|
|
54
|
+
"Exponential": "Exponential",
|
|
55
|
+
"Field": "Field",
|
|
56
|
+
"Filter": "Filter",
|
|
57
|
+
"Fix errors or field mismatch, output SQL or ECharts options": "Fix errors or field mismatch, output SQL or ECharts options",
|
|
58
|
+
"Fix preview errors or field mismatch": "Fix preview errors or field mismatch",
|
|
59
|
+
"Fixed height": "Fixed height",
|
|
60
|
+
"Format": "Format",
|
|
61
|
+
"Funnel": "Funnel Chart",
|
|
62
|
+
"Gauge": "Gauge",
|
|
63
|
+
"Height": "Height",
|
|
64
|
+
"Hide data": "Hide data",
|
|
65
|
+
"Horizontal": "Horizontal",
|
|
66
|
+
"Inner radius (%)": "Inner radius (%)",
|
|
67
|
+
"Input": "Input",
|
|
68
|
+
"JSON config": "JSON config",
|
|
69
|
+
"Label": "Label",
|
|
70
|
+
"Label content": "Label content",
|
|
71
|
+
"Legend": "Legend",
|
|
72
|
+
"Limit": "Limit",
|
|
73
|
+
"Line": "Line",
|
|
74
|
+
"Map X/Y/category/value by columns and generate ECharts options": "Map X/Y/category/value by columns and generate ECharts options",
|
|
75
|
+
"Max": "Max",
|
|
76
|
+
"Max size (%)": "Max size (%)",
|
|
77
|
+
"Measures": "Measures",
|
|
78
|
+
"Min": "Min",
|
|
79
|
+
"Min size (%)": "Min size (%)",
|
|
80
|
+
"Multiply": "Multiply",
|
|
81
|
+
"Offset": "Offset",
|
|
82
|
+
"Optimize color, ordering and aggregation, output ECharts options": "Optimize color, ordering and aggregation, output ECharts options",
|
|
83
|
+
"Optimize visual encoding": "Optimize visual encoding",
|
|
84
|
+
"Optional series": "Optional series",
|
|
85
|
+
"Original field": "Original field",
|
|
86
|
+
"Outer radius (%)": "Outer radius (%)",
|
|
87
|
+
"Percent": "Percent",
|
|
88
|
+
"Pie": "Pie",
|
|
89
|
+
"Please click 'Run Query' to fetch data before configuring chart options": "Please click 'Run Query' to fetch data before configuring chart options",
|
|
90
|
+
"Please configure and run query": "Please configure and run query",
|
|
91
|
+
"Please configure chart": "Please configure chart",
|
|
92
|
+
"Please run query to retrive data.": "Please run query to retrive data.",
|
|
93
|
+
"Please select a chart type.": "Please select a chart type.",
|
|
94
|
+
"Query": "Query",
|
|
95
|
+
"Recommend chart type by data structure and explain reasons": "Recommend chart type by data structure and explain reasons",
|
|
96
|
+
"Run query": "Run query",
|
|
97
|
+
"Same properties set in the form above will be overwritten by this JSON config.": "Same properties set in the form above will be overwritten by this JSON config.",
|
|
98
|
+
"Scatter": "Scatter",
|
|
99
|
+
"Select Field": "Select Field",
|
|
100
|
+
"Select a source field to use metadata of the field": "Select a source field to use metadata of the field",
|
|
101
|
+
"Select field": "Select Field",
|
|
102
|
+
"Show background": "Show background",
|
|
103
|
+
"Show border": "Show border",
|
|
104
|
+
"Show padding": "Show padding",
|
|
105
|
+
"Size": "Size",
|
|
106
|
+
"Smooth": "Smooth",
|
|
107
|
+
"Sort": "Sort",
|
|
108
|
+
"Split line": "Split line",
|
|
109
|
+
"Stack": "Stack",
|
|
110
|
+
"Statistic": "Statistic",
|
|
111
|
+
"Submit": "Submit",
|
|
112
|
+
"Sum": "Sum",
|
|
113
|
+
"TTL (second)": "TTL (second)",
|
|
114
|
+
"Table": "Table",
|
|
115
|
+
"The first 10 records of the query result:": "The first 10 records of the query result:",
|
|
116
|
+
"Time range": "Time range",
|
|
117
|
+
"Title": "Title",
|
|
118
|
+
"To filter with custom fields, use \"Current filter\" variables in the chart configuration.": "To filter with custom fields, use \"Current filter\" variables in the chart configuration.",
|
|
119
|
+
"Tooltip": "Tooltip",
|
|
120
|
+
"Transform": "Transform",
|
|
121
|
+
"Transformation": "Transformation",
|
|
122
|
+
"Transformation tip": "Fields allow multiple transformations, applied sequentially. Pay attention to data type changes after each transformation. Drag-and-drop functionality enables adjustment of transformation order.",
|
|
123
|
+
"Transformer": "Transformer",
|
|
124
|
+
"Type": "Type",
|
|
125
|
+
"Type conversion": "Type conversion",
|
|
126
|
+
"Value field": "Value field",
|
|
127
|
+
"Vertical": "Vertical",
|
|
128
|
+
"View data": "View data",
|
|
129
|
+
"Width": "Width",
|
|
130
|
+
"X axis label rotate": "X axis label rotate",
|
|
131
|
+
"You changes are not saved. If you click OK, your changes will be lost.": "You changes are not saved. If you click OK, your changes will be lost.",
|
|
132
|
+
"angleField": "Angle field",
|
|
133
|
+
"ascending": "ascending",
|
|
134
|
+
"colorField": "Color field",
|
|
135
|
+
"descending": "descending",
|
|
136
|
+
"isGroup": "isGroup",
|
|
137
|
+
"isPercent": "isPercent",
|
|
138
|
+
"isStack": "isStack",
|
|
139
|
+
"percent": "Percent",
|
|
140
|
+
"seriesField": "Series field",
|
|
141
|
+
"smooth": "smooth",
|
|
142
|
+
"value": "Value",
|
|
143
|
+
"xField": "X field",
|
|
144
|
+
"yField": "Y field"
|
|
145
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2025-
|
|
1
|
+
{"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2025-12-02T12:51:12.214Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"moment-timezone","version":"0.5.43","description":"Parse and display moments in any timezone.","homepage":"http://momentjs.com/timezone/","author":"Tim Wood <washwithcare@gmail.com> (http://timwoodcreates.com/)","keywords":["moment","date","time","timezone","olson","iana","zone","tz"],"main":"./index.js","typings":"./index.d.ts","engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/moment/moment-timezone.git"},"bugs":{"url":"https://github.com/moment/moment-timezone/issues"},"license":"MIT","dependencies":{"moment":"^2.29.4"},"devDependencies":{"grunt":"^1.5.3","grunt-contrib-clean":"^2.0.1","grunt-contrib-jshint":"^3.2.0","grunt-contrib-nodeunit":"^4.0.0","grunt-contrib-uglify":"^5.2.2","grunt-exec":"^3.0.0","typescript":"^3.5.1"},"jspm":{"main":"builds/moment-timezone-with-data","shim":{"moment-timezone":{"deps":["moment"]}}},"scripts":{"test":"grunt"},"_lastModified":"2025-
|
|
1
|
+
{"name":"moment-timezone","version":"0.5.43","description":"Parse and display moments in any timezone.","homepage":"http://momentjs.com/timezone/","author":"Tim Wood <washwithcare@gmail.com> (http://timwoodcreates.com/)","keywords":["moment","date","time","timezone","olson","iana","zone","tz"],"main":"./index.js","typings":"./index.d.ts","engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/moment/moment-timezone.git"},"bugs":{"url":"https://github.com/moment/moment-timezone/issues"},"license":"MIT","dependencies":{"moment":"^2.29.4"},"devDependencies":{"grunt":"^1.5.3","grunt-contrib-clean":"^2.0.1","grunt-contrib-jshint":"^3.2.0","grunt-contrib-nodeunit":"^4.0.0","grunt-contrib-uglify":"^5.2.2","grunt-exec":"^3.0.0","typescript":"^3.5.1"},"jspm":{"main":"builds/moment-timezone-with-data","shim":{"moment-timezone":{"deps":["moment"]}}},"scripts":{"test":"grunt"},"_lastModified":"2025-12-02T12:51:12.782Z"}
|
|
@@ -49,6 +49,8 @@ var import_database = require("@nocobase/database");
|
|
|
49
49
|
var import_koa_compose = __toESM(require("koa-compose"));
|
|
50
50
|
var import_server = require("@nocobase/server");
|
|
51
51
|
var import_query_parser = require("../query-parser");
|
|
52
|
+
var import_utils = require("@nocobase/utils");
|
|
53
|
+
var import_acl = require("@nocobase/acl");
|
|
52
54
|
const getDB = (ctx, dataSource) => {
|
|
53
55
|
const ds = ctx.app.dataSourceManager.dataSources.get(dataSource);
|
|
54
56
|
return ds == null ? void 0 : ds.collectionManager.db;
|
|
@@ -217,8 +219,8 @@ const cacheMiddleware = async (ctx, next) => {
|
|
|
217
219
|
await cache.set(uid, ctx.body, (cacheConfig == null ? void 0 : cacheConfig.ttl) * 1e3);
|
|
218
220
|
}
|
|
219
221
|
};
|
|
220
|
-
const checkPermission = (ctx, next) => {
|
|
221
|
-
var _a;
|
|
222
|
+
const checkPermission = async (ctx, next) => {
|
|
223
|
+
var _a, _b;
|
|
222
224
|
const { collection, dataSource } = ctx.action.params.values;
|
|
223
225
|
const roleNames = ctx.state.currentRoles || ["anonymous"];
|
|
224
226
|
const acl = ((_a = ctx.app.dataSourceManager.get(dataSource)) == null ? void 0 : _a.acl) || ctx.app.acl;
|
|
@@ -226,6 +228,22 @@ const checkPermission = (ctx, next) => {
|
|
|
226
228
|
if (!can && !roleNames.includes("root")) {
|
|
227
229
|
ctx.throw(403, "No permissions");
|
|
228
230
|
}
|
|
231
|
+
if ((_b = can == null ? void 0 : can.params) == null ? void 0 : _b.filter) {
|
|
232
|
+
try {
|
|
233
|
+
acl.filterParams(ctx, collection, can.params);
|
|
234
|
+
} catch (e) {
|
|
235
|
+
if (e instanceof import_acl.NoPermissionError) {
|
|
236
|
+
ctx.throw(403, "No permissions");
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
const filter = ctx.action.params.values.filter || {};
|
|
240
|
+
ctx.action.params.values = {
|
|
241
|
+
...ctx.action.params.values,
|
|
242
|
+
filter: (0, import_utils.assign)(filter, can == null ? void 0 : can.params.filter, {
|
|
243
|
+
filter: "andMerge"
|
|
244
|
+
})
|
|
245
|
+
};
|
|
246
|
+
}
|
|
229
247
|
return next();
|
|
230
248
|
};
|
|
231
249
|
const query = async (ctx, next) => {
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-data-visualization",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.50",
|
|
4
4
|
"displayName": "Data visualization",
|
|
5
|
+
"displayName.ru-RU": "Визуализация данных",
|
|
5
6
|
"displayName.zh-CN": "数据可视化",
|
|
6
7
|
"description": "Provides data visualization feature, including chart block and chart filter block, support line charts, area charts, bar charts and more than a dozen kinds of charts, you can also extend more chart types.",
|
|
8
|
+
"description.ru-RU": "Предоставляет функции визуализации данных: включает блоки графиков и фильтрации графиков, поддерживает линейные, областные, столбчатые и более десятка других типов графиков, а также возможность расширения дополнительными типами.",
|
|
7
9
|
"description.zh-CN": "提供数据可视化功能,包含图表区块和图表筛选区块,支持折线图、面积图、柱状图等十几种图表,你也可以扩展更多图表类型。",
|
|
8
10
|
"main": "dist/server/index.js",
|
|
9
11
|
"homepage": "https://docs.nocobase.com/handbook/data-visualization",
|
|
12
|
+
"homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/data-visualization",
|
|
10
13
|
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/data-visualization",
|
|
11
14
|
"devDependencies": {
|
|
12
15
|
"@ant-design/icons": "5.x",
|
|
@@ -42,7 +45,7 @@
|
|
|
42
45
|
"@nocobase/test": "2.x",
|
|
43
46
|
"@nocobase/utils": "2.x"
|
|
44
47
|
},
|
|
45
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "a6eb64abf3632e116ad0b295a7f410270a1059d1",
|
|
46
49
|
"keywords": [
|
|
47
50
|
"Blocks"
|
|
48
51
|
]
|