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
9f7560b6
Commit
9f7560b6
authored
Dec 21, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux: removed unused stuff form style guide
parent
4181602b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
42 deletions
+1
-42
public/app/features/styleguide/styleguide.html
+0
-8
public/app/features/styleguide/styleguide.ts
+0
-34
public/app/stores/ServerStatsStore.tsx
+1
-0
No files found.
public/app/features/styleguide/styleguide.html
View file @
9f7560b6
...
...
@@ -14,14 +14,6 @@
</div>
</div>
<div
class=
"tab-pane style-guide-icon-list"
>
<div
class=
"row"
>
<div
ng-repeat=
"icon in ctrl.icons"
class=
"col-md-2 col-sm-3 col-xs-4"
>
<i
class=
"icon-gf icon-gf-{{icon}}"
bs-tooltip=
"'icon-gf icon-gf-{{icon}}'"
></i>
</div>
</div>
</div>
<h3
class=
"page-heading"
>
Forms
</h3>
<div
class=
"gf-form-inline"
>
...
...
public/app/features/styleguide/styleguide.ts
View file @
9f7560b6
import
coreModule
from
'app/core/core_module'
;
import
config
from
'app/core/config'
;
import
_
from
'lodash'
;
class
StyleGuideCtrl
{
colors
:
any
=
[];
theme
:
string
;
buttonNames
=
[
'primary'
,
'secondary'
,
'inverse'
,
'success'
,
'warning'
,
'danger'
];
buttonSizes
=
[
'btn-small'
,
''
,
'btn-large'
];
buttonVariants
=
[
'-'
];
icons
:
any
=
[];
page
:
any
;
pages
=
[
'colors'
,
'buttons'
,
'icons'
,
'plugins'
];
navModel
:
any
;
/** @ngInject **/
constructor
(
private
$http
,
private
$routeParams
,
private
backendSrv
,
navModelSrv
)
{
this
.
navModel
=
navModelSrv
.
getNav
(
'cfg'
,
'admin'
,
'styleguide'
,
1
);
this
.
theme
=
config
.
bootData
.
user
.
lightTheme
?
'light'
:
'dark'
;
this
.
page
=
{};
if
(
$routeParams
.
page
)
{
this
.
page
[
$routeParams
.
page
]
=
1
;
}
else
{
this
.
page
.
colors
=
true
;
}
if
(
this
.
page
.
colors
)
{
this
.
loadColors
();
}
if
(
this
.
page
.
icons
)
{
this
.
loadIcons
();
}
}
loadColors
()
{
this
.
$http
.
get
(
'public/build/styleguide.json'
).
then
(
res
=>
{
this
.
colors
=
_
.
map
(
res
.
data
[
this
.
theme
],
(
value
,
key
)
=>
{
return
{
name
:
key
,
value
:
value
};
});
});
}
loadIcons
()
{
this
.
$http
.
get
(
'public/sass/icons.json'
).
then
(
res
=>
{
this
.
icons
=
res
.
data
;
});
}
switchTheme
()
{
...
...
public/app/stores/ServerStatsStore.tsx
View file @
9f7560b6
...
...
@@ -15,6 +15,7 @@ export const ServerStatsStore = types
let
res
=
yield
backendSrv
.
get
(
'/api/admin/stats'
);
self
.
stats
.
clear
();
self
.
stats
.
push
(
ServerStat
.
create
({
name
:
'Total dashboards'
,
value
:
res
.
dashboards
}));
self
.
stats
.
push
(
ServerStat
.
create
({
name
:
'Total users'
,
value
:
res
.
users
}));
self
.
stats
.
push
(
ServerStat
.
create
({
name
:
'Active users (seen last 30 days)'
,
value
:
res
.
activeUsers
}));
...
...
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