Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
13fc7d1
去掉菜单栏
kangaroo1122 May 12, 2022
b1456ac
修复Boolean值无法显示的问题
kangaroo1122 May 12, 2022
3a62d6d
版本更新
kangaroo1122 May 12, 2022
8604713
控制台查询结果可复制
kangaroo1122 May 13, 2022
82ecdbe
内容区域自适应最大高度
kangaroo1122 May 13, 2022
b694b38
优化
kangaroo1122 May 13, 2022
d3a8e76
存储切换为electron-store
kangaroo1122 May 14, 2022
bf105f0
界面优化
kangaroo1122 May 14, 2022
098a717
建库update参数支持
kangaroo1122 May 15, 2022
41ca575
支持修改数据库连接信息、连接失败不再删除
kangaroo1122 Jun 2, 2022
3998194
密码支持显示密码
kangaroo1122 Jun 9, 2022
cd91995
样式优化
kangaroo1122 Jun 9, 2022
731dfda
版本升级
kangaroo1122 Jul 3, 2022
4c47757
feat: adapt both TDengine 2.x and 3.x
ericyangpan Sep 27, 2022
6a2a298
fix: update electron to latest version and fix package-lock.json
ericyangpan Sep 27, 2022
3e42e84
fix: adapt show super table
ericyangpan Sep 27, 2022
a6b20df
fix: add multi target of mac
ericyangpan Sep 30, 2022
13828bc
feat: set timeout to 10s
ericyangpan Sep 30, 2022
d93b926
fix: change links
ericyangpan Dec 12, 2022
cd8e888
fix: change links
ericyangpan Dec 12, 2022
6e788c4
Merge pull request #1 from arielyang/main
kangaroo1122 Dec 14, 2022
1e5f83c
readme
kangaroo1122 Jan 22, 2024
dada2c9
数据查询 表头和分页栏固定
kangaroo1122 Jan 22, 2024
219ad73
readme
kangaroo1122 Jan 22, 2024
84d4e1d
版本升级
kangaroo1122 Jan 22, 2024
f8348a8
代码优化
kangaroo1122 Jun 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> TDengineGUI is a useful and simple desktop manager for [TDengine](https://github.com/taosdata/TDengine), compatible with Linux, windows, mac. It helps developer to observe and manipulate data easier when they use TDengine as their Alot big data platform.

[中文版](https://github.com/skye0207/TDengineGUI/blob/main/README_.md)
[中文版](https://github.com/kangaroo1122/TDengineGUI/blob/main/README_.md)
## Features
- Link to TDengine, create and drop databases
- show tables and surpertables, select data.
Expand All @@ -12,19 +12,19 @@

### Windows:

Download latest [exe](https://github.com/skye0207/TDengineGUI/releases/tag/v1.0.0) package from [release](https://github.com/skye0207/TDengineGUI/releases/tag/v1.0.0)[or [gitee](https://gitee.com/skyebaobao/TDengineGUI/releases/v1.0.0) in China].
Download latest [exe](https://github.com/kangaroo1122/TDengineGUI/releases/tag/1.0.3) package from [release](https://github.com/kangaroo1122/TDengineGUI/releases/tag/1.0.3)[or [gitee](https://gitee.com/skyebaobao/TDengineGUI/releases/1.0.3) in China].

### Mac:
Download latest [dmg](https://github.com/skye0207/TDengineGUI/releases/tag/v1.0.0) package from [release](https://github.com/skye0207/TDengineGUI/releases/tag/v1.0.0).
Download latest [dmg](https://github.com/kangaroo1122/TDengineGUI/releases/tag/1.0.3) package from [release](https://github.com/kangaroo1122/TDengineGUI/releases/tag/1.0.3).

### Linux:
Download latest [AppImage](https://github.com/skye0207/TDengineGUI/releases/tag/v1.0.0) package from [release](https://github.com/skye0207/TDengineGUI/releases/tag/v1.0.0) [or [gitee](https://gitee.com/skyebaobao/TDengineGUI/releases/v1.0.0) in China].
Download latest [AppImage](https://github.com/kangaroo1122/TDengineGUI/releases/tag/1.0.3) package from [release](https://github.com/kangaroo1122/TDengineGUI/releases/tag/1.0.3) [or [gitee](https://gitee.com/skyebaobao/TDengineGUI/releases/1.0.3) in China].


## Dev Build Setup:
```bash
# clone code
git clone https://github.com/skye0207/TDengineGUI.git
git clone https://github.com/kangaroo1122/TDengineGUI.git

cd TDengineGUI

Expand All @@ -45,46 +45,46 @@ npm run build

- TDengineGUI reconds previous connections.

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/1.png)
![Image text](_img/1.png)

- You also could add a new server to manage by clicking the "新建连接" button and providing ip,port,username and password(root:taosdata).

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/2.png)
![Image text](_img/2.png)

- Drop a database.

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/3.png)
![Image text](_img/3.png)

- Create databases. Specific attributes refering [tdengine document](https://www.taosdata.com/cn/documentation/taos-sql#management)

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/5.png)
![Image text](_img/5.png)

- Delete a linked server.

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/6.png)
![Image text](_img/6.png)

- Select a database and enter main panel. You could click "切换" button to switch database.

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/7.png)
![Image text](_img/7.png)

- Click a table to query data.

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/8.png)
![Image text](_img/8.png)

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/11.png)
![Image text](_img/11.png)

- Query data by filtering the timestamp.

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/9.png)
![Image text](_img/9.png)

- Set data filter.

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/10.png)
![Image text](_img/10.png)

- A simple console to execute the SQL statements. SQL will execute on the current database by default, so you don't need to add the database name. But you can also operate on the other database by using "databaseName.tableName".

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/12.png)
![Image text](_img/12.png)

- Simplely display database properties. More features will be developed in the future.

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/14.png)
![Image text](_img/14.png)
32 changes: 16 additions & 16 deletions README_.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> TDengineGUI是一个基于electron构建的,针对时序数据库[TDengine](https://github.com/taosdata/TDengine)的图形化管理工具。具有跨平台、易于使用、版本适应性强等特点。

[English](https://github.com/skye0207/TDengineGUI/blob/main/README.md)
[English](https://github.com/kangaroo1122/TDengineGUI/blob/main/README.md)
## 当前版本功能
- 通过TDengine restful接口连接到数据库,使用基本不受服务器版本升级影响。
- 数据库添加删除操作,显示数据库属性。
Expand All @@ -12,12 +12,12 @@
## 如何获取

### 下载最新版可执行文件:
[release](https://github.com/skye0207/TDengineGUI/releases/tag/v1.0.0).
[release](https://github.com/kangaroo1122/TDengineGUI/releases/tag/1.0.3).


## 通过源代码运行开发版本:

- 克隆项目: git clone https://github.com/skye0207/TDengineGUI.git
- 克隆项目: git clone https://github.com/kangaroo1122/TDengineGUI.git
- 安装依赖: npm install
- 启动开发版本: npm run start
- 生成桌面应用(可选): npm run build (生成在dist文件夹下)
Expand All @@ -26,52 +26,52 @@

- 打开软件后,界面左侧会显示需要管理的数据库服务器列表和服务器中数据库列表,同时显示数据库服务器的版本号。

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/1.png)
![Image text](_img/1.png)

- 可以通过“新建连接”按钮,添加新的服务器进行管理。需要提供数据库服务器的ip地址、restful服务的端口号(默认为6041)、连接服务器的用户名和密码(默认为root:taosdata)

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/2.png)
![Image text](_img/2.png)

- 可以通过点击数据库后的删除图标,进行删除数据库操作。

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/3.png)
![Image text](_img/3.png)

- 可以通过点击添加数据库图标,进行添加数据库操作。可以在添加时选择数据库属性(具体属性含义请参考[tdengine官方文档](https://www.taosdata.com/cn/documentation/taos-sql#management))

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/5.png)
![Image text](_img/5.png)

- 可以通过点击服务器连接后的删除图标,进行删除数据库连接操作。

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/6.png)
![Image text](_img/6.png)

- 选择要操作的数据库后,即可进入当前数据库操作界面。可以通过点击“切换”按钮调出数据库导航栏,切换要操作的数据库。当前数据库操作界面中分 超级表、表、控制台、数据库属性四个标签页。每个标签页都针对当前数据库进行显示与操作。

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/7.png)
![Image text](_img/7.png)

- 超级表(表)标签页中,左侧为超级表(表)的列表,可以进行删除与检索操作(添加、修改等操作后续版本将提供,当前版本如需增加数据表或者插入数据请使用控制台输入命令完成)。左侧则显示当前数据表的数据。

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/8.png)
![Image text](_img/8.png)

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/11.png)
![Image text](_img/11.png)

- 可以对表数据进行时间段选择。

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/9.png)
![Image text](_img/9.png)

- 可以对表数据进行时间字段过滤、排序、分页等操作。

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/10.png)
![Image text](_img/10.png)

- 控制台中可以输入sql命令运行,并显示restful接口原始返回结果。控制台中输入的命令默认针对当前数据库进行操作,一般情况下不需要在表名称前附加数据库名称。但也可以通过“数据库名.表名”的方式操作其他数据库中的表。(结果显示方式,以后版本将改进)

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/12.png)
![Image text](_img/12.png)

- 数据库属性显示当前数据库的一些基础属性,后期版本将加入属性修改功能。

![Image text](https://github.com/skye0207/TDengineGUI/blob/main/_img/14.png)
![Image text](_img/14.png)

现有bug:
- [ ] 数据表控件高度需要根据每页条目数量自动调整,现在每页20条时需要上下滚动。
- [x] 数据表控件高度需要根据每页条目数量自动调整,现在每页20条时需要上下滚动。
- [ ] 由于TDengine数据库对大数据集排序操作有限制,数据量大的情况下,时间倒序配置下检索数据会报错。


Expand Down
2 changes: 1 addition & 1 deletion datatest/test_alterdb.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'


var TaosRestful = require('../renderer/taosrestful.js')
var TaosRestful = require('../renderer/js/taosrestful.js')

var tr = new TaosRestful("121.36.56.117","6041","root","msl110918")

Expand Down
2 changes: 1 addition & 1 deletion datatest/test_createdb.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'


var TaosRestful = require('../renderer/taosrestful.js')
var TaosRestful = require('../renderer/js/taosrestful.js')

var tr = new TaosRestful("121.36.56.117","6041","root","msl110918")

Expand Down
2 changes: 1 addition & 1 deletion datatest/test_distable.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'


var TaosRestful = require('../renderer/taosrestful.js')
var TaosRestful = require('../renderer/js/taosrestful.js')

var tr = new TaosRestful("121.36.56.117","6041","root","msl110918")

Expand Down
2 changes: 1 addition & 1 deletion datatest/test_droptable.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'


var TaosRestful = require('../renderer/taosrestful.js')
var TaosRestful = require('../renderer/js/taosrestful.js')

var tr = new TaosRestful("121.36.56.117","6041","root","msl110918")

Expand Down
2 changes: 1 addition & 1 deletion datatest/test_getversion.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'


var TaosRestful = require('../renderer/taosrestful.js')
var TaosRestful = require('../renderer/js/taosrestful.js')

var tr = new TaosRestful("121.36.56.117","6041","root","msl110918")

Expand Down
4 changes: 2 additions & 2 deletions datatest/test_insertdata.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'


var TaosRestful = require('../renderer/taosrestful.js')
var TaosRestful = require('../renderer/js/taosrestful.js')

var tr = new TaosRestful("121.36.56.117","6041","root","msl110918")

Expand All @@ -12,4 +12,4 @@ tr.insertData('person100',{'td':Date.now(),'name5':1.2},'test3').then(a =>
tr.useDatabase('test3')
tr.insertData('person100',{'td':Date.now(),'name5':1.2}).then(a =>
console.log(a)
)
)
2 changes: 1 addition & 1 deletion datatest/test_rawsql.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'


var TaosRestful = require('../renderer/taosrestful.js')
var TaosRestful = require('../renderer/js/taosrestful.js')

var tr = new TaosRestful("121.36.56.117","6041","root","msl110918")

Expand Down
4 changes: 2 additions & 2 deletions datatest/test_selectdata.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'


var TaosRestful = require('../renderer/taosrestful.js')
var TaosRestful = require('../renderer/js/taosrestful.js')

var tr = new TaosRestful("121.36.56.117","6041","root","msl110918")

Expand All @@ -22,4 +22,4 @@ tr.selectData('node_7',['ts','pjxdy1'],null,100,1000,null,'dianli1','2021-01-12

tr.countData('node_7',null,'dianli1','2021-01-12 20:42:30.275','2021-03-12 20:42:30.275').then(a =>
console.log(a)
)
)
2 changes: 1 addition & 1 deletion datatest/test_showdb.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'


var TaosRestful = require('../renderer/taosrestful.js')
var TaosRestful = require('../renderer/js/taosrestful.js')

var tr = new TaosRestful("121.36.56.117","6041","root","msl110918",1)

Expand Down
4 changes: 2 additions & 2 deletions datatest/test_showtable.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'


var TaosRestful = require('../renderer/taosrestful.js')
var TaosRestful = require('../renderer/js/taosrestful.js')

var tr = new TaosRestful("121.36.56.117","6041","root","msl110918")

Expand All @@ -23,4 +23,4 @@ tr.showTables('dianli1','1').then(a =>
// tr.useDatabase('test3')
// tr.showTables().then(a =>
// console.log(a)
// )
// )
17 changes: 13 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
const { app, BrowserWindow } = require('electron')

process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true';

const Store = require('electron-store');
Store.initRenderer();

function createWindow () {
const win = new BrowserWindow({
autoHideMenuBar: true,
width: 1200,
height: 880,
height: 900,
// show: false, //关闭窗口显示
webPreferences: {
nodeIntegration: true
}
})

win.loadFile('./renderer/index.html')
// win.maximize() //设置最大化
// win.show() //手动显示窗口

//打开调试窗口
// win.webContents.openDevTools()
}

app.whenReady().then(createWindow)



Loading