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
11ee65d3
Commit
11ee65d3
authored
Sep 27, 2018
by
Peter Holmberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deletez
parent
b899a0e1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 additions
and
77 deletions
+1
-77
public/app/features/plugins/PluginList.tsx
+1
-1
public/app/features/plugins/all.ts
+0
-1
public/app/features/plugins/partials/plugin_list.html
+0
-45
public/app/features/plugins/plugin_list_ctrl.ts
+0
-30
No files found.
public/app/features/plugins/PluginList.tsx
View file @
11ee65d3
...
...
@@ -5,7 +5,7 @@ import { Plugin } from 'app/types';
import
{
LayoutMode
,
LayoutModes
}
from
'../../core/components/LayoutSelector/LayoutSelector'
;
interface
Props
{
plugins
:
Plugin
ListItem
[];
plugins
:
Plugin
[];
layoutMode
:
LayoutMode
;
}
...
...
public/app/features/plugins/all.ts
View file @
11ee65d3
import
'./plugin_edit_ctrl'
;
import
'./plugin_page_ctrl'
;
import
'./plugin_list_ctrl'
;
import
'./import_list/import_list'
;
import
'./ds_edit_ctrl'
;
import
'./ds_dashboards_ctrl'
;
...
...
public/app/features/plugins/partials/plugin_list.html
deleted
100644 → 0
View file @
b899a0e1
<page-header
model=
"ctrl.navModel"
></page-header>
<div
class=
"page-container page-body"
>
<div
class=
"page-action-bar"
>
<div
class=
"gf-form gf-form--grow"
>
<label
class=
"gf-form--has-input-icon"
>
<input
type=
"text"
class=
"gf-form-input width-20"
ng-model=
"ctrl.searchQuery"
ng-change=
"ctrl.onQueryUpdated()"
placeholder=
"Filter by name or type"
/>
<i
class=
"gf-form-input-icon fa fa-search"
></i>
</label>
<layout-selector
/>
</div>
<div
class=
"page-action-bar__spacer"
></div>
<a
class=
"btn btn-success"
href=
"https://grafana.com/plugins?utm_source=grafana_plugin_list"
target=
"_blank"
>
Find more plugins on Grafana.com
</a>
</div>
<section
class=
"card-section"
layout-mode
>
<ol
class=
"card-list"
>
<li
class=
"card-item-wrapper"
ng-repeat=
"plugin in ctrl.plugins"
>
<a
class=
"card-item"
href=
"plugins/{{plugin.id}}/edit"
>
<div
class=
"card-item-header"
>
<div
class=
"card-item-type"
>
<i
class=
"icon-gf icon-gf-{{plugin.type}}"
></i>
{{plugin.type}}
</div>
<div
class=
"card-item-notice"
ng-show=
"plugin.hasUpdate"
>
<span
bs-tooltip=
"plugin.latestVersion"
>
Update available!
</span>
</div>
</div>
<div
class=
"card-item-body"
>
<figure
class=
"card-item-figure"
>
<img
ng-src=
"{{plugin.info.logos.small}}"
>
</figure>
<div
class=
"card-item-details"
>
<div
class=
"card-item-name"
>
{{plugin.name}}
</div>
<div
class=
"card-item-sub-name"
>
By {{plugin.info.author.name}}
</div>
</div>
</div>
</a>
</li>
</ol>
</section>
</div>
public/app/features/plugins/plugin_list_ctrl.ts
deleted
100644 → 0
View file @
b899a0e1
import
angular
from
'angular'
;
import
_
from
'lodash'
;
export
class
PluginListCtrl
{
plugins
:
any
[];
tabIndex
:
number
;
navModel
:
any
;
searchQuery
:
string
;
allPlugins
:
any
[];
/** @ngInject */
constructor
(
private
backendSrv
:
any
,
$location
,
navModelSrv
)
{
this
.
tabIndex
=
0
;
this
.
navModel
=
navModelSrv
.
getNav
(
'cfg'
,
'plugins'
,
0
);
this
.
backendSrv
.
get
(
'api/plugins'
,
{
embedded
:
0
}).
then
(
plugins
=>
{
this
.
plugins
=
plugins
;
this
.
allPlugins
=
plugins
;
});
}
onQueryUpdated
()
{
const
regex
=
new
RegExp
(
this
.
searchQuery
,
'ig'
);
this
.
plugins
=
_
.
filter
(
this
.
allPlugins
,
item
=>
{
return
regex
.
test
(
item
.
name
)
||
regex
.
test
(
item
.
type
);
});
}
}
angular
.
module
(
'grafana.controllers'
).
controller
(
'PluginListCtrl'
,
PluginListCtrl
);
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