generated from VolkovLabs/volkovlabs-abc-panel
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Code Editor Element for Configuration Forms (#49)
* Update Constants and Types * Update Components * Update dashboard * Update Readme and Changelog * Fix Code Editor Height type
- Loading branch information
1 parent
06001b2
commit e0a6ea1
Showing
12 changed files
with
154 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { SelectableValue } from '@grafana/data'; | ||
|
||
/** | ||
* Code Editor | ||
*/ | ||
export const CodeEditorHeight = 100; | ||
export const CodeEditorDefault = 'console.log(options, data, response, elements, locationService, templateService)'; | ||
|
||
/** | ||
* Supported Languages | ||
*/ | ||
export const enum CodeLanguage { | ||
JAVASCRIPT = 'javascript', | ||
JSON = 'json', | ||
} | ||
|
||
/** | ||
* Code Language Options | ||
*/ | ||
export const CodeLanguageOptions: SelectableValue[] = [ | ||
{ | ||
value: CodeLanguage.JAVASCRIPT, | ||
label: 'Javascript', | ||
}, | ||
{ | ||
value: CodeLanguage.JSON, | ||
label: 'JSON', | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.