Refactor heatmap to vue component (#5401)
This commit is contained in:
parent
c03a9b3e42
commit
e09fe48773
18 changed files with 258 additions and 384 deletions
|
@ -301,7 +301,6 @@ var (
|
|||
MaxDisplayFileSize int64
|
||||
ShowUserEmail bool
|
||||
DefaultTheme string
|
||||
HeatmapColorRange string
|
||||
|
||||
Admin struct {
|
||||
UserPagingNum int
|
||||
|
@ -328,7 +327,6 @@ var (
|
|||
ThemeColorMetaTag: `#6cc644`,
|
||||
MaxDisplayFileSize: 8388608,
|
||||
DefaultTheme: `gitea`,
|
||||
HeatmapColorRange: `['#f4f4f4', '#459928']`,
|
||||
Admin: struct {
|
||||
UserPagingNum int
|
||||
RepoPagingNum int
|
||||
|
|
|
@ -193,9 +193,6 @@ func NewFuncMap() []template.FuncMap {
|
|||
"DefaultTheme": func() string {
|
||||
return setting.UI.DefaultTheme
|
||||
},
|
||||
"HeatmapColorRange": func() string {
|
||||
return setting.UI.HeatmapColorRange
|
||||
},
|
||||
"dict": func(values ...interface{}) (map[string]interface{}, error) {
|
||||
if len(values) == 0 {
|
||||
return nil, errors.New("invalid dict call")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue