chore: 🎨 format
This commit is contained in:
parent
175b6a36ef
commit
bec0aae418
4 changed files with 45 additions and 11 deletions
|
@ -31,13 +31,41 @@ function greet() {
|
|||
if (!envOption.quiet) {
|
||||
//#region Firefish logo
|
||||
const v = `v${meta.version}`;
|
||||
console.log(themeColor(" ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄ ◯ "));
|
||||
console.log(themeColor("█ █ █ ▄ █ █ █ █ █ █ █ █ █ ○ ▄ ▄"));
|
||||
console.log(themeColor("█ ▄▄▄█ █ █ █ █ █ ▄▄▄█ ▄▄▄█ █ ▄▄▄▄▄█ █▄█ █ ⚬ █▄▄ █▄▄ "));
|
||||
console.log(themeColor("█ █▄▄▄█ █ █▄▄█▄█ █▄▄▄█ █▄▄▄█ █ █▄▄▄▄▄█ █ ▄▄▄▄▄▄ ▄"));
|
||||
console.log(themeColor("█ ▄▄▄█ █ ▄▄ █ ▄▄▄█ ▄▄▄█ █▄▄▄▄▄ █ ▄ █ █ █ █▄▄"));
|
||||
console.log(themeColor("█ █ █ █ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █ █ █ █ █ ● ● █"));
|
||||
console.log(themeColor("█▄▄▄█ █▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄█▄▄▄▄▄▄▄█▄▄█ █▄▄█ ▀▄▄▄▄▄▄▀"));
|
||||
console.log(
|
||||
themeColor(
|
||||
" ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄ ◯ ",
|
||||
),
|
||||
);
|
||||
console.log(
|
||||
themeColor(
|
||||
"█ █ █ ▄ █ █ █ █ █ █ █ █ █ ○ ▄ ▄",
|
||||
),
|
||||
);
|
||||
console.log(
|
||||
themeColor(
|
||||
"█ ▄▄▄█ █ █ █ █ █ ▄▄▄█ ▄▄▄█ █ ▄▄▄▄▄█ █▄█ █ ⚬ █▄▄ █▄▄ ",
|
||||
),
|
||||
);
|
||||
console.log(
|
||||
themeColor(
|
||||
"█ █▄▄▄█ █ █▄▄█▄█ █▄▄▄█ █▄▄▄█ █ █▄▄▄▄▄█ █ ▄▄▄▄▄▄ ▄",
|
||||
),
|
||||
);
|
||||
console.log(
|
||||
themeColor(
|
||||
"█ ▄▄▄█ █ ▄▄ █ ▄▄▄█ ▄▄▄█ █▄▄▄▄▄ █ ▄ █ █ █ █▄▄",
|
||||
),
|
||||
);
|
||||
console.log(
|
||||
themeColor(
|
||||
"█ █ █ █ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █ █ █ █ █ ● ● █",
|
||||
),
|
||||
);
|
||||
console.log(
|
||||
themeColor(
|
||||
"█▄▄▄█ █▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄█▄▄▄▄▄▄▄█▄▄█ █▄▄█ ▀▄▄▄▄▄▄▀",
|
||||
),
|
||||
);
|
||||
//#endregion
|
||||
|
||||
console.log(
|
||||
|
|
|
@ -33,7 +33,9 @@ export default (endpoint: IEndpoint, ctx: Koa.Context) =>
|
|||
code: y!.code,
|
||||
id: y!.id,
|
||||
kind: y!.kind,
|
||||
...((y!.info && process.env.NODE_ENV !== "production") ? { info: y!.info } : {}),
|
||||
...(y!.info && process.env.NODE_ENV !== "production"
|
||||
? { info: y!.info }
|
||||
: {}),
|
||||
},
|
||||
};
|
||||
} else {
|
||||
|
|
|
@ -14,10 +14,13 @@ export const manifestHandler = async (ctx: Koa.Context) => {
|
|||
res.name = instance.name || "Firefish";
|
||||
if (instance.themeColor) res.theme_color = instance.themeColor;
|
||||
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) {
|
||||
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.body = res;
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
<template #caption>
|
||||
<I18n :src="i18n.ts.i18nInfo" tag="span">
|
||||
<template #link>
|
||||
<MkLink url="https://hosted.weblate.org/engage/firefish/"
|
||||
<MkLink
|
||||
url="https://hosted.weblate.org/engage/firefish/"
|
||||
>Weblate</MkLink
|
||||
>
|
||||
</template>
|
||||
|
|
Loading…
Reference in a new issue