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
252cd490
Commit
252cd490
authored
Feb 18, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux(): added style guide page
parent
a2b69e96
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
0 deletions
+42
-0
public/app/core/routes/routes.ts
+5
-0
public/app/features/all.js
+1
-0
public/app/features/styleguide/styleguide.html
+22
-0
public/app/features/styleguide/styleguide.ts
+14
-0
No files found.
public/app/core/routes/routes.ts
View file @
252cd490
...
...
@@ -186,6 +186,11 @@ function setupAngularRoutes($routeProvider, $locationProvider) {
.
when
(
'/global-alerts'
,
{
templateUrl
:
'public/app/features/dashboard/partials/globalAlerts.html'
,
})
.
when
(
'/styleguide'
,
{
controller
:
'StyleGuideCtrl'
,
controllerAs
:
'ctrl'
,
templateUrl
:
'public/app/features/styleguide/styleguide.html'
,
})
.
otherwise
({
templateUrl
:
'public/app/partials/error.html'
,
controller
:
'ErrorCtrl'
...
...
public/app/features/all.js
View file @
252cd490
...
...
@@ -10,4 +10,5 @@ define([
'./profile/profileCtrl'
,
'./profile/changePasswordCtrl'
,
'./profile/selectOrgCtrl'
,
'./styleguide/styleguide'
,
],
function
()
{});
public/app/features/styleguide/styleguide.html
0 → 100644
View file @
252cd490
<navbar
icon=
"fa fa-fw fa-adjust"
title=
"Style Guide"
>
</navbar>
<div
class=
"page-container"
>
<div
class=
"page-header"
>
<h1>
Style Guide
</h1>
<a
class=
"btn btn-success"
ng-click=
"ctrl.switchTheme()"
>
<i
class=
"fa fa-random"
></i>
Switch theme
</a>
</div>
<h3
class=
"page-heading"
>
Colors
</h3>
<ul>
<li
class=
"style-guide-color-card"
>
</li>
</ul>
</div>
public/app/features/styleguide/styleguide.ts
0 → 100644
View file @
252cd490
import
coreModule
from
'app/core/core_module'
;
import
config
from
'app/core/config'
;
class
StyleGuideCtrl
{
switchTheme
()
{
var
other
=
config
.
bootData
.
user
.
lightTheme
?
'dark'
:
'light'
;
window
.
location
.
href
=
config
.
appSubUrl
+
'/styleguide?theme='
+
other
;
}
}
coreModule
.
controller
(
'StyleGuideCtrl'
,
StyleGuideCtrl
);
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