🚨 Run prettier

pull/144/head
coyotte508 2023-04-28 09:03:39 +02:00
parent 3a63ab8dda
commit 640dc148af
3 changed files with 24 additions and 19 deletions

View File

@ -1,6 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
autoprefixer: {},
},
};

View File

@ -166,8 +166,10 @@ async function parseGeneratedText(
return res;
}
export async function PATCH({request, locals, params}) {
const {title} = z.object({title: z.string().trim().min(1).max(100)}).parse(await request.json())
export async function PATCH({ request, locals, params }) {
const { title } = z
.object({ title: z.string().trim().min(1).max(100) })
.parse(await request.json());
const convId = new ObjectId(params.id);
@ -180,13 +182,16 @@ export async function PATCH({request, locals, params}) {
throw error(404, "Conversation not found");
}
await collections.conversations.updateOne({
_id: convId,
}, {
$set: {
title,
await collections.conversations.updateOne(
{
_id: convId,
},
{
$set: {
title,
},
}
});
);
return new Response();
}

View File

@ -1,21 +1,21 @@
const defaultTheme = require('tailwindcss/defaultTheme');
const defaultTheme = require("tailwindcss/defaultTheme");
/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'class',
content: ['./src/**/*.{html,js,svelte,ts}'],
darkMode: "class",
content: ["./src/**/*.{html,js,svelte,ts}"],
theme: {
extend: {
// fontFamily: {
// sans: ['"Inter"', ...defaultTheme.fontFamily.sans]
// },
fontSize: {
smd: '0.94rem'
}
}
smd: "0.94rem",
},
},
},
plugins: [
require('tailwind-scrollbar')({ nocompatible: true }),
require('@tailwindcss/typography')
]
require("tailwind-scrollbar")({ nocompatible: true }),
require("@tailwindcss/typography"),
],
};