@hywax/cms 1.2.0 → 1.2.1
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/module.json +1 -1
- package/dist/module.mjs +8 -18
- package/dist/runtime/composables/useTable.js +2 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createResolver, addComponentsDir, addPlugin, addImports, addImportsDir, addServerImports, addServerImportsDir,
|
|
1
|
+
import { createResolver, addComponentsDir, addPlugin, addImports, addImportsDir, addServerImports, addServerImportsDir, addServerHandler, addTypeTemplate, addTemplate, addServerTemplate, defineNuxtModule } from '@nuxt/kit';
|
|
2
2
|
import { fileURLToPath } from 'node:url';
|
|
3
3
|
import { dirname, join } from 'pathe';
|
|
4
4
|
import { defu } from 'defu';
|
|
@@ -6,7 +6,7 @@ import { snakeCase, kebabCase } from 'scule';
|
|
|
6
6
|
import { readFile, writeFile } from 'node:fs/promises';
|
|
7
7
|
|
|
8
8
|
const name = "@hywax/cms";
|
|
9
|
-
const version = "1.2.
|
|
9
|
+
const version = "1.2.1";
|
|
10
10
|
|
|
11
11
|
function createContext(options, nuxt) {
|
|
12
12
|
const { resolve } = createResolver(import.meta.url);
|
|
@@ -110,21 +110,6 @@ async function prepareGenerateEnv({ nuxt }) {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
async function prepareInstallModules(_context) {
|
|
114
|
-
if (!hasNuxtModule("@nuxt/ui")) {
|
|
115
|
-
await installModule("@nuxt/ui");
|
|
116
|
-
}
|
|
117
|
-
if (!hasNuxtModule("@nuxtjs/mdc")) {
|
|
118
|
-
await installModule("@nuxtjs/mdc");
|
|
119
|
-
}
|
|
120
|
-
if (!hasNuxtModule("@vueuse/nuxt")) {
|
|
121
|
-
await installModule("@vueuse/nuxt");
|
|
122
|
-
}
|
|
123
|
-
if (!hasNuxtModule("nuxt-auth-utils")) {
|
|
124
|
-
await installModule("nuxt-auth-utils");
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
113
|
const icons = {
|
|
129
114
|
calendar: "lucide:calendar",
|
|
130
115
|
sort: "lucide:arrow-down-up",
|
|
@@ -483,11 +468,16 @@ const module$1 = defineNuxtModule({
|
|
|
483
468
|
version,
|
|
484
469
|
configKey: "cms"
|
|
485
470
|
},
|
|
471
|
+
moduleDependencies: {
|
|
472
|
+
"@nuxt/ui": {},
|
|
473
|
+
"@nuxtjs/mdc": {},
|
|
474
|
+
"@vueuse/nuxt": {},
|
|
475
|
+
"nuxt-auth-utils": {}
|
|
476
|
+
},
|
|
486
477
|
defaults: defaultModuleOptions,
|
|
487
478
|
async setup(options, nuxt) {
|
|
488
479
|
const context = createContext(options, nuxt);
|
|
489
480
|
prepareMergeConfigs(context);
|
|
490
|
-
await prepareInstallModules();
|
|
491
481
|
prepareTemplates(context);
|
|
492
482
|
prepareAutoImports(context);
|
|
493
483
|
prepareServerRoutes(context);
|
|
@@ -59,12 +59,12 @@ export default function useTable(initialFilters, options) {
|
|
|
59
59
|
filters,
|
|
60
60
|
updateFilters
|
|
61
61
|
} = useTableFilters(initialFilters, options);
|
|
62
|
-
const { sorting } = useTableSort(
|
|
62
|
+
const { sort, sorting } = useTableSort();
|
|
63
63
|
const { pagination } = useTablePagination(options);
|
|
64
64
|
const query = computed(() => {
|
|
65
65
|
return {
|
|
66
66
|
...filters.value,
|
|
67
|
-
...
|
|
67
|
+
...sort.value,
|
|
68
68
|
...pagination.value
|
|
69
69
|
};
|
|
70
70
|
});
|