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
1113081a
Commit
1113081a
authored
Oct 30, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring: moving components -> core
parent
39bc3cb5
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
35 additions
and
151 deletions
+35
-151
public/app/app.js
+0
-1
public/app/components/require.config.js
+1
-3
public/app/controllers/console-ctrl.js
+0
-108
public/app/controllers/grafanaCtrl.js
+3
-3
public/app/controllers/invitedCtrl.js
+1
-1
public/app/controllers/loginCtrl.js
+1
-1
public/app/controllers/metricKeys.js
+1
-1
public/app/controllers/search.js
+1
-1
public/app/controllers/sidemenuCtrl.js
+1
-1
public/app/controllers/signupCtrl.ts
+1
-1
public/app/core/config.js
+0
-0
public/app/core/store.js
+0
-0
public/app/features/dashboard/dashboardCtrl.js
+1
-2
public/app/features/dashboard/dashboardNavCtrl.js
+1
-3
public/app/features/dashboard/playlistCtrl.js
+1
-1
public/app/features/dashboard/playlistSrv.js
+1
-1
public/app/features/dashboard/rowCtrl.js
+1
-1
public/app/features/dashboard/shareModalCtrl.js
+1
-1
public/app/features/dashboard/timeSrv.js
+2
-2
public/app/features/org/datasourceEditCtrl.js
+2
-2
public/app/features/org/newOrgCtrl.js
+1
-1
public/app/features/panel/panel_directive.js
+1
-1
public/app/features/panel/panel_srv.js
+1
-1
public/app/features/profile/changePasswordCtrl.js
+1
-1
public/app/features/profile/profileCtrl.js
+1
-1
public/app/features/profile/selectOrgCtrl.js
+1
-1
public/app/headers/common.d.ts
+1
-1
public/app/panels/dashlist/module.js
+1
-1
public/app/plugins/datasource/graphite/datasource.js
+1
-1
public/app/plugins/datasource/graphite/query_ctrl.js
+1
-1
public/app/services/backendSrv.js
+1
-1
public/app/services/contextSrv.js
+2
-2
public/app/services/datasourceSrv.js
+1
-1
public/test/test-main.js
+1
-3
No files found.
public/app/app.js
View file @
1113081a
...
...
@@ -3,7 +3,6 @@ define([
'jquery'
,
'lodash'
,
'require'
,
'config'
,
'bootstrap'
,
'angular-route'
,
'angular-sanitize'
,
...
...
public/app/components/require.config.js
View file @
1113081a
...
...
@@ -3,10 +3,8 @@ require.config({
baseUrl
:
'public'
,
paths
:
{
config
:
'app/components/config'
,
settings
:
'app/components/settings'
,
kbn
:
'app/components/kbn'
,
store
:
'app/components/store'
,
'extend-jquery'
:
'app/components/extend-jquery'
,
lodash
:
'app/components/lodash.extended'
,
...
...
@@ -61,7 +59,7 @@ require.config({
},
angular
:
{
deps
:
[
'jquery'
,
'config'
],
deps
:
[
'jquery'
],
exports
:
'angular'
},
...
...
public/app/controllers/console-ctrl.js
deleted
100644 → 0
View file @
39bc3cb5
define
([
'angular'
,
'lodash'
,
'moment'
,
'store'
],
function
(
angular
,
_
,
moment
,
store
)
{
'use strict'
;
var
module
=
angular
.
module
(
'grafana.controllers'
);
var
consoleEnabled
=
store
.
getBool
(
'grafanaConsole'
);
if
(
!
consoleEnabled
)
{
return
;
}
var
events
=
[];
function
ConsoleEvent
(
type
,
title
,
data
)
{
this
.
type
=
type
;
this
.
title
=
title
;
this
.
data
=
data
;
this
.
time
=
moment
().
format
(
'hh:mm:ss'
);
if
(
data
.
config
)
{
this
.
method
=
data
.
config
.
method
;
this
.
elapsed
=
(
new
Date
().
getTime
()
-
data
.
config
.
$grafana_timestamp
)
+
' ms'
;
if
(
data
.
config
.
params
&&
data
.
config
.
params
.
q
)
{
this
.
field2
=
data
.
config
.
params
.
q
;
}
if
(
_
.
isString
(
data
.
config
.
data
))
{
this
.
field2
=
data
.
config
.
data
;
}
if
(
data
.
status
!==
200
)
{
this
.
error
=
true
;
this
.
field3
=
data
.
data
;
}
if
(
_
.
isArray
(
data
.
data
))
{
this
.
extractTimeseriesInfo
(
data
.
data
);
}
}
}
ConsoleEvent
.
prototype
.
extractTimeseriesInfo
=
function
(
series
)
{
if
(
series
.
length
===
0
)
{
return
;
}
var
points
=
0
;
var
ok
=
false
;
if
(
series
[
0
].
datapoints
)
{
points
=
_
.
reduce
(
series
,
function
(
memo
,
val
)
{
return
memo
+
val
.
datapoints
.
length
;
},
0
);
ok
=
true
;
}
if
(
series
[
0
].
columns
)
{
points
=
_
.
reduce
(
series
,
function
(
memo
,
val
)
{
return
memo
+
val
.
points
.
length
;
},
0
);
ok
=
true
;
}
if
(
ok
)
{
this
.
field1
=
'('
+
series
.
length
+
' series'
;
this
.
field1
+=
', '
+
points
+
' points)'
;
}
};
module
.
config
(
function
(
$provide
,
$httpProvider
)
{
$provide
.
factory
(
'mupp'
,
function
(
$q
)
{
return
{
'request'
:
function
(
config
)
{
if
(
config
.
inspect
)
{
config
.
$grafana_timestamp
=
new
Date
().
getTime
();
}
return
config
;
},
'response'
:
function
(
response
)
{
if
(
response
.
config
.
inspect
)
{
events
.
push
(
new
ConsoleEvent
(
response
.
config
.
inspect
.
type
,
response
.
config
.
url
,
response
));
}
return
response
;
},
'requestError'
:
function
(
rejection
)
{
console
.
log
(
'requestError'
,
rejection
);
return
$q
.
reject
(
rejection
);
},
'responseError'
:
function
(
rejection
)
{
var
inspect
=
rejection
.
config
.
inspect
||
{
type
:
'error'
};
events
.
push
(
new
ConsoleEvent
(
inspect
.
type
,
rejection
.
config
.
url
,
rejection
));
return
$q
.
reject
(
rejection
);
}
};
});
$httpProvider
.
interceptors
.
push
(
'mupp'
);
});
module
.
controller
(
'ConsoleCtrl'
,
function
(
$scope
)
{
$scope
.
events
=
events
;
});
});
public/app/controllers/grafanaCtrl.js
View file @
1113081a
define
([
'angular'
,
'config'
,
'lodash'
,
'jquery'
,
'store'
,
'app/core/config'
,
'app/core/store'
,
],
function
(
angular
,
config
,
_
,
$
,
store
)
{
function
(
angular
,
_
,
$
,
config
,
store
)
{
"use strict"
;
var
module
=
angular
.
module
(
'grafana.controllers'
);
...
...
public/app/controllers/invitedCtrl.js
View file @
1113081a
define
([
'angular'
,
'config'
,
'
app/core/
config'
,
],
function
(
angular
,
config
)
{
'use strict'
;
...
...
public/app/controllers/loginCtrl.js
View file @
1113081a
define
([
'angular'
,
'config'
,
'
app/core/
config'
,
],
function
(
angular
,
config
)
{
'use strict'
;
...
...
public/app/controllers/metricKeys.js
View file @
1113081a
define
([
'angular'
,
'lodash'
,
'config'
'
app/core/
config'
],
function
(
angular
,
_
,
config
)
{
'use strict'
;
...
...
public/app/controllers/search.js
View file @
1113081a
define
([
'angular'
,
'lodash'
,
'config'
,
'
app/core/
config'
,
],
function
(
angular
,
_
,
config
)
{
'use strict'
;
...
...
public/app/controllers/sidemenuCtrl.js
View file @
1113081a
...
...
@@ -2,7 +2,7 @@ define([
'angular'
,
'lodash'
,
'jquery'
,
'config'
,
'
app/core/
config'
,
],
function
(
angular
,
_
,
$
,
config
)
{
'use strict'
;
...
...
public/app/controllers/signupCtrl.ts
View file @
1113081a
///<reference path="../headers/common.d.ts" />
import
angular
=
require
(
'angular'
);
import
config
=
require
(
'config'
);
import
config
=
require
(
'
app/core/
config'
);
var
module
=
angular
.
module
(
'grafana.controllers'
);
...
...
public/app/co
mponents
/config.js
→
public/app/co
re
/config.js
View file @
1113081a
File moved
public/app/co
mponents
/store.js
→
public/app/co
re
/store.js
View file @
1113081a
File moved
public/app/features/dashboard/dashboardCtrl.js
View file @
1113081a
define
([
'angular'
,
'jquery'
,
'config'
,
'lodash'
,
'app/core/config'
,
],
function
(
angular
,
$
,
config
)
{
"use strict"
;
...
...
public/app/features/dashboard/dashboardNavCtrl.js
View file @
1113081a
define
([
'angular'
,
'lodash'
,
'config'
,
'store'
,
'filesaver'
'app/core/config'
,
],
function
(
angular
,
_
)
{
'use strict'
;
...
...
public/app/features/dashboard/playlistCtrl.js
View file @
1113081a
define
([
'angular'
,
'lodash'
,
'config'
'
app/core/
config'
],
function
(
angular
,
_
,
config
)
{
'use strict'
;
...
...
public/app/features/dashboard/playlistSrv.js
View file @
1113081a
...
...
@@ -2,7 +2,7 @@ define([
'angular'
,
'lodash'
,
'kbn'
,
'store'
'
app/core/
store'
],
function
(
angular
,
_
,
kbn
)
{
'use strict'
;
...
...
public/app/features/dashboard/rowCtrl.js
View file @
1113081a
define
([
'angular'
,
'lodash'
,
'config'
'
app/core/
config'
],
function
(
angular
,
_
,
config
)
{
'use strict'
;
...
...
public/app/features/dashboard/shareModalCtrl.js
View file @
1113081a
...
...
@@ -2,7 +2,7 @@ define([
'angular'
,
'lodash'
,
'require'
,
'config'
,
'
app/core/
config'
,
],
function
(
angular
,
_
,
require
,
config
)
{
'use strict'
;
...
...
public/app/features/dashboard/timeSrv.js
View file @
1113081a
define
([
'angular'
,
'lodash'
,
'config'
,
'kbn'
,
'moment'
,
'app/core/config'
,
'app/core/utils/datemath'
],
function
(
angular
,
_
,
config
,
kbn
,
moment
,
dateMath
)
{
],
function
(
angular
,
_
,
kbn
,
moment
,
config
,
dateMath
)
{
'use strict'
;
var
module
=
angular
.
module
(
'grafana.services'
);
...
...
public/app/features/org/datasourceEditCtrl.js
View file @
1113081a
define
([
'angular'
,
'config'
,
'lodash'
,
'app/core/config'
,
],
function
(
angular
,
config
,
_
)
{
function
(
angular
,
_
,
config
)
{
'use strict'
;
var
module
=
angular
.
module
(
'grafana.controllers'
);
...
...
public/app/features/org/newOrgCtrl.js
View file @
1113081a
define
([
'angular'
,
'config'
,
'
app/core/
config'
,
],
function
(
angular
,
config
)
{
'use strict'
;
...
...
public/app/features/panel/panel_directive.js
View file @
1113081a
define
([
'angular'
,
'jquery'
,
'config'
,
'
app/core/
config'
,
],
function
(
angular
,
$
,
config
)
{
'use strict'
;
...
...
public/app/features/panel/panel_srv.js
View file @
1113081a
define
([
'angular'
,
'lodash'
,
'config'
,
'
app/core/
config'
,
],
function
(
angular
,
_
,
config
)
{
'use strict'
;
...
...
public/app/features/profile/changePasswordCtrl.js
View file @
1113081a
define
([
'angular'
,
'config'
,
'
app/core/
config'
,
],
function
(
angular
)
{
'use strict'
;
...
...
public/app/features/profile/profileCtrl.js
View file @
1113081a
define
([
'angular'
,
'config'
,
'
app/core/
config'
,
],
function
(
angular
,
config
)
{
'use strict'
;
...
...
public/app/features/profile/selectOrgCtrl.js
View file @
1113081a
define
([
'angular'
,
'config'
,
'
app/core/
config'
,
],
function
(
angular
,
config
)
{
'use strict'
;
...
...
public/app/headers/common.d.ts
View file @
1113081a
...
...
@@ -4,7 +4,7 @@
///<reference path="moment/moment.d.ts" />
// dummy modules
declare
module
'config'
{
declare
module
'
app/core/
config'
{
var
config
:
any
;
export
=
config
;
}
...
...
public/app/panels/dashlist/module.js
View file @
1113081a
...
...
@@ -2,7 +2,7 @@ define([
'angular'
,
'app/app'
,
'lodash'
,
'config'
,
'
app/core/
config'
,
'app/features/panel/panel_meta'
,
],
function
(
angular
,
app
,
_
,
config
,
PanelMeta
)
{
...
...
public/app/plugins/datasource/graphite/datasource.js
View file @
1113081a
...
...
@@ -2,7 +2,7 @@ define([
'angular'
,
'lodash'
,
'jquery'
,
'config'
,
'
app/core/
config'
,
'app/core/utils/datemath'
,
'./directives'
,
'./query_ctrl'
,
...
...
public/app/plugins/datasource/graphite/query_ctrl.js
View file @
1113081a
define
([
'angular'
,
'lodash'
,
'config'
,
'
app/core/
config'
,
'./gfunc'
,
'./parser'
],
...
...
public/app/services/backendSrv.js
View file @
1113081a
define
([
'angular'
,
'lodash'
,
'config'
,
'
app/core/
config'
,
],
function
(
angular
,
_
,
config
)
{
'use strict'
;
...
...
public/app/services/contextSrv.js
View file @
1113081a
define
([
'angular'
,
'lodash'
,
'store'
,
'config'
,
'
app/core/
store'
,
'
app/core/
config'
,
],
function
(
angular
,
_
,
store
,
config
)
{
'use strict'
;
...
...
public/app/services/datasourceSrv.js
View file @
1113081a
define
([
'angular'
,
'lodash'
,
'config'
,
'
app/core/
config'
,
],
function
(
angular
,
_
,
config
)
{
'use strict'
;
...
...
public/test/test-main.js
View file @
1113081a
...
...
@@ -2,9 +2,7 @@ require.config({
baseUrl
:
'http://localhost:9876/base/'
,
paths
:
{
config
:
'app/components/config'
,
kbn
:
'app/components/kbn'
,
store
:
'app/components/store'
,
settings
:
'app/components/settings'
,
lodash
:
'app/components/lodash.extended'
,
...
...
@@ -58,7 +56,7 @@ require.config({
},
angular
:
{
deps
:
[
'jquery'
,
'config'
],
deps
:
[
'jquery'
],
exports
:
'angular'
},
...
...
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