Skip to content

Commit

Permalink
feat: table component with query method (#3200)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiserKarel authored Nov 21, 2024
2 parents 2517a1c + 2432dd7 commit e6e4a9f
Show file tree
Hide file tree
Showing 54 changed files with 3,191 additions and 859 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ on:
branches:
- main
paths:
- 'evm/**'
- 'docs/**'
- 'versions/**'
- 'networks/genesis/**'
pull_request:
paths:
- 'evm/**'
- 'docs/**'
- 'versions/**'
- 'networks/genesis/**'
Expand Down
1 change: 1 addition & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@
"all": true,
"noSecrets": "off",
"noProcessEnv": "off",
"noImgElement": "off",
"useStrictMode": "off",
"useExplicitType": "off",
"noNestedTernary": "off",
Expand Down
26 changes: 11 additions & 15 deletions docs/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,24 +64,10 @@ export default defineConfig({
starlight({
title: "Union",
lastUpdated: true,
defaultLocale: "root",
favicon: "/favicon.svg",
description: SITE_DESCRIPTION,
tagline: "Connecting blockchains trustlessly",
defaultLocale: "root",
expressiveCode: {
frames: {
showCopyToClipboardButton: true,
removeCommentsWhenCopyingTerminalFrames: true
},
defaultProps: {
// @ts-expect-error
showLineNumbers: false
},

themes: ["min-light", "houston"],
useStarlightDarkModeSwitch: true
// plugins: [pluginCollapsibleSections(), pluginLineNumbers()]
},
locales: { root: { label: "English", lang: "en" } },
editLink: {
baseUrl: "https://github.com/unionlabs/union/edit/main/docs/"
Expand Down Expand Up @@ -148,13 +134,23 @@ export default defineConfig({
label: "Introduction",
link: "/"
},
// {
// label: "Chains",
// link: "/chains"
// },
{
label: "Protocol",
items: [
{
label: "Overview",
link: "/protocol/overview"
},
{
label: "Chains",
autogenerate: {
directory: "/protocol/chains"
}
},
{
label: "Channels",
autogenerate: {
Expand Down
17 changes: 17 additions & 0 deletions docs/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://next.shadcn-svelte.com/schema.json",
"style": "default",
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/styles/tailwind.css",
"baseColor": "slate"
},
"aliases": {
"components": "#/components/svelte/ui",
"utils": "#/lib/shadcn",
"ui": "#/components/svelte/ui",
"hooks": "#/lib/hooks"
},
"typescript": true,
"registry": "https://next.shadcn-svelte.com/registry"
}
11 changes: 5 additions & 6 deletions docs/docs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ _: {
perSystem =
{
lib,
pkgs,
mkCi,
jsPkgs,
ensureAtRepositoryRoot,
Expand All @@ -20,7 +19,7 @@ _: {
packages = {
docs = mkCi false (
jsPkgs.buildNpmPackage {
npmDepsHash = "sha256-v2rwxCCKmbtwxAynUryTigfg0V4cmARh6HgfKTwFQds=";
npmDepsHash = "sha256-Dc+WgimfobcG22UcCsC3xBc14BE9MHR/pBytqRfJkqY=";
src = ./.;
srcs = [
./.
Expand All @@ -46,7 +45,7 @@ _: {
apps = {
docs-dev-server = {
type = "app";
program = pkgs.writeShellApplication {
program = jsPkgs.writeShellApplication {
name = "docs-dev-server";
runtimeInputs = deps;
text = ''
Expand All @@ -61,7 +60,7 @@ _: {
};
docs-check = {
type = "app";
program = pkgs.writeShellApplication {
program = jsPkgs.writeShellApplication {
name = "docs-check";
runtimeInputs = deps;
text = ''
Expand All @@ -75,13 +74,13 @@ _: {
npm_config_yes=true npx astro check
npm_config_yes=true npx astro build
nix build .\#checks.${pkgs.system}.spellcheck --print-build-logs
nix build .\#checks.${jsPkgs.system}.spellcheck --print-build-logs
'';
};
};
deploy-docs-ipfs = {
type = "app";
program = pkgs.writeShellApplication {
program = jsPkgs.writeShellApplication {
name = "deploy-docs-ipfs";
runtimeInputs = deps;
text = ''
Expand Down
13 changes: 11 additions & 2 deletions docs/ec.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import ecTwoSlash from "expressive-code-twoslash"
import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers"
import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-sections"

Expand All @@ -20,6 +21,14 @@ export default {
showLineNumbers: false
},
useStarlightDarkModeSwitch: true,
themes: ["houston"],
plugins: [pluginCollapsibleSections(), pluginLineNumbers()]
themes: ["github-light", "houston"],
plugins: [
ecTwoSlash({
includeJsDoc: true,
explicitTrigger: true,
languages: ["ts", "tsx", "js", "jsx"]
}),
pluginLineNumbers(),
pluginCollapsibleSections()
]
}
Loading

0 comments on commit e6e4a9f

Please sign in to comment.