Better projects

This commit is contained in:
Chris
2026-07-11 13:16:12 +01:00
parent f9f6aea868
commit 29f4436aa8
7 changed files with 51 additions and 3 deletions
+34 -1
View File
@@ -45,7 +45,7 @@ return {
s(etr('const ', 'const declaration'), {
c(1, {
sn(nil, fmta('const #~ = #~;', { i(1, 'variableName'), i(2, 'value') })),
sn(nil, fmta('const #~ = #~;', { i(1), i(2) })),
sn(
nil,
fmta(
@@ -60,6 +60,38 @@ return {
}),
}),
s(etr('ref ', 'ref'), {
c(1, {
sn(nil, fmta('const #~ = ref(#~);', { i(1), i(2) })),
sn(
nil,
fmta(
[[
const #~ = ref<#~>(#~);
]],
{ i(1), i(2), i(3) }
)
),
}),
}),
s(etr('com ', 'computed'), {
c(1, {
sn(nil, fmta('const #~ = computed(() => #~);', { i(1), i(2) })),
sn(
nil,
fmta(
[[
const #~ = computed(() => {
#~
})
]],
{ i(1), i(2) }
)
),
}),
}),
s(
etr('fn ', 'function block'),
fmta(
@@ -126,3 +158,4 @@ return {
}),
}),
}