mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-14 13:54:05 +01:00
lint code
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script lang="ts" setup>
|
||||
import type { PropType } from 'vue'
|
||||
import type { UsesItem } from '#components'
|
||||
import type {PropType} from 'vue'
|
||||
|
||||
defineProps({
|
||||
item: {
|
||||
|
||||
@@ -7,8 +7,7 @@ useSeoMeta({
|
||||
description: t('description'),
|
||||
})
|
||||
|
||||
const { data: writings } = await useAsyncData('all-portfolio', () =>
|
||||
queryContent('/portfolio').sort({publishedAt: -1}).without('body').find())
|
||||
const {data: writings} = await useAsyncData('all-portfolio', () => queryContent('/portfolio').sort({publishedAt: -1}).without('body').find())
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -99,4 +99,4 @@ With these concepts in mind, you are better equipped to understand and apply ML
|
||||
|
||||
## Conclusion
|
||||
|
||||
Machine learning is revolutionising how we solve complex problems using data. Supervised, unsupervised, and reinforcement learning approaches allow us to tackle a wide variety of use cases. In supervised learning, the model choice depends on the problem type, its complexity, and the appropriate algorithmic approach. Finally, a structured workflow and metrics like the R² score ensure the quality of predictions and analyses.
|
||||
Machine learning is revolutionising how we solve complex problems using data. Supervised, unsupervised, and reinforcement learning approaches allow us to tackle a wide variety of use cases. In supervised learning, the model choice depends on the problem type, its complexity, and the appropriate algorithmic approach. Finally, a structured workflow and metrics like the R² score ensure the quality of predictions and analyses.
|
||||
|
||||
@@ -44,4 +44,4 @@
|
||||
"vue-tsc": "^2.1.6",
|
||||
"wrangler": "^3.78.5"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,10 +4,8 @@ export default defineEventHandler(async (event) => {
|
||||
const { slug } = await useValidatedParams(event, {
|
||||
slug: z.string(),
|
||||
})
|
||||
return useDB().update(tables.posts)
|
||||
.set({
|
||||
likes: sql`${tables.posts.likes}
|
||||
+ 1`,
|
||||
})
|
||||
.where(eq(tables.posts.slug, slug))
|
||||
return useDB().update(tables.posts).set({
|
||||
likes: sql`${tables.posts.likes}
|
||||
+ 1`,
|
||||
}).where(eq(tables.posts.slug, slug))
|
||||
})
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { integer, sqliteTable, text } from 'drizzle-orm/sqlite-core'
|
||||
import { sql } from 'drizzle-orm'
|
||||
import {integer, sqliteTable, text} from 'drizzle-orm/sqlite-core'
|
||||
|
||||
export const posts = sqliteTable('posts', {
|
||||
slug: text('slug').primaryKey(),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { drizzle } from 'drizzle-orm/d1'
|
||||
import * as schema from '../database/schema'
|
||||
|
||||
export { sql, eq, and, or, asc, desc, sum } from 'drizzle-orm'
|
||||
export {and, asc, desc, eq, or, sql, sum} from 'drizzle-orm'
|
||||
|
||||
export const tables = schema
|
||||
|
||||
|
||||
Reference in New Issue
Block a user