xanix 1.0.4 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/bundler/buildClient.js +3 -3
- package/dist/bin/bundler/buildServer.js +4 -4
- package/dist/bin/bundler/cacheNpmModules.js +8 -2
- package/dist/bin/bundler/config/output.d.ts +1 -1
- package/dist/bin/bundler/config/output.js +11 -3
- package/dist/bin/bundler/plugins/XanixDocument/index.d.ts +2 -0
- package/dist/bin/bundler/plugins/XanixDocument/index.js +35 -0
- package/dist/bin/bundler/plugins/XanixEnv.js +13 -3
- package/dist/bin/bundler/plugins/XanixReactRefresh.js +33 -33
- package/dist/bin/bundler/plugins/XanixTransform/transformer copy.d.ts +16 -0
- package/dist/bin/bundler/plugins/XanixTransform/transformer copy.js +631 -0
- package/dist/bin/bundler/plugins/plugins.js +3 -1
- package/dist/bin/bundler/watchClient.js +3 -3
- package/dist/bin/bundler/watchServer.js +8 -5
- package/dist/bin/cli/dev.js +2 -2
- package/dist/bin/include/utils.d.ts +3 -0
- package/dist/bin/include/utils.js +17 -0
- package/dist/bin/index.js +0 -0
- package/dist/client-runtime.js +17 -15
- package/dist/components/BaseDocument.d.ts +1 -1
- package/dist/components/BaseDocument.js +1 -3
- package/dist/components/Body.js +3 -1
- package/dist/components/Document.js +3 -1
- package/dist/components/Head.d.ts +1 -1
- package/dist/components/Head.js +37 -34
- package/dist/components/Link.d.ts +1 -1
- package/dist/components/Link.js +23 -18
- package/dist/dataLoader.d.ts +1 -1
- package/dist/dataLoader.js +14 -5
- package/dist/hooks/useData.d.ts +2 -6
- package/dist/hooks/useData.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/navigate.js +11 -8
- package/dist/server/runtime/xanixPage.js +1 -4
- package/dist/types/assets.d.ts +34 -0
- package/dist/types/express.d.ts +12 -0
- package/dist/types/globals.d.ts +27 -0
- package/dist/types/xanix-virtual.d.ts +26 -0
- package/package.json +75 -73
- package/dist/BaseDocument.d.ts +0 -3
- package/dist/BaseDocument.js +0 -8
- package/dist/bin/bundler/buildCache.d.ts +0 -11
- package/dist/bin/bundler/buildCache.js +0 -112
- package/dist/bin/bundler/plugins/XanixAssets/index.d.ts +0 -4
- package/dist/bin/bundler/plugins/XanixAssets/index.js +0 -22
- package/dist/bin/bundler/plugins/XanixBrowserCodeRemover.d.ts +0 -6
- package/dist/bin/bundler/plugins/XanixBrowserCodeRemover.js +0 -350
- package/dist/bin/bundler/plugins/XanixHydrate.d.ts +0 -3
- package/dist/bin/bundler/plugins/XanixHydrate.js +0 -34
- package/dist/bin/bundler/plugins/commonjs.d.ts +0 -3
- package/dist/bin/bundler/plugins/commonjs.js +0 -10
- package/dist/bin/bundler/plugins/dep-XanixWatchChange.d.ts +0 -9
- package/dist/bin/bundler/plugins/dep-XanixWatchChange.js +0 -27
- package/dist/bin/bundler/plugins/nodeResolve.d.ts +0 -3
- package/dist/bin/bundler/plugins/nodeResolve.js +0 -10
- package/dist/bin/bundler/plugins/rollupEsbuild.d.ts +0 -3
- package/dist/bin/bundler/plugins/rollupEsbuild.js +0 -14
- package/dist/bin/cli/start copy.d.ts +0 -2
- package/dist/bin/cli/start copy.js +0 -34
- package/dist/client/client-runtime.d.ts +0 -10
- package/dist/client/client-runtime.js +0 -98
- package/dist/client/context/RouteContext.d.ts +0 -8
- package/dist/client/context/RouteContext.js +0 -16
- package/dist/client/hooks/usePageProps.d.ts +0 -1
- package/dist/client/hooks/usePageProps.js +0 -2
- package/dist/client/hooks/useRoute.d.ts +0 -1
- package/dist/client/hooks/useRoute.js +0 -2
- package/dist/client/hooks/useSearchParams.d.ts +0 -1
- package/dist/client/hooks/useSearchParams.js +0 -2
- package/dist/client/index.d.ts +0 -2
- package/dist/client/index.js +0 -2
- package/dist/client/navigation.d.ts +0 -3
- package/dist/client/navigation.js +0 -27
- package/dist/client/runtime.d.ts +0 -10
- package/dist/client/runtime.js +0 -98
- package/dist/components/Document/context.d.ts +0 -11
- package/dist/components/Document/context.js +0 -14
- package/dist/components/Document/index.d.ts +0 -8
- package/dist/components/Document/index.js +0 -6
- package/dist/document/BaseDocument.d.ts +0 -3
- package/dist/document/BaseDocument.js +0 -8
- package/dist/document/Body.d.ts +0 -5
- package/dist/document/Body.js +0 -8
- package/dist/document/Document.d.ts +0 -7
- package/dist/document/Document.js +0 -9
- package/dist/document/DocumentContext.d.ts +0 -18
- package/dist/document/DocumentContext.js +0 -6
- package/dist/document/Head.d.ts +0 -5
- package/dist/document/Head.js +0 -41
- package/dist/document/Link.d.ts +0 -7
- package/dist/document/Link.js +0 -28
- package/dist/document/Script.d.ts +0 -3
- package/dist/document/Script.js +0 -5
- package/dist/document/index.d.ts +0 -8
- package/dist/document/index.js +0 -7
- package/dist/document/useDocument.d.ts +0 -2
- package/dist/document/useDocument.js +0 -10
- package/dist/hooks/useCookie.d.ts +0 -2
- package/dist/hooks/useCookie.js +0 -13
- package/dist/hooks/useRequest copy.d.ts +0 -2
- package/dist/hooks/useRequest copy.js +0 -8
- package/dist/navigation/index.d.ts +0 -2
- package/dist/navigation/index.js +0 -2
- package/dist/navigation/navigate.d.ts +0 -7
- package/dist/navigation/navigate.js +0 -31
- package/dist/navigation/useLocation.d.ts +0 -1
- package/dist/navigation/useLocation.js +0 -22
- package/dist/router/index.d.ts +0 -3
- package/dist/router/index.js +0 -3
- package/dist/router/useParams.d.ts +0 -1
- package/dist/router/useParams.js +0 -5
- package/dist/router/usePathname.d.ts +0 -1
- package/dist/router/usePathname.js +0 -8
- package/dist/router/useSearchParams.d.ts +0 -11
- package/dist/router/useSearchParams.js +0 -74
- package/dist/runtime/createServer.d.ts +0 -12
- package/dist/runtime/createServer.js +0 -40
- package/dist/runtime/index.d.ts +0 -12
- package/dist/runtime/index.js +0 -40
- package/dist/runtime/readManifest.d.ts +0 -14
- package/dist/runtime/readManifest.js +0 -8
- package/dist/runtime/xanixPage.d.ts +0 -9
- package/dist/runtime/xanixPage.js +0 -62
- package/dist/server/createServer.d.ts +0 -12
- package/dist/server/createServer.js +0 -40
- package/dist/server/page.d.ts +0 -9
- package/dist/server/page.js +0 -62
- package/dist/server/readManifest.d.ts +0 -14
- package/dist/server/readManifest.js +0 -8
- package/dist/server/runtime copy.d.ts +0 -12
- package/dist/server/runtime copy.js +0 -40
- package/dist/server/runtime.d.ts +0 -12
- package/dist/server/runtime.js +0 -40
- package/dist/server/xanixPage.d.ts +0 -9
- package/dist/server/xanixPage.js +0 -62
- package/dist/types.d.ts +0 -12
- package/dist/types.js +0 -7
- package/dist/utils/index.d.ts +0 -0
- package/dist/utils/index.js +0 -1
- package/dist/xanix.d.ts +0 -3
- package/dist/xanix.js +0 -40
- package/xanix-env.d.ts +0 -79
package/dist/server/page.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { renderToPipeableStream } from "react-dom/server";
|
|
3
|
-
import readManifest from "./readManifest.js";
|
|
4
|
-
import { PassThrough } from "node:stream";
|
|
5
|
-
import path from "node:path";
|
|
6
|
-
import { pathToFileURL } from "node:url";
|
|
7
|
-
function renderPage(element) {
|
|
8
|
-
return new Promise((resolve, reject) => {
|
|
9
|
-
let html = "";
|
|
10
|
-
const stream = new PassThrough();
|
|
11
|
-
stream.on("data", (chunk) => {
|
|
12
|
-
html += chunk.toString();
|
|
13
|
-
});
|
|
14
|
-
stream.on("end", () => {
|
|
15
|
-
resolve(html);
|
|
16
|
-
});
|
|
17
|
-
stream.on("error", reject);
|
|
18
|
-
const { pipe } = renderToPipeableStream(element, {
|
|
19
|
-
onAllReady() {
|
|
20
|
-
pipe(stream);
|
|
21
|
-
},
|
|
22
|
-
onError(error) {
|
|
23
|
-
console.error("SSR error:", error);
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
export default async function xanix_page({ pageId, req, res, Component, props, }) {
|
|
29
|
-
const manifest = await readManifest();
|
|
30
|
-
const { title, meta } = req.XanixPageData;
|
|
31
|
-
const entry = manifest.entries.find((item) => item.id === pageId);
|
|
32
|
-
const method = req.method.toUpperCase();
|
|
33
|
-
if (method !== "GET") {
|
|
34
|
-
res.status(405).send("Method Not Allowed");
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
if (!entry) {
|
|
38
|
-
throw new Error(`Xanix client entry "${pageId}" was not found in the manifest.`);
|
|
39
|
-
}
|
|
40
|
-
if ("x-navigation" in req.headers) {
|
|
41
|
-
res.setHeader("Content-Type", "application/json");
|
|
42
|
-
return JSON.stringify({
|
|
43
|
-
pageId,
|
|
44
|
-
props,
|
|
45
|
-
title: title ?? entry.name.replaceAll("-", " "),
|
|
46
|
-
meta,
|
|
47
|
-
params: req.params,
|
|
48
|
-
request: null,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
const Document = (await import(pathToFileURL(path.join(process.cwd(), ".xanix", "xanix-document.js"))
|
|
52
|
-
.href)).default;
|
|
53
|
-
const html = await renderPage(_jsx(Document, { document: {
|
|
54
|
-
pageId,
|
|
55
|
-
props,
|
|
56
|
-
title: title ?? entry.name.replaceAll("-", " "),
|
|
57
|
-
meta,
|
|
58
|
-
params: req.params,
|
|
59
|
-
request: req,
|
|
60
|
-
}, children: _jsx(Component, { ...props }) }));
|
|
61
|
-
return `<!DOCTYPE html>${html}`;
|
|
62
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface XanixManifestEntry {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
file: string;
|
|
5
|
-
path: string;
|
|
6
|
-
build: string;
|
|
7
|
-
export: string;
|
|
8
|
-
}
|
|
9
|
-
interface XanixManifest {
|
|
10
|
-
version: number;
|
|
11
|
-
entries: XanixManifestEntry[];
|
|
12
|
-
}
|
|
13
|
-
declare function readManifest(): Promise<XanixManifest>;
|
|
14
|
-
export default readManifest;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import fs from "node:fs/promises";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
async function readManifest() {
|
|
4
|
-
const manifestPath = path.resolve(process.cwd(), ".xanix", "client-manifest.json");
|
|
5
|
-
const source = await fs.readFile(manifestPath, "utf8");
|
|
6
|
-
return JSON.parse(source);
|
|
7
|
-
}
|
|
8
|
-
export default readManifest;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import express from "express";
|
|
2
|
-
export interface XanixProps {
|
|
3
|
-
clientId: string;
|
|
4
|
-
req: any;
|
|
5
|
-
res: any;
|
|
6
|
-
component: React.ReactElement;
|
|
7
|
-
}
|
|
8
|
-
type Options = {
|
|
9
|
-
mode: "watch" | "start";
|
|
10
|
-
};
|
|
11
|
-
export declare function createXanixServer({ mode }: Options): express.Express;
|
|
12
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import express from "express";
|
|
2
|
-
export function createXanixServer({ mode }) {
|
|
3
|
-
const app = express();
|
|
4
|
-
if (mode === "watch") {
|
|
5
|
-
app.use("/.xanix/client", express.static(".xanix/client"));
|
|
6
|
-
app.use("/assets", express.static(".xanix/assets"));
|
|
7
|
-
app.use("/.xanix/cache", express.static(".xanix/cache"));
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
app.use("/.xanix/client", express.static(".xanix/client", {
|
|
11
|
-
maxAge: "1y",
|
|
12
|
-
immutable: true,
|
|
13
|
-
etag: true,
|
|
14
|
-
}));
|
|
15
|
-
app.use("/assets", express.static(".xanix/assets", {
|
|
16
|
-
maxAge: "1y",
|
|
17
|
-
immutable: true,
|
|
18
|
-
etag: true,
|
|
19
|
-
}));
|
|
20
|
-
}
|
|
21
|
-
app.use((req, res, next) => {
|
|
22
|
-
let data = {
|
|
23
|
-
title: null,
|
|
24
|
-
meta: [],
|
|
25
|
-
};
|
|
26
|
-
if (!req.page) {
|
|
27
|
-
req.page = {
|
|
28
|
-
setTitle(title) {
|
|
29
|
-
data.title = title;
|
|
30
|
-
},
|
|
31
|
-
setMeta(name, content) {
|
|
32
|
-
data.meta.push({ name, content });
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
req.XanixPageData = data;
|
|
36
|
-
}
|
|
37
|
-
next();
|
|
38
|
-
});
|
|
39
|
-
return app;
|
|
40
|
-
}
|
package/dist/server/runtime.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import express from "express";
|
|
2
|
-
export interface XanixProps {
|
|
3
|
-
clientId: string;
|
|
4
|
-
req: any;
|
|
5
|
-
res: any;
|
|
6
|
-
component: React.ReactElement;
|
|
7
|
-
}
|
|
8
|
-
type Options = {
|
|
9
|
-
mode: "watch" | "start";
|
|
10
|
-
};
|
|
11
|
-
export declare function createXanixServer({ mode }: Options): express.Express;
|
|
12
|
-
export {};
|
package/dist/server/runtime.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import express from "express";
|
|
2
|
-
export function createXanixServer({ mode }) {
|
|
3
|
-
const app = express();
|
|
4
|
-
if (mode === "watch") {
|
|
5
|
-
app.use("/.xanix/client", express.static(".xanix/client"));
|
|
6
|
-
app.use("/assets", express.static(".xanix/assets"));
|
|
7
|
-
app.use("/.xanix/cache", express.static(".xanix/cache"));
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
app.use("/.xanix/client", express.static(".xanix/client", {
|
|
11
|
-
maxAge: "1y",
|
|
12
|
-
immutable: true,
|
|
13
|
-
etag: true,
|
|
14
|
-
}));
|
|
15
|
-
app.use("/assets", express.static(".xanix/assets", {
|
|
16
|
-
maxAge: "1y",
|
|
17
|
-
immutable: true,
|
|
18
|
-
etag: true,
|
|
19
|
-
}));
|
|
20
|
-
}
|
|
21
|
-
app.use((req, res, next) => {
|
|
22
|
-
let data = {
|
|
23
|
-
title: null,
|
|
24
|
-
meta: [],
|
|
25
|
-
};
|
|
26
|
-
if (!req.page) {
|
|
27
|
-
req.page = {
|
|
28
|
-
setTitle(title) {
|
|
29
|
-
data.title = title;
|
|
30
|
-
},
|
|
31
|
-
setMeta(name, content) {
|
|
32
|
-
data.meta.push({ name, content });
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
req.XanixPageData = data;
|
|
36
|
-
}
|
|
37
|
-
next();
|
|
38
|
-
});
|
|
39
|
-
return app;
|
|
40
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface XanixPageProps {
|
|
2
|
-
pageId: string;
|
|
3
|
-
req: any;
|
|
4
|
-
res: any;
|
|
5
|
-
Component: (props: Record<string, any>) => React.ReactElement;
|
|
6
|
-
props: Record<string, any>;
|
|
7
|
-
}
|
|
8
|
-
export default function xanix_page({ pageId, req, res, Component, props, }: XanixPageProps): Promise<string | undefined>;
|
|
9
|
-
export {};
|
package/dist/server/xanixPage.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { renderToPipeableStream } from "react-dom/server";
|
|
3
|
-
import readManifest from "./readManifest.js";
|
|
4
|
-
import { PassThrough } from "node:stream";
|
|
5
|
-
import path from "node:path";
|
|
6
|
-
import { pathToFileURL } from "node:url";
|
|
7
|
-
function renderPage(element) {
|
|
8
|
-
return new Promise((resolve, reject) => {
|
|
9
|
-
let html = "";
|
|
10
|
-
const stream = new PassThrough();
|
|
11
|
-
stream.on("data", (chunk) => {
|
|
12
|
-
html += chunk.toString();
|
|
13
|
-
});
|
|
14
|
-
stream.on("end", () => {
|
|
15
|
-
resolve(html);
|
|
16
|
-
});
|
|
17
|
-
stream.on("error", reject);
|
|
18
|
-
const { pipe } = renderToPipeableStream(element, {
|
|
19
|
-
onAllReady() {
|
|
20
|
-
pipe(stream);
|
|
21
|
-
},
|
|
22
|
-
onError(error) {
|
|
23
|
-
console.error("SSR error:", error);
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
export default async function xanix_page({ pageId, req, res, Component, props, }) {
|
|
29
|
-
const manifest = await readManifest();
|
|
30
|
-
const { title, meta } = req.XanixPageData;
|
|
31
|
-
const entry = manifest.entries.find((item) => item.id === pageId);
|
|
32
|
-
const method = req.method.toUpperCase();
|
|
33
|
-
if (method !== "GET") {
|
|
34
|
-
res.status(405).send("Method Not Allowed");
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
if (!entry) {
|
|
38
|
-
throw new Error(`Xanix client entry "${pageId}" was not found in the manifest.`);
|
|
39
|
-
}
|
|
40
|
-
if ("x-navigation" in req.headers) {
|
|
41
|
-
res.setHeader("Content-Type", "application/json");
|
|
42
|
-
return JSON.stringify({
|
|
43
|
-
pageId,
|
|
44
|
-
props,
|
|
45
|
-
title: title ?? entry.name.replaceAll("-", " "),
|
|
46
|
-
meta,
|
|
47
|
-
params: req.params,
|
|
48
|
-
request: null,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
const Document = (await import(pathToFileURL(path.join(process.cwd(), ".xanix", "xanix-document.js"))
|
|
52
|
-
.href)).default;
|
|
53
|
-
const html = await renderPage(_jsx(Document, { document: {
|
|
54
|
-
pageId,
|
|
55
|
-
props,
|
|
56
|
-
title: title ?? entry.name.replaceAll("-", " "),
|
|
57
|
-
meta,
|
|
58
|
-
params: req.params,
|
|
59
|
-
request: req,
|
|
60
|
-
}, children: _jsx(Component, { ...props }) }));
|
|
61
|
-
return `<!DOCTYPE html>${html}`;
|
|
62
|
-
}
|
package/dist/types.d.ts
DELETED
package/dist/types.js
DELETED
package/dist/utils/index.d.ts
DELETED
|
File without changes
|
package/dist/utils/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/xanix.d.ts
DELETED
package/dist/xanix.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { renderToString } from "react-dom/server";
|
|
2
|
-
import { isValidElement } from "react";
|
|
3
|
-
const xanix = () => {
|
|
4
|
-
return async (_req, res, next) => {
|
|
5
|
-
const originalSend = res.send.bind(res);
|
|
6
|
-
res.send = async (component) => {
|
|
7
|
-
if (typeof component !== "object" || !isValidElement(component)) {
|
|
8
|
-
originalSend(component);
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
// const { title, description } = component.type.metadata || {};
|
|
12
|
-
if (_req.query.static) {
|
|
13
|
-
res.setHeader("Content-Type", "application/json");
|
|
14
|
-
originalSend(JSON.stringify({
|
|
15
|
-
source: "script.js",
|
|
16
|
-
props: component.props,
|
|
17
|
-
}));
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
const html = renderToString(component);
|
|
21
|
-
res.setHeader("Content-Type", "text/html");
|
|
22
|
-
originalSend(`
|
|
23
|
-
<!doctype html>
|
|
24
|
-
<html>
|
|
25
|
-
<head>
|
|
26
|
-
</head>
|
|
27
|
-
<body>
|
|
28
|
-
<div>${html}</div>
|
|
29
|
-
<script>
|
|
30
|
-
window.__INITIAL_PROPS__ = ${JSON.stringify(component.props)};
|
|
31
|
-
</script>
|
|
32
|
-
</body>
|
|
33
|
-
</html>
|
|
34
|
-
`);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
next();
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export default xanix;
|
package/xanix-env.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import "express";
|
|
2
|
-
|
|
3
|
-
declare global {
|
|
4
|
-
const __XANIX_CLIENT__: boolean;
|
|
5
|
-
const __XANIX_SERVER__: boolean;
|
|
6
|
-
const __XANIX_DEV__: boolean;
|
|
7
|
-
const __XANIX_PROD__: boolean;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module "express-serve-static-core" {
|
|
11
|
-
interface Request {
|
|
12
|
-
page: {
|
|
13
|
-
setTitle(title: string): void;
|
|
14
|
-
setMeta(name: string, content: string): void;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
declare module "*.png" {
|
|
20
|
-
const src: string;
|
|
21
|
-
export default src;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare module "*.jpg" {
|
|
25
|
-
const src: string;
|
|
26
|
-
export default src;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
declare module "*.jpeg" {
|
|
30
|
-
const src: string;
|
|
31
|
-
export default src;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
declare module "*.gif" {
|
|
35
|
-
const src: string;
|
|
36
|
-
export default src;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare module "*.webp" {
|
|
40
|
-
const src: string;
|
|
41
|
-
export default src;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
declare module "*.svg" {
|
|
45
|
-
const src: string;
|
|
46
|
-
export default src;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare module "*.ico" {
|
|
50
|
-
const src: string;
|
|
51
|
-
export default src;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
declare module "*.woff" {
|
|
55
|
-
const src: string;
|
|
56
|
-
export default src;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
declare module "*.woff2" {
|
|
60
|
-
const src: string;
|
|
61
|
-
export default src;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
declare module "*.ttf" {
|
|
65
|
-
const src: string;
|
|
66
|
-
export default src;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
declare module "*.eot" {
|
|
70
|
-
const src: string;
|
|
71
|
-
export default src;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
declare module "*.css" {
|
|
75
|
-
const src: string;
|
|
76
|
-
export default src;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export {};
|