-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ecf751
commit 71edece
Showing
20 changed files
with
284 additions
and
383 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
{ | ||
"recommendations": ["dbaeumer.vscode-eslint", "unifiedjs.vscode-mdx", "esbenp.prettier-vscode", "ms-playwright.playwright", "rust-lang.rust-analyzer", "ms-azuretools.vscode-docker", "manucorporat.vermoji", "vadimcn.vscode-lldb"], | ||
"unwantedRecommendations": [] | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"unifiedjs.vscode-mdx", | ||
"esbenp.prettier-vscode", | ||
"ms-playwright.playwright", | ||
"rust-lang.rust-analyzer", | ||
"ms-azuretools.vscode-docker", | ||
"manucorporat.vermoji", | ||
"vadimcn.vscode-lldb" | ||
], | ||
"unwantedRecommendations": [] | ||
} |
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 |
---|---|---|
@@ -1,134 +1,98 @@ | ||
{ | ||
"Qwik component": { | ||
"scope": "typescriptreact", | ||
"prefix": "q:component w/props", | ||
"description": "Qwik component w/ props", | ||
"body": [ | ||
"export interface ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}}Props {", | ||
" $2", | ||
"}", | ||
"", | ||
"export const $1 = component$((props: $1Props) => {", | ||
" const state = useStore({", | ||
" $3", | ||
" });", | ||
" ", | ||
" return <${4:button} on${5:Click}$={(${6:e}) => {$7}}>$8</${4}>", | ||
"});" | ||
] | ||
}, | ||
"Qwik component (simple)": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:component simple", | ||
"description": "Simple Qwik component", | ||
"body": [ | ||
"export const ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}} = component$(() => {", | ||
" return <${2:button}>$4</$2>", | ||
"});" | ||
] | ||
}, | ||
"Qwik state": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useStore$", | ||
"description": "useStore() declaration", | ||
"body": [ | ||
"const ${1:state} = useStore({", | ||
" $2", | ||
"});", | ||
"$0" | ||
] | ||
}, | ||
"Qwik signal": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useSignal", | ||
"description": "useSignal() declaration", | ||
"body": [ | ||
"const ${1:signal} = useSignal($2);", | ||
"$0" | ||
] | ||
}, | ||
"$ hook": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:$", | ||
"description": "$() function hook", | ||
"body": [ | ||
"$(() => {", | ||
" $0", | ||
"});", | ||
"" | ||
] | ||
}, | ||
"useVisibleTask": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useVisibleTask", | ||
"description": "useVisibleTask$() function hook", | ||
"body": [ | ||
"useVisibleTask$(({ track }) => {", | ||
" $0", | ||
"});", | ||
"" | ||
] | ||
}, | ||
"useTask": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useTask", | ||
"description": "useTask$() function hook", | ||
"body": [ | ||
"useTask$(({ track }) => {", | ||
" track(() => $1);", | ||
" $0", | ||
"});", | ||
"" | ||
] | ||
}, | ||
"useResource": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useResource$", | ||
"description": "useResource$() declaration", | ||
"body": [ | ||
"const $1 = useResource$(({ track, previous, cleanup }) => {", | ||
" $0", | ||
"});", | ||
"" | ||
] | ||
}, | ||
"useOn": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useOn", | ||
"description": "useOn declaration", | ||
"body": [ | ||
"useOn(", | ||
"'$1',", | ||
"$((event) => {", | ||
" const { $3 } = event as $2;", | ||
" })", | ||
");" | ||
] | ||
}, | ||
"useOnDocument": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useOnDocument", | ||
"description": "useOnDocument declaration", | ||
"body": [ | ||
"useOnDocument(", | ||
"'$1',", | ||
"$((event) => {", | ||
" const { $3 } = event as $2;", | ||
" })", | ||
");" | ||
] | ||
}, | ||
"useOnWindow": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useOnWindow", | ||
"description": "useOnWindow declaration", | ||
"body": [ | ||
"useOnWindow(", | ||
"'$1',", | ||
"$((event) => {", | ||
" const { $3 } = event as $2;", | ||
" })", | ||
");" | ||
] | ||
} | ||
} | ||
"Qwik component": { | ||
"scope": "typescriptreact", | ||
"prefix": "q:component w/props", | ||
"description": "Qwik component w/ props", | ||
"body": [ | ||
"export interface ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}}Props {", | ||
" $2", | ||
"}", | ||
"", | ||
"export const $1 = component$((props: $1Props) => {", | ||
" const state = useStore({", | ||
" $3", | ||
" });", | ||
" ", | ||
" return <${4:button} on${5:Click}$={(${6:e}) => {$7}}>$8</${4}>", | ||
"});" | ||
] | ||
}, | ||
"Qwik component (simple)": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:component simple", | ||
"description": "Simple Qwik component", | ||
"body": [ | ||
"export const ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}} = component$(() => {", | ||
" return <${2:button}>$4</$2>", | ||
"});" | ||
] | ||
}, | ||
"Qwik state": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useStore$", | ||
"description": "useStore() declaration", | ||
"body": ["const ${1:state} = useStore({", " $2", "});", "$0"] | ||
}, | ||
"Qwik signal": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useSignal", | ||
"description": "useSignal() declaration", | ||
"body": ["const ${1:signal} = useSignal($2);", "$0"] | ||
}, | ||
"$ hook": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:$", | ||
"description": "$() function hook", | ||
"body": ["$(() => {", " $0", "});", ""] | ||
}, | ||
"useVisibleTask": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useVisibleTask", | ||
"description": "useVisibleTask$() function hook", | ||
"body": ["useVisibleTask$(({ track }) => {", " $0", "});", ""] | ||
}, | ||
"useTask": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useTask", | ||
"description": "useTask$() function hook", | ||
"body": ["useTask$(({ track }) => {", " track(() => $1);", " $0", "});", ""] | ||
}, | ||
"useResource": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useResource$", | ||
"description": "useResource$() declaration", | ||
"body": ["const $1 = useResource$(({ track, previous, cleanup }) => {", " $0", "});", ""] | ||
}, | ||
"useOn": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useOn", | ||
"description": "useOn declaration", | ||
"body": ["useOn(", "'$1',", "$((event) => {", " const { $3 } = event as $2;", " })", ");"] | ||
}, | ||
"useOnDocument": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useOnDocument", | ||
"description": "useOnDocument declaration", | ||
"body": [ | ||
"useOnDocument(", | ||
"'$1',", | ||
"$((event) => {", | ||
" const { $3 } = event as $2;", | ||
" })", | ||
");" | ||
] | ||
}, | ||
"useOnWindow": { | ||
"scope": "javascriptreact,typescriptreact", | ||
"prefix": "q:useOnWindow", | ||
"description": "useOnWindow declaration", | ||
"body": [ | ||
"useOnWindow(", | ||
"'$1',", | ||
"$((event) => {", | ||
" const { $3 } = event as $2;", | ||
" })", | ||
");" | ||
] | ||
} | ||
} |
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
Oops, something went wrong.