mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
camo icon
This commit is contained in:
1 parent
996c9c05df
commit
129a2c52f9
3 files changed
+9
-15
No files matched your search
@@ -14,7 +14,7 @@ export abstract class AbstractVFS {
|
|||||||
|
|
||||||
abstract has(path: string): Promise<boolean>;
|
abstract has(path: string): Promise<boolean>;
|
||||||
|
|
||||||
abstract raw(path: string): Promise<Uint8Array>;
|
abstract raw(path: string): Promise<Uint8Array<ArrayBuffer>>;
|
||||||
|
|
||||||
async resolve(path: string) {
|
async resolve(path: string) {
|
||||||
const normalized = normalize(path);
|
const normalized = normalize(path);
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
import { AssetUploader } from "../core/github/assetUploader";
|
|
||||||
import { vfs } from "./constants";
|
|
||||||
|
|
||||||
export async function camouflageIcons() {
|
|
||||||
console.log("Building camouflage icons...");
|
|
||||||
|
|
||||||
using uploader = new AssetUploader("camo icons");
|
|
||||||
const content = await vfs.file(
|
|
||||||
`Data/Gfx/UI/Hangar/IconCamouflage.packed.webp`,
|
|
||||||
);
|
|
||||||
|
|
||||||
await uploader.add({ content, path: "icons/camo.webp" });
|
|
||||||
await uploader.flush();
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import { vfs } from "../../../core/blitzkit/vfs";
|
||||||
|
|
||||||
|
export { getStaticPaths } from "../_index";
|
||||||
|
|
||||||
|
export async function GET() {
|
||||||
|
const bytes = await vfs.file("Data/Gfx/UI/Hangar/IconCamouflage.packed.webp");
|
||||||
|
return new Response(bytes);
|
||||||
|
}
|
||||||
Reference in new issue
Block a user