coyotte508 HF staff commited on
Commit
640dc14
1 Parent(s): 3a63ab8

🚨 Run prettier

Browse files
postcss.config.js CHANGED
@@ -1,6 +1,6 @@
1
  export default {
2
  plugins: {
3
  tailwindcss: {},
4
- autoprefixer: {}
5
- }
6
  };
 
1
  export default {
2
  plugins: {
3
  tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
  };
src/routes/conversation/[id]/+server.ts CHANGED
@@ -166,8 +166,10 @@ async function parseGeneratedText(
166
  return res;
167
  }
168
 
169
- export async function PATCH({request, locals, params}) {
170
- const {title} = z.object({title: z.string().trim().min(1).max(100)}).parse(await request.json())
 
 
171
 
172
  const convId = new ObjectId(params.id);
173
 
@@ -180,13 +182,16 @@ export async function PATCH({request, locals, params}) {
180
  throw error(404, "Conversation not found");
181
  }
182
 
183
- await collections.conversations.updateOne({
184
- _id: convId,
185
- }, {
186
- $set: {
187
- title,
 
 
 
188
  }
189
- });
190
 
191
  return new Response();
192
  }
 
166
  return res;
167
  }
168
 
169
+ export async function PATCH({ request, locals, params }) {
170
+ const { title } = z
171
+ .object({ title: z.string().trim().min(1).max(100) })
172
+ .parse(await request.json());
173
 
174
  const convId = new ObjectId(params.id);
175
 
 
182
  throw error(404, "Conversation not found");
183
  }
184
 
185
+ await collections.conversations.updateOne(
186
+ {
187
+ _id: convId,
188
+ },
189
+ {
190
+ $set: {
191
+ title,
192
+ },
193
  }
194
+ );
195
 
196
  return new Response();
197
  }
tailwind.config.cjs CHANGED
@@ -1,21 +1,21 @@
1
- const defaultTheme = require('tailwindcss/defaultTheme');
2
 
3
  /** @type {import('tailwindcss').Config} */
4
  export default {
5
- darkMode: 'class',
6
- content: ['./src/**/*.{html,js,svelte,ts}'],
7
  theme: {
8
  extend: {
9
  // fontFamily: {
10
  // sans: ['"Inter"', ...defaultTheme.fontFamily.sans]
11
  // },
12
  fontSize: {
13
- smd: '0.94rem'
14
- }
15
- }
16
  },
17
  plugins: [
18
- require('tailwind-scrollbar')({ nocompatible: true }),
19
- require('@tailwindcss/typography')
20
- ]
21
  };
 
1
+ const defaultTheme = require("tailwindcss/defaultTheme");
2
 
3
  /** @type {import('tailwindcss').Config} */
4
  export default {
5
+ darkMode: "class",
6
+ content: ["./src/**/*.{html,js,svelte,ts}"],
7
  theme: {
8
  extend: {
9
  // fontFamily: {
10
  // sans: ['"Inter"', ...defaultTheme.fontFamily.sans]
11
  // },
12
  fontSize: {
13
+ smd: "0.94rem",
14
+ },
15
+ },
16
  },
17
  plugins: [
18
+ require("tailwind-scrollbar")({ nocompatible: true }),
19
+ require("@tailwindcss/typography"),
20
+ ],
21
  };