release: WRNexusJS 0.6.0

This commit is contained in:
2026-08-01 01:09:58 +05:30
parent 3e565e8d03
commit 687d345882
502 changed files with 33038 additions and 11358 deletions
+83
View File
@@ -406,5 +406,88 @@
"prefix": ["wrn-action", "action"],
"description": "Declare a named server action",
"body": ["action ${1:save}(${2:input}) {", " $0", "}"]
},
"WRN type import": {
"prefix": ["wrn-import-type"],
"description": "Import an application TypeScript type",
"body": ["import type {", " ${1:PublicUser}", "} from \"@/types/${2:user}.ts\"", "$0"]
},
"WRN component import": {
"prefix": ["wrn-import-component"],
"description": "Import a WRN component",
"body": ["import ${1:UserCard}", " from \"@/components/${1:UserCard}.wrn\"", "$0"]
},
"WRN outputs": {
"prefix": ["wrn-outputs"],
"description": "Declare typed callable outputs",
"body": [
"outputs {",
" ${1:confirm}(payload: ${2:ConfirmPayload})",
" ${3:cancel}()",
"}"
]
},
"WRN client function": {
"prefix": ["wrn-client-function"],
"description": "Declare a browser-only function",
"body": ["client ${1|,async |}function ${2:name}(${3}): ${4:void} {", " $0", "}"]
},
"WRN server function": {
"prefix": ["wrn-server-function"],
"description": "Declare a server-only function",
"body": ["server ${1|,async |}function ${2:name}(${3}): ${4:void} {", " $0", "}"]
},
"WRN shared function": {
"prefix": ["wrn-shared-function"],
"description": "Declare a shared function",
"body": ["shared function ${1:name}(${2}): ${3:void} {", " $0", "}"]
},
"WRN state block": {
"prefix": ["wrn-state-block"],
"description": "Declare grouped state",
"body": ["state {", " ${1:name}: ${2:string} = ${3:\"\"}", "}"]
},
"WRN client state": {
"prefix": ["wrn-client-state"],
"description": "Declare client state",
"body": ["client state {", " ${1:menuOpen}: boolean = false", "}"]
},
"WRN server state": {
"prefix": ["wrn-server-state"],
"description": "Declare server state",
"body": ["server state {", " ${1:sessionId}: string | null = null", "}"]
},
"WRN global store": {
"prefix": ["wrn-global-store"],
"description": "Declare a request-scoped global store",
"body": [
"global store ${1:UserStore} {",
" state {",
" ${2:user}: ${3:PublicUser | null} = null",
" }",
"}"
]
},
"WRN page store": {
"prefix": ["wrn-page-store"],
"description": "Declare a route-scoped page store",
"body": [
"page store ${1:SearchStore} {",
" state {",
" ${2:query}: string = \"\"",
" }",
"}"
]
},
"WRN persist": {
"prefix": ["wrn-persist"],
"description": "Declare store persistence",
"body": [
"persist {",
" storage = \"${1|memory,session,local|}\"",
" include = [\"${2:field}\"]",
" version = ${3:1}",
"}"
]
}
}