Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
shzlw committed Jun 7, 2019
1 parent 205a5c4 commit f1b8dcf
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 15 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# Poli

[![Version](https://img.shields.io/badge/Version-0.4.0-0065FF.svg)](#)
[![Version](https://img.shields.io/badge/Version-0.5.0-0065FF.svg)](#)
[![license: MIT](https://img.shields.io/badge/license-MIT-orange.svg)](https://opensource.org/licenses/MIT)
[![Build Status](https://travis-ci.org/shzlw/poli.svg?branch=master)](https://travis-ci.org/shzlw/poli)
[![codecov](https://codecov.io/gh/shzlw/poli/branch/master/graph/badge.svg)](https://codecov.io/gh/shzlw/poli)

Poli is an easy-to-use SQL reporting application.

![poli v0.3.0](https://github.com/shzlw/poli/blob/master/docs/_images/poli_0.3.0.gif)
![poli v0.5.0](https://github.com/shzlw/poli/blob/master/docs/_images/poli_0.5.0.gif)

## Features

* Easy deployment & setup
* Self-hosted, easy deployment & setup
* Connect to any database supporting JDBC drivers
* Build chart and filter in Dynamic SQL query
* flexible report and chart styling
* Interactive reports with auto refresh, drill through, fullscreen, embedded and more

## Download
Expand Down
3 changes: 2 additions & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

> An easy-to-use SQL reporting application
- Easy deployment & setup
- Self-hosted, easy deployment & setup
- Connect to any database supporting JDBC drivers
- Build chart and filter in Dynamic SQL query
- flexible report and chart styling
- Interactive reports with auto refresh, drill through, fullscreen, embedded and more

[GitHub](https://github.com/shzlw/poli)
Expand Down
Binary file removed docs/_images/poli_0.3.0.gif
Binary file not shown.
Binary file added docs/_images/poli_0.5.0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/data-source.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Data Source

Poli connects to database through the JDBC interface. You can try connect to any databases that provides JDBC drivers. To configure Poli to connect to different databases, two steps are required.
Poli connects to database through the JDBC interface. You can try connect to any databases that supports JDBC drivers. To configure Poli to connect to different databases, two steps are required.

## Download the JDBC jar file

Expand Down
5 changes: 4 additions & 1 deletion docs/report-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ Poli supports three types of components.

* Filter
* Slicer

> Slicer should always return a list of values in the query.
* Single value

## Dynamic SQL query with parameters

To use this feature, you would need to create at least one filter and one chart component. Here is how it works.

1. Create a filter and define a query parameter. This serves as a placeholder for a real value in the query string.
1. Create a filter and define a query parameter. The query parameter serves as a placeholder for a real value in the query string.
2. Create a chart and use the query parameter from the fitler in the SQL query.
3. Enter/Select the value in the filter and click apply filter button to see the chart data change accordingly.

Expand Down
2 changes: 1 addition & 1 deletion docs/report.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ There are four url search parameters in this example.

* year=2019

Optional. Year is the query parameter. 2019 is the value. Any components that use :year parameter in the query will be reactive.
Optional. Year is the query parameter. 2019 is the value. Any components that use :year parameter in the query will become reactive.

For example:
```sql
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.shzlw.poli</groupId>
<artifactId>poli</artifactId>
<packaging>jar</packaging>
<version>0.4.0</version>
<version>0.5.0</version>

<properties>
<java.version>1.8</java.version>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/shzlw/poli/util/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public final class Constants {

private Constants() {}

public static final String CURRENT_VERSION = "0.4.0";
public static final String CURRENT_VERSION = "0.5.0";

public static final String SUCCESS = "success";
public static final String GOOD = "";
Expand Down
2 changes: 1 addition & 1 deletion start.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
java -jar poli-0.4.0.jar --spring.config.name=application,poli
java -jar poli-0.5.0.jar --spring.config.name=application,poli
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
java -jar poli-0.4.0.jar --spring.config.name=application,poli
java -jar poli-0.5.0.jar --spring.config.name=application,poli
2 changes: 1 addition & 1 deletion web-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "poli-web-app",
"version": "0.4.0",
"version": "0.5.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.17",
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/components/ComponentViewPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ class ComponentViewPanel extends React.Component {
width,
height
} = selectedComponent;
if (x <= 0 || y <= 0 || width < 50 || height < 50 || height > this.props.height) {
if (x < 0 || y < 0 || width < 50 || height < 50 || height > this.props.height) {
Toast.showError('Invalid position value');
return;
}
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/components/GridItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class GridItem extends React.Component {
)}

{ isEditMode && (
<div className="grid-edit-panel">
<div className="grid-edit-panel" style={{zIndex: 20}}>
<div className="cursor-pointer inline-block" style={{marginRight: '3px'}} onClick={() => this.editComponent(id)}>
<FontAwesomeIcon icon="wrench" fixedWidth />
</div>
Expand Down
3 changes: 2 additions & 1 deletion web-app/src/components/GridLayout.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
position: absolute;
overflow-x: hidden;
overflow-y: hidden;
background-color: #EBECF0;
display: flex;
flex-flow: column;
height: 100%;
Expand Down Expand Up @@ -50,6 +49,7 @@
top: 0px;
right: 0px;
background-color: transparent;
z-index: 10;
}

.grid-resizable {
Expand All @@ -59,4 +59,5 @@
right: 0;
bottom: 0;
cursor: se-resize;
z-index: 10;
}

0 comments on commit f1b8dcf

Please sign in to comment.