chore: 🎨 format
This commit is contained in:
parent
175b6a36ef
commit
bec0aae418
@ -31,13 +31,41 @@ function greet() {
|
|||||||
if (!envOption.quiet) {
|
if (!envOption.quiet) {
|
||||||
//#region Firefish logo
|
//#region Firefish logo
|
||||||
const v = `v${meta.version}`;
|
const v = `v${meta.version}`;
|
||||||
console.log(themeColor(" ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄ ◯ "));
|
console.log(
|
||||||
console.log(themeColor("█ █ █ ▄ █ █ █ █ █ █ █ █ █ ○ ▄ ▄"));
|
themeColor(
|
||||||
console.log(themeColor("█ ▄▄▄█ █ █ █ █ █ ▄▄▄█ ▄▄▄█ █ ▄▄▄▄▄█ █▄█ █ ⚬ █▄▄ █▄▄ "));
|
" ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄ ◯ ",
|
||||||
console.log(themeColor("█ █▄▄▄█ █ █▄▄█▄█ █▄▄▄█ █▄▄▄█ █ █▄▄▄▄▄█ █ ▄▄▄▄▄▄ ▄"));
|
),
|
||||||
console.log(themeColor("█ ▄▄▄█ █ ▄▄ █ ▄▄▄█ ▄▄▄█ █▄▄▄▄▄ █ ▄ █ █ █ █▄▄"));
|
);
|
||||||
console.log(themeColor("█ █ █ █ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █ █ █ █ █ ● ● █"));
|
console.log(
|
||||||
console.log(themeColor("█▄▄▄█ █▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄█▄▄▄▄▄▄▄█▄▄█ █▄▄█ ▀▄▄▄▄▄▄▀"));
|
themeColor(
|
||||||
|
"█ █ █ ▄ █ █ █ █ █ █ █ █ █ ○ ▄ ▄",
|
||||||
|
),
|
||||||
|
);
|
||||||
|
console.log(
|
||||||
|
themeColor(
|
||||||
|
"█ ▄▄▄█ █ █ █ █ █ ▄▄▄█ ▄▄▄█ █ ▄▄▄▄▄█ █▄█ █ ⚬ █▄▄ █▄▄ ",
|
||||||
|
),
|
||||||
|
);
|
||||||
|
console.log(
|
||||||
|
themeColor(
|
||||||
|
"█ █▄▄▄█ █ █▄▄█▄█ █▄▄▄█ █▄▄▄█ █ █▄▄▄▄▄█ █ ▄▄▄▄▄▄ ▄",
|
||||||
|
),
|
||||||
|
);
|
||||||
|
console.log(
|
||||||
|
themeColor(
|
||||||
|
"█ ▄▄▄█ █ ▄▄ █ ▄▄▄█ ▄▄▄█ █▄▄▄▄▄ █ ▄ █ █ █ █▄▄",
|
||||||
|
),
|
||||||
|
);
|
||||||
|
console.log(
|
||||||
|
themeColor(
|
||||||
|
"█ █ █ █ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █ █ █ █ █ ● ● █",
|
||||||
|
),
|
||||||
|
);
|
||||||
|
console.log(
|
||||||
|
themeColor(
|
||||||
|
"█▄▄▄█ █▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄█▄▄▄▄▄▄▄█▄▄█ █▄▄█ ▀▄▄▄▄▄▄▀",
|
||||||
|
),
|
||||||
|
);
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
|
@ -33,7 +33,9 @@ export default (endpoint: IEndpoint, ctx: Koa.Context) =>
|
|||||||
code: y!.code,
|
code: y!.code,
|
||||||
id: y!.id,
|
id: y!.id,
|
||||||
kind: y!.kind,
|
kind: y!.kind,
|
||||||
...((y!.info && process.env.NODE_ENV !== "production") ? { info: y!.info } : {}),
|
...(y!.info && process.env.NODE_ENV !== "production"
|
||||||
|
? { info: y!.info }
|
||||||
|
: {}),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
@ -14,10 +14,13 @@ export const manifestHandler = async (ctx: Koa.Context) => {
|
|||||||
res.name = instance.name || "Firefish";
|
res.name = instance.name || "Firefish";
|
||||||
if (instance.themeColor) res.theme_color = instance.themeColor;
|
if (instance.themeColor) res.theme_color = instance.themeColor;
|
||||||
for (const icon of res.icons) {
|
for (const icon of res.icons) {
|
||||||
icon.src = `${icon.src}?v=${config.version.replace(/[^0-9]/g, '')}`;
|
icon.src = `${icon.src}?v=${config.version.replace(/[^0-9]/g, "")}`;
|
||||||
}
|
}
|
||||||
for (const screenshot of res.screenshots) {
|
for (const screenshot of res.screenshots) {
|
||||||
screenshot.src = `${screenshot.src}?v=${config.version.replace(/[^0-9]/g, '')}`;
|
screenshot.src = `${screenshot.src}?v=${config.version.replace(
|
||||||
|
/[^0-9]/g,
|
||||||
|
"",
|
||||||
|
)}`;
|
||||||
}
|
}
|
||||||
ctx.set("Cache-Control", "max-age=300");
|
ctx.set("Cache-Control", "max-age=300");
|
||||||
ctx.body = res;
|
ctx.body = res;
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
<template #caption>
|
<template #caption>
|
||||||
<I18n :src="i18n.ts.i18nInfo" tag="span">
|
<I18n :src="i18n.ts.i18nInfo" tag="span">
|
||||||
<template #link>
|
<template #link>
|
||||||
<MkLink url="https://hosted.weblate.org/engage/firefish/"
|
<MkLink
|
||||||
|
url="https://hosted.weblate.org/engage/firefish/"
|
||||||
>Weblate</MkLink
|
>Weblate</MkLink
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user