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
47523f80
Commit
47523f80
authored
Dec 04, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed logging start page
parent
ac6170a7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
55 deletions
+14
-55
public/app/plugins/datasource/logging/components/LoggingCheatSheet.tsx
+1
-1
public/app/plugins/datasource/logging/components/LoggingStartPage.tsx
+6
-50
public/app/plugins/datasource/prometheus/components/PromCheatSheet.tsx
+1
-1
public/app/plugins/datasource/prometheus/components/PromStart.tsx
+5
-2
public/sass/_variables.light.scss
+1
-1
No files found.
public/app/plugins/datasource/logging/components/LoggingCheatSheet.tsx
View file @
47523f80
...
...
@@ -15,7 +15,7 @@ const CHEAT_SHEET_ITEMS = [
export
default
(
props
:
any
)
=>
(
<
div
>
<
h
1
>
Logging Cheat Sheet
</
h1
>
<
h
2
>
Logging Cheat Sheet
</
h2
>
{
CHEAT_SHEET_ITEMS
.
map
(
item
=>
(
<
div
className=
"cheat-sheet-item"
key=
{
item
.
expression
}
>
<
div
className=
"cheat-sheet-item__title"
>
{
item
.
title
}
</
div
>
...
...
public/app/plugins/datasource/logging/components/LoggingStartPage.tsx
View file @
47523f80
import
React
,
{
PureComponent
}
from
'react'
;
import
classNames
from
'classnames'
;
import
LoggingCheatSheet
from
'./LoggingCheatSheet'
;
const
TAB_MENU_ITEMS
=
[
{
text
:
'Start'
,
id
:
'start'
,
icon
:
'fa fa-rocket'
,
},
];
export
default
class
LoggingStartPage
extends
PureComponent
<
any
,
{
active
:
string
}
>
{
state
=
{
active
:
'start'
,
};
onClickTab
=
active
=>
{
this
.
setState
({
active
});
};
interface
Props
{
onClickExample
:
()
=>
void
;
}
export
default
class
LoggingStartPage
extends
PureComponent
<
Props
>
{
render
()
{
const
{
active
}
=
this
.
state
;
const
customCss
=
''
;
return
(
<
div
style=
{
{
margin
:
'45px 0'
,
border
:
'1px solid #ddd'
,
borderRadius
:
5
}
}
>
<
div
className=
"page-header-canvas"
>
<
div
className=
"page-container"
>
<
div
className=
"page-header"
>
<
nav
>
<
ul
className=
{
`gf-tabs ${customCss}`
}
>
{
TAB_MENU_ITEMS
.
map
((
tab
,
idx
)
=>
{
const
tabClasses
=
classNames
({
'gf-tabs-link'
:
true
,
active
:
tab
.
id
===
active
,
});
return
(
<
li
className=
"gf-tabs-item"
key=
{
tab
.
id
}
>
<
a
className=
{
tabClasses
}
onClick=
{
()
=>
this
.
onClickTab
(
tab
.
id
)
}
>
<
i
className=
{
tab
.
icon
}
/>
{
tab
.
text
}
</
a
>
</
li
>
);
})
}
</
ul
>
</
nav
>
</
div
>
</
div
>
</
div
>
<
div
className=
"page-container page-body"
>
{
active
===
'start'
&&
<
LoggingCheatSheet
onClickExample=
{
this
.
props
.
onClickExample
}
/>
}
</
div
>
<
div
className=
"grafana-info-box"
>
<
LoggingCheatSheet
onClickExample=
{
this
.
props
.
onClickExample
}
/>
</
div
>
);
}
...
...
public/app/plugins/datasource/prometheus/components/PromCheatSheet.tsx
View file @
47523f80
...
...
@@ -21,7 +21,7 @@ const CHEAT_SHEET_ITEMS = [
export
default
(
props
:
any
)
=>
(
<
div
>
<
h
1
>
PromQL Cheat Sheet
</
h1
>
<
h
2
>
PromQL Cheat Sheet
</
h2
>
{
CHEAT_SHEET_ITEMS
.
map
(
item
=>
(
<
div
className=
"cheat-sheet-item"
key=
{
item
.
expression
}
>
<
div
className=
"cheat-sheet-item__title"
>
{
item
.
title
}
</
div
>
...
...
public/app/plugins/datasource/prometheus/components/PromStart.tsx
View file @
47523f80
import
React
,
{
PureComponent
}
from
'react'
;
import
PromCheatSheet
from
'./PromCheatSheet'
;
export
default
class
PromStart
extends
PureComponent
<
any
>
{
interface
Props
{
onClickExample
:
()
=>
void
;
}
export
default
class
PromStart
extends
PureComponent
<
Props
>
{
render
()
{
return
(
<
div
className=
"grafana-info-box"
>
...
...
public/sass/_variables.light.scss
View file @
47523f80
...
...
@@ -218,7 +218,7 @@ $tab-border-color: $gray-5;
$search-shadow
:
0
5px
30px
0
$gray-4
;
$search-filter-box-bg
:
$gray-7
;
// ypeahead
//
T
ypeahead
$typeahead-shadow
:
0
5px
10px
0
$gray-5
;
$typeahead-selected-bg
:
$gray-6
;
$typeahead-selected-color
:
$yellow
;
...
...
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