init convex (#1)
This commit is contained in:
parent
44919c69a9
commit
4233f4f17d
12 changed files with 592 additions and 45 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -23,3 +23,5 @@ Thumbs.db
|
||||||
vite.config.js.timestamp-*
|
vite.config.js.timestamp-*
|
||||||
vite.config.ts.timestamp-*
|
vite.config.ts.timestamp-*
|
||||||
.aider*
|
.aider*
|
||||||
|
|
||||||
|
src/lib/backend/convex/_generated
|
||||||
3
convex.json
Normal file
3
convex.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"functions": "src/lib/backend/convex"
|
||||||
|
}
|
||||||
13
package.json
13
package.json
|
|
@ -4,7 +4,7 @@
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "concurrently \"convex dev\" \"vite dev\"",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"prepare": "svelte-kit sync || echo ''",
|
"prepare": "svelte-kit sync || echo ''",
|
||||||
|
|
@ -31,24 +31,27 @@
|
||||||
"eslint-plugin-svelte": "^3.0.0",
|
"eslint-plugin-svelte": "^3.0.0",
|
||||||
"globals": "^16.0.0",
|
"globals": "^16.0.0",
|
||||||
"jsdom": "^26.0.0",
|
"jsdom": "^26.0.0",
|
||||||
|
"mode-watcher": "^1.0.8",
|
||||||
"prettier": "^3.4.2",
|
"prettier": "^3.4.2",
|
||||||
"prettier-plugin-svelte": "^3.3.3",
|
"prettier-plugin-svelte": "^3.3.3",
|
||||||
"prettier-plugin-tailwindcss": "^0.6.11",
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
||||||
|
"runed": "^0.28.0",
|
||||||
"svelte": "^5.0.0",
|
"svelte": "^5.0.0",
|
||||||
"svelte-check": "^4.0.0",
|
"svelte-check": "^4.0.0",
|
||||||
"tailwindcss": "^4.0.0",
|
"tailwindcss": "^4.0.0",
|
||||||
"typescript": "^5.0.0",
|
"typescript": "^5.0.0",
|
||||||
"typescript-eslint": "^8.20.0",
|
"typescript-eslint": "^8.20.0",
|
||||||
"vite": "^6.2.6",
|
"vite": "^6.2.6",
|
||||||
"vitest": "^3.2.3"
|
"vitest": "^3.2.3",
|
||||||
|
"concurrently": "^9.1.2",
|
||||||
|
"convex": "^1.24.8",
|
||||||
|
"convex-svelte": "^0.0.11",
|
||||||
|
"melt": "^0.35.0"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
"@tailwindcss/oxide",
|
"@tailwindcss/oxide",
|
||||||
"esbuild"
|
"esbuild"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"melt": "^0.35.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
603
pnpm-lock.yaml
generated
603
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
8
src/lib/backend/convex/schema.ts
Normal file
8
src/lib/backend/convex/schema.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
import { defineSchema, defineTable } from 'convex/server';
|
||||||
|
import { v } from 'convex/values';
|
||||||
|
|
||||||
|
export default defineSchema({
|
||||||
|
user_keys: defineTable({
|
||||||
|
openRouter: v.string()
|
||||||
|
})
|
||||||
|
});
|
||||||
2
src/lib/backend/convex/tasks.ts
Normal file
2
src/lib/backend/convex/tasks.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
import { mutation } from './_generated/server';
|
||||||
|
import { v } from 'convex/values';
|
||||||
0
src/lib/components/ui/tabs/index.ts
Normal file
0
src/lib/components/ui/tabs/index.ts
Normal file
|
|
@ -1,7 +1,9 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import '../app.css';
|
import '../app.css';
|
||||||
|
import { ModeWatcher } from 'mode-watcher';
|
||||||
|
|
||||||
let { children } = $props();
|
let { children } = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<ModeWatcher/>
|
||||||
{@render children()}
|
{@render children()}
|
||||||
|
|
|
||||||
4
src/routes/account/+layout.svelte
Normal file
4
src/routes/account/+layout.svelte
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
<script lang="ts">
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
0
src/routes/account/api-keys/+page.svelte
Normal file
0
src/routes/account/api-keys/+page.svelte
Normal file
0
src/routes/chat/+page.svelte
Normal file
0
src/routes/chat/+page.svelte
Normal file
0
src/routes/chat/[id]/+page.svelte
Normal file
0
src/routes/chat/[id]/+page.svelte
Normal file
Loading…
Add table
Reference in a new issue