mirror of
https://github.com/filamentphp/filament.git
synced 2026-08-29 03:09:12 +08:00
Add missing SQL language for code-editor (#18127)
* Add missing SQL language for code-editor * Add missing SQL language for code-editor * Add missing SQL language for code-editor * Update packages/forms/src/Components/CodeEditor/Enums/Language.php Signed-off-by: Dan Harrin <git@danharrin.com> --------- Signed-off-by: Dan Harrin <git@danharrin.com> Co-authored-by: Dan Harrin <git@danharrin.com>
This commit is contained in:
Generated
+15
@@ -19,6 +19,7 @@
|
||||
"@codemirror/lang-markdown": "^6.3.3",
|
||||
"@codemirror/lang-php": "^6.0.1",
|
||||
"@codemirror/lang-python": "^6.2.1",
|
||||
"@codemirror/lang-sql": "^6.10.0",
|
||||
"@codemirror/lang-xml": "^6.1.0",
|
||||
"@codemirror/lang-yaml": "^6.1.2",
|
||||
"@codemirror/state": "^6.5.2",
|
||||
@@ -1812,6 +1813,20 @@
|
||||
"@lezer/python": "^1.1.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@codemirror/lang-sql": {
|
||||
"version": "6.10.0",
|
||||
"resolved": "https://registry.npmjs.org/@codemirror/lang-sql/-/lang-sql-6.10.0.tgz",
|
||||
"integrity": "sha512-6ayPkEd/yRw0XKBx5uAiToSgGECo/GY2NoJIHXIIQh1EVwLuKoU8BP/qK0qH5NLXAbtJRLuT73hx7P9X34iO4w==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@codemirror/autocomplete": "^6.0.0",
|
||||
"@codemirror/language": "^6.0.0",
|
||||
"@codemirror/state": "^6.0.0",
|
||||
"@lezer/common": "^1.2.0",
|
||||
"@lezer/highlight": "^1.0.0",
|
||||
"@lezer/lr": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@codemirror/lang-xml": {
|
||||
"version": "6.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@codemirror/lang-xml/-/lang-xml-6.1.0.tgz",
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
"@codemirror/lang-markdown": "^6.3.3",
|
||||
"@codemirror/lang-php": "^6.0.1",
|
||||
"@codemirror/lang-python": "^6.2.1",
|
||||
"@codemirror/lang-sql": "^6.10.0",
|
||||
"@codemirror/lang-xml": "^6.1.0",
|
||||
"@codemirror/lang-yaml": "^6.1.2",
|
||||
"@codemirror/state": "^6.5.2",
|
||||
|
||||
+23
-22
File diff suppressed because one or more lines are too long
@@ -30,6 +30,7 @@ You may change the language syntax highlighting of the code editor using the `la
|
||||
- Markdown
|
||||
- PHP
|
||||
- Python
|
||||
- SQL
|
||||
- XML
|
||||
- YAML
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ import { json } from '@codemirror/lang-json'
|
||||
import { markdown } from '@codemirror/lang-markdown'
|
||||
import { php } from '@codemirror/lang-php'
|
||||
import { python } from '@codemirror/lang-python'
|
||||
import { sql } from '@codemirror/lang-sql'
|
||||
import { xml } from '@codemirror/lang-xml'
|
||||
import { yaml } from '@codemirror/lang-yaml'
|
||||
|
||||
@@ -108,6 +109,7 @@ export default function codeEditorFormComponent({
|
||||
markdown,
|
||||
php,
|
||||
python,
|
||||
sql,
|
||||
xml,
|
||||
yaml,
|
||||
}
|
||||
|
||||
@@ -24,6 +24,8 @@ enum Language: string
|
||||
|
||||
case Python = 'python';
|
||||
|
||||
case Sql = 'sql';
|
||||
|
||||
case Xml = 'xml';
|
||||
|
||||
case Yaml = 'yaml';
|
||||
|
||||
Reference in New Issue
Block a user