Skip to content

Commit

Permalink
Merge pull request #2215 from undb-io/release/v1.0.0-142
Browse files Browse the repository at this point in the history
Release version v1.0.0-142
  • Loading branch information
nichenqin authored Mar 9, 2025
2 parents 0eeb96d + f8a75c9 commit 1c375e6
Show file tree
Hide file tree
Showing 25 changed files with 173 additions and 4,128 deletions.
25 changes: 25 additions & 0 deletions .cursor/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"mcpServers": {
"sequentialthinking": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"mcp/sequentialthinking"
]
},
"sqlite": {
"command": "uv",
"args": [
"--directory",
".",
"run",
"mcp-server-sqlite",
"--db-path",
"./apps/backend/undb.sqlite"
]
}

}
}
13 changes: 0 additions & 13 deletions .eslintrc.js

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierignore

This file was deleted.

15 changes: 0 additions & 15 deletions .prettierrc

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["biomejs.biome"]
}
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## v1.0.0-142


### 🩹 Fixes

- Fix volume ([db6762d](https://github.com/undb-io/undb/commit/db6762d))

### ❤️ Contributors

- Nichenqin ([@nichenqin](https://github.com/nichenqin))

## v1.0.0-141


Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ docker run -p 3721:3721 ghcr.io/undb-io/undb:latest
```bash
docker run -d \
-p 3721:3721 \
-v $(pwd)/undb:/usr/src/app/.undb/storage
-v $(pwd)/undb:/usr/src/app/.undb \
--name undb \
ghcr.io/undb-io/undb:latest
Expand Down
13 changes: 0 additions & 13 deletions apps/frontend/.eslintignore

This file was deleted.

29 changes: 0 additions & 29 deletions apps/frontend/.eslintrc.cjs

This file was deleted.

12 changes: 0 additions & 12 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"test": "vitest",
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"clean": "bunx rimraf node_modules"
},
"devDependencies": {
Expand All @@ -24,13 +22,9 @@
"@sveltejs/kit": "^2.16.1",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@tailwindcss/typography": "^0.5.16",
"@tanstack/eslint-plugin-query": "^5.64.2",
"@types/eslint": "^9.6.1",
"@types/lodash.unzip": "^3.4.9",
"@types/papaparse": "^5.3.15",
"@types/sortablejs": "latest",
"@typescript-eslint/eslint-plugin": "^8.21.0",
"@typescript-eslint/parser": "^8.21.0",
"@undb/commands": "workspace:*",
"@undb/command-handlers": "workspace:*",
"@undb/query-handlers": "workspace:*",
Expand All @@ -50,18 +44,12 @@
"array-move": "^4.0.0",
"autoprefixer": "^10.4.20",
"date-fns": "^4.1.0",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-svelte": "^2.46.1",
"houdini": "^1.4.1",
"houdini-svelte": "^2.1.1",
"lodash.unzip": "^3.4.0",
"papaparse": "^5.5.1",
"postcss": "^8.5.1",
"postcss-load-config": "^6.0.1",
"prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.10",
"radash": "^12.1.0",
"rollup-plugin-visualizer": "^5.14.0",
"safe-flat": "^2.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<script lang="ts">
import * as Form from "$lib/components/ui/form"
import * as Select from "$lib/components/ui/select/index.js"
import * as Collapsible from "$lib/components/ui/collapsible"
import { Switch } from "$lib/components/ui/switch"
import { Label } from "$lib/components/ui/label"
import { trpc } from "$lib/trpc/client.js"
import { createMutation, useQueryClient } from "@tanstack/svelte-query"
import SuperDebug, { superForm, defaults } from "sveltekit-superforms"
import { createWebhookCommand, type ICreateWebhookCommand } from "@undb/commands"
import { zodClient } from "sveltekit-superforms/adapters"
import { Input } from "$lib/components/ui/input"
import { toast } from "svelte-sonner"
import { getTable } from "$lib/store/table.store"
import FiltersEditor from "../filters-editor/filters-editor.svelte"
import { type MaybeConditionGroup, parseValidViewFilter } from "@undb/table"
import { writable } from "svelte/store"
import { closeModal, CREATE_WEBHOOK_MODAL } from "$lib/store/modal.store"
import type { IWebhookConditionOptionSchema } from "@undb/webhook"
import { LL } from "@undb/i18n/client"
import * as Form from '$lib/components/ui/form'
import * as Select from '$lib/components/ui/select/index.js'
import * as Collapsible from '$lib/components/ui/collapsible'
import { Switch } from '$lib/components/ui/switch'
import { Label } from '$lib/components/ui/label'
import { trpc } from '$lib/trpc/client.js'
import { createMutation, useQueryClient } from '@tanstack/svelte-query'
import SuperDebug, { superForm, defaults } from 'sveltekit-superforms'
import { createWebhookCommand, type ICreateWebhookCommand } from '@undb/commands'
import { zodClient } from 'sveltekit-superforms/adapters'
import { Input } from '$lib/components/ui/input'
import { toast } from 'svelte-sonner'
import { getTable } from '$lib/store/table.store'
import FiltersEditor from '../filters-editor/filters-editor.svelte'
import { type MaybeConditionGroup, parseValidViewFilter } from '@undb/table'
import { writable } from 'svelte/store'
import { closeModal, CREATE_WEBHOOK_MODAL } from '$lib/store/modal.store'
import type { IWebhookConditionOptionSchema } from '@undb/webhook'
import { LL } from '@undb/i18n/client'
const table = getTable()
Expand All @@ -28,7 +28,7 @@
form.reset()
closeModal(CREATE_WEBHOOK_MODAL)
await client.invalidateQueries({
queryKey: ["tables", $table.id.value, "webhooks"],
queryKey: ['tables', $table.id.value, 'webhooks'],
})
},
onError(error) {
Expand All @@ -39,24 +39,27 @@
const form = superForm<ICreateWebhookCommand>(
defaults(
{
name: "webhook",
method: "POST",
url: "",
name: 'webhook',
method: 'POST',
url: '',
tableId: $table.id.value,
enabled: true,
headers: {},
event: "record.created",
event: 'record.created',
},
zodClient(createWebhookCommand),
),
{
SPA: true,
dataType: "json",
dataType: 'json',
validators: zodClient(createWebhookCommand),
resetForm: false,
invalidateAll: true,
onUpdate(event) {
if (!event.form.valid) return
if (!event.form.valid) {
console.log(event.form.errors)
return
}
$createWebhookMutation.mutate(event.form.data)
},
Expand All @@ -65,7 +68,7 @@
const { form: formData, enhance, allErrors } = form
const condition = writable<MaybeConditionGroup<IWebhookConditionOptionSchema> | undefined>()
const condition = writable<MaybeConditionGroup<any> | undefined>()
$: validCondition = $condition ? parseValidViewFilter($table.schema, $condition) : undefined
$: validCondition,
formData.update(($form) => {
Expand Down
Loading

0 comments on commit 1c375e6

Please sign in to comment.