@devappsnpm/vue-kit 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/stubs/module/crud/modal/components/DeleteModal.vue.stub +1 -1
- package/stubs/module/crud/modal/components/FormModal.vue.stub +2 -2
- package/stubs/module/crud/modal/services/service.ts.stub +2 -2
- package/stubs/module/crud/modal/stores/store.ts.stub +1 -1
- package/stubs/module/crud/page/components/DeleteModal.vue.stub +1 -1
- package/stubs/module/crud/page/components/Form.vue.stub +1 -1
- package/stubs/module/crud/page/pages/CreatePage.vue.stub +1 -1
- package/stubs/module/crud/page/services/service.ts.stub +2 -2
- package/stubs/module/crud/page/stores/store.ts.stub +1 -1
- package/stubs/module/resource/service.ts.stub +2 -2
- package/stubs/module/resource/store.ts.stub +1 -1
- package/stubs/services/service.ts.stub +2 -2
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { ConfirmDeleteModal } from '@
|
|
2
|
+
import { ConfirmDeleteModal } from '@devappsnpm/vue-kit/ui'
|
|
3
3
|
import { use{{ ModuleName }}Store } from '../stores/{{ moduleSlug }}.store'
|
|
4
4
|
import type { {{ ModuleName }} } from '../types/{{ moduleSlug }}.types'
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { reactive, watch } from 'vue'
|
|
3
|
-
import { BaseModal } from '@
|
|
4
|
-
import { Form } from '@
|
|
3
|
+
import { BaseModal } from '@devappsnpm/vue-kit/ui'
|
|
4
|
+
import { Form } from '@devappsnpm/vue-kit'
|
|
5
5
|
import { use{{ ModuleName }}Store } from '../stores/{{ moduleSlug }}.store'
|
|
6
6
|
import type { {{ ModuleName }}, {{ ModuleName }}Form } from '../types/{{ moduleSlug }}.types'
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CrudService } from '@
|
|
2
|
-
import type { HttpClient } from '@
|
|
1
|
+
import { CrudService } from '@devappsnpm/vue-kit'
|
|
2
|
+
import type { HttpClient } from '@devappsnpm/vue-kit'
|
|
3
3
|
import type { {{ ModuleName }} } from '../types/{{ moduleSlug }}.types'
|
|
4
4
|
|
|
5
5
|
export class {{ ModuleName }}Service extends CrudService<{{ ModuleName }}> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineCrudStore } from '@
|
|
1
|
+
import { defineCrudStore } from '@devappsnpm/vue-kit'
|
|
2
2
|
import { {{ ModuleName }}Service } from '../services/{{ moduleSlug }}.service'
|
|
3
3
|
import type { {{ ModuleName }} } from '../types/{{ moduleSlug }}.types'
|
|
4
4
|
import { useHttpClient } from '@/composables/useHttpClient' // adjust to your project
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { ConfirmDeleteModal } from '@
|
|
2
|
+
import { ConfirmDeleteModal } from '@devappsnpm/vue-kit/ui'
|
|
3
3
|
import { use{{ ModuleName }}Store } from '../stores/{{ moduleSlug }}.store'
|
|
4
4
|
import type { {{ ModuleName }} } from '../types/{{ moduleSlug }}.types'
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { reactive, watch } from 'vue'
|
|
3
|
-
import { Form } from '@
|
|
3
|
+
import { Form } from '@devappsnpm/vue-kit'
|
|
4
4
|
import type { {{ ModuleName }}, {{ ModuleName }}Form } from '../types/{{ moduleSlug }}.types'
|
|
5
5
|
|
|
6
6
|
const props = defineProps<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { reactive } from 'vue'
|
|
3
3
|
import { useRouter } from 'vue-router'
|
|
4
|
-
import { Form } from '@
|
|
4
|
+
import { Form } from '@devappsnpm/vue-kit'
|
|
5
5
|
import { use{{ ModuleName }}Store } from '../stores/{{ moduleSlug }}.store'
|
|
6
6
|
import {{ ModuleName }}Form from '../components/{{ ModuleName }}Form.vue'
|
|
7
7
|
import type { {{ ModuleName }}Form as {{ ModuleName }}FormData } from '../types/{{ moduleSlug }}.types'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CrudService } from '@
|
|
2
|
-
import type { HttpClient } from '@
|
|
1
|
+
import { CrudService } from '@devappsnpm/vue-kit'
|
|
2
|
+
import type { HttpClient } from '@devappsnpm/vue-kit'
|
|
3
3
|
import type { {{ ModuleName }} } from '../types/{{ moduleSlug }}.types'
|
|
4
4
|
|
|
5
5
|
export class {{ ModuleName }}Service extends CrudService<{{ ModuleName }}> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineCrudStore } from '@
|
|
1
|
+
import { defineCrudStore } from '@devappsnpm/vue-kit'
|
|
2
2
|
import { {{ ModuleName }}Service } from '../services/{{ moduleSlug }}.service'
|
|
3
3
|
import type { {{ ModuleName }} } from '../types/{{ moduleSlug }}.types'
|
|
4
4
|
import { useHttpClient } from '@/composables/useHttpClient' // adjust to your project
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CrudService } from '@
|
|
2
|
-
import type { HttpClient } from '@
|
|
1
|
+
import { CrudService } from '@devappsnpm/vue-kit'
|
|
2
|
+
import type { HttpClient } from '@devappsnpm/vue-kit'
|
|
3
3
|
import type { {{ ModuleName }} } from '../types/{{ moduleSlug }}.types'
|
|
4
4
|
|
|
5
5
|
export class {{ ModuleName }}Service extends CrudService<{{ ModuleName }}> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineCrudStore } from '@
|
|
1
|
+
import { defineCrudStore } from '@devappsnpm/vue-kit'
|
|
2
2
|
import { {{ ModuleName }}Service } from '../services/{{ moduleSlug }}.service'
|
|
3
3
|
import type { {{ ModuleName }} } from '../types/{{ moduleSlug }}.types'
|
|
4
4
|
import { useHttpClient } from '@/composables/useHttpClient' // adjust to your project
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseService } from '@
|
|
2
|
-
import type { HttpClient } from '@
|
|
1
|
+
import { BaseService } from '@devappsnpm/vue-kit'
|
|
2
|
+
import type { HttpClient } from '@devappsnpm/vue-kit'
|
|
3
3
|
|
|
4
4
|
export class {{ ModuleName }}Service extends BaseService {
|
|
5
5
|
constructor(http: HttpClient) {
|