fix price and modular 3

This commit is contained in:
2026-02-01 20:38:20 +03:30
parent aded156f04
commit 5ae1b4c40a
287 changed files with 1820 additions and 1722 deletions
@@ -2,7 +2,7 @@ import { b6 as Icon$1, u as useRouter$1, a as useConfigStore, e as loading, aT a
import { createVNode, defineComponent, ref, computed, reactive, withAsyncContext, resolveDirective, unref, mergeProps, customRef, toValue, nextTick, watch, withCtx, createTextVNode, toDisplayString, openBlock, createBlock, Fragment, renderList, withDirectives, vShow, Transition, shallowRef, watchEffect, renderSlot, createCommentVNode, provide, inject, Teleport, useSSRContext, getCurrentInstance } from 'vue';
import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderList, ssrGetDirectiveProps, ssrRenderAttr, ssrRenderSlot, ssrRenderClass } from 'vue/server-renderer';
import { l as loadGray, _ as __nuxt_component_0$1 } from './gray-Bd8mWW-o.mjs';
import { g as getStoreSearchPosts } from './media-_NDkNIvH.mjs';
import { b as getStoreSearchPosts } from './media-_NDkNIvH.mjs';
import { cloneDeep } from 'lodash-es';
import { defineStore } from 'pinia';
import { u as usePrice } from './usePrice-_QzChhgO.mjs';
File diff suppressed because one or more lines are too long
@@ -32,7 +32,7 @@ import 'unhead/utils';
const name = "nuxt-app";
const version = "1.0.0";
const type = "module";
const scripts = { "predev": "node scripts/fetch-pwa-icons.mjs dev", "prebuild": "node scripts/fetch-pwa-icons.mjs prod", "prepreview": "node scripts/fetch-pwa-icons.mjs prod", "build": "nuxt build --dotenv .env.production", "dev": "nuxt dev --dotenv .env.development", "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare" };
const scripts = { "build": "nuxt build --dotenv .env.production", "dev": "nuxt dev --dotenv .env.development", "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare" };
const dependencies = { "@ant-design-vue/nuxt": "^1.4.6", "@capacitor/android": "^7.4.3", "@capacitor/camera": "^7.0.1", "@capacitor/core": "^7.4.3", "@headlessui/vue": "^1.7.23", "@lottiefiles/dotlottie-vue": "^0.6.3", "@nuxt/image": "1.10.0", "@nuxtjs/eslint-module": "^4.1.0", "@nuxtjs/sitemap": "^7.5.0", "@pinia/nuxt": "^0.11.2", "@supabase/supabase-js": "^2.49.8", "@types/lodash-es": "^4.17.12", "@vite-pwa/nuxt": "1.0.4", "@vueup/vue-quill": "^1.2.0", "@vueuse/components": "^13.9.0", "@vueuse/core": "^13.9.0", "@vueuse/gesture": "^2.0.0", "@vueuse/motion": "^3.0.3", "@vueuse/nuxt": "13.2.0", "@vueuse/router": "^13.3.0", "ant-design-vue": "4.1.2", "axios": "^1.9.0", "date-fns": "^4.1.0", "dayjalali": "^1.0.1", "dayjs": "1.11.13", "dayjs-nuxt": "2.1.11", "jalali-dayjs": "^0.0.1", "lodash": "^4.17.21", "lodash-es": "^4.17.21", "moment": "2.30.1", "moment-jalaali": "0.10.4", "numbro": "^2.5.0", "nuxt": "^4.3.0", "pinia": "^3.0.3", "swiper": "^11.2.8", "unocss": "^66.1.2", "vue": "3.5.14", "vue-advanced-cropper": "^2.8.9", "vue-content-loader": "^2.0.1", "vue-router": "^4.5.1", "vue3-lazyload": "^0.3.8", "vue3-otp-input": "^0.5.30", "xlsx": "^0.18.5" };
const devDependencies = { "@capacitor/cli": "^7.4.3", "@unocss/nuxt": "^66.1.2", "@vant/nuxt": "^1.0.6", "dotenv": "^17.2.3", "less": "^4.3.0", "sass": "npm:sass-embedded@^1.83.0", "vant": "^4.9.19", "vite-plugin-pwa": "^1.0.0" };
const overrides = { "sass-embedded": "1.83.0" };
@@ -1,5 +1,5 @@
import { mergeProps, withCtx, createTextVNode, toDisplayString, defineComponent, shallowRef, h, resolveComponent, computed, useSSRContext } from 'vue';
import { p as parseQuery, h as hasProtocol, j as joinURL, w as withTrailingSlash, b as withoutTrailingSlash } from '../nitro/nitro.mjs';
import { p as parseQuery, h as hasProtocol, j as joinURL, w as withTrailingSlash, c as withoutTrailingSlash } from '../nitro/nitro.mjs';
import { a_ as useHead, u as useRouter$1, b2 as resolveRouteObject, b3 as navigateTo, as as useNuxtApp, b4 as useRuntimeConfig, b5 as nuxtLinkDefaults } from './server.mjs';
import { ssrRenderAttrs, ssrInterpolate, ssrRenderComponent } from 'vue/server-renderer';
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, nextTick, withAsyncContext, watch, reso
import { ssrRenderComponent, ssrRenderAttrs, ssrRenderList, ssrGetDirectiveProps, ssrInterpolate, ssrRenderAttr, ssrRenderStyle } from 'vue/server-renderer';
import { S as SearchButton } from './SearchButton-Di7gsVns.mjs';
import { l as loadGray, _ as __nuxt_component_0 } from './gray-Bd8mWW-o.mjs';
import { g as getStoreSearchPosts } from './media-_NDkNIvH.mjs';
import { b as getStoreSearchPosts } from './media-_NDkNIvH.mjs';
import { u as useRouter$1, a as useConfigStore, m as useIntersectionObserver } from './server.mjs';
import { u as useAsyncData } from './asyncData-CZ9BKXPA.mjs';
import 'vue-content-loader';
@@ -2,7 +2,7 @@ import { ref, computed, nextTick, watch, mergeProps, unref, withCtx, createVNode
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderClass, ssrRenderSlot, ssrInterpolate, ssrRenderStyle } from 'vue/server-renderer';
import { useDrag } from '@vueuse/gesture';
import { TransitionRoot } from '@headlessui/vue';
import { a as defu } from '../nitro/nitro.mjs';
import { b as defu } from '../nitro/nitro.mjs';
import { a as useConfigStore, t as unrefElement, w as tryOnUnmounted, x as isObject$2, m as useIntersectionObserver, y as useEventListener } from './server.mjs';
import sync, { getFrameData } from 'framesync';
import { inertia, animate, velocityPerSecond, cubicBezier, bounceOut, bounceInOut, bounceIn, anticipate, backOut, backInOut, backIn, circOut, circInOut, circIn, easeOut, easeInOut, easeIn, linear } from 'popmotion';
@@ -1,5 +1,5 @@
import { defineStore } from 'pinia';
import { b as getStories, i as isStoryInLocalSeen } from './media-_NDkNIvH.mjs';
import { a as getStories, i as isStoryInLocalSeen } from './media-_NDkNIvH.mjs';
import { ref } from 'vue';
import { groupBy } from 'lodash-es';
import { aA as getProducts } from './server.mjs';
@@ -43,4 +43,4 @@ const isStoryInLocalSeen = (storyId) => {
};
const clearStorySeen = () => localStorage.setItem(storySeenKey, JSON.stringify([]));
export { getUserPosts as a, getStories as b, clearStorySeen as c, getHighlightsList as d, getStoreSearchPosts as g, isStoryInLocalSeen as i, setStorySeenLocal as s, userViewStory as u };
export { getStories as a, getStoreSearchPosts as b, clearStorySeen as c, getHighlightsList as d, getUserPosts as g, isStoryInLocalSeen as i, setStorySeenLocal as s, userViewStory as u };
+9 -3
View File
@@ -1,5 +1,5 @@
import process from 'node:process';globalThis._importMeta_=globalThis._importMeta_||{url:"file:///_entry.js",env:process.env};import { inject, ref, h, getCurrentInstance, nextTick, reactive, defineComponent, createVNode, isRef, toValue, hasInjectionContext, watchEffect, onBeforeUnmount, onDeactivated, onActivated, computed, shallowRef, watch, provide, unref, cloneVNode, createElementBlock, Fragment, isVNode, Comment, Text, getCurrentScope, onScopeDispose, Transition, toRef as toRef$1, readonly, customRef, TransitionGroup, render, Teleport, withDirectives, vShow, defineAsyncComponent, shallowReactive, Suspense, useSSRContext, createApp, triggerRef, mergeProps, withCtx, onErrorCaptured, onServerPrefetch, resolveDynamicComponent, effectScope, isReadonly, toRaw, isShallow, isReactive } from 'vue';
import { n as createError$1, h as hasProtocol, s as isScriptProtocol, j as joinURL, t as withQuery, v as sanitizeStatusCode, x as getContext, $ as $fetch, y as baseURL, z as createHooks, a as defu, A as getRequestHeaders, B as executeAsync } from '../nitro/nitro.mjs';
import { q as createError$1, h as hasProtocol, x as isScriptProtocol, j as joinURL, y as withQuery, z as sanitizeStatusCode, A as getContext, $ as $fetch, B as baseURL, C as createHooks, b as defu, D as getRequestHeaders, E as executeAsync } from '../nitro/nitro.mjs';
import { defineStore, setActivePinia, createPinia, shouldHydrate } from 'pinia';
import { createClient } from '@supabase/supabase-js';
import axios from 'axios';
@@ -15350,12 +15350,18 @@ async function getSubscribeConfig(host) {
const headers = {
"Content-Type": "application/json"
};
const config = /* @__PURE__ */ useRuntimeConfig();
const apiUrl = config.public.subscriptionUrl;
if (!apiUrl || typeof apiUrl !== "string" || !apiUrl.startsWith("http")) {
console.error("❌ [Config Error] Subscription URL is invalid or missing:", apiUrl);
return Promise.reject(new Error("Configuration Error: Invalid Subscription URL"));
}
if (host) {
headers["X-Domain"] = host;
}
try {
const { data } = await axios.get(
`https://node.newinsta.ir/config/get-subscription`,
apiUrl,
{ headers }
);
return data;
@@ -17260,7 +17266,7 @@ const plugins = [
vue_lazyload_LicimSgmn48nXxJ_UQNJ1CLHEXdm5eIshyZWOSTFacg
];
const layouts = {
default: defineAsyncComponent(() => import('./default-iM3xTt50.mjs').then((m) => m.default || m))
default: defineAsyncComponent(() => import('./default-znOWKpJB.mjs').then((m) => m.default || m))
};
const routeRulesMatcher = _routeRulesMatcher;
const LayoutLoader = defineComponent({
@@ -1,7 +1,7 @@
import { defineStore } from 'pinia';
import { ref, nextTick } from 'vue';
import { a as useConfigStore } from './server.mjs';
import { a as getUserPosts } from './media-_NDkNIvH.mjs';
import { g as getUserPosts } from './media-_NDkNIvH.mjs';
const useUserPostStore = defineStore("userPosts", () => {
const posts = ref([]);
File diff suppressed because it is too large Load Diff
@@ -1,4 +1,4 @@
import { c as defineSitemapEventHandler } from '../../../nitro/nitro.mjs';
import { e as defineSitemapEventHandler } from '../../../nitro/nitro.mjs';
import { createClient } from '@supabase/supabase-js';
import 'node:http';
import 'node:https';
@@ -0,0 +1,25 @@
import { d as defineEventHandler, g as getRequestHeader, a as getCachedConfig, s as sendRedirect } from '../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 'vue';
import 'node:url';
import 'consola';
import 'fast-xml-parser';
import 'ipx';
const handler = defineEventHandler(async (event) => {
const host = getRequestHeader(event, "host");
const config = await getCachedConfig(host || "");
if (config == null ? void 0 : config.storageLogo) {
const remoteUrl = `${config.storageLogo}/favicon.ico`;
return sendRedirect(event, remoteUrl, 302);
}
return sendRedirect(event, "https://node.newinsta.ir/", 302);
});
export { handler as default };
@@ -0,0 +1,24 @@
import { d as defineEventHandler, g as getRequestHeader, a as getCachedConfig, s as sendRedirect } from '../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 'vue';
import 'node:url';
import 'consola';
import 'fast-xml-parser';
import 'ipx';
const handler = defineEventHandler(async (event) => {
const host = getRequestHeader(event, "host");
const config = await getCachedConfig(host || "");
if (config == null ? void 0 : config.storageLogo) {
return sendRedirect(event, `${config.storageLogo}/pwa-icon-192.png`, 302);
}
return sendRedirect(event, "https://node.newinsta.ir/default/pwa-icon-192.png");
});
export { handler as default };
@@ -0,0 +1,24 @@
import { d as defineEventHandler, g as getRequestHeader, a as getCachedConfig, s as sendRedirect } from '../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 'vue';
import 'node:url';
import 'consola';
import 'fast-xml-parser';
import 'ipx';
const handler = defineEventHandler(async (event) => {
const host = getRequestHeader(event, "host");
const config = await getCachedConfig(host || "");
if (config == null ? void 0 : config.storageLogo) {
return sendRedirect(event, `${config.storageLogo}/pwa-icon-512.png`, 302);
}
return sendRedirect(event, "https://node.newinsta.ir/default/pwa-icon-192.png");
});
export { handler as default };
+1 -1
View File
@@ -1,5 +1,5 @@
import { createRenderer, getRequestDependencies, getPreloadLinks, getPrefetchLinks } from 'vue-bundle-renderer/runtime';
import { e as buildAssetsURL, u as useRuntimeConfig, g as getResponseStatusText, f as getResponseStatus, i as decodePath, k as defineRenderHandler, l as publicAssetsURL, m as getQuery, n as createError, o as destr, q as getRouteRules, j as joinURL, r as useNitroApp } from '../nitro/nitro.mjs';
import { f as buildAssetsURL, u as useRuntimeConfig, i as getResponseStatusText, k as getResponseStatus, l as decodePath, m as defineRenderHandler, n as publicAssetsURL, o as getQuery, q as createError, r as destr, t as getRouteRules, j as joinURL, v as useNitroApp } from '../nitro/nitro.mjs';
import { renderToString } from 'vue/server-renderer';
import { createHead as createHead$1, propsToString, renderSSRHead } from 'unhead/server';
import { stringify, uneval } from 'devalue';