Skip to content

Commit

Permalink
feat(dashboard): 大盘支持嵌入全屏、整行、指定宽高的图表 #127
Browse files Browse the repository at this point in the history
  • Loading branch information
aide-cloud committed May 7, 2024
1 parent 5b394bd commit 8023301
Show file tree
Hide file tree
Showing 31 changed files with 944 additions and 608 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ api: errors validate
--openapi_out=fq_schema_naming=true,default_response=false:./third_party/swagger_ui \
$(API_PROTO_FILES)

.PHONY: stringer
stringer:
go generate ./...; #生成值对象

.PHONY: build
# build
build:
Expand Down
82 changes: 73 additions & 9 deletions api/base.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions api/base.proto
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,18 @@ enum DatasourceType {

// loki
DATASOURCE_TYPE_LOKI = 6;
}

enum ChartType {
// UNKNOWN 未知, 用于默认值
CHART_TYPE_UNKNOWN = 0;

// 全屏
CHART_TYPE_FULLSCREEN = 1;

// 整行
CHART_TYPE_ROW = 2;

// 单个
CHART_TYPE_COL = 3;
}
Loading

0 comments on commit 8023301

Please sign in to comment.