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
6c90a536
Commit
6c90a536
authored
Sep 10, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: moved stuff into new features dir manage-dashboards
parent
e4d9620f
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
11 deletions
+12
-11
public/app/features/all.ts
+1
-1
public/app/features/dashboard/all.ts
+0
-2
public/app/features/manage-dashboards/DashboardListCtrl.ts
+0
-0
public/app/features/manage-dashboards/SnapshotListCtrl.ts
+1
-4
public/app/features/manage-dashboards/index.ts
+7
-0
public/app/features/manage-dashboards/partials/dashboard_list.html
+0
-0
public/app/features/manage-dashboards/partials/snapshot_list.html
+0
-0
public/app/features/snapshot/all.ts
+0
-1
public/app/routes/routes.ts
+3
-3
No files found.
public/app/features/all.ts
View file @
6c90a536
...
...
@@ -3,9 +3,9 @@ import './templating/all';
import
'./plugins/all'
;
import
'./dashboard/all'
;
import
'./playlist/all'
;
import
'./snapshot/all'
;
import
'./panel/all'
;
import
'./org/all'
;
import
'./admin'
;
import
'./alerting/NotificationsEditCtrl'
;
import
'./alerting/NotificationsListCtrl'
;
import
'./manage-dashboards'
;
public/app/features/dashboard/all.ts
View file @
6c90a536
...
...
@@ -31,13 +31,11 @@ import './panellinks/module';
import
'./dashlinks/module'
;
import
coreModule
from
'app/core/core_module'
;
import
{
DashboardListCtrl
}
from
'./dashboard_list_ctrl'
;
import
{
FolderDashboardsCtrl
}
from
'./folder_dashboards_ctrl'
;
import
{
FolderSettingsCtrl
}
from
'./folder_settings_ctrl'
;
import
{
DashboardImportCtrl
}
from
'./dashboard_import_ctrl'
;
import
{
CreateFolderCtrl
}
from
'./create_folder_ctrl'
;
coreModule
.
controller
(
'DashboardListCtrl'
,
DashboardListCtrl
);
coreModule
.
controller
(
'FolderDashboardsCtrl'
,
FolderDashboardsCtrl
);
coreModule
.
controller
(
'FolderSettingsCtrl'
,
FolderSettingsCtrl
);
coreModule
.
controller
(
'DashboardImportCtrl'
,
DashboardImportCtrl
);
...
...
public/app/features/
dashboard/dashboard_list_c
trl.ts
→
public/app/features/
manage-dashboards/DashboardListC
trl.ts
View file @
6c90a536
File moved
public/app/features/
snapshot/snapshot_c
trl.ts
→
public/app/features/
manage-dashboards/SnapshotListC
trl.ts
View file @
6c90a536
import
angular
from
'angular'
;
import
_
from
'lodash'
;
export
class
Snapshot
s
Ctrl
{
export
class
Snapshot
List
Ctrl
{
navModel
:
any
;
snapshots
:
any
;
...
...
@@ -35,5 +34,3 @@ export class SnapshotsCtrl {
});
}
}
angular
.
module
(
'grafana.controllers'
).
controller
(
'SnapshotsCtrl'
,
SnapshotsCtrl
);
public/app/features/manage-dashboards/index.ts
0 → 100644
View file @
6c90a536
import
coreModule
from
'app/core/core_module'
;
import
{
DashboardListCtrl
}
from
'./DashboardListCtrl'
;
import
{
SnapshotListCtrl
}
from
'./SnapshotListCtrl'
;
coreModule
.
controller
(
'DashboardListCtrl'
,
DashboardListCtrl
);
coreModule
.
controller
(
'SnapshotListCtrl'
,
SnapshotListCtrl
);
public/app/features/
dashboard
/partials/dashboard_list.html
→
public/app/features/
manage-dashboards
/partials/dashboard_list.html
View file @
6c90a536
File moved
public/app/features/
snapshot/partials/snapshots
.html
→
public/app/features/
manage-dashboards/partials/snapshot_list
.html
View file @
6c90a536
File moved
public/app/features/snapshot/all.ts
deleted
100644 → 0
View file @
e4d9620f
import
'./snapshot_ctrl'
;
public/app/routes/routes.ts
View file @
6c90a536
...
...
@@ -81,7 +81,7 @@ export function setupAngularRoutes($routeProvider, $locationProvider) {
controllerAs
:
'ctrl'
,
})
.
when
(
'/dashboards'
,
{
templateUrl
:
'public/app/features/
dashboard
/partials/dashboard_list.html'
,
templateUrl
:
'public/app/features/
manage-dashboards
/partials/dashboard_list.html'
,
controller
:
'DashboardListCtrl'
,
controllerAs
:
'ctrl'
,
})
...
...
@@ -240,8 +240,8 @@ export function setupAngularRoutes($routeProvider, $locationProvider) {
pageClass
:
'sidemenu-hidden'
,
})
.
when
(
'/dashboard/snapshots'
,
{
templateUrl
:
'public/app/features/
snapshot/partials/snapshots
.html'
,
controller
:
'Snapshot
s
Ctrl'
,
templateUrl
:
'public/app/features/
manage-dashboards/partials/snapshot_list
.html'
,
controller
:
'Snapshot
List
Ctrl'
,
controllerAs
:
'ctrl'
,
})
.
when
(
'/plugins'
,
{
...
...
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