@vc-shell/create-vc-app 2.4.0-pr302.45ba88b → 2.4.0-pr302.b052b38
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/dist/index.js +1 -1
- package/dist/templates/module/composables/useDetails.ts.ejs +1 -0
- package/dist/templates/module/composables/useList.ts.ejs +2 -1
- package/dist/templates/standalone/src/bootstrap.ts.ejs +1 -2
- package/dist/templates/standalone/src/pages/App.vue.ejs +1 -0
- package/package.json +2 -3
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { useAsync, useLoading } from "@vc-shell/framework";
|
|
|
4
4
|
export default function use<%- ModuleNamePascalCase %>Details() {
|
|
5
5
|
const item = ref<Record<string, any>>({});
|
|
6
6
|
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- used by the TODO API call below
|
|
7
8
|
const { loading: itemLoading, action: fetchItem } = useAsync(async (id?: string) => {
|
|
8
9
|
// TODO: Replace with real API call
|
|
9
10
|
// const result = await apiClient.getById(id);
|
|
@@ -8,11 +8,11 @@ export interface <%- ModuleNamePascalCase %>ListQuery {
|
|
|
8
8
|
take?: number;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
11
|
export default function use<%- ModuleNamePascalCase %>List() {
|
|
13
12
|
const data: Ref<Record<string, any>[]> = ref([]);
|
|
14
13
|
const totalCount = ref(0);
|
|
15
14
|
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- used by the TODO API call below
|
|
16
16
|
const { loading: itemsLoading, action: getItems } = useAsync<<%- ModuleNamePascalCase %>ListQuery>(async (query) => {
|
|
17
17
|
// TODO: Replace with real API call
|
|
18
18
|
// const result = await apiClient.search({
|
|
@@ -25,6 +25,7 @@ export default function use<%- ModuleNamePascalCase %>List() {
|
|
|
25
25
|
// totalCount.value = result.totalCount ?? 0;
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- used by the TODO API call below
|
|
28
29
|
const { loading: deleteLoading, action: removeItems } = useAsync(async (ids?: string[]) => {
|
|
29
30
|
// TODO: Replace with real API call
|
|
30
31
|
// await Promise.all((ids ?? []).map((id) => apiClient.delete(id)));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { App } from "vue";
|
|
1
|
+
import { App<% if (dashboard) { %>, markRaw<% } %> } from "vue";
|
|
2
2
|
<% if (dashboard) { -%>
|
|
3
3
|
import { addMenuItem, registerDashboardWidget } from "@vc-shell/framework";
|
|
4
|
-
import { markRaw } from "vue";
|
|
5
4
|
import Welcome from "./components/dashboard-widgets/Welcome.vue";
|
|
6
5
|
<% } -%>
|
|
7
6
|
|
|
@@ -18,6 +18,7 @@ const isReady = ref(false);
|
|
|
18
18
|
const version = import.meta.env.PACKAGE_VERSION;
|
|
19
19
|
|
|
20
20
|
const { isAuthenticated } = useUser();
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- used by the TODO example below
|
|
21
22
|
const { setBroadcastFilter } = useBroadcastFilter();
|
|
22
23
|
|
|
23
24
|
onMounted(async () => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/create-vc-app",
|
|
3
3
|
"description": "Application scaffolding",
|
|
4
|
-
"version": "2.4.0-pr302.
|
|
4
|
+
"version": "2.4.0-pr302.b052b38",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./dist/index.js",
|
|
7
7
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/ejs": "^3.1.5",
|
|
18
18
|
"@types/prompts": "^2.4.4",
|
|
19
|
-
"@vc-shell/ts-config": "2.4.0-pr302.
|
|
19
|
+
"@vc-shell/ts-config": "2.4.0-pr302.b052b38",
|
|
20
20
|
"copyfiles": "^2.4.1",
|
|
21
21
|
"cross-env": "^7.0.3",
|
|
22
22
|
"shx": "^0.3.4",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"ejs": "^3.1.10",
|
|
27
|
-
"magicast": "^0.3.5",
|
|
28
27
|
"mri": "^1.2.0",
|
|
29
28
|
"picocolors": "^1.1.1",
|
|
30
29
|
"prettier": "^3.6.2",
|