mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-11 00:05:36 +02:00
## Description **What(what issue does this code solve/what feature does it add):** Add a qwik project where we can add API(s) and a frontend which will be used to review and deploy to AWS our docker containers for testing. **How(how does it solve it):** 1. Initialise a qwik project at `apps/www` ## Required Checklist: - [ ] I have added any necessary documentation and comments in my code (where appropriate) - [ ] I have added tests to make sure my code runs in all contexts ## Further comments
37 lines
965 B
Plaintext
37 lines
965 B
Plaintext
{
|
|
"onRequest": {
|
|
"scope": "javascriptreact,typescriptreact",
|
|
"prefix": "qonRequest",
|
|
"description": "onRequest function for a route index",
|
|
"body": [
|
|
"export const onRequest: RequestHandler = (request) => {",
|
|
" $0",
|
|
"};",
|
|
],
|
|
},
|
|
"loader$": {
|
|
"scope": "javascriptreact,typescriptreact",
|
|
"prefix": "qloader$",
|
|
"description": "loader$()",
|
|
"body": ["export const $1 = routeLoader$(() => {", " $0", "});"],
|
|
},
|
|
"action$": {
|
|
"scope": "javascriptreact,typescriptreact",
|
|
"prefix": "qaction$",
|
|
"description": "action$()",
|
|
"body": ["export const $1 = routeAction$((data) => {", " $0", "});"],
|
|
},
|
|
"Full Page": {
|
|
"scope": "javascriptreact,typescriptreact",
|
|
"prefix": "qpage",
|
|
"description": "Simple page component",
|
|
"body": [
|
|
"import { component$ } from '@builder.io/qwik';",
|
|
"",
|
|
"export default component$(() => {",
|
|
" $0",
|
|
"});",
|
|
],
|
|
},
|
|
}
|