Skip to content

Commit fa52946

Browse files
ValentinCrochemorealanpoulain
authored andcommitted
Fix small details
1 parent 28ce38d commit fa52946

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

src/generators/QuasarGenerator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default class extends BaseGenerator {
8989
);
9090
console.log(
9191
chalk.green(`
92-
// Add to quasar.conf
92+
// Add to quasar.config.js
9393
// 1. in 'framework.config', can be customized later
9494
notify: {
9595
position: 'top',

templates/quasar/components/foo/FormComponent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/>
1212
{{else}}
1313
<q-input
14-
v-model="item.{{name}}"
14+
v-model{{#compare type "==" "number" }}.number{{/compare}}="item.{{name}}"
1515
:label="$t('{{../lc}}.{{name}}')"
1616
:error="Boolean(violations?.{{name}})"
1717
:error-message="violations?.{{name}}"

templates/quasar/components/foo/ListComponent.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
@delete="deleteItem(row)"
4343
/>
4444
</template>
45-
4645
{{#each fields}}
4746
{{#if isReferences}}
4847
<template #body-cell-{{reference.name}}="{ value }">
@@ -139,7 +138,7 @@ import { formatDateTime } from 'src/utils/date';
139138
import { use{{titleUcFirst}}ListStore } from 'stores/{{lc}}/list';
140139
import { use{{titleUcFirst}}DeleteStore } from 'stores/{{lc}}/delete';
141140
import { storeToRefs } from 'pinia';
142-
import { onBeforeUnmount, Ref, ref, watch } from 'vue';
141+
import { onBeforeUnmount{{#if parameters.length}}, Ref{{/if}}, ref, watch } from 'vue';
143142
import { useBreadcrumb } from 'src/composables/breadcrumb';
144143
import { useWatchErrors } from 'src/composables/errors';
145144
import { useMercureList } from 'src/composables/mercureList';

templates/quasar/components/foo/ShowComponent.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
:to="{ name: '{{embedded.title}}Show', params: { id: {{lowercase embedded.title}}['@id'] } }"
5959
:key="{{lowercase embedded.title}}['@id']"
6060
>
61-
\{{ {{lowercase embedded.title}}["@id"] }}
61+
\{{ {{lowercase embedded.title}}['@id'] }}
6262

6363
<br />
6464
</router-link>
@@ -69,19 +69,19 @@
6969
v-for="{{lowercase embedded.title}} in item.{{embedded.name}}"
7070
:key="{{lowercase embedded.title}}['@id']"
7171
>
72-
\{{ {{lowercase embedded.title}}["@id"] }}
72+
\{{ {{lowercase embedded.title}}['@id'] }}
7373
</p>
7474
</template>
7575
{{else if embedded}}
7676
<router-link
7777
v-if="router.hasRoute('{{embedded.title}}Show')"
7878
:to="{ name: '{{embedded.title}}Show', params: { id: item.{{lowercase embedded.title}}['@id'] } }"
7979
>
80-
\{{ item.{{lowercase embedded.title}}["@id"] }}
80+
\{{ item.{{lowercase embedded.title}}['@id'] }}
8181
</router-link>
8282

8383
<p v-else>
84-
\{{ item.{{lowercase embedded.title}}["@id"] }}
84+
\{{ item.{{lowercase embedded.title}}['@id'] }}
8585
</p>
8686
{{else if (compare type "==" "dateTime") }}
8787
\{{ formatDateTime(item.{{name}}) }}

0 commit comments

Comments
 (0)