Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
e854fadb
Commit
e854fadb
authored
Jun 23, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into develop
parents
ff4a79df
60da730c
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
8 deletions
+18
-8
docs/sources/installation/configuration.md
+6
-0
pkg/api/api.go
+1
-0
pkg/tsdb/mysql/mysql.go
+5
-1
public/app/core/components/form_dropdown/form_dropdown.ts
+1
-0
public/app/features/dashboard/save_modal.ts
+1
-2
public/app/features/panel/metrics_tab.ts
+0
-3
public/sass/components/_gf-form.scss
+3
-0
public/sass/components/_tabbed_view.scss
+1
-2
No files found.
docs/sources/installation/configuration.md
View file @
e854fadb
...
...
@@ -203,6 +203,12 @@ For MySQL, use either `true`, `false`, or `skip-verify`.
(MySQL only) The common name field of the certificate used by the
`mysql`
server. Not necessary if
`ssl_mode`
is set to
`skip-verify`
.
### max_idle_conn
The maximum number of connections in the idle connection pool.
### max_open_conn
The maximum number of open connections to the database.
<hr
/>
## [security]
...
...
pkg/api/api.go
View file @
e854fadb
...
...
@@ -304,6 +304,7 @@ func (hs *HttpServer) registerRoutes() {
},
reqEditorRole
)
r
.
Get
(
"/annotations"
,
wrap
(
GetAnnotations
))
r
.
Post
(
"/annotations/mass-delete"
,
reqOrgAdmin
,
bind
(
dtos
.
DeleteAnnotationsCmd
{}),
wrap
(
DeleteAnnotations
))
r
.
Group
(
"/annotations"
,
func
()
{
r
.
Post
(
"/"
,
bind
(
dtos
.
PostAnnotationsCmd
{}),
wrap
(
PostAnnotation
))
...
...
pkg/tsdb/mysql/mysql.go
View file @
e854fadb
...
...
@@ -183,6 +183,7 @@ func (e MysqlExecutor) getTypedRowData(types []*sql.ColumnType, rows *core.Rows)
values
:=
make
([]
interface
{},
len
(
types
))
for
i
,
stype
:=
range
types
{
e
.
log
.
Info
(
"type"
,
"type"
,
stype
)
switch
stype
.
DatabaseTypeName
()
{
case
mysql
.
FieldTypeNameTiny
:
values
[
i
]
=
new
(
int8
)
...
...
@@ -209,7 +210,7 @@ func (e MysqlExecutor) getTypedRowData(types []*sql.ColumnType, rows *core.Rows)
case
mysql
.
FieldTypeNameDateTime
:
values
[
i
]
=
new
(
time
.
Time
)
case
mysql
.
FieldTypeNameTime
:
values
[
i
]
=
new
(
time
.
Duration
)
values
[
i
]
=
new
(
string
)
case
mysql
.
FieldTypeNameYear
:
values
[
i
]
=
new
(
int16
)
case
mysql
.
FieldTypeNameNULL
:
...
...
@@ -307,6 +308,9 @@ func (s *stringStringScan) Update(rows *sql.Rows) error {
return
err
}
s
.
time
=
null
.
FloatFromPtr
(
nil
)
s
.
value
=
null
.
FloatFromPtr
(
nil
)
for
i
:=
0
;
i
<
s
.
columnCount
;
i
++
{
if
rb
,
ok
:=
s
.
rowPtrs
[
i
]
.
(
*
sql
.
RawBytes
);
ok
{
s
.
rowValues
[
i
]
=
string
(
*
rb
)
...
...
public/app/core/components/form_dropdown/form_dropdown.ts
View file @
e854fadb
...
...
@@ -30,6 +30,7 @@ export class FormDropdownCtrl {
optionCache
:
any
;
lookupText
:
boolean
;
/** @ngInject **/
constructor
(
private
$scope
,
$element
,
private
$sce
,
private
templateSrv
,
private
$q
)
{
this
.
inputElement
=
$element
.
find
(
'input'
).
first
();
this
.
linkElement
=
$element
.
find
(
'a'
).
first
();
...
...
public/app/features/dashboard/save_modal.ts
View file @
e854fadb
...
...
@@ -29,8 +29,7 @@ const template = `
ng-model="ctrl.message"
ng-model-options="{allowInvalid: true}"
ng-maxlength="this.max"
autocomplete="off"
required />
autocomplete="off" />
<small class="gf-form-hint-text muted" ng-cloak>
<span ng-class="{'text-error': ctrl.saveForm.message.$invalid && ctrl.saveForm.message.$dirty }">
{{ctrl.message.length || 0}}
...
...
public/app/features/panel/metrics_tab.ts
View file @
e854fadb
///<reference path="../../headers/common.d.ts" />
import
_
from
'lodash'
;
//import {coreModule} from 'app/core/core';
import
{
DashboardModel
}
from
'../dashboard/model'
;
export
class
MetricsTabCtrl
{
...
...
@@ -32,7 +31,6 @@ export class MetricsTabCtrl {
}
this
.
addQueryDropdown
=
{
text
:
'Add Query'
,
value
:
null
,
fake
:
true
};
// update next ref id
this
.
panelCtrl
.
nextRefId
=
this
.
dashboard
.
getNextQueryLetter
(
this
.
panel
);
}
...
...
@@ -80,4 +78,3 @@ export function metricsTabDirective() {
};
}
//coreModule.directive('metricsTab', metricsTabDirective);
public/sass/components/_gf-form.scss
View file @
e854fadb
...
...
@@ -115,6 +115,9 @@ $gf-form-margin: 0.25rem;
@include
border-radius
(
$input-border-radius-sm
);
@include
box-shadow
(
$input-box-shadow
);
transition
:
border-color
ease-in-out
.15s
,
box-shadow
ease-in-out
.15s
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
// Unstyle the caret on `<select>`s in IE10+.
&
:
:-
ms-expand
{
...
...
public/sass/components/_tabbed_view.scss
View file @
e854fadb
...
...
@@ -9,7 +9,6 @@
padding
:
0
;
.tabbed-view-header
{
/* padding: 0; */
background-color
:
$body-bg
;
padding
:
1
.5em
1rem
0
1rem
;
}
...
...
@@ -48,7 +47,7 @@
}
.tabbed-view-body
{
padding
:
$spacer
*
2
;
padding
:
$spacer
*
2
$spacer
;
min-height
:
250px
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment