@b10cks/nuxt 0.10.1 → 0.10.3
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/README.md +3 -0
- package/dist/module.json +1 -1
- package/dist/runtime/composables/useB10cksApi.js +5 -2
- package/dist/runtime/plugin.js +1 -1
- package/package.json +14 -16
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ export default defineNuxtConfig({
|
|
|
28
28
|
### Directives
|
|
29
29
|
|
|
30
30
|
#### `v-editable`
|
|
31
|
+
|
|
31
32
|
Mark content as editable within the b10cks editor.
|
|
32
33
|
|
|
33
34
|
```vue
|
|
@@ -37,6 +38,7 @@ Mark content as editable within the b10cks editor.
|
|
|
37
38
|
```
|
|
38
39
|
|
|
39
40
|
#### `v-editable-field`
|
|
41
|
+
|
|
40
42
|
Mark specific fields within editable blocks.
|
|
41
43
|
|
|
42
44
|
```vue
|
|
@@ -49,6 +51,7 @@ Mark specific fields within editable blocks.
|
|
|
49
51
|
### Components
|
|
50
52
|
|
|
51
53
|
#### `B10cksComponent`
|
|
54
|
+
|
|
52
55
|
Render b10cks components directly in your Nuxt app.
|
|
53
56
|
|
|
54
57
|
```vue
|
package/dist/module.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed, ref } from "vue";
|
|
2
1
|
import { useNuxtApp, useState } from "#app";
|
|
2
|
+
import { computed, ref } from "vue";
|
|
3
3
|
export const useB10cksApi = () => {
|
|
4
4
|
const { $b10cksClient } = useNuxtApp();
|
|
5
5
|
function useApiResource(endpoint, options = {}) {
|
|
@@ -118,7 +118,10 @@ export const useB10cksApi = () => {
|
|
|
118
118
|
pending.value = true;
|
|
119
119
|
error.value = null;
|
|
120
120
|
try {
|
|
121
|
-
const results = await $b10cksClient.getAll(
|
|
121
|
+
const results = await $b10cksClient.getAll(
|
|
122
|
+
"redirects",
|
|
123
|
+
params
|
|
124
|
+
);
|
|
122
125
|
const transformed = Object.fromEntries(
|
|
123
126
|
results.map(({ source, target, status_code }) => [source, { target, status_code }])
|
|
124
127
|
);
|
package/dist/runtime/plugin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { useState } from "#app";
|
|
1
2
|
import { ApiClient } from "@b10cks/client";
|
|
2
3
|
import { B10cksVue, previewBridge } from "@b10cks/vue";
|
|
3
4
|
import { defineNuxtPlugin, useRequestURL, useRuntimeConfig } from "nuxt/app";
|
|
4
|
-
import { useState } from "#app";
|
|
5
5
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
6
6
|
const config = useRuntimeConfig();
|
|
7
7
|
const url = useRequestURL();
|
package/package.json
CHANGED
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@b10cks/nuxt",
|
|
3
|
+
"version": "0.10.3",
|
|
4
|
+
"description": "b10cks Nuxt module",
|
|
3
5
|
"license": "MIT",
|
|
4
|
-
"version": "0.10.1",
|
|
5
6
|
"author": "Michael Wallner @ Coder's Cantina",
|
|
6
|
-
"description": "b10cks Nuxt module",
|
|
7
|
-
"type": "module",
|
|
8
7
|
"repository": {
|
|
9
8
|
"type": "git",
|
|
10
9
|
"url": "https://github.com/b10cks/sdk.git",
|
|
11
10
|
"directory": "packages/nuxt"
|
|
12
11
|
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "./dist/module.mjs",
|
|
13
17
|
"exports": {
|
|
14
18
|
".": {
|
|
15
19
|
"types": "./dist/types.d.mts",
|
|
16
20
|
"import": "./dist/module.mjs"
|
|
17
21
|
}
|
|
18
22
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@b10cks/client": "^0.10.1",
|
|
28
|
+
"@b10cks/vue": "^0.10.3"
|
|
29
|
+
},
|
|
23
30
|
"devDependencies": {
|
|
24
|
-
"@nuxt/eslint": "^1.10.0",
|
|
25
|
-
"@nuxt/eslint-config": "^1.10.0",
|
|
26
31
|
"@nuxt/kit": "^4.2.1",
|
|
27
32
|
"@nuxt/module-builder": "^1.0.2",
|
|
28
33
|
"@nuxt/schema": "^4.2.1",
|
|
@@ -33,13 +38,6 @@
|
|
|
33
38
|
"main"
|
|
34
39
|
]
|
|
35
40
|
},
|
|
36
|
-
"publishConfig": {
|
|
37
|
-
"access": "public"
|
|
38
|
-
},
|
|
39
|
-
"dependencies": {
|
|
40
|
-
"@b10cks/client": "^0.10.1",
|
|
41
|
-
"@b10cks/vue": "^0.10.1"
|
|
42
|
-
},
|
|
43
41
|
"scripts": {
|
|
44
42
|
"build": "nuxt-module-build prepare && nuxt-module-build build",
|
|
45
43
|
"lint": "biome check --apply .",
|