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
97de8c1c
Commit
97de8c1c
authored
Oct 30, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring: move moving stuff around
parent
6cf46b16
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
12 additions
and
26 deletions
+12
-26
public/app/app.js
+0
-2
public/app/core/core.ts
+3
-0
public/app/core/jquery_extended.js
+0
-0
public/app/core/lodash_extended.js
+0
-0
public/app/core/partials.js
+0
-0
public/app/features/dashboard/dashboardNavCtrl.js
+1
-1
public/app/features/dashboard/shareModalCtrl.js
+2
-2
public/app/require_config.js
+3
-11
public/test/test-main.js
+1
-3
public/vendor/zero_clipboard.js
+0
-0
public/vendor/zero_clipboard.swf
+0
-0
public/views/index.html
+1
-1
tasks/options/requirejs.js
+1
-6
No files found.
public/app/app.js
View file @
97de8c1c
...
@@ -9,7 +9,6 @@ define([
...
@@ -9,7 +9,6 @@ define([
'angular-strap'
,
'angular-strap'
,
'angular-dragdrop'
,
'angular-dragdrop'
,
'angular-ui'
,
'angular-ui'
,
'extend-jquery'
,
'bindonce'
,
'bindonce'
,
'app/core/core'
,
'app/core/core'
,
],
],
...
@@ -73,7 +72,6 @@ function (angular, $, _, appLevelRequire) {
...
@@ -73,7 +72,6 @@ function (angular, $, _, appLevelRequire) {
'app/services/all'
,
'app/services/all'
,
'app/features/all'
,
'app/features/all'
,
'app/controllers/all'
,
'app/controllers/all'
,
'app/components/partials'
,
];
];
app
.
boot
=
function
()
{
app
.
boot
=
function
()
{
...
...
public/app/core/core.ts
View file @
97de8c1c
...
@@ -16,6 +16,9 @@
...
@@ -16,6 +16,9 @@
///<amd-dependency path="./directives/value_select_dropdown" />
///<amd-dependency path="./directives/value_select_dropdown" />
///<amd-dependency path="./routes/all" />
///<amd-dependency path="./routes/all" />
///<amd-dependency path="./jquery_extended" />
///<amd-dependency path="./partials" />
export
*
from
'./directives/array_join'
export
*
from
'./directives/array_join'
export
*
from
'./directives/give_focus'
export
*
from
'./directives/give_focus'
export
*
from
'./filters/filters'
export
*
from
'./filters/filters'
...
...
public/app/co
mponents/extend-jquery
.js
→
public/app/co
re/jquery_extended
.js
View file @
97de8c1c
File moved
public/app/co
mponents/lodash.
extended.js
→
public/app/co
re/lodash_
extended.js
View file @
97de8c1c
File moved
public/app/co
mponents
/partials.js
→
public/app/co
re
/partials.js
View file @
97de8c1c
File moved
public/app/features/dashboard/dashboardNavCtrl.js
View file @
97de8c1c
define
([
define
([
'angular'
,
'angular'
,
'lodash'
,
'lodash'
,
'
app/core/config'
,
'
vendor/filesaver'
],
],
function
(
angular
,
_
)
{
function
(
angular
,
_
)
{
'use strict'
;
'use strict'
;
...
...
public/app/features/dashboard/shareModalCtrl.js
View file @
97de8c1c
...
@@ -84,9 +84,9 @@ function (angular, _, require, config) {
...
@@ -84,9 +84,9 @@ function (angular, _, require, config) {
module
.
directive
(
'clipboardButton'
,
function
()
{
module
.
directive
(
'clipboardButton'
,
function
()
{
return
function
(
scope
,
elem
)
{
return
function
(
scope
,
elem
)
{
require
([
'
ZeroC
lipboard'
],
function
(
ZeroClipboard
)
{
require
([
'
vendor/zero_c
lipboard'
],
function
(
ZeroClipboard
)
{
ZeroClipboard
.
config
({
ZeroClipboard
.
config
({
swfPath
:
config
.
appSubUrl
+
'/public/vendor/
ZeroC
lipboard.swf'
swfPath
:
config
.
appSubUrl
+
'/public/vendor/
zero_c
lipboard.swf'
});
});
new
ZeroClipboard
(
elem
[
0
]);
new
ZeroClipboard
(
elem
[
0
]);
});
});
...
...
public/app/
components/require.
config.js
→
public/app/
require_
config.js
View file @
97de8c1c
...
@@ -3,13 +3,11 @@ require.config({
...
@@ -3,13 +3,11 @@ require.config({
baseUrl
:
'public'
,
baseUrl
:
'public'
,
paths
:
{
paths
:
{
'
extend-jquery'
:
'app/components/extend-jquery
'
,
'
lodash-src'
:
'vendor/lodash
'
,
lodash
:
'app/co
mponents/lodash.
extended'
,
lodash
:
'app/co
re/lodash_
extended'
,
text
:
'vendor/requirejs-text/text'
,
text
:
'vendor/requirejs-text/text'
,
moment
:
'vendor/moment'
,
moment
:
'vendor/moment'
,
filesaver
:
'vendor/filesaver'
,
ZeroClipboard
:
'vendor/ZeroClipboard'
,
angular
:
'vendor/angular/angular'
,
angular
:
'vendor/angular/angular'
,
'angular-route'
:
'vendor/angular-route/angular-route'
,
'angular-route'
:
'vendor/angular-route/angular-route'
,
'angular-sanitize'
:
'vendor/angular-sanitize/angular-sanitize'
,
'angular-sanitize'
:
'vendor/angular-sanitize/angular-sanitize'
,
...
@@ -21,10 +19,7 @@ require.config({
...
@@ -21,10 +19,7 @@ require.config({
bindonce
:
'vendor/angular-bindonce/bindonce'
,
bindonce
:
'vendor/angular-bindonce/bindonce'
,
crypto
:
'vendor/crypto.min'
,
crypto
:
'vendor/crypto.min'
,
spectrum
:
'vendor/spectrum'
,
spectrum
:
'vendor/spectrum'
,
'lodash-src'
:
'vendor/lodash'
,
bootstrap
:
'vendor/bootstrap/bootstrap'
,
bootstrap
:
'vendor/bootstrap/bootstrap'
,
jquery
:
'vendor/jquery/dist/jquery'
,
jquery
:
'vendor/jquery/dist/jquery'
,
'jquery.flot'
:
'vendor/flot/jquery.flot'
,
'jquery.flot'
:
'vendor/flot/jquery.flot'
,
...
@@ -42,6 +37,7 @@ require.config({
...
@@ -42,6 +37,7 @@ require.config({
'bootstrap-tagsinput'
:
'vendor/tagsinput/bootstrap-tagsinput'
,
'bootstrap-tagsinput'
:
'vendor/tagsinput/bootstrap-tagsinput'
,
'aws-sdk'
:
'vendor/aws-sdk/dist/aws-sdk.min'
,
'aws-sdk'
:
'vendor/aws-sdk/dist/aws-sdk.min'
,
},
},
shim
:
{
shim
:
{
spectrum
:
{
spectrum
:
{
...
@@ -52,10 +48,6 @@ require.config({
...
@@ -52,10 +48,6 @@ require.config({
exports
:
'Crypto'
exports
:
'Crypto'
},
},
ZeroClipboard
:
{
exports
:
'ZeroClipboard'
},
angular
:
{
angular
:
{
deps
:
[
'jquery'
],
deps
:
[
'jquery'
],
exports
:
'angular'
exports
:
'angular'
...
...
public/test/test-main.js
View file @
97de8c1c
...
@@ -2,7 +2,7 @@ require.config({
...
@@ -2,7 +2,7 @@ require.config({
baseUrl
:
'http://localhost:9876/base/'
,
baseUrl
:
'http://localhost:9876/base/'
,
paths
:
{
paths
:
{
lodash
:
'app/co
mponents/lodash.
extended'
,
lodash
:
'app/co
re/lodash_
extended'
,
'lodash-src'
:
'vendor/lodash'
,
'lodash-src'
:
'vendor/lodash'
,
moment
:
'vendor/moment'
,
moment
:
'vendor/moment'
,
...
@@ -21,7 +21,6 @@ require.config({
...
@@ -21,7 +21,6 @@ require.config({
bindonce
:
'vendor/angular-bindonce/bindonce'
,
bindonce
:
'vendor/angular-bindonce/bindonce'
,
crypto
:
'vendor/crypto.min'
,
crypto
:
'vendor/crypto.min'
,
spectrum
:
'vendor/spectrum'
,
spectrum
:
'vendor/spectrum'
,
jquery
:
'vendor/jquery/dist/jquery'
,
jquery
:
'vendor/jquery/dist/jquery'
,
bootstrap
:
'vendor/bootstrap/bootstrap'
,
bootstrap
:
'vendor/bootstrap/bootstrap'
,
...
@@ -40,7 +39,6 @@ require.config({
...
@@ -40,7 +39,6 @@ require.config({
'jquery.flot.fillbelow'
:
'vendor/flot/jquery.flot.fillbelow'
,
'jquery.flot.fillbelow'
:
'vendor/flot/jquery.flot.fillbelow'
,
modernizr
:
'vendor/modernizr-2.6.1'
,
modernizr
:
'vendor/modernizr-2.6.1'
,
'aws-sdk'
:
'vendor/aws-sdk/dist/aws-sdk.min'
,
},
},
shim
:
{
shim
:
{
...
...
public/vendor/
ZeroC
lipboard.js
→
public/vendor/
zero_c
lipboard.js
View file @
97de8c1c
File moved
public/vendor/
ZeroC
lipboard.swf
→
public/vendor/
zero_c
lipboard.swf
View file @
97de8c1c
File moved
public/views/index.html
View file @
97de8c1c
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<!-- build:js [[.AppSubUrl]]/app/app.js -->
<!-- build:js [[.AppSubUrl]]/app/app.js -->
<script
src=
"[[.AppSubUrl]]/public/vendor/requirejs/require.js"
></script>
<script
src=
"[[.AppSubUrl]]/public/vendor/requirejs/require.js"
></script>
<script
src=
"[[.AppSubUrl]]/public/app/
components/require.
config.js"
></script>
<script
src=
"[[.AppSubUrl]]/public/app/
require_
config.js"
></script>
<!-- endbuild -->
<!-- endbuild -->
</head>
</head>
...
...
tasks/options/requirejs.js
View file @
97de8c1c
...
@@ -6,7 +6,7 @@ module.exports = function(config,grunt) {
...
@@ -6,7 +6,7 @@ module.exports = function(config,grunt) {
var
options
=
{
var
options
=
{
appDir
:
'<%= genDir %>'
,
appDir
:
'<%= genDir %>'
,
dir
:
'<%= tempDir %>'
,
dir
:
'<%= tempDir %>'
,
mainConfigFile
:
'<%= genDir %>/app/
components/require.
config.js'
,
mainConfigFile
:
'<%= genDir %>/app/
require_
config.js'
,
baseUrl
:
'./'
,
baseUrl
:
'./'
,
waitSeconds
:
0
,
waitSeconds
:
0
,
...
@@ -41,16 +41,12 @@ module.exports = function(config,grunt) {
...
@@ -41,16 +41,12 @@ module.exports = function(config,grunt) {
// main/common module
// main/common module
name
:
'app/app'
,
name
:
'app/app'
,
include
:
[
include
:
[
'kbn'
,
'text'
,
'text'
,
'jquery'
,
'jquery'
,
'angular'
,
'settings'
,
'bootstrap'
,
'bootstrap'
,
'modernizr'
,
'modernizr'
,
'timepicker'
,
'timepicker'
,
'datepicker'
,
'datepicker'
,
'lodash'
,
'jquery.flot'
,
'jquery.flot'
,
'angular-strap'
,
'angular-strap'
,
'angular-dragdrop'
,
'angular-dragdrop'
,
...
@@ -58,7 +54,6 @@ module.exports = function(config,grunt) {
...
@@ -58,7 +54,6 @@ module.exports = function(config,grunt) {
'app/services/all'
,
'app/services/all'
,
'app/features/all'
,
'app/features/all'
,
'app/controllers/all'
,
'app/controllers/all'
,
'app/components/partials'
,
// bundle the datasources
// bundle the datasources
'app/plugins/datasource/grafana/datasource'
,
'app/plugins/datasource/grafana/datasource'
,
'app/plugins/datasource/graphite/datasource'
,
'app/plugins/datasource/graphite/datasource'
,
...
...
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