This commit is contained in:
Waleed Latif
2025-03-13 15:06:25 -07:00
parent 145bd0cca6
commit 8bd26159a7
412 changed files with 200 additions and 4146 deletions

3
.gitattributes vendored Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f1f58fd32af1d9afe3c8d06ebe19deef3656ab96408bbdfb46cf45e8eeb0bc3
size 38

1
.gitignore vendored
View File

@@ -37,7 +37,6 @@ yarn-error.log*
# env files
.env
.env.*
*.env
.env.local
.env.development

3
.husky/_/post-checkout Executable file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8d606e58cce98604696a4abcf3ae1ebde6f9f31ac72bb0d44e2444cc39f26030
size 360

3
.husky/_/post-commit Executable file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f3eb4d1f62924c09d481a0563a84b158c66eb2feb3431cfdb3e6760aab4d661d
size 356

3
.husky/_/post-merge Executable file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cecb594e8fa65831654fc95e96db9f1249e09c52810c6fbb2b428280aac22158
size 354

3
.husky/_/pre-push Executable file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a52d0510d0f8c75e27852156ec6f7791f0d8ed65fc58fcc368dd1de0a60a1d74
size 350

View File

@@ -1 +0,0 @@
npx lint-staged

View File

@@ -1,34 +1,3 @@
import type { ReactNode } from 'react'
import Link from 'next/link'
import { DocsLayout } from 'fumadocs-ui/layouts/docs'
import { GithubIcon } from 'lucide-react'
import { source } from '@/lib/source'
const GitHubLink = () => (
<div className="fixed bottom-4 left-4 z-50">
<Link
href="https://github.com/simstudioai/sim"
target="_blank"
rel="noopener noreferrer"
className="flex items-center justify-center w-8 h-8 rounded-full bg-background border border-border hover:bg-muted transition-colors"
>
<GithubIcon className="h-4 w-4" />
</Link>
</div>
)
export default function Layout({ children }: { children: ReactNode }) {
return (
<>
<DocsLayout
tree={source.pageTree}
nav={{
title: 'Sim Studio',
}}
>
{children}
</DocsLayout>
<GitHubLink />
</>
)
}
version https://git-lfs.github.com/spec/v1
oid sha256:7f80c2b0820c545af51eeea26ca87ebc8f0f93d4d7ebc325dc5c7d34023de279
size 968

View File

@@ -1,28 +1,3 @@
import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared'
/**
* Shared layout configurations
*
* you can customise layouts individually from:
* Home Layout: app/(home)/layout.tsx
* Docs Layout: app/docs/layout.tsx
*/
export const baseOptions: BaseLayoutProps = {
nav: {
title: (
<>
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-label="Logo">
<circle cx={12} cy={12} r={12} fill="currentColor" />
</svg>
My App
</>
),
},
links: [
{
text: 'Documentation',
url: '/docs',
active: 'nested-url',
},
],
}
version https://git-lfs.github.com/spec/v1
oid sha256:0c36ff1e237cbde797d005f6cb7d740f883efda7e5f724c2fbb60d9208f9c2e0
size 412

View File

@@ -13,8 +13,8 @@
"@tabler/icons-react": "^3.31.0",
"@vercel/og": "^0.6.5",
"clsx": "^2.1.1",
"fumadocs-core": "15.0.16",
"fumadocs-mdx": "11.5.6",
"fumadocs-core": "^15.0.16",
"fumadocs-mdx": "^11.5.6",
"fumadocs-ui": "^15.0.16",
"lucide-react": "^0.479.0",
"next": "15.2.1",

View File

@@ -13,8 +13,8 @@
"@tabler/icons-react": "^3.31.0",
"@vercel/og": "^0.6.5",
"clsx": "^2.1.1",
"fumadocs-core": "15.0.16",
"fumadocs-mdx": "11.5.6",
"fumadocs-core": "^15.0.16",
"fumadocs-mdx": "^11.5.6",
"fumadocs-ui": "^15.0.16",
"lucide-react": "^0.479.0",
"next": "15.2.1",

12
sim/.env.example Normal file
View File

@@ -0,0 +1,12 @@
# Database (Required)
DATABASE_URL="postgresql://postgres:password@localhost:5432/postgres"
# Authentication (Required)
BETTER_AUTH_SECRET=your_secret_key # Use `openssl rand -hex 32` to generate, or visit https://www.better-auth.com/docs/installation
BETTER_AUTH_URL=http://localhost:3000
# Email Provider (Required)
RESEND_API_KEY=your_resend_api_key # Get from https://resend.com
# App URL (Required)
NEXT_PUBLIC_APP_URL=http://localhost:3000

54
sim/.gitignore vendored Normal file
View File

@@ -0,0 +1,54 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/packages/**/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
/dist
**/dist/
**/standalone/
sim-standalone.tar.gz
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# env files
.env
*.env
.env.local
.env.development
.env.test
.env.production
# vercel
.vercel
# typescript
*.tsbuildinfo
next-env.d.ts
# cursorrules
.cursorrules

Some files were not shown because too many files have changed in this diff Show More