Skip to content

Commit 9ad7de9

Browse files
authored
Merge pull request #57 from running-elephant/master
Merge Remote Master
2 parents 0325ff4 + cc3a083 commit 9ad7de9

File tree

862 files changed

+35289
-16019
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

862 files changed

+35289
-16019
lines changed

Deployment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ title: 部署
1212

1313
- JDK 1.8+
1414
- MySql5.7+
15-
- datart安装包(datart-server-1.0.0-alpha.3-install.zip)
15+
- datart安装包(datart-server-1.0.0-beta.x-install.zip)
1616
- Mail Server (可选)
1717
- [ChromeWebDriver](https://chromedriver.chromium.org/) (可选)
1818
- Redis (可选)
1919

2020
方式1 :解压安装包 (官方提供的包)
2121

2222
```bash
23-
unzip datart-server-1.0.0-alpha.3-install.zip
23+
unzip datart-server-1.0.0-beta.x-install.zip
2424
```
2525

2626
方式2 :自行编译
@@ -32,11 +32,11 @@ cd datart
3232

3333
mvn clean package -Dmaven.test.skip=true
3434

35-
cp ./datart-server-1.0.0-alpha.3-install.zip ${deployment_basedir}
35+
cp ./datart-server-1.0.0-beta.x-install.zip ${deployment_basedir}
3636

3737
cd ${deployment_basedir}
3838

39-
unzip datart-server-1.0.0-alpha.3-install.zip
39+
unzip datart-server-1.0.0-beta.x-install.zip
4040

4141
```
4242

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,17 @@
55
datart 是新一代数据可视化开放平台,支持各类企业数据可视化场景需求,如创建和使用报表、仪表板和大屏,进行可视化数据分析,构建可视化数据应用等。由原 davinci 主创团队出品,datart 更加开放、可塑和智能,并在数据与艺术之间寻求最佳平衡。
66

77
### 设计理念 Design Philosophy
8-
* **开放 Openness**
9-
10-
BI产品作为标准化产品成熟度已经很高,但大多数BI产品为封闭系统,即用户只能使用BI产品内置提供的数据源、数据图表、可视化元素等。我们认为数据可视化平台可以在其系统边界范围内,在多个层面提供开放可扩展能力,新的扩展支持可以通过即插即用方式安装、更新或卸载。因此 datart 试图建立起一套标准化的 **`数据可视化开放平台`** 体系,标准化和开放性体现在以下方面:
8+
#### **开放 Openness**
9+
BI产品作为标准化产品成熟度已经很高,但大多数BI产品为封闭系统,即用户只能使用BI产品内置提供的数据源、数据图表、可视化元素等。我们认为数据可视化平台可以在其系统边界范围内,在多个层面提供开放可扩展能力,新的扩展支持可以通过即插即用方式安装、更新或卸载。因此 datart 试图建立起一套标准化的 **`数据可视化开放平台`** 体系,标准化和开放性体现在以下方面:
1110
* ***流程标准化***:基于 Source > View > Chart > Visualization 建立 **`受管控的数据可视化应用`** (Managed VizApp)开发、发布和使用的标准化流程
1211
* ***交互标准化***:Visualization 支持权限可控的标准化交互能力,如筛选、钻取、联动、跳转、弹窗、分享、下载、发送等
1312
* ***插件标准化***:在 Source、Chart、Visualization 层提供标准化可插拔扩展接口或SDK规范,支持开放扩展或按需定制
1413

15-
* **可塑 Integrability**
16-
17-
datart 可作为独立平台使用,但不仅限于此,为了更好支持快速构建定制化数据应用系统,datart 可以很容易被整合、被内嵌至其他三方系统,承担数据可视化部分功能。通过 datart 的登录对接能力、权限对接能力、Source 层对接能力和 Visualization 层分享、SDK等能力,用户可以基于 datart 平台对接或二开以快速满足业务系统定制化需求。
18-
19-
* **智能 Augmented Analytics**
14+
#### **可塑 Integrability**
15+
datart 可作为独立平台使用,但不仅限于此,为了更好支持快速构建定制化数据应用系统,datart 可以很容易被整合、被内嵌至其他三方系统,承担数据可视化部分功能。通过 datart 的登录对接能力、权限对接能力、Source 层对接能力和 Visualization 层分享、SDK等能力,用户可以基于 datart 平台对接或二开以快速满足业务系统定制化需求。
2016

21-
传统BI产品只能对已有数据进行勘察,而现代BI产品更加重视对数据延展洞见,以形成完整数据分析洞察能力,或[增强分析](https://www.gartner.com/en/information-technology/glossary/augmented-analytics)能力。datart 会在平台层面提供可扩展数据增强分析能力,基于数据通过可视化方式不仅回答 What,并且可以回答 Why。
17+
#### **智能 Augmented Analytics**
18+
传统BI产品只能对已有数据进行勘察,而现代BI产品更加重视对数据延展洞见,以形成完整数据分析洞察能力,或[增强分析](https://www.gartner.com/en/information-technology/glossary/augmented-analytics)能力。datart 会在平台层面提供可扩展数据增强分析能力,基于数据通过可视化方式不仅回答 What,并且可以回答 Why。
2219

2320
### 功能特性 Features
2421
![](https://running-elephant.github.io/datart-docs/images/about/datart-vs-davinci.png)
@@ -55,7 +52,7 @@ datart 是新一代数据可视化开放平台,支持各类企业数据可视
5552
![](https://running-elephant.github.io/datart-docs/images/about/wechat-group.jpeg)
5653

5754
#### 插件示例仓库
58-
[示例仓库 v1.0.0](https://github.com/Cuiyansong/datart-extension-charts)
55+
[示例仓库 v1.0.0](https://github.com/running-elephant/datart-extension-charts)
5956

6057
### 参与贡献 Contributing
6158
非常欢迎和感谢参与贡献,如何参与可参见 [Contributing]()

README_zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ datart 是新一代数据可视化开放平台,支持各类企业数据可视
4242
参见 [User Guide](http://running-elephant.gitee.io/datart-docs/docs/source.html)
4343

4444
### 最新版本 Latest Release
45-
参见 [Latest Release](https://gitee.com/running-elephant/datart/releases/1.0.0-alpha.3)
45+
参见 [Latest Release](https://gitee.com/running-elephant/datart/releases)
4646

4747
## Community
4848
### 社区支持 Support

bin/h2/datart.demo.mv.db

-36 KB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE `datachart`
2+
MODIFY COLUMN `config` mediumtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `org_id`;

core/pom.xml

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>datart-parent</artifactId>
77
<groupId>datart</groupId>
8-
<version>1.0.0-alpha.3</version>
8+
<version>1.0.0-beta.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

@@ -157,39 +157,45 @@
157157
<build>
158158
<plugins>
159159
<!--MyBatis generator-->
160+
<!-- <plugin>-->
161+
<!-- <groupId>org.mybatis.generator</groupId>-->
162+
<!-- <artifactId>mybatis-generator-maven-plugin</artifactId>-->
163+
<!-- <version>1.4.0</version>-->
164+
<!-- <configuration>-->
165+
<!-- <configurationFile>src/main/resources/mybatis-generator/generatorConfig.xml</configurationFile>-->
166+
<!-- <verbose>true</verbose>-->
167+
<!-- <overwrite>true</overwrite>-->
168+
<!-- <includeAllDependencies>true</includeAllDependencies>-->
169+
<!-- </configuration>-->
170+
<!-- <executions>-->
171+
<!-- <execution>-->
172+
<!-- <id>Generate MyBatis Artifacts</id>-->
173+
<!-- <goals>-->
174+
<!-- <goal>generate</goal>-->
175+
<!-- </goals>-->
176+
<!-- <phase>install</phase>-->
177+
<!-- </execution>-->
178+
<!-- </executions>-->
179+
<!-- <dependencies>-->
180+
<!-- <dependency>-->
181+
<!-- <groupId>mysql</groupId>-->
182+
<!-- <artifactId>mysql-connector-java</artifactId>-->
183+
<!-- <version>5.1.49</version>-->
184+
<!-- </dependency>-->
185+
<!-- <dependency>-->
186+
<!-- <groupId>datart</groupId>-->
187+
<!-- <artifactId>datart-core</artifactId>-->
188+
<!-- <version>${project.version}</version>-->
189+
<!-- </dependency>-->
190+
<!-- </dependencies>-->
191+
<!-- </plugin>-->
160192
<plugin>
161-
<groupId>org.mybatis.generator</groupId>
162-
<artifactId>mybatis-generator-maven-plugin</artifactId>
163-
<version>1.4.0</version>
193+
<groupId>org.apache.maven.plugins</groupId>
194+
<artifactId>maven-compiler-plugin</artifactId>
164195
<configuration>
165-
<configurationFile>src/main/resources/mybatis-generator/generatorConfig.xml</configurationFile>
166-
<verbose>true</verbose>
167-
<overwrite>true</overwrite>
168-
<includeAllDependencies>true</includeAllDependencies>
196+
<parameters>true</parameters>
169197
</configuration>
170-
<executions>
171-
<execution>
172-
<id>Generate MyBatis Artifacts</id>
173-
<goals>
174-
<goal>generate</goal>
175-
</goals>
176-
<phase>install</phase>
177-
</execution>
178-
</executions>
179-
<dependencies>
180-
<dependency>
181-
<groupId>mysql</groupId>
182-
<artifactId>mysql-connector-java</artifactId>
183-
<version>5.1.49</version>
184-
</dependency>
185-
<dependency>
186-
<groupId>datart</groupId>
187-
<artifactId>datart-core</artifactId>
188-
<version>${project.version}</version>
189-
</dependency>
190-
</dependencies>
191198
</plugin>
192-
193199
</plugins>
194200

195201
</build>

core/src/main/java/datart/core/base/consts/Const.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
package datart.core.base.consts;
2020

2121

22+
import java.util.regex.Pattern;
23+
2224
public class Const {
2325

2426
public static final byte VIZ_PUBLISH = 2;
@@ -32,8 +34,7 @@ public class Const {
3234
/**
3335
* 正则表达式
3436
*/
35-
36-
public static final String REG_EMAIL = "^[a-z_0-9.-]{1,64}@([a-z0-9-]{1,200}.){1,5}[a-z]{1,6}$";
37+
public static final String REG_EMAIL = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$";
3738

3839
public static final String REG_USER_PASSWORD = ".{6,20}";
3940

@@ -45,12 +46,16 @@ public class Const {
4546
*/
4647
//默认的变量引用符号
4748
public static final String DEFAULT_VARIABLE_QUOTE = "$";
49+
//变量匹配符
50+
public static final Pattern VARIABLE_PATTERN = Pattern.compile("\\$\\S+\\$");
51+
//变量正则模板
52+
public static final String VARIABLE_PATTERN_TEMPLATE = "\\$%s\\$";
4853

4954
/**
5055
* 权限变量
5156
*/
52-
//管理员权限,拥有所有数据的权限
53-
public static final String ALL_PERMISSION = "@ALL_PERMISSION@";
57+
// //管理员权限,拥有所有数据的权限
58+
// public static final String ALL_PERMISSION = "@ALL_PERMISSION@";
5459

5560
/**
5661
* Token Key
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Datart
3+
* <p>
4+
* Copyright 2021
5+
* <p>
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
* <p>
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
* <p>
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
package datart.core.base.consts;
19+
20+
public enum PlatformSettings {
21+
22+
// download record limit
23+
DOWNLOAD_RECORD_LIMIT
24+
25+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Datart
3+
* <p>
4+
* Copyright 2021
5+
* <p>
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
* <p>
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
* <p>
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
package datart.core.base.exception;
20+
21+
import lombok.Data;
22+
import lombok.EqualsAndHashCode;
23+
24+
@EqualsAndHashCode(callSuper = true)
25+
@Data
26+
public class SqlParseError extends BaseException {
27+
28+
public SqlParseError(Throwable e) {
29+
super(e);
30+
}
31+
32+
private String sql;
33+
34+
private String dbType;
35+
36+
public String toString() {
37+
return "SQL:" + sql + " \r\n" +
38+
"DB: " + dbType + " \r\n" +
39+
"EXCEPTION:" + getMessage();
40+
}
41+
42+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package datart.core.base.processor;
2+
3+
public interface ExtendProcessor {
4+
}

0 commit comments

Comments
 (0)