├── .env.example ├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── .vscode └── launch.json ├── LICENSE ├── README.md ├── components.json ├── drizzle.config.ts ├── drizzle ├── 0000_tricky_mojo.sql ├── 0001_rainy_hobgoblin.sql └── meta │ ├── 0000_snapshot.json │ ├── 0001_snapshot.json │ └── _journal.json ├── next.config.mjs ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── public ├── next.svg └── vercel.svg ├── spaced-screenshots.png ├── src ├── app │ ├── api │ │ ├── auth │ │ │ └── [...nextauth] │ │ │ │ └── route.ts │ │ ├── cards │ │ │ └── route.ts │ │ └── trpc │ │ │ └── [trpc] │ │ │ └── route.ts │ ├── cards │ │ └── create-many │ │ │ └── page.tsx │ ├── decks │ │ ├── [id] │ │ │ └── page.tsx │ │ ├── create │ │ │ └── page.tsx │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── auth.ts ├── common.ts ├── components │ ├── client-layout.tsx │ ├── decks │ │ ├── create-deck-form.tsx │ │ ├── deck-box.tsx │ │ ├── deck-cards.tsx │ │ └── deck.tsx │ ├── fetch-indicator.tsx │ ├── flashcard │ │ ├── ai-generate-flashcard-dialog.tsx │ │ ├── create-flashcard-form.tsx │ │ ├── create-many-flashcard-form.tsx │ │ ├── flashcard-simple.tsx │ │ ├── flashcard-state.tsx │ │ ├── main │ │ │ ├── card-count-badge.tsx │ │ │ ├── editable-flashcard.tsx │ │ │ ├── flashcard-box.tsx │ │ │ ├── flashcard-menu-bar.tsx │ │ │ ├── flashcard.tsx │ │ │ ├── rating-buttons.tsx │ │ │ └── swipe-action.tsx │ │ └── update-flashcard-form.tsx │ ├── form │ │ ├── form-input.tsx │ │ ├── form-markdown-editor.tsx │ │ ├── form-multi-select.tsx │ │ ├── form-select.tsx │ │ ├── form-textarea-image-upload.tsx │ │ ├── form-textarea.tsx │ │ └── input.types.ts │ ├── markdown-editor.tsx │ ├── nav-bar.tsx │ ├── please-sign-in.tsx │ ├── profile-button.tsx │ ├── sign-in.tsx │ ├── theme-provider.tsx │ ├── theme-toggle.tsx │ ├── time-icon-text.tsx │ ├── ui │ │ ├── alert-dialog.tsx │ │ ├── avatar.tsx │ │ ├── badge.tsx │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── command.tsx │ │ ├── dialog.tsx │ │ ├── drawer.tsx │ │ ├── dropdown-menu.tsx │ │ ├── editable-textarea.tsx │ │ ├── form.tsx │ │ ├── grid.ts │ │ ├── input.tsx │ │ ├── kbd.tsx │ │ ├── label.tsx │ │ ├── multi-select.tsx │ │ ├── navigation-menu.tsx │ │ ├── scroll-area.tsx │ │ ├── select.tsx │ │ ├── separator.tsx │ │ ├── skeleton.tsx │ │ ├── sonner.tsx │ │ ├── textarea.tsx │ │ ├── toggle.tsx │ │ └── tooltip.tsx │ └── user-images-dialog.tsx ├── db.ts ├── envConfig.ts ├── form.ts ├── hooks │ ├── card │ │ ├── use-ai-generate-card.ts │ │ ├── use-create-card.ts │ │ ├── use-create-many-card.ts │ │ ├── use-delete-card.ts │ │ ├── use-edit-card.ts │ │ ├── use-grade-card.ts │ │ ├── use-manual-grade-card.ts │ │ └── use-suspend.card.ts │ ├── deck │ │ ├── use-create-deck.ts │ │ ├── use-delete-deck.ts │ │ └── use-pause-deck.ts │ ├── image │ │ └── use-image-upload.ts │ ├── use-click-outside.ts │ ├── use-keydown-rating.ts │ └── use-subscribe-obsidian.ts ├── middleware.ts ├── migrate.ts ├── providers │ ├── auth-session.tsx │ ├── flashcard-session.tsx │ ├── history.tsx │ └── obsidian.tsx ├── schema.ts ├── scripts │ ├── export.ts │ ├── import.ts │ ├── seed.ts │ ├── utils.ts │ └── wipe.ts ├── server │ ├── context.ts │ ├── routers │ │ ├── _app.ts │ │ ├── card.ts │ │ ├── deck.ts │ │ └── image.ts │ └── trpc.ts └── utils │ ├── ai.ts │ ├── card.ts │ ├── deck.ts │ ├── format.ts │ ├── fsrs.ts │ ├── obsidian-parse.ts │ ├── obsidian.ts │ ├── session.ts │ ├── sort.ts │ ├── trpc.ts │ └── ui.ts ├── tailwind.config.ts └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/README.md -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/components.json -------------------------------------------------------------------------------- /drizzle.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/drizzle.config.ts -------------------------------------------------------------------------------- /drizzle/0000_tricky_mojo.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/drizzle/0000_tricky_mojo.sql -------------------------------------------------------------------------------- /drizzle/0001_rainy_hobgoblin.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/drizzle/0001_rainy_hobgoblin.sql -------------------------------------------------------------------------------- /drizzle/meta/0000_snapshot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/drizzle/meta/0000_snapshot.json -------------------------------------------------------------------------------- /drizzle/meta/0001_snapshot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/drizzle/meta/0001_snapshot.json -------------------------------------------------------------------------------- /drizzle/meta/_journal.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/drizzle/meta/_journal.json -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /spaced-screenshots.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/spaced-screenshots.png -------------------------------------------------------------------------------- /src/app/api/auth/[...nextauth]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/app/api/auth/[...nextauth]/route.ts -------------------------------------------------------------------------------- /src/app/api/cards/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/app/api/cards/route.ts -------------------------------------------------------------------------------- /src/app/api/trpc/[trpc]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/app/api/trpc/[trpc]/route.ts -------------------------------------------------------------------------------- /src/app/cards/create-many/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/app/cards/create-many/page.tsx -------------------------------------------------------------------------------- /src/app/decks/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/app/decks/[id]/page.tsx -------------------------------------------------------------------------------- /src/app/decks/create/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/app/decks/create/page.tsx -------------------------------------------------------------------------------- /src/app/decks/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/app/decks/layout.tsx -------------------------------------------------------------------------------- /src/app/decks/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/app/decks/page.tsx -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/auth.ts -------------------------------------------------------------------------------- /src/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/common.ts -------------------------------------------------------------------------------- /src/components/client-layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/client-layout.tsx -------------------------------------------------------------------------------- /src/components/decks/create-deck-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/decks/create-deck-form.tsx -------------------------------------------------------------------------------- /src/components/decks/deck-box.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/decks/deck-box.tsx -------------------------------------------------------------------------------- /src/components/decks/deck-cards.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/decks/deck-cards.tsx -------------------------------------------------------------------------------- /src/components/decks/deck.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/decks/deck.tsx -------------------------------------------------------------------------------- /src/components/fetch-indicator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/fetch-indicator.tsx -------------------------------------------------------------------------------- /src/components/flashcard/ai-generate-flashcard-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/flashcard/ai-generate-flashcard-dialog.tsx -------------------------------------------------------------------------------- /src/components/flashcard/create-flashcard-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/flashcard/create-flashcard-form.tsx -------------------------------------------------------------------------------- /src/components/flashcard/create-many-flashcard-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/flashcard/create-many-flashcard-form.tsx -------------------------------------------------------------------------------- /src/components/flashcard/flashcard-simple.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/flashcard/flashcard-simple.tsx -------------------------------------------------------------------------------- /src/components/flashcard/flashcard-state.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/flashcard/flashcard-state.tsx -------------------------------------------------------------------------------- /src/components/flashcard/main/card-count-badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/flashcard/main/card-count-badge.tsx -------------------------------------------------------------------------------- /src/components/flashcard/main/editable-flashcard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/flashcard/main/editable-flashcard.tsx -------------------------------------------------------------------------------- /src/components/flashcard/main/flashcard-box.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/flashcard/main/flashcard-box.tsx -------------------------------------------------------------------------------- /src/components/flashcard/main/flashcard-menu-bar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/flashcard/main/flashcard-menu-bar.tsx -------------------------------------------------------------------------------- /src/components/flashcard/main/flashcard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/flashcard/main/flashcard.tsx -------------------------------------------------------------------------------- /src/components/flashcard/main/rating-buttons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/flashcard/main/rating-buttons.tsx -------------------------------------------------------------------------------- /src/components/flashcard/main/swipe-action.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/flashcard/main/swipe-action.tsx -------------------------------------------------------------------------------- /src/components/flashcard/update-flashcard-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/flashcard/update-flashcard-form.tsx -------------------------------------------------------------------------------- /src/components/form/form-input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/form/form-input.tsx -------------------------------------------------------------------------------- /src/components/form/form-markdown-editor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/form/form-markdown-editor.tsx -------------------------------------------------------------------------------- /src/components/form/form-multi-select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/form/form-multi-select.tsx -------------------------------------------------------------------------------- /src/components/form/form-select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/form/form-select.tsx -------------------------------------------------------------------------------- /src/components/form/form-textarea-image-upload.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/form/form-textarea-image-upload.tsx -------------------------------------------------------------------------------- /src/components/form/form-textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/form/form-textarea.tsx -------------------------------------------------------------------------------- /src/components/form/input.types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/form/input.types.ts -------------------------------------------------------------------------------- /src/components/markdown-editor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/markdown-editor.tsx -------------------------------------------------------------------------------- /src/components/nav-bar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/nav-bar.tsx -------------------------------------------------------------------------------- /src/components/please-sign-in.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/please-sign-in.tsx -------------------------------------------------------------------------------- /src/components/profile-button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/profile-button.tsx -------------------------------------------------------------------------------- /src/components/sign-in.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/sign-in.tsx -------------------------------------------------------------------------------- /src/components/theme-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/theme-provider.tsx -------------------------------------------------------------------------------- /src/components/theme-toggle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/theme-toggle.tsx -------------------------------------------------------------------------------- /src/components/time-icon-text.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/time-icon-text.tsx -------------------------------------------------------------------------------- /src/components/ui/alert-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/alert-dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/avatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/avatar.tsx -------------------------------------------------------------------------------- /src/components/ui/badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/badge.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/card.tsx -------------------------------------------------------------------------------- /src/components/ui/command.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/command.tsx -------------------------------------------------------------------------------- /src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/drawer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/drawer.tsx -------------------------------------------------------------------------------- /src/components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /src/components/ui/editable-textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/editable-textarea.tsx -------------------------------------------------------------------------------- /src/components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/form.tsx -------------------------------------------------------------------------------- /src/components/ui/grid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/grid.ts -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/kbd.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/kbd.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/multi-select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/multi-select.tsx -------------------------------------------------------------------------------- /src/components/ui/navigation-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/navigation-menu.tsx -------------------------------------------------------------------------------- /src/components/ui/scroll-area.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/scroll-area.tsx -------------------------------------------------------------------------------- /src/components/ui/select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/select.tsx -------------------------------------------------------------------------------- /src/components/ui/separator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/separator.tsx -------------------------------------------------------------------------------- /src/components/ui/skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/skeleton.tsx -------------------------------------------------------------------------------- /src/components/ui/sonner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/sonner.tsx -------------------------------------------------------------------------------- /src/components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/textarea.tsx -------------------------------------------------------------------------------- /src/components/ui/toggle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/toggle.tsx -------------------------------------------------------------------------------- /src/components/ui/tooltip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/ui/tooltip.tsx -------------------------------------------------------------------------------- /src/components/user-images-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/components/user-images-dialog.tsx -------------------------------------------------------------------------------- /src/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/db.ts -------------------------------------------------------------------------------- /src/envConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/envConfig.ts -------------------------------------------------------------------------------- /src/form.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/form.ts -------------------------------------------------------------------------------- /src/hooks/card/use-ai-generate-card.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/card/use-ai-generate-card.ts -------------------------------------------------------------------------------- /src/hooks/card/use-create-card.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/card/use-create-card.ts -------------------------------------------------------------------------------- /src/hooks/card/use-create-many-card.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/card/use-create-many-card.ts -------------------------------------------------------------------------------- /src/hooks/card/use-delete-card.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/card/use-delete-card.ts -------------------------------------------------------------------------------- /src/hooks/card/use-edit-card.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/card/use-edit-card.ts -------------------------------------------------------------------------------- /src/hooks/card/use-grade-card.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/card/use-grade-card.ts -------------------------------------------------------------------------------- /src/hooks/card/use-manual-grade-card.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/card/use-manual-grade-card.ts -------------------------------------------------------------------------------- /src/hooks/card/use-suspend.card.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/card/use-suspend.card.ts -------------------------------------------------------------------------------- /src/hooks/deck/use-create-deck.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/deck/use-create-deck.ts -------------------------------------------------------------------------------- /src/hooks/deck/use-delete-deck.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/deck/use-delete-deck.ts -------------------------------------------------------------------------------- /src/hooks/deck/use-pause-deck.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/deck/use-pause-deck.ts -------------------------------------------------------------------------------- /src/hooks/image/use-image-upload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/image/use-image-upload.ts -------------------------------------------------------------------------------- /src/hooks/use-click-outside.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/use-click-outside.ts -------------------------------------------------------------------------------- /src/hooks/use-keydown-rating.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/use-keydown-rating.ts -------------------------------------------------------------------------------- /src/hooks/use-subscribe-obsidian.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/hooks/use-subscribe-obsidian.ts -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- 1 | export { auth as middleware } from "@/auth"; -------------------------------------------------------------------------------- /src/migrate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/migrate.ts -------------------------------------------------------------------------------- /src/providers/auth-session.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/providers/auth-session.tsx -------------------------------------------------------------------------------- /src/providers/flashcard-session.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/providers/flashcard-session.tsx -------------------------------------------------------------------------------- /src/providers/history.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/providers/history.tsx -------------------------------------------------------------------------------- /src/providers/obsidian.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/providers/obsidian.tsx -------------------------------------------------------------------------------- /src/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/schema.ts -------------------------------------------------------------------------------- /src/scripts/export.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/scripts/export.ts -------------------------------------------------------------------------------- /src/scripts/import.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/scripts/import.ts -------------------------------------------------------------------------------- /src/scripts/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/scripts/seed.ts -------------------------------------------------------------------------------- /src/scripts/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/scripts/utils.ts -------------------------------------------------------------------------------- /src/scripts/wipe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/scripts/wipe.ts -------------------------------------------------------------------------------- /src/server/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/server/context.ts -------------------------------------------------------------------------------- /src/server/routers/_app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/server/routers/_app.ts -------------------------------------------------------------------------------- /src/server/routers/card.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/server/routers/card.ts -------------------------------------------------------------------------------- /src/server/routers/deck.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/server/routers/deck.ts -------------------------------------------------------------------------------- /src/server/routers/image.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/server/routers/image.ts -------------------------------------------------------------------------------- /src/server/trpc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/server/trpc.ts -------------------------------------------------------------------------------- /src/utils/ai.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/utils/ai.ts -------------------------------------------------------------------------------- /src/utils/card.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/utils/card.ts -------------------------------------------------------------------------------- /src/utils/deck.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/utils/deck.ts -------------------------------------------------------------------------------- /src/utils/format.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/utils/format.ts -------------------------------------------------------------------------------- /src/utils/fsrs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/utils/fsrs.ts -------------------------------------------------------------------------------- /src/utils/obsidian-parse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/utils/obsidian-parse.ts -------------------------------------------------------------------------------- /src/utils/obsidian.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/utils/obsidian.ts -------------------------------------------------------------------------------- /src/utils/session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/utils/session.ts -------------------------------------------------------------------------------- /src/utils/sort.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/utils/sort.ts -------------------------------------------------------------------------------- /src/utils/trpc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/utils/trpc.ts -------------------------------------------------------------------------------- /src/utils/ui.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/src/utils/ui.ts -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-eng/spaced/HEAD/tsconfig.json --------------------------------------------------------------------------------