Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: tanstack lit table links #230

Merged
merged 3 commits into from
May 17, 2024
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
4 changes: 3 additions & 1 deletion app/components/DocsLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
useMatches,
useNavigate,
useParams,
useRouterState,

Check warning on line 15 in app/components/DocsLayout.tsx

View workflow job for this annotation

GitHub Actions / PR

'useRouterState' is defined but never used
} from '@tanstack/react-router'
import type { AnyOrama, SearchParamsFullText, AnyDocument } from '@orama/orama'
import { SearchBox, SearchButton } from '@orama/searchbox'

Check warning on line 18 in app/components/DocsLayout.tsx

View workflow job for this annotation

GitHub Actions / PR

'SearchButton' is defined but never used
import { Carbon } from '~/components/Carbon'
import { Select } from '~/components/Select'
import { useLocalStorage } from '~/utils/useLocalStorage'
Expand All @@ -25,7 +25,7 @@
import type { ConfigSchema, MenuItem } from '~/utils/config'
import { create } from 'zustand'
import { searchBoxParams, searchButtonParams } from '~/components/Orama'
import { Framework, getFrameworkOptions, getLibrary } from '~/libraries'

Check warning on line 28 in app/components/DocsLayout.tsx

View workflow job for this annotation

GitHub Actions / PR

'getLibrary' is defined but never used
import { DocsCalloutQueryGG } from '~/components/DocsCalloutQueryGG'
import { DocsCalloutBytes } from '~/components/DocsCalloutBytes'
import { ClientOnlySearchButton } from './ClientOnlySearchButton'
Expand Down Expand Up @@ -407,8 +407,10 @@
? 'text-fuchsia-500'
: child.badge === 'qwik'
? 'text-indigo-500'
: child.badge === 'lit'
? 'text-emerald-500'
: child.badge === 'vanilla'
? 'text-gray-300'
? 'text-yellow-500'
: 'text-gray-500'
}`}
>
Expand Down
13 changes: 11 additions & 2 deletions app/libraries/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const tableProject: Library = {
cardStyles: `shadow-xl shadow-blue-700/20 dark:shadow-lg dark:shadow-blue-500/30 text-blue-500 border-2 border-transparent hover:border-current`,
to: '/table',
tagline: `Headless UI for building powerful tables & datagrids`,
description: `Supercharge your tables or build a datagrid from scratch for TS/JS, React, Vue, Solid, Svelte, Qwik, and Angular while retaining 100% control over markup and styles.`,
description: `Supercharge your tables or build a datagrid from scratch for TS/JS, React, Vue, Solid, Svelte, Qwik, Angular, and Lit while retaining 100% control over markup and styles.`,
ogImage: 'https://github.com/tanstack/table/raw/main/media/repo-header.png',
bgStyle: 'bg-blue-500',
textStyle: 'text-blue-500',
Expand All @@ -18,7 +18,16 @@ export const tableProject: Library = {
colorFrom: 'from-teal-500',
colorTo: 'to-blue-600',
textColor: 'text-blue-600',
frameworks: ['angular', 'qwik', 'react', 'solid', 'svelte', 'vue', 'vanilla'],
frameworks: [
'angular',
'lit',
'qwik',
'react',
'solid',
'svelte',
'vue',
'vanilla',
],
scarfId: 'dc8b39e1-3fe9-4f3a-8e56-d4e2cf420a9e',
defaultDocs: 'framework/react/overview',
handleRedirects: (href) => {
Expand Down
1 change: 1 addition & 0 deletions app/routes/_libraries.table.$version.index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ export default function TableVersionIndex() {
{(
[
{ label: 'Angular', value: 'angular' },
{ label: 'Lit', value: 'lit' },
{ label: 'Qwik', value: 'qwik' },
{ label: 'React', value: 'react' },
{ label: 'Solid', value: 'solid' },
Expand Down
2 changes: 2 additions & 0 deletions app/utils/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ export const getInitialSandboxFileName = (framework: Framework) =>
? 'src/App.tsx'
: framework === 'angular'
? 'src/app/app.component.ts'
: framework === 'lit'
? 'src/main.ts'
: 'src/main.tsx'
Loading