Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/components/DocsCalloutQueryGG.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ export function DocsCalloutQueryGG() {
<cite className="italic block text-right">—Tanner Linsley</cite>
</blockquote>

<div className="grid justify-center bg-gray-800 dark:bg-gray-100 text-gray-100 dark:text-gray-800 z-10">
</div>
<div className="grid justify-center bg-gray-800 dark:bg-gray-100 text-gray-100 dark:text-gray-800 z-10"></div>

{ppp && (
<>
Expand Down
13 changes: 13 additions & 0 deletions src/images/electric-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/images/electric-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 85 additions & 0 deletions src/libraries/db.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
import { BsCollectionFill } from 'react-icons/bs'
import { VscPreview, VscWand } from 'react-icons/co'
import { Library } from '.'
import { FaGithub, FaBolt, FaCogs } from 'react-icons/fa'
import { BiBookAlt } from 'react-icons/bi'
import { twMerge } from 'tailwind-merge'

const repo = 'tanstack/db'

const textStyles = `text-orange-600 dark:text-orange-500`

export const dbProject = {
id: 'db',
name: 'TanStack DB',
cardStyles: `shadow-xl shadow-orange-700/20 dark:shadow-lg dark:shadow-orange-500/20 text-orange-500 dark:text-orange-400 border-2 border-transparent hover:border-current`,
to: '/db',
tagline: `A reactive client store for building super fast apps on sync`,
description: `TanStack DB extends TanStack Query with collections, live queries and optimistic mutations that keep your UI reactive, consistent and blazing fast 🔥`,
ogImage: 'https://github.com/tanstack/db/raw/main/media/repo-header.png',
badge: 'soon',
bgStyle: `bg-orange-700`,
textStyle: `text-orange-500`,
repo,
latestBranch: 'main',
latestVersion: 'v0',
availableVersions: ['v0'],
colorFrom: `from-orange-500`,
colorTo: `to-orange-700`,
textColor: `text-orange-700`,
frameworks: ['react', 'solid'],
scarfId: '302d0fef-cb3f-43c6-b45c-f055b9745edb',
defaultDocs: 'overview',
menu: [
// {
// icon: <VscPreview />,
// label: 'Examples',
// to: '/db/latest/docs/framework/react/examples/simple',
// },
{
icon: <BiBookAlt />,
label: 'Docs',
to: `https://github.com/${repo}/blob/main/docs/index.md`,
},
{
icon: <FaGithub />,
label: 'Github',
to: `https://github.com/${repo}`,
},
],
featureHighlights: [
{
title: 'Collections',
icon: <BsCollectionFill className={twMerge(textStyles)} />,
description: (
<div>
Collections are typed sets of objects. Sync or load data into them.
Query across them with live queries and write locally to them using
optimistic mutations.
</div>
),
},
{
title: 'Live Queries',
icon: <FaBolt className={twMerge(textStyles)} />,
description: (
<div>
Live queries run reactively against and across collections. They're
super fast, powered by differential dataflow, with support for joins,
filters and aggregates.
</div>
),
},
{
title: 'Optimistic mutations',
icon: <FaCogs className={twMerge(textStyles)} />,
description: (
<div>
Batch and stage instant local changes across collections. Sync
transactions to the backend with automatic management of rollbacks and
optimistic state.
</div>
),
},
],
} satisfies Library
16 changes: 11 additions & 5 deletions src/libraries/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { virtualProject } from './virtual'
import { rangerProject } from './ranger'
import { storeProject } from './store'
import { pacerProject } from './pacer'
// import { optimisticProject } from './optimistic'
import { dbProject } from './db'

export const frameworkOptions = [
{ label: 'React', value: 'react', logo: reactLogo, color: 'bg-blue-500' },
Expand Down Expand Up @@ -54,7 +54,7 @@ export type Library = {
| 'ranger'
| 'store'
| 'pacer'
| 'optimistic'
| 'db'
| 'config'
| 'react-charts'
name: string
Expand Down Expand Up @@ -107,13 +107,19 @@ export const libraries = [
pacerProject,
storeProject,
rangerProject,
// optimisticProject,
dbProject,
configProject,
] satisfies Library[]

export const librariesByGroup = {
app: [startProject, routerProject],
state: [queryProject, storeProject, pacerProject],
state: [
startProject,
routerProject,
queryProject,
dbProject,
storeProject,
pacerProject,
],
headlessUI: [tableProject, formProject, virtualProject, rangerProject],
other: [configProject],
}
Expand Down
101 changes: 0 additions & 101 deletions src/libraries/optimistic.tsx

This file was deleted.

Loading
Loading