Skip to content

Commit 2edc84e

Browse files
authored
Merge pull request #22 from IAHispano/formatter/main
chore(format): run biome on main
2 parents ce2b701 + fefb8dd commit 2edc84e

File tree

8 files changed

+467
-65
lines changed

8 files changed

+467
-65
lines changed

apps/applio-api/src/routes/models.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Hono } from "hono";
2+
import type { StatusCode } from "hono/utils/http-status";
23
import {
34
getFilteredEntries,
45
getFilteredEntriesByName,
56
} from "../services/models";
6-
import type { StatusCode } from "hono/utils/http-status";
77

88
const modelsRouter = new Hono();
99

@@ -61,7 +61,7 @@ modelsRouter.get("/search", async (c) => {
6161
order,
6262
};
6363

64-
let name = nameHeader || nameQuery;
64+
const name = nameHeader || nameQuery;
6565

6666
if (!name) {
6767
return c.json(

apps/applio-api/test/index.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// test/index.spec.ts
22
import {
3-
env,
3+
SELF,
44
createExecutionContext,
5+
env,
56
waitOnExecutionContext,
6-
SELF,
77
} from "cloudflare:test";
8-
import { describe, it, expect } from "vitest";
8+
import { describe, expect, it } from "vitest";
99
import worker from "../src/index";
1010

1111
// For now, you'll need to do something like this to get a correctly-typed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Generated by Wrangler
22
// After adding bindings to `wrangler.toml`, regenerate this interface via `npm run cf-typegen`
3-
interface Env {}
3+
type Env = {};

apps/applio-docs/astro.config.mjs

Lines changed: 41 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,92 @@
1+
import starlight from "@astrojs/starlight";
12
// @ts-check
2-
import { defineConfig } from 'astro/config';
3-
import starlight from '@astrojs/starlight';
4-
import starlightThemeNext from 'starlight-theme-next'
3+
import { defineConfig } from "astro/config";
4+
import starlightThemeNext from "starlight-theme-next";
55

66
// https://astro.build/config
77
export default defineConfig({
88
integrations: [
99
starlight({
1010
plugins: [starlightThemeNext()],
11-
title: 'Applio',
12-
description: 'Documentation for Applio - AI-driven voice conversion tool',
11+
title: "Applio",
12+
description: "Documentation for Applio - AI-driven voice conversion tool",
1313
social: [
14-
{ icon: 'github', label: 'GitHub', href: 'https://github.com/iahispano/applio' }
14+
{
15+
icon: "github",
16+
label: "GitHub",
17+
href: "https://github.com/iahispano/applio",
18+
},
1519
],
1620
sidebar: [
1721
{
18-
label: 'Introduction',
19-
link: '/',
22+
label: "Introduction",
23+
link: "/",
2024
},
2125
{
22-
label: 'Getting Started',
23-
autogenerate: { directory: 'getting-started' },
26+
label: "Getting Started",
27+
autogenerate: { directory: "getting-started" },
2428
},
2529
{
26-
label: 'Guides',
27-
autogenerate: { directory: 'guides' },
30+
label: "Guides",
31+
autogenerate: { directory: "guides" },
2832
},
2933
{
30-
label: 'Terms of Use',
31-
link: '/tos',
34+
label: "Terms of Use",
35+
link: "/tos",
3236
},
3337
],
3438
editLink: {
35-
baseUrl: 'https://github.com/iahispano/applio-website/edit/main/apps/applio-docs/',
39+
baseUrl:
40+
"https://github.com/iahispano/applio-website/edit/main/apps/applio-docs/",
3641
},
3742
head: [
3843
{
39-
tag: 'link',
44+
tag: "link",
4045
attrs: {
41-
rel: 'icon',
42-
href: '/favicon.ico',
46+
rel: "icon",
47+
href: "/favicon.ico",
4348
},
4449
},
4550
{
46-
tag: 'meta',
51+
tag: "meta",
4752
attrs: {
48-
property: 'og:image',
49-
content: '/opengraph-image.png',
53+
property: "og:image",
54+
content: "/opengraph-image.png",
5055
},
5156
},
5257
{
53-
tag: 'meta',
58+
tag: "meta",
5459
attrs: {
55-
name: 'twitter:image',
56-
content: '/opengraph-image.png',
60+
name: "twitter:image",
61+
content: "/opengraph-image.png",
5762
},
5863
},
5964
{
60-
tag: 'link',
65+
tag: "link",
6166
attrs: {
62-
rel: 'preconnect',
63-
href: 'https://fonts.googleapis.com',
67+
rel: "preconnect",
68+
href: "https://fonts.googleapis.com",
6469
},
6570
},
6671
{
67-
tag: 'link',
72+
tag: "link",
6873
attrs: {
69-
rel: 'preconnect',
70-
href: 'https://fonts.gstatic.com',
71-
crossorigin: '',
74+
rel: "preconnect",
75+
href: "https://fonts.gstatic.com",
76+
crossorigin: "",
7277
},
7378
},
7479
{
75-
tag: 'link',
80+
tag: "link",
7681
attrs: {
77-
rel: 'stylesheet',
78-
href: 'https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap',
82+
rel: "stylesheet",
83+
href: "https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap",
7984
},
8085
},
8186
{
82-
tag: 'style',
87+
tag: "style",
8388
attrs: {
84-
type: 'text/css',
89+
type: "text/css",
8590
},
8691
content: `
8792
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');

apps/applio-docs/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"name": "applio-docs",
3-
"type": "module",
4-
"version": "0.0.1",
5-
"scripts": {
6-
"dev": "astro dev",
7-
"start": "astro dev",
8-
"build": "astro build",
9-
"preview": "astro preview",
10-
"astro": "astro"
11-
},
12-
"dependencies": {
13-
"@astrojs/starlight": "^0.35.2",
14-
"astro": "^5.6.1",
15-
"sharp": "^0.34.2",
16-
"starlight-theme-next": "^0.3.2"
17-
}
18-
}
2+
"name": "applio-docs",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"scripts": {
6+
"dev": "astro dev",
7+
"start": "astro dev",
8+
"build": "astro build",
9+
"preview": "astro preview",
10+
"astro": "astro"
11+
},
12+
"dependencies": {
13+
"@astrojs/starlight": "^0.35.2",
14+
"astro": "^5.6.1",
15+
"sharp": "^0.34.2",
16+
"starlight-theme-next": "^0.3.2"
17+
}
18+
}

apps/applio-docs/src/content.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { defineCollection } from 'astro:content';
2-
import { docsLoader } from '@astrojs/starlight/loaders';
3-
import { docsSchema } from '@astrojs/starlight/schema';
1+
import { defineCollection } from "astro:content";
2+
import { docsLoader } from "@astrojs/starlight/loaders";
3+
import { docsSchema } from "@astrojs/starlight/schema";
44

55
export const collections = {
66
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),

apps/applio-docs/tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "astro/tsconfigs/strict",
3-
"include": [".astro/types.d.ts", "**/*"],
4-
"exclude": ["dist"]
2+
"extends": "astro/tsconfigs/strict",
3+
"include": [".astro/types.d.ts", "**/*"],
4+
"exclude": ["dist"]
55
}

0 commit comments

Comments
 (0)