added version
This commit is contained in:
@@ -0,0 +1,187 @@
|
||||
import { _ as __nuxt_component_0$2 } from './Logo1-niQqxVlt.mjs';
|
||||
import { defineComponent, ref, watch, unref, computed, mergeProps, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderSlot, ssrRenderClass, ssrInterpolate } from 'vue/server-renderer';
|
||||
import { u as useRouter$1, aZ as useWindowSize, as as useNuxtApp, a as useConfigStore, b as useUserStore, a_ as useHead, a$ as useBreakpoints, b0 as breakpointsTailwind, _ as __nuxt_component_0$1, b1 as useScrollLock } from './server.mjs';
|
||||
import { u as useChatStore } from './chatStore-BbUUbB13.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import { get } from 'lodash-es';
|
||||
import '../nitro/nitro.mjs';
|
||||
import 'node:http';
|
||||
import 'node:https';
|
||||
import 'node:events';
|
||||
import 'node:buffer';
|
||||
import 'node:fs';
|
||||
import 'node:path';
|
||||
import 'node:crypto';
|
||||
import 'node:url';
|
||||
import 'consola';
|
||||
import 'fast-xml-parser';
|
||||
import 'ipx';
|
||||
import 'pinia';
|
||||
import '@supabase/supabase-js';
|
||||
import 'axios';
|
||||
import '@babel/runtime/helpers/esm/extends';
|
||||
import '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import '@ant-design/colors';
|
||||
import '@ctrl/tinycolor';
|
||||
import 'stylis';
|
||||
import 'vue-types';
|
||||
import '@ant-design/icons-vue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
__name: "splash",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
version: {}
|
||||
},
|
||||
setup(__props) {
|
||||
const logoSrc = computed(
|
||||
() => config.isNightStore ? config.useLogo("logo_mini.png") : config.useLogo("logo_mini.png")
|
||||
);
|
||||
const config = useConfigStore();
|
||||
const showFallback = ref(false);
|
||||
watch(logoSrc, () => {
|
||||
showFallback.value = false;
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_Logo1 = __nuxt_component_0$2;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({
|
||||
class: ["fixed right-0 left-0 z-100000 top-0 flex justify-center", unref(config).isNightStore ? "bg-black" : "bg-white"]
|
||||
}, _attrs))}><div class="${ssrRenderClass([unref(config).isNightStore ? "bg-black" : "bg-white", "flex flex-col h-screen items-center justify-center w-full md:w-425px top-0"])}"><div class="w-full h-full flex justify-center items-center">`);
|
||||
_push(ssrRenderComponent(_component_Logo1, { class: "inline m-auto w-5rem" }, null, _parent));
|
||||
_push(`</div><div class="text-center absolute bottom-2 w-full"><div class="${ssrRenderClass(unref(config).isNightStore ? "text-white" : "text_black")}">${ssrInterpolate(unref(config).useString("version"))}</div><div class="${ssrRenderClass([unref(config).isNightStore ? "text-white" : "text_black", "text-xs"])}">${ssrInterpolate(_ctx.version)}</div></div></div></div>`);
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup$3 = _sfc_main$3.setup;
|
||||
_sfc_main$3.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/splash.vue");
|
||||
return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
|
||||
};
|
||||
const __nuxt_component_0 = Object.assign(_sfc_main$3, { __name: "Splash" });
|
||||
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0$1;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup$2 = _sfc_main$2.setup;
|
||||
_sfc_main$2.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("views/base/index.vue");
|
||||
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
||||
};
|
||||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
iconSrc: {},
|
||||
appName: { default: "" },
|
||||
forceShow: { type: Boolean, default: false },
|
||||
nonSafariMode: { default: "block" },
|
||||
zIndex: { default: 4e3 }
|
||||
},
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
const configStore = useConfigStore();
|
||||
const open = ref(false);
|
||||
ref(false);
|
||||
ref(false);
|
||||
ref(false);
|
||||
ref(true);
|
||||
computed(() => {
|
||||
if (props.appName) return props.appName;
|
||||
try {
|
||||
return configStore.appName.value.fa || configStore.appName.value.en;
|
||||
} catch {
|
||||
return "App";
|
||||
}
|
||||
});
|
||||
const lock = useScrollLock(null);
|
||||
watch(open, (v) => {
|
||||
if (lock) lock.value = v;
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0$1;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup$1 = _sfc_main$1.setup;
|
||||
_sfc_main$1.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/IosInstallPrompt/index.vue");
|
||||
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
||||
};
|
||||
const Index = /* @__PURE__ */ Object.assign(_export_sfc(_sfc_main$1, [["__scopeId", "data-v-e8df050d"]]), { __name: "IosInstallPrompt" });
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "default",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const router = useRouter$1();
|
||||
const { width } = useWindowSize();
|
||||
const breakpoints = useBreakpoints(breakpointsTailwind);
|
||||
const isSM = breakpoints.smaller("sm");
|
||||
const showMobileNavigationMenu = ref(false);
|
||||
const showSplash = ref(true);
|
||||
const nuxtApp = useNuxtApp();
|
||||
const config = useConfigStore();
|
||||
useUserStore();
|
||||
useChatStore();
|
||||
watch([width, isSM], () => {
|
||||
checkFooterHeader();
|
||||
});
|
||||
function checkFooterHeader() {
|
||||
showMobileNavigationMenu.value = !!get(router.currentRoute.value, "meta.showMobileNavigationMenu", true);
|
||||
}
|
||||
nuxtApp.hook("page:finish", () => {
|
||||
checkFooterHeader();
|
||||
});
|
||||
useHead({
|
||||
title: config.appName.en
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_Splash = __nuxt_component_0;
|
||||
_push(`<div${ssrRenderAttrs(_attrs)}>`);
|
||||
if (showSplash.value) {
|
||||
_push(ssrRenderComponent(_component_Splash, {
|
||||
version: unref(config).VERSION
|
||||
}, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
|
||||
_push(`<div>`);
|
||||
_push(ssrRenderComponent(Index, {
|
||||
iconSrc: unref(config).useLogo("pwa-icon-192.png"),
|
||||
storageKey: "ios-install-guide-v1",
|
||||
zIndex: 3e3,
|
||||
"non-safari-mode": "hint"
|
||||
}, null, _parent));
|
||||
_push(`</div>`);
|
||||
if (showMobileNavigationMenu.value) {
|
||||
_push(ssrRenderComponent(_sfc_main$2, {
|
||||
class: "!md:w-425px",
|
||||
style: { "width": "-webkit-fill-available" }
|
||||
}, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div>`);
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("layouts/default.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
Reference in New Issue
Block a user