mktcms 0.1.39 → 0.1.40

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mktcms",
3
3
  "configKey": "mktcms",
4
- "version": "0.1.39",
4
+ "version": "0.1.40",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -61,6 +61,11 @@ const module$1 = defineNuxtModule({
61
61
  as: "useTxtContents",
62
62
  from: resolver.resolve("runtime/app/composables/useTxtContents")
63
63
  },
64
+ {
65
+ name: "useImagePaths",
66
+ as: "useImagePaths",
67
+ from: resolver.resolve("runtime/app/composables/useImagePaths")
68
+ },
64
69
  {
65
70
  name: "useForm",
66
71
  as: "useForm",
@@ -0,0 +1 @@
1
+ export declare function useImagePaths(path?: string): Promise<string[]>;
@@ -0,0 +1,9 @@
1
+ export async function useImagePaths(path = "") {
2
+ const contents = await $fetch("/api/content/list", {
3
+ query: {
4
+ path,
5
+ type: "image"
6
+ }
7
+ });
8
+ return contents;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mktcms",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "description": "Simple CMS module for Nuxt",
5
5
  "repository": "mktcode/mktcms",
6
6
  "license": "MIT",