@farming-labs/nuxt-theme 0.1.47 → 0.1.48
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farming-labs/nuxt-theme",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.48",
|
|
4
4
|
"description": "Nuxt/Vue UI components for @farming-labs/docs — layout, sidebar, TOC, search, and theme toggle",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"sugar-high": "^0.9.5",
|
|
84
|
-
"@farming-labs/docs": "0.1.
|
|
84
|
+
"@farming-labs/docs": "0.1.48"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"nuxt": ">=3.0.0",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { resolveReadingTimeOptions } from "@farming-labs/docs";
|
|
3
2
|
import { computed, ref, onMounted, onUnmounted, watch } from "vue";
|
|
4
3
|
import { useRoute } from "vue-router";
|
|
5
4
|
import { useHead } from "#app";
|
|
@@ -170,11 +169,8 @@ const showPageActions = computed(
|
|
|
170
169
|
);
|
|
171
170
|
const showActionsAbove = computed(() => pageActionsPosition.value === "above-title" && showPageActions.value);
|
|
172
171
|
const showActionsBelow = computed(() => pageActionsPosition.value === "below-title" && showPageActions.value);
|
|
173
|
-
const readingTimeConfig = computed(() =>
|
|
174
|
-
resolveReadingTimeOptions(props.config?.readingTime as never),
|
|
175
|
-
);
|
|
176
172
|
const readingTimeValue = computed(() =>
|
|
177
|
-
|
|
173
|
+
typeof props.data.readingTime === "number"
|
|
178
174
|
? Math.max(1, Math.ceil(props.data.readingTime))
|
|
179
175
|
: null,
|
|
180
176
|
);
|