no message
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { version, ref, watchEffect, watch, getCurrentInstance, hasInjectionContext, inject, computed, unref, createApp, effectScope, reactive, useSSRContext, defineAsyncComponent, provide, onErrorCaptured, onServerPrefetch, createVNode, resolveDynamicComponent, toRef, shallowRef, shallowReactive, isReadonly, isRef, isShallow, isReactive, toRaw, resolveComponent, mergeProps, nextTick } from 'vue';
|
||||
import { version, unref, inject, hasInjectionContext, getCurrentInstance, ref, computed, createApp, effectScope, reactive, useSSRContext, defineAsyncComponent, provide, onErrorCaptured, onServerPrefetch, createVNode, resolveDynamicComponent, toRef, shallowRef, shallowReactive, isReadonly, isRef, isShallow, isReactive, toRaw, resolveComponent, mergeProps, nextTick } from 'vue';
|
||||
import { d as useRuntimeConfig$1, $ as $fetch, w as withQuery, l as hasProtocol, p as parseURL, m as isScriptProtocol, j as joinURL, h as createError$1, n as sanitizeStatusCode, o as createHooks } from '../nitro/node-server.mjs';
|
||||
import { getActiveHead } from 'unhead';
|
||||
import { defineHeadPlugin, composableNames } from '@unhead/shared';
|
||||
import { defineHeadPlugin } from '@unhead/shared';
|
||||
import { createMemoryHistory, createRouter, START_LOCATION } from 'vue-router';
|
||||
import { ssrRenderSuspense, ssrRenderComponent, ssrRenderVNode } from 'vue/server-renderer';
|
||||
import 'node:http';
|
||||
@@ -352,33 +352,6 @@ function injectHead() {
|
||||
console.warn("Unhead is missing Vue context, falling back to shared context. This may have unexpected results.");
|
||||
return head || getActiveHead();
|
||||
}
|
||||
function useHead(input, options = {}) {
|
||||
const head = options.head || injectHead();
|
||||
if (head) {
|
||||
if (!head.ssr)
|
||||
return clientUseHead(head, input, options);
|
||||
return head.push(input, options);
|
||||
}
|
||||
}
|
||||
function clientUseHead(head, input, options = {}) {
|
||||
const deactivated = ref(false);
|
||||
const resolvedInput = ref({});
|
||||
watchEffect(() => {
|
||||
resolvedInput.value = deactivated.value ? {} : resolveUnrefHeadInput(input);
|
||||
});
|
||||
const entry2 = head.push(resolvedInput.value, options);
|
||||
watch(resolvedInput, (e) => {
|
||||
entry2.patch(e);
|
||||
});
|
||||
getCurrentInstance();
|
||||
return entry2;
|
||||
}
|
||||
const coreComposableNames = [
|
||||
"injectHead"
|
||||
];
|
||||
({
|
||||
"@unhead/vue": [...coreComposableNames, ...composableNames]
|
||||
});
|
||||
const unhead_KgADcZ0jPj = /* @__PURE__ */ defineNuxtPlugin({
|
||||
name: "nuxt:head",
|
||||
enforce: "pre",
|
||||
@@ -631,7 +604,7 @@ const _routes = [
|
||||
meta: {},
|
||||
alias: [],
|
||||
redirect: void 0,
|
||||
component: () => import('./_nuxt/_id_-xOFI87gF.mjs').then((m) => m.default || m)
|
||||
component: () => import('./_nuxt/_id_-ZTWFfOv0.mjs').then((m) => m.default || m)
|
||||
},
|
||||
{
|
||||
name: "index.html",
|
||||
@@ -639,7 +612,7 @@ const _routes = [
|
||||
meta: {},
|
||||
alias: [],
|
||||
redirect: void 0,
|
||||
component: () => import('./_nuxt/index-zSOKu1gM.mjs').then((m) => m.default || m)
|
||||
component: () => import('./_nuxt/index-MhIxZT7I.mjs').then((m) => m.default || m)
|
||||
},
|
||||
{
|
||||
name: "index",
|
||||
@@ -647,7 +620,7 @@ const _routes = [
|
||||
meta: {},
|
||||
alias: [],
|
||||
redirect: void 0,
|
||||
component: () => import('./_nuxt/index-Ks92EJU9.mjs').then((m) => m.default || m)
|
||||
component: () => import('./_nuxt/index-zUzBhrca.mjs').then((m) => m.default || m)
|
||||
},
|
||||
{
|
||||
name: "publish",
|
||||
@@ -655,7 +628,7 @@ const _routes = [
|
||||
meta: {},
|
||||
alias: [],
|
||||
redirect: void 0,
|
||||
component: () => import('./_nuxt/index-VdwGav01.mjs').then((m) => m.default || m)
|
||||
component: () => import('./_nuxt/index-1YGUzMLL.mjs').then((m) => m.default || m)
|
||||
}
|
||||
];
|
||||
function generateRouteKey(route) {
|
||||
@@ -1073,7 +1046,6 @@ const _sfc_main$2 = {
|
||||
__name: "app",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
useHead({ script: [{ src: "https://app.gter.net/bottom?tpl=header&menukey=vote" }, { src: "https://app.gter.net/bottom?tpl=footer", body: true }] });
|
||||
useRoute();
|
||||
let isNeedLogin = ref(true);
|
||||
let isGetLoginState = ref(true);
|
||||
@@ -1121,8 +1093,8 @@ const _sfc_main$1 = {
|
||||
const statusMessage = _error.statusMessage ?? (is404 ? "Page Not Found" : "Internal Server Error");
|
||||
const description = _error.message || _error.toString();
|
||||
const stack = void 0;
|
||||
const _Error404 = defineAsyncComponent(() => import('./_nuxt/error-404-mRmSkQn0.mjs').then((r) => r.default || r));
|
||||
const _Error = defineAsyncComponent(() => import('./_nuxt/error-500-RT3mxkXT.mjs').then((r) => r.default || r));
|
||||
const _Error404 = defineAsyncComponent(() => import('./_nuxt/error-404-XWR4z_gY.mjs').then((r) => r.default || r));
|
||||
const _Error = defineAsyncComponent(() => import('./_nuxt/error-500-z3XX5In0.mjs').then((r) => r.default || r));
|
||||
const ErrorTemplate = is404 ? _Error404 : _Error;
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
_push(ssrRenderComponent(unref(ErrorTemplate), mergeProps({ statusCode: unref(statusCode), statusMessage: unref(statusMessage), description: unref(description), stack: unref(stack) }, _attrs), null, _parent));
|
||||
@@ -1202,5 +1174,5 @@ let entry;
|
||||
}
|
||||
const entry$1 = (ssrContext) => entry(ssrContext);
|
||||
|
||||
export { useRuntimeConfig as a, navigateTo as b, createError as c, useHead as d, entry$1 as default, useNamespace as e, useId as f, defaultNamespace as g, debugWarn as h, useRoute as i, useGetDerivedNamespace as j, useIdInjection as k, namespaceContextKey as l, nuxtLinkDefaults as n, throwError as t, useRouter as u };
|
||||
export { useRuntimeConfig as a, navigateTo as b, createError as c, useNamespace as d, entry$1 as default, useId as e, defaultNamespace as f, debugWarn as g, useRoute as h, useGetDerivedNamespace as i, useIdInjection as j, namespaceContextKey as k, injectHead as l, nuxtLinkDefaults as n, resolveUnrefHeadInput as r, throwError as t, useRouter as u };
|
||||
//# sourceMappingURL=server.mjs.map
|
||||
|
||||
Reference in New Issue
Block a user