Skip to content

Commit f61689c

Browse files
ivictborCopilot
andcommitted
fix: escape mustache syntax in Vue templates for error messages and translations
Co-authored-by: Copilot <copilot@github.com>
1 parent 7db1a0c commit f61689c

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

adminforth/commands/createApp/templates/.agents/skills/adminforth-custom-vue/SKILL.md.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ show: {
134134
/>
135135

136136
<p v-if="errorMessage" class="text-sm text-red-600">
137-
{{ errorMessage }}
137+
\{{ errorMessage }}
138138
</p>
139139

140140
<p v-else-if="isEmpty" class="text-sm text-amber-600">
@@ -227,9 +227,9 @@ function syncState() {
227227
<template>
228228
<div class="flex items-center gap-2">
229229
<span>
230-
{{ meta?.filler?.repeat(record.number_of_rooms || 0) }}
230+
\{{ meta?.filler?.repeat(record.number_of_rooms || 0) }}
231231
</span>
232-
<span>{{ record.number_of_rooms }} {{ meta?.suffix }}</span>
232+
<span>\{{ record.number_of_rooms }} \{{ meta?.suffix }}</span>
233233
</div>
234234
</template>
235235

adminforth/commands/createApp/utils.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,11 @@ async function writeTemplateFiles(dirname, cwd, useNpm, options) {
354354
dest: '.agents/skills/adminforth-hooks/SKILL.md',
355355
data: {},
356356
},
357-
// {
358-
// src: '.agents/skills/adminforth-custom-vue/SKILL.md.hbs',
359-
// dest: '.agents/skills/adminforth-custom-vue/SKILL.md',
360-
// data: {},
361-
// },
357+
{
358+
src: '.agents/skills/adminforth-custom-vue/SKILL.md.hbs',
359+
dest: '.agents/skills/adminforth-custom-vue/SKILL.md',
360+
data: {},
361+
},
362362
{
363363
// We'll write .env using the same content as .env.sample
364364
src: '.env.local.hbs',

adminforth/commands/createCustomComponent/templates/customCrud/bottom.vue.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@click="handleClick"
66
class="text-white bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-500 dark:hover:bg-blue-600 dark:focus:ring-blue-800"
77
>
8-
{{ $t('Example') }}
8+
\{{ $t('Example') }}
99
</button>
1010
</div>
1111
</template>

0 commit comments

Comments
 (0)