Website Structure

This commit is contained in:
supalerk-ar66 2026-01-13 10:46:40 +07:00
parent 62812f2090
commit 71f0676a62
22365 changed files with 4265753 additions and 791 deletions

View file

@ -0,0 +1,4 @@
export * from 'vue';
export declare const install: () => void;
export declare function set(target: any, key: string | number | symbol, val: any): any;
export declare function del(target: any, key: string | number | symbol): void;

View file

@ -0,0 +1,19 @@
export * from "vue";
export const install = () => {
};
export function set(target, key, val) {
if (Array.isArray(target)) {
target.length = Math.max(target.length, key);
target.splice(key, 1, val);
return val;
}
target[key] = val;
return val;
}
export function del(target, key) {
if (Array.isArray(target)) {
target.splice(key, 1);
return;
}
delete target[key];
}

View file

@ -0,0 +1,2 @@
export declare const requestIdleCallback: Window['requestIdleCallback'];
export declare const cancelIdleCallback: Window['cancelIdleCallback'];

View file

@ -0,0 +1,15 @@
export const requestIdleCallback = import.meta.server ? (() => {
}) : globalThis.requestIdleCallback || ((cb) => {
const start = Date.now();
const idleDeadline = {
didTimeout: false,
timeRemaining: () => Math.max(0, 50 - (Date.now() - start))
};
return setTimeout(() => {
cb(idleDeadline);
}, 1);
});
export const cancelIdleCallback = import.meta.server ? (() => {
}) : globalThis.cancelIdleCallback || ((id) => {
clearTimeout(id);
});

View file

@ -0,0 +1 @@
export declare const setInterval: typeof globalThis.setInterval | (() => void);

View file

@ -0,0 +1,11 @@
import { createError } from "../composables/error.js";
const intervalError = "[nuxt] `setInterval` should not be used on the server. Consider wrapping it with an `onNuxtReady`, `onBeforeMount` or `onMounted` lifecycle hook, or ensure you only call it in the browser by checking `import.meta.client`.";
export const setInterval = import.meta.client ? globalThis.setInterval : () => {
if (import.meta.dev) {
throw createError({
statusCode: 500,
message: intervalError
});
}
console.error(intervalError);
};

View file

@ -0,0 +1,4 @@
export * from './capi.js';
export declare const Vue2: undefined;
export declare const isVue2 = false;
export declare const isVue3 = true;

View file

@ -0,0 +1,4 @@
export * from "./capi.js";
export const Vue2 = void 0;
export const isVue2 = false;
export const isVue3 = true;