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
80a6853f
Unverified
Commit
80a6853f
authored
Oct 21, 2019
by
Andrej Ocenas
Committed by
GitHub
Oct 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor: Suggestion plugin for slate (#19825)
parent
3119f357
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
5 deletions
+1
-5
public/app/features/explore/QueryField.tsx
+1
-5
public/app/features/explore/slate-plugins/suggestions.tsx
+0
-0
No files found.
public/app/features/explore/QueryField.tsx
View file @
80a6853f
...
...
@@ -15,8 +15,6 @@ import IndentationPlugin from './slate-plugins/indentation';
import
ClipboardPlugin
from
'./slate-plugins/clipboard'
;
import
RunnerPlugin
from
'./slate-plugins/runner'
;
import
SuggestionsPlugin
,
{
SuggestionsState
}
from
'./slate-plugins/suggestions'
;
import
{
Typeahead
}
from
'./Typeahead'
;
import
{
makeValue
,
SCHEMA
}
from
'@grafana/ui'
;
export
interface
QueryFieldProps
{
...
...
@@ -66,8 +64,6 @@ export class QueryField extends React.PureComponent<QueryFieldProps, QueryFieldS
mounted
:
boolean
;
runOnChangeDebounced
:
Function
;
editor
:
Editor
;
// Is required by SuggestionsPlugin
typeaheadRef
:
Typeahead
;
lastExecutedValue
:
Value
|
null
=
null
;
constructor
(
props
:
QueryFieldProps
,
context
:
Context
<
any
>
)
{
...
...
@@ -80,7 +76,7 @@ export class QueryField extends React.PureComponent<QueryFieldProps, QueryFieldS
// Base plugins
this
.
plugins
=
[
NewlinePlugin
(),
SuggestionsPlugin
({
onTypeahead
,
cleanText
,
portalOrigin
,
onWillApplySuggestion
,
component
:
this
}),
SuggestionsPlugin
({
onTypeahead
,
cleanText
,
portalOrigin
,
onWillApplySuggestion
}),
ClearPlugin
(),
RunnerPlugin
({
handler
:
this
.
runOnChangeAndRunQuery
}),
SelectionShortcutsPlugin
(),
...
...
public/app/features/explore/slate-plugins/suggestions.tsx
View file @
80a6853f
This diff is collapsed.
Click to expand it.
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