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
8f6c9c59
Commit
8f6c9c59
authored
Jun 07, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dasboard_history: some polish around styles & diff colors, and minor fixes
parent
ef1dfed0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
18 deletions
+14
-18
pkg/api/dtos/dashboard.go
+1
-1
pkg/components/dashdiffs/formatter_basic.go
+6
-6
public/app/core/directives/diff-view.ts
+1
-1
public/app/features/dashboard/history/history.html
+1
-1
public/app/features/dashboard/history/partials/link-json.html
+0
-4
public/sass/_variables.dark.scss
+5
-5
No files found.
pkg/api/dtos/dashboard.go
View file @
8f6c9c59
...
...
@@ -35,7 +35,7 @@ type DashboardRedirect struct {
type
CalculateDiffOptions
struct
{
Base
CalculateDiffTarget
`json:"base" binding:"Required"`
New
CalculateDiffTarget
`json:"new" binding:"Required"`
DiffType
string
`json:"
D
iffType" binding:"Required"`
DiffType
string
`json:"
d
iffType" binding:"Required"`
}
type
CalculateDiffTarget
struct
{
...
...
pkg/components/dashdiffs/formatter_basic.go
View file @
8f6c9c59
...
...
@@ -248,11 +248,11 @@ var (
<!-- Overview -->
{{ if .Old }}
<div class="
change list-change
diff-label">{{ .Old }}</div>
<div class="diff-label">{{ .Old }}</div>
<i class="diff-arrow fa fa-long-arrow-right"></i>
{{ end }}
{{ if .New }}
<div class="
change list-change
diff-label">{{ .New }}</div>
<div class="diff-label">{{ .New }}</div>
{{ end }}
{{ if .LineStart }}
...
...
@@ -289,11 +289,11 @@ var (
<div class="diff-change-item">
{{ if .Old }}
<div class="
change list-change
diff-label">{{ .Old }}</div>
<div class="diff-label">{{ .Old }}</div>
<i class="diff-arrow fa fa-long-arrow-right"></i>
{{ end }}
{{ if .New }}
<div class="
change list-change
diff-label">{{ .New }}</div>
<div class="diff-label">{{ .New }}</div>
{{ end }}
</div>
...
...
@@ -301,7 +301,7 @@ var (
<diff-link-json
line-link="{{ .LineStart }}"
line-display="{{ .LineStart }}{{ if .LineEnd }} - {{ .LineEnd }}{{ end }}"
switch-view="ctrl.getDiff('
html
')"
switch-view="ctrl.getDiff('
json
')"
/>
{{ end }}
</span>
...
...
@@ -326,7 +326,7 @@ var (
<diff-link-json
line-link="{{ .LineStart }}"
line-display="{{ .LineStart }}{{ if .LineEnd }} - {{ .LineEnd }}{{ end }}"
switch-view="ctrl.getDiff('
html
')"
switch-view="ctrl.getDiff('
json
')"
/>
{{ end }}
</div>
...
...
public/app/core/directives/diff-view.ts
View file @
8f6c9c59
...
...
@@ -71,7 +71,7 @@ export function linkJson() {
link
:
'@lineLink'
,
switchView
:
'&'
,
},
template
Url
:
'public/app/features/dashboard/history/partials/link-json.html'
,
template
:
`<a class="diff-linenum btn btn-inverse btn-small" ng-click="ctrl.goToLine(link)">Line {{ line }}</a>`
};
}
coreModule
.
directive
(
'diffLinkJson'
,
linkJson
);
public/app/features/dashboard/history/history.html
View file @
8f6c9c59
...
...
@@ -100,7 +100,7 @@
<aside
class=
"edit-sidemenu-aside"
>
<ul
class=
"edit-sidemenu"
>
<li
ng-class=
"{active: ctrl.diff === 'basic'}"
><a
ng-click=
"ctrl.getDiff('basic')"
href=
""
>
Change Summary
</a></li>
<li
ng-class=
"{active: ctrl.diff === 'html'}"
><a
ng-click=
"ctrl.getDiff('json')"
href=
""
>
JSON
Code View
</a></li>
<li
ng-class=
"{active: ctrl.diff === 'html'}"
><a
ng-click=
"ctrl.getDiff('json')"
href=
""
>
JSON
Diff
</a></li>
</ul>
</aside>
...
...
public/app/features/dashboard/history/partials/link-json.html
deleted
100644 → 0
View file @
ef1dfed0
<a
class=
"change list-linenum diff-linenum btn btn-inverse btn-small"
ng-click=
"ctrl.goToLine(link)"
>
Line {{ line }}
</a>
public/sass/_variables.dark.scss
View file @
8f6c9c59
...
...
@@ -292,13 +292,13 @@ $diff-arrow-color: $white;
$diff-json-bg
:
$dark-4
;
$diff-json-fg
:
$gray-5
;
$diff-json-added
:
#
2f5f
40
;
$diff-json-deleted
:
#
862d2d
;
$diff-json-added
:
#
4577
40
;
$diff-json-deleted
:
#
a04338
;
$diff-json-old
:
#
5a372a
;
$diff-json-new
:
#
664e33
;
$diff-json-old
:
#
a04338
;
$diff-json-new
:
#
457740
;
$diff-json-changed-fg
:
$gray-5
;
$diff-json-changed-num
:
$text-
muted
;
$diff-json-changed-num
:
$text-
color
;
$diff-json-icon
:
$gray-7
;
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