Skip to content

Commit

Permalink
Add new languages
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBatdorf committed Apr 30, 2023
1 parent 6dc9c4a commit bcae770
Show file tree
Hide file tree
Showing 10 changed files with 3,297 additions and 2,034 deletions.
4,986 changes: 3,097 additions & 1,889 deletions package-lock.json

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,50 +20,50 @@
"devDependencies": {
"@redux-devtools/extension": "^3.2.5",
"@trivago/prettier-plugin-sort-imports": "4.1.1",
"@types/wordpress__block-editor": "11.5.0",
"@types/wordpress__block-editor": "11.5.1",
"@types/wordpress__blocks": "12.5.0",
"@types/wordpress__edit-post": "^7.0.2",
"@typescript-eslint/parser": "5.56.0",
"@wordpress/block-editor": "11.6.0",
"@wordpress/env": "5.14.0",
"@wordpress/scripts": "26.0.0",
"@wordpress/url": "3.30.0",
"@types/wordpress__edit-post": "^7.5.0",
"@typescript-eslint/parser": "5.59.1",
"@wordpress/block-editor": "12.0.0",
"@wordpress/env": "6.0.0",
"@wordpress/scripts": "26.3.0",
"@wordpress/url": "3.33.0",
"autoprefixer": "10.4.14",
"copy-webpack-plugin": "11.0.0",
"cypress": "12.8.1",
"cypress": "12.11.0",
"cypress-real-events": "^1.7.6",
"cypress-wait-until": "1.7.2",
"eslint": "8.36.0",
"eslint": "8.39.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-cypress": "2.12.1",
"eslint-plugin-cypress": "2.13.3",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"fast-glob": "3.2.12",
"glob": "9.3.2",
"glob": "10.2.2",
"postcss-import": "15.1.0",
"postcss-safe-important": "1.2.1",
"prettier": "2.8.7",
"prettier": "2.8.8",
"replace-in-file": "6.3.5",
"tailwindcss": "3.2.7",
"typescript": "5.0.2"
"tailwindcss": "3.3.2",
"typescript": "5.0.4"
},
"dependencies": {
"@headlessui/react": "1.7.13",
"@wordpress/block-editor": "11.6.0",
"@wordpress/blocks": "12.6.0",
"@wordpress/edit-post": "^7.6.0",
"@wordpress/element": "5.6.0",
"@wordpress/escape-html": "^2.29.0",
"@wordpress/hooks": "3.29.0",
"@wordpress/html-entities": "^3.29.0",
"@wordpress/i18n": "4.29.0",
"@headlessui/react": "1.7.14",
"@wordpress/block-editor": "12.0.0",
"@wordpress/blocks": "12.9.0",
"@wordpress/edit-post": "^7.9.0",
"@wordpress/element": "5.9.0",
"@wordpress/escape-html": "^2.32.0",
"@wordpress/hooks": "3.32.0",
"@wordpress/html-entities": "^3.32.0",
"@wordpress/i18n": "4.32.0",
"copy-to-clipboard": "3.3.3",
"react-simple-code-editor": "0.13.1",
"shiki": "0.14.0",
"shiki": "0.14.2",
"strip-ansi": "^7.0.1",
"swr": "2.1.1",
"zustand": "4.3.6"
"swr": "2.1.5",
"zustand": "4.3.7"
}
}
29 changes: 24 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Get more themes at [code-block-pro.com/themes](https://code-block-pro.com/themes
- Astro
- Awk
- Ballerina
- BAT
- BAT (Batchfile)
- Berry
- BibTeX
- BICEP
Expand All @@ -116,17 +116,21 @@ Get more themes at [code-block-pro.com/themes](https://code-block-pro.com/themes
- Dart
- DAX
- Diff
- Docker
- Dockerfile
- DreamMaker
- Elixir
- Elm
- ERB
- Erlang
- Fish
- F#
- GDResource (Godot)
- GDScript (Godot)
- GDShader (Godot)
- Gherkin
- Git Commit
- Git Rebase
- GLSL
- Gnuplot
- Go
- GraphQL
Expand All @@ -138,24 +142,28 @@ Get more themes at [code-block-pro.com/themes](https://code-block-pro.com/themes
- HCL
- HLSL
- HTML
- HTTP
- INI
- Java
- JavaScript
- Jinja HTML
- Jison
- JSON
- JSON5
- JSONC
- JSONnet
- JSSM
- JSX
- Julia
- Kotlin
- Kusto
- LaTeX
- LESS
- Liquid
- Lisp
- Logo
- Lua
- Make
- Makefile
- Markdown
- Marko
- MATLAB
Expand All @@ -173,17 +181,19 @@ Get more themes at [code-block-pro.com/themes](https://code-block-pro.com/themes
- Plaintext
- PLSQL
- PostCSS
- PowerShell
- Power Query
- PowerShell
- Prisma
- Prolog
- Protocol Buffers
- Pug
- Puppet
- PureScript
- Python
- R
- Raku
- Razor
- Windows Registry
- Rel
- RISC-V
- RST
Expand All @@ -195,7 +205,9 @@ Get more themes at [code-block-pro.com/themes](https://code-block-pro.com/themes
- Scheme
- SCSS
- ShaderLab
- ShellScript (bash, zsh, sh, shell)
- Bash
- ShellScript
- Zsh
- Smalltalk
- Solidity
- SPARQL
Expand All @@ -214,6 +226,7 @@ Get more themes at [code-block-pro.com/themes](https://code-block-pro.com/themes
- Turtle
- Twig
- TypeScript
- V
- VB
- Verilog
- VHDL
Expand All @@ -222,6 +235,8 @@ Get more themes at [code-block-pro.com/themes](https://code-block-pro.com/themes
- Vue
- WASM
- Wenyan
- WGSL
- Wolfram
- XML
- XSL
- YAML
Expand Down Expand Up @@ -251,6 +266,10 @@ Themes are rendered inside the editor as you type or make changes, so the code b

== Changelog ==

- Feature: Added new language grammars: GD Script, GD Resource, GD Shader, GLSL, Http, Jison, JSON5, Kusto (kql), Protocol Buffers (.proto), Windows Registry (.reg), V, WGSL, and Wolfram
- Tweak: Removed toolbar language select and added functionality to focus on the sidebar setting
- Refactor: Moved header/footer settings out of the language select into their own panels

= 1.15.0 - 2023-04-08 =
- Feature: Add notice to users who do not have permission to update
- Feature: Added hooks to allow users to add their own themes (or via the theme pack)
Expand Down
42 changes: 30 additions & 12 deletions src/defaultLanguages.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"astro": "Astro",
"awk": "Awk",
"ballerina": "Ballerina",
"bat": "BAT",
"batch": "Batch",
"be": "BE",
"bat": "BAT (Batchfile)",
"batch": "BAT (Batchfile)",
"berry": "Berry",
"be": "Berry",
"bibtex": "BibTeX",
"bicep": "BICEP",
"blade": "Blade",
"c": "C",
"cadence": "Cadence",
"cdc": "CDC",
"cdc": "Cadence",
"clarity": "Clarity",
"clj": "Clojure",
"clojure": "Clojure",
Expand All @@ -34,23 +34,28 @@
"crystal": "Crystal",
"csharp": "C#",
"c#": "C#",
"cs": "C#",
"css": "CSS",
"cue": "CUE",
"d": "D",
"dart": "Dart",
"dax": "DAX",
"diff": "Diff",
"docker": "Docker",
"docker": "Dockerfile",
"dockerfile": "Dockerfile",
"dream-maker": "DreamMaker",
"elixir": "Elixir",
"elm": "Elm",
"erb": "ERB",
"html-ruby-erb": "ERB",
"erlang": "Erlang",
"erl": "Erlang",
"fish": "Fish",
"fsharp": "F#",
"f#": "F#",
"fsl": "FSL",
"fs": "F#",
"gdresource": "GDResource",
"gdscript": "GDScript",
"gdshader": "GDShader",
"gherkin": "Gherkin",
"git-commit": "Git Commit",
"git-rebase": "Git Rebase",
Expand All @@ -62,24 +67,31 @@
"hack": "Hack",
"haml": "HAML",
"handlebars": "Handlebars",
"hbs": "Handlebars",
"haskell": "Haskell",
"hbs": "HBS",
"hs": "Haskell",
"hcl": "HCL",
"hlsl": "HLSL",
"html": "HTML",
"http": "HTTP",
"ini": "INI",
"properties": "INI",
"java": "Java",
"javascript": "JavaScript",
"js": "JavaScript",
"jinja-html": "Jinja HTML",
"jison": "Jison",
"json": "JSON",
"json5": "JSON5",
"jsonc": "JSONC",
"jsonnet": "JSONnet",
"jssm": "JSSM",
"fsl": "JSSM",
"jsx": "JSX",
"julia": "Julia",
"kotlin": "Kotlin",
"kusto": "Kusto",
"kql": "Kusto",
"latex": "LaTeX",
"less": "LESS",
"liquid": "Liquid",
Expand All @@ -102,17 +114,18 @@
"objective-cpp": "Objective-C++",
"ocaml": "OCaml",
"pascal": "Pascal",
"powerquery": "Power Query",
"perl": "Perl",
"php": "PHP",
"plaintext": "Plaintext",
"plsql": "PLSQL",
"plaintext": "Plain text",
"postcss": "PostCSS",
"powerquery": "Power Query",
"powershell": "PowerShell",
"ps": "PowerShell",
"ps1": "PowerShell",
"prisma": "Prisma",
"prolog": "Prolog",
"proto": "Protocol Buffers",
"pug": "Pug",
"jade": "Pug",
"puppet": "Puppet",
Expand All @@ -123,6 +136,7 @@
"raku": "Raku",
"perl6": "Raku",
"razor": "Razor",
"reg": "Windows Registry",
"rel": "Rel",
"riscv": "RISC-V",
"rst": "RST",
Expand All @@ -138,10 +152,10 @@
"shaderlab": "ShaderLab",
"shader": "Shader",
"shellscript": "ShellScript",
"bash": "ShellScript",
"bash": "Bash",
"shell": "ShellScript",
"sh": "ShellScript",
"zsh": "ShellScript",
"zsh": "Zsh",
"smalltalk": "Smalltalk",
"solidity": "Solidity",
"sparql": "SPARQL",
Expand All @@ -162,6 +176,7 @@
"twig": "Twig",
"typescript": "TypeScript",
"ts": "TypeScript",
"v": "V",
"vb": "VB",
"cmd": "VB",
"verilog": "Verilog",
Expand All @@ -174,8 +189,11 @@
"wasm": "WASM",
"wenyan": "Wenyan",
"文言": "Wenyan",
"wgsl": "WGSL",
"wolframe": "Wolfram",
"xml": "XML",
"xsl": "XSL",
"yaml": "YAML",
"yml": "YAML",
"zenscript": "ZenScript"
}
2 changes: 1 addition & 1 deletion src/editor/components/FooterSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const FooterSelect = ({ attributes, onClick }: FooterSelectProps) => {
['simpleStringEnd', 'simpleStringStart'].includes(slug)
? // Settings refers to the panel that can be expanded
__(
'Update extras in the Settings panel',
'Update extra settings above',
'code-block-pro',
)
: undefined
Expand Down
2 changes: 1 addition & 1 deletion src/editor/components/HeaderSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const HeaderSelect = ({ attributes, onClick }: HeaderSelectProps) => {
['simpleString'].includes(slug)
? // Settings refers to the panel that can be expanded
__(
'Update extras in the Settings panel',
'Update extra settings above',
'code-block-pro',
)
: undefined
Expand Down
7 changes: 5 additions & 2 deletions src/editor/components/ThemesPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ import { ThemeFilter } from './ThemeFilter';
import { ThemeSelect } from './ThemeSelect';

export const ThemesPanel = ({
bringAttentionToThemes,
attributes,
setAttributes,
}: AttributesPropsAndSetter) => {
}: AttributesPropsAndSetter & { bringAttentionToThemes?: boolean }) => {
const { updateThemeHistory } = useThemeStore();
const [search, setSearch] = useState<string>('');
const ready = useSettingsStoreReady();
return (
<PanelBody title={__('Themes', 'code-block-pro')} initialOpen={false}>
<PanelBody
title={__('Themes', 'code-block-pro')}
initialOpen={bringAttentionToThemes ?? false}>
{ready && <ThemeFilter search={search} setSearch={setSearch} />}
{ready && (
<ThemeSelect
Expand Down
Loading

0 comments on commit bcae770

Please sign in to comment.