├── .dockerignore ├── .env.example ├── .eslintrc.cjs ├── .gitignore ├── Dockerfile ├── README.md ├── bun.lockb ├── drizzle.config.ts ├── fly.toml ├── package.json ├── prettier.config.cjs ├── reset.d.ts ├── src ├── auth │ ├── index.ts │ └── middleware.ts ├── components │ ├── base.tsx │ ├── dashboard.tsx │ └── index.tsx ├── config │ └── index.ts ├── context │ └── index.ts ├── controllers │ ├── *.ts │ ├── auth.tsx │ ├── chat.tsx │ ├── organization.tsx │ └── ticket.tsx ├── db │ ├── primary │ │ ├── index.ts │ │ └── schema │ │ │ ├── auth.ts │ │ │ ├── index.ts │ │ │ └── organization.ts │ └── tenant │ │ ├── index.ts │ │ ├── mirgrate.ts │ │ └── schema │ │ ├── chats.ts │ │ ├── index.ts │ │ └── tickets.ts ├── lib │ └── index.ts ├── main.ts ├── pages │ ├── (auth) │ │ ├── *.ts │ │ └── login.tsx │ ├── *.ts │ ├── │ │ ├── *.ts │ │ └── ticket │ │ │ ├── *.ts │ │ │ ├── .tsx │ │ │ └── new.tsx │ ├── dashboard.tsx │ ├── index.tsx │ ├── new-user.tsx │ ├── organization.tsx │ └── tickets.tsx └── types │ ├── htmx.d.ts │ └── lucia.d.ts ├── tsconfig.json └── uno.config.ts /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/.dockerignore -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/.eslintrc.cjs -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/README.md -------------------------------------------------------------------------------- /bun.lockb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/bun.lockb -------------------------------------------------------------------------------- /drizzle.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/drizzle.config.ts -------------------------------------------------------------------------------- /fly.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/fly.toml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/package.json -------------------------------------------------------------------------------- /prettier.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/prettier.config.cjs -------------------------------------------------------------------------------- /reset.d.ts: -------------------------------------------------------------------------------- 1 | import "@total-typescript/ts-reset"; -------------------------------------------------------------------------------- /src/auth/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/auth/index.ts -------------------------------------------------------------------------------- /src/auth/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/auth/middleware.ts -------------------------------------------------------------------------------- /src/components/base.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/components/base.tsx -------------------------------------------------------------------------------- /src/components/dashboard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/components/dashboard.tsx -------------------------------------------------------------------------------- /src/components/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/components/index.tsx -------------------------------------------------------------------------------- /src/config/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/config/index.ts -------------------------------------------------------------------------------- /src/context/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/context/index.ts -------------------------------------------------------------------------------- /src/controllers/*.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/controllers/*.ts -------------------------------------------------------------------------------- /src/controllers/auth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/controllers/auth.tsx -------------------------------------------------------------------------------- /src/controllers/chat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/controllers/chat.tsx -------------------------------------------------------------------------------- /src/controllers/organization.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/controllers/organization.tsx -------------------------------------------------------------------------------- /src/controllers/ticket.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/controllers/ticket.tsx -------------------------------------------------------------------------------- /src/db/primary/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/db/primary/index.ts -------------------------------------------------------------------------------- /src/db/primary/schema/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/db/primary/schema/auth.ts -------------------------------------------------------------------------------- /src/db/primary/schema/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/db/primary/schema/index.ts -------------------------------------------------------------------------------- /src/db/primary/schema/organization.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/db/primary/schema/organization.ts -------------------------------------------------------------------------------- /src/db/tenant/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/db/tenant/index.ts -------------------------------------------------------------------------------- /src/db/tenant/mirgrate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/db/tenant/mirgrate.ts -------------------------------------------------------------------------------- /src/db/tenant/schema/chats.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/db/tenant/schema/chats.ts -------------------------------------------------------------------------------- /src/db/tenant/schema/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/db/tenant/schema/index.ts -------------------------------------------------------------------------------- /src/db/tenant/schema/tickets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/db/tenant/schema/tickets.ts -------------------------------------------------------------------------------- /src/lib/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/lib/index.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/pages/(auth)/*.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/pages/(auth)/*.ts -------------------------------------------------------------------------------- /src/pages/(auth)/login.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/pages/(auth)/login.tsx -------------------------------------------------------------------------------- /src/pages/*.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/pages/*.ts -------------------------------------------------------------------------------- /src/pages//*.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/pages//*.ts -------------------------------------------------------------------------------- /src/pages//ticket/*.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/pages//ticket/*.ts -------------------------------------------------------------------------------- /src/pages//ticket/.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/pages//ticket/.tsx -------------------------------------------------------------------------------- /src/pages//ticket/new.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/pages//ticket/new.tsx -------------------------------------------------------------------------------- /src/pages/dashboard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/pages/dashboard.tsx -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/pages/new-user.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/pages/new-user.tsx -------------------------------------------------------------------------------- /src/pages/organization.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/pages/organization.tsx -------------------------------------------------------------------------------- /src/pages/tickets.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/pages/tickets.tsx -------------------------------------------------------------------------------- /src/types/htmx.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/types/htmx.d.ts -------------------------------------------------------------------------------- /src/types/lucia.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/src/types/lucia.d.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/tsconfig.json -------------------------------------------------------------------------------- /uno.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethanniser/beth-b2b-saas/HEAD/uno.config.ts --------------------------------------------------------------------------------