Skip to content

Commit

Permalink
feat: add while and update editorjs
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezcarlosjr committed Nov 19, 2023
1 parent ab2fbc4 commit 4b2eb5b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@editorjs/attaches": "https://github.com/sanchezcarlosjr/attaches.git",
"@editorjs/checklist": "1.5.0",
"@editorjs/delimiter": "1.3.0",
"@editorjs/editorjs": "2.29.0-rc.4",
"@editorjs/editorjs": "2.29.0-rc.6",
"@editorjs/embed": "2.6.0",
"@editorjs/header": "https://github.com/sanchezcarlosjr/header.git",
"@editorjs/list": "1.8.0",
Expand Down
2 changes: 2 additions & 0 deletions src/app/notebook/cellTypes/languages/Cpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ function autocompleteCpp(context: CompletionContext): CompletionResult | null {
{label: "int", type: "variable", apply: "int x=0;",detail: "create a int variable"},
{label: "for", type: "loop", apply: `for(int i=0; i<n;i++) {
}`,detail: "create a for i=0;i<n;i++"},
{label: "while", type: "loop", apply: `while() {
}`,detail: "create a while"},
{label: "hello world", type: "text", apply: `#include <stdio.h>
int main() {
printf("Hello World");
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1916,10 +1916,10 @@
dependencies:
"@codexteam/icons" "^0.0.5"

"@editorjs/editorjs@2.29.0-rc.4":
version "2.29.0-rc.4"
resolved "https://registry.yarnpkg.com/@editorjs/editorjs/-/editorjs-2.29.0-rc.4.tgz#0c28700a995c2f294cc89778687508d5e5c82429"
integrity sha512-lgjE7j7L5wUm+gTWEo6XedjFiSs/W0i7gqE7uHRKTdHhCch9UVqFTadurcg82dKbvVjgG1EW1j1chbmuICcTGQ==
"@editorjs/editorjs@2.29.0-rc.6":
version "2.29.0-rc.6"
resolved "https://registry.yarnpkg.com/@editorjs/editorjs/-/editorjs-2.29.0-rc.6.tgz#55183e2c45e8b56791f0bb088b28e47501c3a4d9"
integrity sha512-T+6yOtiMWow0QR9IYIpvY9xkQcCTQq3dZNSzZ+cLD4gPaSQLw/+CLenFS+cUe2jaA5hfhGUsjymccc3Gm2VkLA==

"@editorjs/embed@2.6.0":
version "2.6.0"
Expand Down

0 comments on commit 4b2eb5b

Please sign in to comment.