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,6 @@
// https://github.com/lquixada/cross-fetch
export declare const fetch: unknown;
export default fetch;
export declare const Headers: unknown;
export declare const Request: unknown;
export declare const Response: unknown;

View file

@ -0,0 +1,6 @@
// https://github.com/lquixada/cross-fetch
export const fetch = (...args) => globalThis.fetch(...args);
export default fetch;
export const Headers = globalThis.Headers;
export const Request = globalThis.Request;
export const Response = globalThis.Response;

View file

@ -0,0 +1,15 @@
// https://www.npmjs.com/package/debug
import type { Debug } from "debug";
declare const debug: Debug;
export declare const coerce: unknown;
export declare const disable: unknown;
export declare const enable: unknown;
export declare const enabled: unknown;
export declare const formatArgs: unknown;
export declare const log: unknown;
export declare const selectColor: unknown;
export declare const humanize: any;
export declare const names: unknown;
export declare const skips: unknown;
export declare const formatters: unknown;
export default debug;

View file

@ -0,0 +1,43 @@
function createDebug(namespace) {
return Object.assign((...args) => {
const env = globalThis.process?.env.DEBUG;
if (!env || env !== "*" && !env.startsWith(namespace)) return;
console.debug(...args);
}, {
color: "#000000",
diff: 0,
enabled: true,
log: console.debug.bind(console),
namespace,
destroy: () => false,
extend: (ns, _del) => createDebug(namespace + ns)
});
}
const debug = Object.assign(createDebug, {
coerce: (val) => val,
disable: () => "",
enable: (_namespaces) => {},
enabled: (_namespaces) => true,
formatArgs(args) {
args[0] = `${this.namespace} ${args[0]}`;
},
log: console.debug.bind(console),
selectColor: (_namespace) => 0,
humanize: (num) => `${num}ms`,
inspectOpts: {},
names: [],
skips: [],
formatters: {}
});
export const coerce = debug.coerce;
export const disable = debug.disable;
export const enable = debug.enable;
export const enabled = debug.enabled;
export const formatArgs = debug.formatArgs;
export const log = debug.log;
export const selectColor = debug.selectColor;
export const humanize = debug.humanize;
export const names = debug.names;
export const skips = debug.skips;
export const formatters = debug.formatters;
export default debug;

View file

@ -0,0 +1,16 @@
// https://www.npmjs.com/package/fsevents
declare const _default: {
watch(_dir: string, _cb: (...args: any[]) => any);
getInfo(path: string, _flags: number, _id: string): {
event: string;
type: string;
flags: number;
changes: {
inode: boolean;
finder: boolean;
access: boolean;
xattrs: boolean;
};
};
};
export default _default;

View file

@ -0,0 +1,20 @@
// https://www.npmjs.com/package/fsevents
export default {
watch(_dir, _cb) {
return Promise.resolve();
},
getInfo(path, _flags, _id) {
return {
event: "mock",
path,
type: "file",
flags: 4294967296,
changes: {
inode: false,
finder: false,
access: false,
xattrs: false
}
};
}
};

View file

@ -0,0 +1,2 @@
import { inherits } from "node:util";
export default inherits;

View file

@ -0,0 +1,2 @@
import { inherits } from "node:util";
export default inherits;

View file

@ -0,0 +1,12 @@
// https://github.com/node-fetch/node-fetch
// Native browser APIs
export declare const fetch: unknown;
export declare const Headers: unknown;
export declare const Request: unknown;
export declare const Response: unknown;
export declare const AbortController: unknown;
// Error handling
export declare const FetchError: unknown;
export declare const AbortError: unknown;
export declare const isRedirect: unknown;
export default fetch;

View file

@ -0,0 +1,23 @@
// https://github.com/node-fetch/node-fetch
// Native browser APIs
export const fetch = (...args) => globalThis.fetch(...args);
export const Headers = globalThis.Headers;
export const Request = globalThis.Request;
export const Response = globalThis.Response;
export const AbortController = globalThis.AbortController;
// Error handling
export const FetchError = Error;
export const AbortError = Error;
// Top-level exported helpers (from node-fetch v3)
const redirectStatus = new Set([
301,
302,
303,
307,
308
]);
export const isRedirect = (code) => redirectStatus.has(code);
// node-fetch v2
fetch.Promise = globalThis.Promise;
fetch.isRedirect = isRedirect;
export default fetch;

View file

@ -0,0 +1,13 @@
export declare const URL: unknown;
export declare const URLSearchParams: unknown;
export declare const parseURL: unknown;
export declare const basicURLParse: unknown;
export declare const serializeURL: unknown;
export declare const serializeHost: unknown;
export declare const serializeInteger: unknown;
export declare const serializeURLOrigin: unknown;
export declare const setTheUsername: unknown;
export declare const setThePassword: unknown;
export declare const cannotHaveAUsernamePasswordPort: unknown;
export declare const percentDecodeBytes: unknown;
export declare const percentDecodeString: unknown;

View file

@ -0,0 +1,15 @@
// https://www.npmjs.com/package/whatwg-url
import { notImplemented } from "../../_internal/utils.mjs";
export const URL = globalThis.URL;
export const URLSearchParams = globalThis.URLSearchParams;
export const parseURL = /* @__PURE__ */ notImplemented("whatwg-url.parseURL");
export const basicURLParse = /* @__PURE__ */ notImplemented("whatwg-url.basicURLParse");
export const serializeURL = /* @__PURE__ */ notImplemented("whatwg-url.serializeURL");
export const serializeHost = /* @__PURE__ */ notImplemented("whatwg-url.serializeHost");
export const serializeInteger = /* @__PURE__ */ notImplemented("whatwg-url.serializeInteger");
export const serializeURLOrigin = /* @__PURE__ */ notImplemented("whatwg-url.serializeURLOrigin");
export const setTheUsername = /* @__PURE__ */ notImplemented("whatwg-url.setTheUsername");
export const setThePassword = /* @__PURE__ */ notImplemented("whatwg-url.setThePassword");
export const cannotHaveAUsernamePasswordPort = /* @__PURE__ */ notImplemented("whatwg-url.cannotHaveAUsernamePasswordPort");
export const percentDecodeBytes = /* @__PURE__ */ notImplemented("whatwg-url.percentDecodeBytes");
export const percentDecodeString = /* @__PURE__ */ notImplemented("whatwg-url.percentDecodeString");

View file

@ -0,0 +1,2 @@
export declare const URL: unknown;
export declare const URLSearchParams: unknown;

View file

@ -0,0 +1,2 @@
export const URL = globalThis.URL;
export const URLSearchParams = globalThis.URLSearchParams;