repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/mock-vscode/code-icon.tsx | www/components/mock-vscode/code-icon.tsx | import Image from "next/image";
import React from "react";
export type NamedCodeIcons =
| "empty"
| "grida"
| "dummy"
| "react"
| "flutter"
| "html"
| "css"
| "figma"
| "webcomponents"
| "vscode"
| "figma";
export function CodeIcon({
icon = "dummy",
size = 14,
color = "default",
}: {
ico... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/mock-vscode/container.tsx | www/components/mock-vscode/container.tsx | import styled from "@emotion/styled";
import React from "react";
export function Container() {
return (
<RootWrapperContainer>
<ActivityBar></ActivityBar>
<Sidebar></Sidebar>
<Panel>
<TabsHeader>
<Tabs></Tabs>
</TabsHeader>
<Editor></Editor>
</Panel>
... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/mock-vscode/status-bar.tsx | www/components/mock-vscode/status-bar.tsx | import styled from "@emotion/styled";
import React from "react";
function StatusBar() {
return (
<RootWrapperStatusBar>
<Content>
<Rectangle105></Rectangle105>
<Left>
<Item>
<ItemBase>
<Icon></Icon>
<Text>main</Text>
</ItemBase>... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/mock-vscode/window-handle.tsx | www/components/mock-vscode/window-handle.tsx | import styled from "@emotion/styled";
import React from "react";
function WindowHandle() {
return (
<RootWrapperWindowHandle>
<Controls>
<Close></Close>
<Minimize></Minimize>
<Fullscreen></Fullscreen>
</Controls>
</RootWrapperWindowHandle>
);
}
const RootWrapperWindowHa... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/mock-vscode/panel.tsx | www/components/mock-vscode/panel.tsx | import styled from "@emotion/styled";
import React from "react";
import { snippets } from "sections/landingpage/design-once-run-anywhere/k";
import { SrcContent } from "./src-content";
import TabsHeader from "./tabs-header";
type Demos = "react" | "flutter" | "vanilla";
export default function DemoScaffoldPanel() {... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/mock-vscode/src-content.tsx | www/components/mock-vscode/src-content.tsx | import styled from "@emotion/styled";
import React from "react";
import { useInView } from "react-intersection-observer";
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
import { vscDarkPlus as colorscheme } from "react-syntax-highlighter/dist/cjs/styles/prism";
import Typist from "react-typist";... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/mock-vscode/index.ts | www/components/mock-vscode/index.ts | export { default as ActivityBar } from "./activity-bar";
export { default as WindowHandle } from "./window-handle";
export { default as StatusBar } from "./status-bar";
export { default as TabsHeader } from "./tabs-header";
export { default as Panel } from "./panel";
| typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/mock-vscode/tabs-header.tsx | www/components/mock-vscode/tabs-header.tsx | import styled from "@emotion/styled";
import React from "react";
import VSCodeTab from "./vscode-tab";
export default function TabsHeader({
activeTab,
onTabClick,
}: {
activeTab: string;
onTabClick: (tab: string) => void;
}) {
return (
<RootWrapperTabsHeader>
<Tabs>
<VSCodeTab
ic... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/mock-vscode/vscode-tab.tsx | www/components/mock-vscode/vscode-tab.tsx | import styled from "@emotion/styled";
import React from "react";
import { CodeIcon, NamedCodeIcons } from "./code-icon";
const DEFAULT_LABEL_TEXT = "File name.txt";
export default function VSCodeTab({
selected = false,
label = DEFAULT_LABEL_TEXT,
icon = "dummy",
onClick,
}: {
selected?: boolean;
icon?: N... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/footer/index.tsx | www/components/footer/index.tsx | import styled from "@emotion/styled";
import Link from "next/link";
import React from "react";
import { Box, Flex, Text } from "theme-ui";
import Icon from "components/icon";
import { IconList } from "components/icon/icons";
import SitemapList from "components/sitemap-list";
import { URLS } from "utils/landingpage/con... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/footer/sitemap.ts | www/components/footer/sitemap.ts | export type Sitemap = {
label: string;
href?: string;
badge?: "alpha" | "beta";
child?: Sitemap[];
};
export const Products: Sitemap = {
label: "products.label",
child: [
{
label: "products.code",
href: "https://code.grida.co",
},
{
label: "products.assistant",
href: "/a... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/faq/question-item.tsx | www/components/faq/question-item.tsx | import React, { useState } from "react";
import styled from "@emotion/styled";
import { Flex, Text } from "theme-ui";
import Icon from "components/icon";
import { FaqQnaItem } from "./interface";
export default function QuestionItem(props: { question: FaqQnaItem }) {
const { question } = props;
const [isOpen, setI... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/faq/interface.ts | www/components/faq/interface.ts | export type FaqDisplayData = FaqQnaItem[];
export interface FaqQnaItem {
query: string;
answer: string;
}
| typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/faq/index.tsx | www/components/faq/index.tsx | import React from "react";
import styled from "@emotion/styled";
import { Flex, Heading } from "theme-ui";
import SectionLayout from "layouts/section";
import Question from "./question-item";
import BlankArea from "components/blank-area";
import { FaqDisplayData } from "./interface";
export default function FAQs(props... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/action-item/index.tsx | www/components/action-item/index.tsx | import styled from "@emotion/styled";
import { motion } from "framer-motion";
import Link from "next/link";
import React from "react";
import Icon from "components/icon";
import { media } from "utils/styled/media";
const Colors = {
light: {
default: "#7d7d7d",
hover: "#1c1c1c",
},
dark: {
default: "... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/cookie-accept/index.tsx | www/components/cookie-accept/index.tsx | import styled from "@emotion/styled";
import React from "react";
import Link from "next/link";
import { Flex, Heading } from "theme-ui";
import SectionLayout from "layouts/section";
import { useWindowWidth } from "utils/hooks/use-window-width";
import { LandingpageUrls } from "utils/landingpage/constants";
import { bre... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/header/header-cta.tsx | www/components/header/header-cta.tsx | import React from "react";
import styled from "@emotion/styled";
import { media } from "utils/styled/media";
import { useAuthState } from "utils/hooks/use-auth-state";
import { URLS } from "utils/landingpage/constants";
import { center, pointer } from "utils/styled/styles";
import { Box, Button } from "theme-ui";
impor... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/header/index.tsx | www/components/header/index.tsx | import styled from "@emotion/styled";
import { event_click_header_menu } from "analytics";
import Link from "next/link";
import { useRouter } from "next/router";
import React, { useState, useEffect, useCallback, useRef } from "react";
import { Flex, Text } from "theme-ui";
import Icon from "components/icon";
import { m... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/header/headermap.ts | www/components/header/headermap.ts | import { URLS } from "utils/landingpage/constants";
export type GroupEntity = {
type: "group";
label: string;
children: Entity[];
href?: string;
layout?: "module-group";
};
type Icon = string;
export type LinkEntity = {
type: "link";
label: string;
href: string;
locale?: string;
tagline?: string;
... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/header/arrow.tsx | www/components/header/arrow.tsx | export function Arrow() {
return (
<svg
width="13"
height="8"
viewBox="0 0 13 8"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M4.83799 0.62395C5.50487 -0.207983 7.49513 -0.207983 8.16201 0.62395L12.8184 6.43278C13.4012 7.15987 12.5103 8 11.1564 8H1.8436... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/header/hover-menu/index.tsx | www/components/header/hover-menu/index.tsx | import styled from "@emotion/styled";
import { useTranslation } from "next-i18next";
import React, { useCallback } from "react";
import { Flex } from "theme-ui";
import { GroupEntity } from "../headermap";
import { LineItem } from "../line-item";
import { ModuleGroup, ModuleItem } from "../modules";
import { ProductIt... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/header/product/index.tsx | www/components/header/product/index.tsx | import styled from "@emotion/styled";
import React from "react";
import { Flex, Text } from "theme-ui";
import Icon, { IconKey } from "components/icon";
import Link from "next/link";
export function ProductItem({
label,
icon: iconName,
tagline,
href,
}: {
label: string;
icon?: IconKey;
tagline: string;
... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/header/modules/index.tsx | www/components/header/modules/index.tsx | import styled from "@emotion/styled";
import { LinkWithDocsFallback } from "components/fixme";
import Image from "next/image";
import Link from "next/link";
import React from "react";
import { GroupEntity } from "../headermap";
export function ModuleGroup({ label, href, children }: GroupEntity) {
return (
<Grou... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/header/line-item/index.tsx | www/components/header/line-item/index.tsx | import styled from "@emotion/styled";
import { LinkWithDocsFallback } from "components/fixme";
import React from "react";
export function LineItem({ label, href }: { label: string; href: string }) {
return (
<LinkWithDocsFallback href={href}>
<Label>{label}</Label>
</LinkWithDocsFallback>
);
}
const... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/animated-blur-gradient-bg/index.tsx | www/components/animated-blur-gradient-bg/index.tsx | import styled from "@emotion/styled";
import React, { useEffect, useRef } from "react";
// let canvas: HTMLCanvasElement;
let c: CanvasRenderingContext2D;
const mouse: { x: number; y: number } = { x: null, y: null };
const Color = {
vector: ["#0029FF", "#00FFFF", "#FF4ED8"],
getRandom: () => {
return Color.ve... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/docs-navigation-section/index.tsx | www/components/docs-navigation-section/index.tsx | import styled from "@emotion/styled";
import Link from "next/link";
import { useRouter } from "next/router";
import React from "react";
import { Flex, Heading } from "theme-ui";
import { DocsRoute } from "utils/docs/model";
function DocsNavigationSection(props: { route: DocsRoute; level?: number }) {
const routeCon... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/docs-mdx/post-title.tsx | www/components/docs-mdx/post-title.tsx | export default function PostTitle({ children }) {
return <h1>{children}</h1>;
}
| typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/docs-mdx/post-body.tsx | www/components/docs-mdx/post-body.tsx | import styled from "@emotion/styled";
import renderToString from "next-mdx-remote/render-to-string";
import Link from "next/link";
import React, { useState } from "react";
import { Flex, Text } from "theme-ui";
import CodeBlock from "components/code";
import Icon from "components/icon";
import useAsyncEffect from "uti... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/docs-mdx/layout.tsx | www/components/docs-mdx/layout.tsx | import styled from "@emotion/styled";
import { Flex } from "theme-ui";
import { media } from "utils/styled/media";
import Meta from "./meta";
export default function Layout({ children }) {
return (
<>
<Meta />
<Flex
style={{
alignItems: "center",
justifyContent: "center"... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/docs-mdx/was-this-post-helpful.tsx | www/components/docs-mdx/was-this-post-helpful.tsx | import React from "react";
import { Flex, Text } from "theme-ui";
import Icon from "components/icon";
export function WasThisPostHelpful() {
return (
<Flex
style={{
alignItems: "center",
justifyContent: "center",
flexDirection: "column",
}}
mt="60px"
>
<Text
... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/docs-mdx/date-formatter.tsx | www/components/docs-mdx/date-formatter.tsx | import { parse, format } from "date-fns";
export default function DateFormatter({ dateString }) {
const date = parse(dateString);
return <time dateTime={dateString}>{format(date, "LLLL d, yyyy")}</time>;
}
| typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/docs-mdx/meta.tsx | www/components/docs-mdx/meta.tsx | import Head from "next/head";
export default function Meta() {
return (
<Head>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/favicon/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon/favicon-32x3... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/page-head/index.tsx | www/components/page-head/index.tsx | import React from "react";
import Head from "next/head";
import { useTranslation } from "next-i18next";
import { PageSeoMeta, keywords as makekeywords } from "utils/seo";
import { i18n as config } from "../../next-i18next.config";
type PageHeadProps =
| {
type: "id";
page: string;
}
| ({
type... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/components/docs-search-bar/index.tsx | www/components/docs-search-bar/index.tsx | import React from "react";
import styled from "@emotion/styled";
import Icon from "components/icon";
const DocsSearchBar = () => {
return (
<SearcBarWrapper>
<Icon
name="search"
mx="10px"
height="100%"
isClickable
isVerticalMiddle
/>
<input placeholder="S... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/instant-demo/figma-anonymous-auth.ts | www/utils/instant-demo/figma-anonymous-auth.ts | import Axios from "axios";
const _HOST =
process.env.NODE_ENV == "production"
? "https://accounts.services.grida.co"
: "http://localhost:9002";
const axios = Axios.create({
baseURL: _HOST + "/anonymous-accounts/figma-anonymous",
});
export const _FIGMA_ACCESS_TOKEN_STORAGE_KEY = "figma-access-token";
ex... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/methods/loadScript.ts | www/utils/methods/loadScript.ts | export async function loadScript(src: string) {
return new Promise<void>((resolve, reject) => {
const scriptTag = document.createElement("script");
scriptTag.src = src;
scriptTag.async = true;
scriptTag.defer = true;
scriptTag.onload = () => {
resolve();
};
scriptTag.onerror = () => ... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/methods/parseCookie.ts | www/utils/methods/parseCookie.ts | import cookie from "cookie"
import { NextPageContext } from "next"
export function parseCookies({ req } : NextPageContext) {
return cookie.parse(req ? req.headers.cookie || "" : document.cookie)
} | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/methods/getGithubReleaseNote.ts | www/utils/methods/getGithubReleaseNote.ts | import axios from "axios";
const GITHUB_API_URL = 'https://api.github.com';
interface GithubAuthor {
avatar_url: string
events_url: string
followers_url: string
following_url: string
gists_url: string
gravatar_id: string
html_url: string
id: number
login: string
node_id: string
organizations_url... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/cookie/cookie-key.ts | www/utils/cookie/cookie-key.ts | /**
* @deprecated
* DO NOT CHANGE KEY - this key is set by accounts.bridged.xyz
* @todo - change key value. the key value is not managed and Ambiguous.
* History: since July 2021, we dont use exposable cookie for security. we use secure http only cookie for browser authentication, this key will not be referenced or... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/hooks/use-async-effect.ts | www/utils/hooks/use-async-effect.ts | import { useEffect, DependencyList } from 'react';
function useAsyncEffect(
asyncEffect: () => Promise<void | (() => void)>,
deps: DependencyList = [],
) {
useEffect(() => {
const boxedCleanupOrNoop = asyncEffect();
return () => {
boxedCleanupOrNoop.then(cleanupOrNoop => {
typeof cleanupOr... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/hooks/use-auth-state.ts | www/utils/hooks/use-auth-state.ts | import {
LoginState,
useAuthState as _useAuthState,
} from "@base-sdk-fp/auth-components-react";
import { useEffect, useState } from "react";
/**
* useAuthState wrapper. set mock-authentication to true on localstorage to mock auth state.
* @returns
*/
export function useAuthState() {
const [authState, setAuth... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/hooks/use-window-width.ts | www/utils/hooks/use-window-width.ts | import { useEffect, useState } from "react";
export const useWindowWidth = () => {
if (process.browser) {
const [width, setWidth] = useState(window.innerWidth);
const handleResize = () => setWidth(window.innerWidth);
useEffect(() => {
window.addEventListener("resize", handleResize);
return ()... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/hooks/use-on-screen.ts | www/utils/hooks/use-on-screen.ts | import { useState, useEffect, useRef } from "react";
/**
* https://stackoverflow.com/questions/45514676/react-check-if-element-is-visible-in-dom
* https://stackoverflow.com/questions/59424347/gatsby-intersectionobserver-is-not-defined
* @param ref
* @returns
*/
export default function useOnScreen(
ref,
option... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/i18n/index.tsx | www/utils/i18n/index.tsx | import { serverSideTranslations } from "next-i18next/serverSideTranslations";
export async function getPageTranslations(locale: string, page?: string) {
return await serverSideTranslations(
locale,
[
//
"common",
"app",
"header",
"footer",
page ? `page-${page}` : undefined... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/seo/interface.ts | www/utils/seo/interface.ts | export interface PageSeoMeta {
route: string;
title: string;
description: string;
og?: OpenGraphMeta;
keywords: string[] | string;
author?: string;
}
export interface OpenGraphMeta {
title: string;
type?: string | "website";
url?: string;
image: string;
}
| typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/seo/pages.ts | www/utils/seo/pages.ts | import { PageSeoMeta } from "./interface";
const PRICING_META: PageSeoMeta = {
route: "/pricing",
title: "Pricing | Grida",
description: "Grida is free to use",
keywords: "Grida pricing",
};
const GLOBALIZATION_META: PageSeoMeta = {
route: "/globalizatin",
title: "Globalization | Grida",
description: "G... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/seo/make-keywords.ts | www/utils/seo/make-keywords.ts | export function keywords(keywords: string | string[]): string {
if (Array.isArray(keywords)) {
return keywords.join(", ");
}
return keywords;
}
| typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/seo/index.ts | www/utils/seo/index.ts | import { OpenGraphMeta, PageSeoMeta } from "./interface";
const OG_IMAGE_STATIC =
"https://bridged-service-static.s3-us-west-1.amazonaws.com/opengraph/og-image.png";
const OG_IMAGE_GIF =
"https://bridged-service-static.s3-us-west-1.amazonaws.com/opengraph/og-image-gif.gif";
export const SEO_OG_DEFAULTS: OpenGraph... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/landingpage/constants.ts | www/utils/landingpage/constants.ts | import { DownloadUrls } from "@grida/link-downloads";
import { promotion_video_primary_demo_url } from "@grida/link-promotions";
import { SociallUrls } from "@grida/link-social";
export function signup_callback_redirect_uri() {
const LOCAL = "http://localhost:3000/";
const PRODUCT = "https://www.figma.com/communit... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/docs/model.ts | www/utils/docs/model.ts | export interface DocsPost {
title: string;
content?;
date?;
slug?;
route: string[];
}
export interface DocsConfig {
files: string[];
routes: string[];
routesWithoutIndex: string[];
}
// from manifest.json
export interface DocsRoute {
title: string;
path: string;
open?: boolean;
routes?: DocsRo... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/docs/md-to-html.ts | www/utils/docs/md-to-html.ts | import remark from "remark";
import html from "remark-html";
export default async function markdownToHtml(markdown) {
const result = await remark()
.use(html)
.process(markdown);
return result.toString();
}
| typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/docs/api.ts | www/utils/docs/api.ts | import matter from "gray-matter";
import { join, resolve } from "path";
import { DocsPost, DocsConfig } from "./model";
import fs from "fs";
const { readdir } = require("fs").promises;
const DOCS_ROOT_DIR = join(process.cwd(), "../docs");
const MDX_EXT = ".mdx";
const MD_EXT = ".md";
async function getFilesIn(dir: ... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/firebase/index.ts | www/utils/firebase/index.ts | import firebase from "firebase/app";
import "firebase/analytics";
const config = {
apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,
authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,
databaseURL: process.env.NEXT_PUBLIC_FIREBASE_DATABASE_URL,
projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,
st... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/styled/styles.ts | www/utils/styled/styles.ts | import { css } from "@emotion/react";
import styled from "@emotion/styled";
import { Box } from "theme-ui";
import { media } from "./media";
export const resetUl = css`
list-style: none;
padding: 0;
margin: 0;
`;
export const center = {
display: "flex",
alignItems: "center",
justifyContent: "center",
};
... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/styled/index.ts | www/utils/styled/index.ts | export { resetUl } from "./styles";
| typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/styled/media.ts | www/utils/styled/media.ts | export const media = (min: string | null, max?: string | null) =>
[
"@media only screen",
min && `(min-width: ${min})`,
max && `(max-width: calc(${max} - 1px))`,
]
.filter(x => x)
.join(" and ");
| typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/utils/context/PopupContext.tsx | www/utils/context/PopupContext.tsx | import React, {
createContext,
useContext,
useState,
Dispatch,
SetStateAction,
} from "react";
import { ResponsiveValue, TLengthStyledSystem } from "styled-system";
export interface PopupInfo {
id?: number;
width?: ResponsiveValue<TLengthStyledSystem>;
title: string;
message?: string;
element?: JSX... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/pages-legacy/docs/[...path].tsx | www/pages-legacy/docs/[...path].tsx | import styled from "@emotion/styled";
import DocsNavigation from "layouts/docs-navigation";
import ErrorPage from "next/error";
import Head from "next/head";
import { useRouter } from "next/router";
import React from "react";
import Layout from "components/docs-mdx/layout";
import PostBody from "components/docs-mdx/po... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/layouts/index.ts | www/layouts/index.ts | export interface PageLayoutConfig {
/**
* @default 60
*/
mt?: number;
header: {
theme?: "light" | "dark";
};
}
| typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/layouts/section/index.tsx | www/layouts/section/index.tsx | import React, { useRef, useEffect, useState } from "react";
import { Flex } from "theme-ui";
import styled, { CSSObject } from "@emotion/styled";
const variants = [
"full-width",
"content-overflow-1",
"content-default",
"content-inset-1",
];
type SectionLayoutProps = React.PropsWithChildren<{
variant?:
... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/layouts/landingpage/application-preview/index.tsx | www/layouts/landingpage/application-preview/index.tsx | import styled from "@emotion/styled";
import Image from "next/image";
import React from "react";
import { Flex } from "theme-ui";
import { media } from "utils/styled/media";
const ApplicationPreview = () => {
return (
<Postioner>
<Image
loading="eager"
className="app"
src="/assets/... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/layouts/landingpage/code-preview/snippets.ts | www/layouts/landingpage/code-preview/snippets.ts | export const FLUTTER_COMPONENT_FULL_SOURCE = `
Container(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(
child: Row(
children: [
Text(... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/layouts/landingpage/code-preview/mobile.tsx | www/layouts/landingpage/code-preview/mobile.tsx | import styled from "@emotion/styled";
import Image from "next/image";
import React, { useState } from "react";
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
import { vscDarkPlus as colorscheme } from "react-syntax-highlighter/dist/cjs/styles/prism";
import { Box } from "theme-ui";
import {
D... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/layouts/landingpage/code-preview/index.tsx | www/layouts/landingpage/code-preview/index.tsx | import styled from "@emotion/styled";
import SectionLayout from "layouts/section";
import Image from "next/image";
import React, { useState } from "react";
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
import { vscDarkPlus as colorscheme } from "react-syntax-highlighter/dist/cjs/styles/prism";
... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/layouts/landingpage/code-preview/data.ts | www/layouts/landingpage/code-preview/data.ts | import {
FLUTTER_COMPONENT_FULL_SOURCE,
REACT_TSX_STYLED_COMPONENTS_SOURCE,
HTML_COMPONENT_FULL_SOURCE,
} from "./snippets";
export interface DevFrameworkDemoConfig {
name: string;
lang: string;
source: string;
}
export const DEFAULT_DEMO_ITEM = {
name: "react",
lang: "tsx",
source: REACT_TSX_STYLED... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/layouts/landingpage/design-platforms/mobile.tsx | www/layouts/landingpage/design-platforms/mobile.tsx | import styled from "@emotion/styled";
import Image from "next/image";
import React, { useState } from "react";
import { Flex } from "theme-ui";
import LiveDesignDemoFrame from "components/landingpage/motion/live-design-demo";
import { media } from "utils/styled/media";
const renderPlatforms = ["figma", "sketch", "ado... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/layouts/landingpage/design-platforms/index.tsx | www/layouts/landingpage/design-platforms/index.tsx | import styled from "@emotion/styled";
import SectionLayout from "layouts/section";
import Image from "next/image";
import React, { useState } from "react";
import { Box, Flex } from "theme-ui";
import LiveDesignDemoFrame from "components/landingpage/motion/live-design-demo";
import { media } from "utils/styled/media";... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/layouts/docs-navigation/index.tsx | www/layouts/docs-navigation/index.tsx | import styled from "@emotion/styled";
import { useRouter } from "next/router";
import React, { useEffect, useState } from "react";
import { Box, Flex, Text } from "theme-ui";
import DocsNavigationSection from "components/docs-navigation-section";
import Icon from "components/icon";
import { media } from "utils/styled/... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/layouts/grid/interface.ts | www/layouts/grid/interface.ts | type StartnEndInPage = "page.start" | "page.end";
type StartnEndInContent = "content.start" | "content.end";
type Slices = {
/** TODO Support Other Divisions
// 3 Divisions
"1/3" : string,
"2/3" : string,
"3/3" : string,
// 5 Divisions
"1/5" : string,
"2/5" : string,
"3/5" : string,
"4/5" : string,... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/layouts/grid/index.tsx | www/layouts/grid/index.tsx | import React, { useEffect, useState } from "react";
import styled from "@emotion/styled";
import { variant } from "./interface";
/**
*
* @param props
* @description
* Start, end must have the same division.
* @example
* <Grid start="1/8" end="3/8" /> OK
* @example
* <Grid start="1/8" end="1/3" /> NO
* @return... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/k/links.ts | www/k/links.ts | const book_a_demo = "https://cal.com/universe-from-grida/30min";
const install_vscode_extension =
"https://marketplace.visualstudio.com/items?itemName=grida.grida-vscode";
const join_the_vscode_extension_waitlist =
"https://forms.gle/eHDanMwy8Dy83WqW6";
export const links = {
book_a_demo,
install_vscode_extens... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/theme/dark.ts | www/theme/dark.ts | // eslint-disable-next-line
import type { Theme } from "./theme";
import * as defaults from "./shared";
const defaultButtonProps = {
bg: "primary",
borderRadius: "100px",
p: "12px 28px",
fontSize: "16px",
fontWeight: 500,
cursor: "pointer",
display: "flex",
alignItems: "center",
justifyContent: "cent... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/theme/type.ts | www/theme/type.ts | export type Color = React.CSSProperties["color"];
export type BoxShadow = React.CSSProperties["boxShadow"];
| typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/theme/light.ts | www/theme/light.ts | // eslint-disable-next-line
import type { Theme } from "./theme";
import * as defaults from "./shared";
const defaultButtonProps = {
bg: "primary",
borderRadius: "100px",
p: "12px 28px",
fontSize: "16px",
fontWeight: 500,
cursor: "pointer",
display: "flex",
alignItems: "center",
justifyContent: "cent... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/theme/header.ts | www/theme/header.ts | import { Color } from "./type";
export type HeaderTheme = {
bg: Color;
color: Color;
menu: {
resting: Color;
hover: Color;
};
accent: Color;
// expansion: {
// bg: Color;
// shadow: BoxShadow;
// overlay: {
// color: Color;
// }
// color: Color;
// label: {color: Color... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/theme/index.tsx | www/theme/index.tsx | import { ThemeProvider as TP } from "@emotion/react";
import { ThemeProvider as TUTP } from "theme-ui";
import React, { useEffect } from "react";
import { useCookies } from "react-cookie";
import { useSetRecoilState, useRecoilValue } from "recoil";
import { selectSystemTheme, selectTheme, themeState } from "./state";
i... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/theme/state.ts | www/theme/state.ts | import { atom, selector } from "recoil";
export const themeState = atom<{
mode: "system" | "light" | "dark";
system: "pending" | "light" | "dark";
}>({
key: "theme-state",
default: {
mode: "system", // 'default' | 'light' | 'dark'
system: "pending", // 'pending' | 'light' | 'dark'
},
});
export cons... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/theme/theme.ts | www/theme/theme.ts | import { Theme as System } from "styled-system";
import light from "./light"
import dark from "./dark"
import * as defaults from "./shared";
import { Color } from "./type";
import { HeaderTheme } from "./header";
export type FooterTheme = {
group: {
color: Color;
},
menu: {
color: Color;
},
bottom: ... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/theme/shared.ts | www/theme/shared.ts | export const breakpoints = [
// ~~ xs ~~
// sm
"768px",
// md
"1024px",
// lg
"1280px",
// xl
"1440px",
];
| typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
gridaco/legacy | https://github.com/gridaco/legacy/blob/8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582/www/analytics/index.ts | www/analytics/index.ts | import firebase from "firebase/app";
import { analytics } from "utils/firebase";
// ------------------------------------
let a: firebase.analytics.Analytics | undefined;
try {
a = analytics();
} catch (e) {
console.warn(
"analytics not available - this can happen in dev mode (and you are a contributor)",
);... | typescript | Apache-2.0 | 8fc8b1fb2f3e4419eeaa49193ddb5c1fade82582 | 2026-01-05T05:01:14.213250Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/vitest.config.ts | vitest.config.ts | import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
projects: ["packages/*", "lab/*", "legacy/*"],
},
});
| typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/vite.config.ts | apps/playground2/vite.config.ts | import { resolve } from "node:path";
import { defineConfig } from "vite";
import tailwindcss from "@tailwindcss/vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
export default defineConfig({
base: "/svelte-jsonschema-form/playground3/",
plugins: [tailwindcss(), svelte()],
resolve: {
alias: { "@"... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/copy-to-clipboard.ts | apps/playground2/src/copy-to-clipboard.ts | function fallbackCopyTextToClipboard(text: string) {
var textArea = document.createElement('textarea')
textArea.value = text
// Avoid scrolling to bottom
textArea.style.top = '0'
textArea.style.left = '0'
textArea.style.position = 'fixed'
document.body.appendChild(textArea)
textArea.focus()
textArea... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/shadcn-context.ts | apps/playground2/src/shadcn-context.ts | import { setThemeContext } from "@sjsf/shadcn4-theme";
import { Button } from "$lib/components/ui/button/index.js";
import { Checkbox } from "$lib/components/ui/checkbox/index.js";
import { Input } from "$lib/components/ui/input/index.js";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
} from "$lib... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/theme.svelte.ts | apps/playground2/src/theme.svelte.ts | import { MediaQuery } from "svelte/reactivity";
import { Theme, type DarkOrLight } from "./shared/index.js";
export interface ThemeManager {
theme: Theme;
readonly darkOrLight: DarkOrLight;
readonly isDark: boolean;
sync: () => void;
}
const THEME_STORAGE_KEY = "theme";
function createThemeManager(sync: (ma... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/main.ts | apps/playground2/src/main.ts | import { mount } from "svelte";
import App from "./app.svelte";
import "./app.css";
mount(App, { target: document.getElementById("app")! });
| typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/vite-env.d.ts | apps/playground2/src/vite-env.d.ts | /// <reference types="svelte" />
/// <reference types="vite/client" />
| typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/scheduler.d.ts | apps/playground2/src/scheduler.d.ts | /**
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/samples/examples.ts | apps/playground2/src/samples/examples.ts | import type { SampleCategory, Sample } from "@/core/index.js";
export const category: SampleCategory = "Schema Basics";
export default {
schema: {
title: 'Examples',
description: 'A text field with example values.',
type: 'object',
properties: {
browser: {
type: 'string',
titl... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/samples/any-of.ts | apps/playground2/src/samples/any-of.ts | import type { SampleCategory, Sample } from "@/core/index.js";
export const category: SampleCategory = "Schema Logic";
export default {
schema: {
type: "object",
properties: {
age: {
type: "integer",
title: "Age",
},
items: {
type: "array",
items: {
... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/samples/errors.ts | apps/playground2/src/samples/errors.ts | import type { SampleCategory, Sample } from "@/core/index.js";
export const category: SampleCategory = "Other";
export default {
resolver: "compat",
schema: {
title: "Contextualized errors",
type: "object",
properties: {
firstName: {
type: "string",
title: "First name",
m... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/samples/files.ts | apps/playground2/src/samples/files.ts | import type { SampleCategory, Sample } from "@/core/index.js";
export const category: SampleCategory = "Schema Basics";
export default {
resolver: "compat",
schema: {
title: "Files",
type: "object",
properties: {
file: {
type: "string",
format: "data-url",
title: "Single ... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/samples/nullable.ts | apps/playground2/src/samples/nullable.ts | import type { SampleCategory, Sample } from "@/core/index.js";
export const category: SampleCategory = "Schema Basics";
export default {
schema: {
title: "A registration form (nullable)",
description: "A simple form example using nullable types",
type: "object",
required: ["firstName", "lastName"],... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/samples/defaults.ts | apps/playground2/src/samples/defaults.ts | import type { SampleCategory, Sample } from "@/core/index.js";
export const category: SampleCategory = "Schema Basics";
export default {
schema: {
title: 'Schema default properties',
type: 'object',
properties: {
valuesInFormData: {
title: 'Values in form data',
$ref: '#/definition... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/samples/all-of.ts | apps/playground2/src/samples/all-of.ts | import type { SampleCategory, Sample } from "@/core/index.js";
export const category: SampleCategory = "Schema Logic";
export default {
schema: {
type: "object",
allOf: [
{
properties: {
lorem: {
type: ["string", "boolean"],
default: true,
},
... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/samples/references.ts | apps/playground2/src/samples/references.ts | import type { SampleCategory, Sample } from "@/core/index.js";
export const category: SampleCategory = "Schema Basics";
export default {
schema: {
definitions: {
address: {
type: "object",
properties: {
street_address: { type: "string" },
city: { type: "string" },
... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/samples/large.ts | apps/playground2/src/samples/large.ts | import type { SampleCategory, Sample } from "@/core/index.js";
export const category: SampleCategory = "Other";
function largeEnum(n: number) {
const list = [];
for (let i = 0; i < n; i++) {
list.push("option #" + i);
}
return list;
}
export default {
resolver: "compat",
schema: {
definitions: {
... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/samples/widgets.ts | apps/playground2/src/samples/widgets.ts | import type { SampleCategory, Sample } from "@/core/index.js";
export const category: SampleCategory = "UI customization";
export default {
resolver: "compat",
schema: {
title: "Widgets",
type: "object",
properties: {
stringFormats: {
type: "object",
title: "String formats",
... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/samples/schema-dependencies.ts | apps/playground2/src/samples/schema-dependencies.ts | import type { SampleCategory, Sample } from "@/core/index.js";
export const category: SampleCategory = "Schema Logic";
export default {
resolver: "compat",
schema: {
title: "Schema dependencies",
description: "These samples are best viewed without live validation.",
type: "object",
properties: {
... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/apps/playground2/src/samples/ui-options.ts | apps/playground2/src/samples/ui-options.ts | import type { SampleCategory, Sample } from "@/core/index.js";
export const category: SampleCategory = "UI customization";
export default {
schema: {
title: "A registration form",
description: "A simple form example. Demonstrating ui options",
type: "object",
required: ["firstName", "lastName"],
... | typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.