index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/twentyhq/twenty/docs/docs | petrpan-code/twentyhq/twenty/docs/docs/start/bug-and-requests.mdx | ---
title: Bugs & Requests
sidebar_position: 3
sidebar_custom_props:
icon: TbBug
---
## Reporting Bugs
To report a bug, please [create an issue on GitHub](https://github.com/twentyhq/twenty/issues/new).
You can also ask for help on [Discord](https://twenty.com/discord).
## Feature Requests
If you're not sure it's... | 1,500 |
0 | petrpan-code/twentyhq/twenty/docs/docs | petrpan-code/twentyhq/twenty/docs/docs/start/getting-started.mdx | ---
title: Getting Started
sidebar_position: 1
sidebar_custom_props:
icon: TbRocket
---
import ThemedImage from '@theme/ThemedImage';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
There are three ways for you to get started with Twenty:
### 1. Cloud
The easiest way to try the app is to sign ... | 1,501 |
0 | petrpan-code/twentyhq/twenty/docs/docs/start | petrpan-code/twentyhq/twenty/docs/docs/start/self-hosting/_category_.json | {
"position": 2,
"collapsible": true,
"collapsed": true
}
| 1,502 |
0 | petrpan-code/twentyhq/twenty/docs/docs/start | petrpan-code/twentyhq/twenty/docs/docs/start/self-hosting/enviroment-variables.mdx | ---
title: Enviroment Variables
sidebar_position: 1
sidebar_custom_props:
icon: TbVariable
---
import OptionTable from '@site/src/theme/OptionTable'
## Frontend
<OptionTable options={[
['REACT_APP_SERVER_BASE_URL', 'http://localhost:3000', 'Url of backend server'],
['REACT_APP_SERVER_AUTH_URL', 'http://loc... | 1,503 |
0 | petrpan-code/twentyhq/twenty/docs/docs/start | petrpan-code/twentyhq/twenty/docs/docs/start/self-hosting/self-hosting.mdx | ---
title: Self-Hosting
sidebar_position: 1
sidebar_custom_props:
icon: TbServer
---
Right now, Docker containers are the only hosting option available, with more simple options to self-host Twenty coming soon.
Feel free to open issues on [GitHub](https://github.com/twentyhq/twenty/issues/new) if you want support fo... | 1,504 |
0 | petrpan-code/twentyhq/twenty/docs/docs | petrpan-code/twentyhq/twenty/docs/docs/user-guide/_category_.json | {
"label": "User Guide",
"position": 3
}
| 1,505 |
0 | petrpan-code/twentyhq/twenty/docs/docs | petrpan-code/twentyhq/twenty/docs/docs/user-guide/user-guide.mdx | ---
title: User Guide
displayed_sidebar: userSidebar
sidebar_class_name: hidden
sidebar_position: 0
sidebar_custom_props:
icon: TbUsers
isSidebarRoot: true
---
# Welcome to Twenty's User Guide
The purpose of this user guide is to help you learn how you can use Twenty to build the CRM you want.
This quick-start ... | 1,506 |
0 | petrpan-code/twentyhq/twenty/docs/docs/user-guide | petrpan-code/twentyhq/twenty/docs/docs/user-guide/basics/_category_.json | {
"label": "Basics",
"position": 1
}
| 1,507 |
0 | petrpan-code/twentyhq/twenty/docs/docs/user-guide | petrpan-code/twentyhq/twenty/docs/docs/user-guide/basics/custom objects.mdx | ---
title: Creating Custom Objects
sidebar_position: 1
sidebar_custom_props:
icon: TbAugmentedReality
---
Objects are structures that allow you to store data (records, attributes, and values) specific to an organization. Twenty provides both standard and custom objects.
Standard objects are in-built objects with a ... | 1,508 |
0 | petrpan-code/twentyhq/twenty/docs/docs/user-guide | petrpan-code/twentyhq/twenty/docs/docs/user-guide/integrations/_category_.json | {
"label": "Integrations",
"position": 2
}
| 1,509 |
0 | petrpan-code/twentyhq/twenty/docs/docs/user-guide | petrpan-code/twentyhq/twenty/docs/docs/user-guide/integrations/connect-zapier.mdx | ---
title: Connect Twenty and Zapier
sidebar_position: 3
sidebar_custom_props:
icon: TbBrandZapier
---
:::caution
Twenty integration is currently being registered in the public Zapier repository, you may not find it until the publishing process is complete.
:::
Sync Twenty with 3000+ apps using [Zapier](https://z... | 1,510 |
0 | petrpan-code/twentyhq/twenty/docs/docs/user-guide | petrpan-code/twentyhq/twenty/docs/docs/user-guide/integrations/generating-api-keys.mdx | ---
title: Generating an API Key
sidebar_position: 2
sidebar_custom_props:
icon: TbApi
---
To generate an API key:
1. Go to Settings in the sidebar on the left.
2. Under Workspace, go to Developers. Here, you'll see a list of active keys that you or your team have created.
3. To generate a new key, click on `+ Cre... | 1,511 |
0 | petrpan-code/twentyhq/twenty/docs/docs/user-guide | petrpan-code/twentyhq/twenty/docs/docs/user-guide/others/_category_.json | {
"label": "Others",
"position": 3
}
| 1,512 |
0 | petrpan-code/twentyhq/twenty/docs/docs/user-guide | petrpan-code/twentyhq/twenty/docs/docs/user-guide/others/glossary.mdx | ---
title: Glossary
sidebar_position: 3
sidebar_custom_props:
icon: TbVocabulary
---
### Company & People
The CRM has two fundamental types of records:
- A `Company` represents a business or organization.
- `People` represent your company's current and prospective customers or clients.
### Pipelines
A `Pipeline` is... | 1,513 |
0 | petrpan-code/twentyhq/twenty/docs/src | petrpan-code/twentyhq/twenty/docs/src/css/custom.css | @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');
/**
* Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framewor... | 1,514 |
0 | petrpan-code/twentyhq/twenty/docs/src | petrpan-code/twentyhq/twenty/docs/src/pages/graphql.tsx | import { createGraphiQLFetcher } from "@graphiql/toolkit";
import { GraphiQL } from "graphiql";
import React from "react";
import ReactDOM from "react-dom";
import Layout from "@theme/Layout";
import BrowserOnly from "@docusaurus/BrowserOnly";
import "graphiql/graphiql.css";
// Docusaurus does SSR for custom pages bu... | 1,515 |
0 | petrpan-code/twentyhq/twenty/docs/src | petrpan-code/twentyhq/twenty/docs/src/theme/icons.js | export {
TbApps,
TbArrowBackUp,
TbArrowBigRight,
TbArticle,
TbBolt,
TbBrandFigma,
TbBrandVscode,
TbBrandWindows,
TbBrandZapier,
TbBug,
TbBugOff,
TbChartDots,
TbChecklist,
TbCloud,
TbScript,
TbForms,
TbTable,
TbSlideshow,
TbBrandDocker,
TbDeviceDesktop,
TbExclamationCircle,
Tb... | 1,516 |
0 | petrpan-code/twentyhq/twenty/docs/src/theme | petrpan-code/twentyhq/twenty/docs/src/theme/DocCard/index.js | import React from 'react';
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import {
findFirstCategoryLink,
useDocById,
} from '@docusaurus/theme-common/internal';
import isInternalUrl from '@docusaurus/isInternalUrl';
import {translate} from '@docusaurus/Translate';
import styles from './styles.module... | 1,517 |
0 | petrpan-code/twentyhq/twenty/docs/src/theme | petrpan-code/twentyhq/twenty/docs/src/theme/DocCard/styles.module.css | .cardContainer {
--ifm-link-color: var(--ifm-color-emphasis-800);
--ifm-link-hover-color: var(--ifm-color-emphasis-700);
--ifm-link-hover-decoration: none;
box-shadow: 0 1.5px 3px 0 rgb(0 0 0 / 15%);
border: 1px solid var(--ifm-color-emphasis-200);
transition: all var(--ifm-transition-fast) ease;
transit... | 1,518 |
0 | petrpan-code/twentyhq/twenty/docs/src/theme/DocSidebarItem | petrpan-code/twentyhq/twenty/docs/src/theme/DocSidebarItem/Category/index.js | import Link from "@docusaurus/Link";
import isInternalUrl from "@docusaurus/isInternalUrl";
import {
Collapsible,
ThemeClassNames,
useCollapsible,
} from "@docusaurus/theme-common";
import { isActiveSidebarItem } from "@docusaurus/theme-common/internal";
import DocSidebarItems from "@theme/DocSidebarItems";
impor... | 1,519 |
0 | petrpan-code/twentyhq/twenty/docs/src/theme/DocSidebarItem | petrpan-code/twentyhq/twenty/docs/src/theme/DocSidebarItem/Link/index.js | import Link from "@docusaurus/Link";
import isInternalUrl from "@docusaurus/isInternalUrl";
import { ThemeClassNames } from "@docusaurus/theme-common";
import { isActiveSidebarItem } from "@docusaurus/theme-common/internal";
import IconExternalLink from "@theme/Icon/ExternalLink";
import clsx from "clsx";
import React ... | 1,520 |
0 | petrpan-code/twentyhq/twenty/docs/src/theme/Icon | petrpan-code/twentyhq/twenty/docs/src/theme/Icon/DarkMode/index.js | import React from 'react';
import { TbMoon } from 'react-icons/tb';
import {useColorMode} from '@docusaurus/theme-common';
const IconDarkMode = (props) => {
const { colorMode } = useColorMode();
return colorMode === 'dark' ? <TbMoon /> : <></>;
}
export default IconDarkMode | 1,521 |
0 | petrpan-code/twentyhq/twenty/docs/src/theme/Icon | petrpan-code/twentyhq/twenty/docs/src/theme/Icon/Home/index.js | import React from "react";
import { TbHome } from "react-icons/tb";
const IconHome = (props) => <TbHome size={14} />;
export default IconHome;
| 1,522 |
0 | petrpan-code/twentyhq/twenty/docs/src/theme/Icon | petrpan-code/twentyhq/twenty/docs/src/theme/Icon/LightMode/index.js | import React from 'react';
import { TbSun } from 'react-icons/tb';
import {useColorMode} from '@docusaurus/theme-common';
const IconLightMode = (props) => {
const { colorMode } = useColorMode();
return colorMode === 'light' ? <TbSun /> : <></>;
}
export default IconLightMode;
| 1,523 |
0 | petrpan-code/twentyhq/twenty/docs/src/theme | petrpan-code/twentyhq/twenty/docs/src/theme/OptionTable/index.js | import styles from "./style.module.css";
import React from "react";
export default function OptionTable({ options }) {
return (
<div className={styles.container}>
<table className={styles.optionsTable}>
<thead className={styles.tableHeader}>
<tr className={styles.tableHeaderRow}>
... | 1,524 |
0 | petrpan-code/twentyhq/twenty/docs/src/theme | petrpan-code/twentyhq/twenty/docs/src/theme/OptionTable/style.module.css | .container {
mask-image: linear-gradient(
to right,
transparent 0.8em,
white 1.5em,
white calc(100% - 1.5em),
transparent calc(100% - 0.8em)
);
overflow-x: auto;
overscroll-behavior-x: contain;
padding-left: 1.5rem;
padding-right: 1.5rem;
padding-bottom: 1rem;
margin-bottom: 1rem;
... | 1,525 |
0 | petrpan-code/twentyhq/twenty/docs/src | petrpan-code/twentyhq/twenty/docs/src/ui/SandpackEditor.js | import { SandpackProvider, SandpackLayout, SandpackCodeEditor, SandpackPreview } from "@codesandbox/sandpack-react";
import uiModule from "!!raw-loader!@site/src/ui/generated/index.js";
import uiComponentsCSS from '!!raw-loader!@site/src/ui/uiComponents.css'
export const SandpackEditor = ({ availableComponentPaths, co... | 1,526 |
0 | petrpan-code/twentyhq/twenty/docs/src | petrpan-code/twentyhq/twenty/docs/src/ui/uiComponents.css | @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
body {
font-family: 'Inter', sans-serif;
}
html {
font-size: 13px;
}
| 1,527 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui | petrpan-code/twentyhq/twenty/docs/src/ui/display/animatedCheckmarkCode.js | import { AnimatedCheckmark } from "@/ui/display/checkmark/components/AnimatedCheckmark";
export const MyComponent = () => {
return (
<AnimatedCheckmark
isAnimating={true}
color="green"
duration={0.5}
size={30}
/>
);
};
| 1,528 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui | petrpan-code/twentyhq/twenty/docs/src/ui/display/appTooltipCode.js | import { AppTooltip } from "@/ui/display/tooltip/AppTooltip";
export const MyComponent = () => {
return (
<>
<p id="hoverText" style={{ display: "inline-block" }}>
Customer Insights
</p>
<AppTooltip
className
anchorSelect="#hoverText"
content="Explore customer be... | 1,529 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui | petrpan-code/twentyhq/twenty/docs/src/ui/display/checkmarkCode.js | import { Checkmark } from "@/ui/display/checkmark/components/Checkmark";
export const MyComponent = () => {
return <Checkmark />;
};
| 1,530 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui | petrpan-code/twentyhq/twenty/docs/src/ui/display/chipCode.js | import { Chip } from "@/ui/display/chip/components/Chip";
export const MyComponent = () => {
return (
<Chip
size="large"
label="Clickable Chip"
clickable={true}
variant="highlighted"
accent="text-primary"
leftComponent
rightComponent
maxWidth="200px"
classNam... | 1,531 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui | petrpan-code/twentyhq/twenty/docs/src/ui/display/entityChipCode.js | import { BrowserRouter as Router } from "react-router-dom";
import { EntityChip } from "@/ui/display/chip/components/EntityChip";
import { IconComponent } from "@/ui/display/icon/types/IconComponent";
export const MyComponent = () => {
return (
<Router>
<EntityChip
linkToEntity="/entity-link"
... | 1,532 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui | petrpan-code/twentyhq/twenty/docs/src/ui/display/iconAddressBookCode.js | import { IconAddressBook } from "@/ui/display/icon/components/IconAddressBook";
export const MyComponent = () => {
return <IconAddressBook size={24} stroke={2} />;
};
| 1,533 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui | petrpan-code/twentyhq/twenty/docs/src/ui/display/overflowingTextWithTooltipCode.js | import { OverflowingTextWithTooltip } from "@/ui/display/tooltip/OverflowingTextWithTooltip";
export const MyComponent = () => {
const crmTaskDescription =
"Follow up with client regarding their recent product inquiry. Discuss pricing options, address any concerns, and provide additional product information. Rec... | 1,534 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui | petrpan-code/twentyhq/twenty/docs/src/ui/display/soonPillCode.js | import { SoonPill } from "@/ui/display/pill/components/SoonPill";
export const MyComponent = () => {
return <SoonPill />;
};
| 1,535 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui | petrpan-code/twentyhq/twenty/docs/src/ui/display/tablerIconExampleCode.js | import { IconArrowLeft } from "@tabler/icons-react";
export const MyComponent = () => {
return <IconArrowLeft color="red" size={48} />;
};
| 1,536 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui | petrpan-code/twentyhq/twenty/docs/src/ui/display/tagCode.js | import { Tag } from "@/ui/display/tag/components/Tag";
export const MyComponent = () => {
return (
<Tag
className
color="red"
text="Urgent"
onClick={() => console.log("click")}
/>
);
};
| 1,537 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui | petrpan-code/twentyhq/twenty/docs/src/ui/feedback/circularProgressBarCode.js | import { CircularProgressBar } from "@/ui/feedback/progress-bar/components/CircularProgressBar";
export const MyComponent = () => {
return <CircularProgressBar size={80} barWidth={6} barColor="green" />;
};
| 1,538 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui | petrpan-code/twentyhq/twenty/docs/src/ui/feedback/progressBarCode.js | import { ProgressBar } from "@/ui/feedback/progress-bar/components/ProgressBar";
export const MyComponent = () => {
return (
<ProgressBar
duration={6000}
delay={0}
easing="easeInOut"
barHeight={10}
barColor="#4bb543"
autoStart={true}
/>
);
};
| 1,539 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui | petrpan-code/twentyhq/twenty/docs/src/ui/generated/index.d.ts | export { ThemeProvider } from '@emotion/react';
import * as react_jsx_runtime from 'react/jsx-runtime';
import * as React$1 from 'react';
import React__default, { ReactNode, MouseEvent, FunctionComponent, ComponentProps } from 'react';
import { motion, AnimationControls } from 'framer-motion';
import { TablerIconsProps... | 1,540 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui | petrpan-code/twentyhq/twenty/docs/src/ui/generated/index.js | "use strict";function n(n,o){if(o==null||o>n.length)o=n.length;for(var r=0,e=new Array(o);r<o;r++)e[r]=n[r];return e}function o(n){if(Array.isArray(n))return n}function r(o){if(Array.isArray(o))return n(o)}function e(n,o,r,e,c,t,u){try{var i=n[t](u);var a=i.value}catch(n){r(n);return}if(i.done){o(a)}else{Promise.resolv... | 1,541 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/button/buttonCode.js | import { Button } from "@/ui/input/button/components/Button";
export const MyComponent = () => {
return (
<Button
className
Icon={null}
title="Click Me"
fullWidth={false}
variant="primary"
size="medium"
position="standalone"
accent="default"
soon={false}
... | 1,542 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/button/buttonGroupCode.js | import { Button } from "@/ui/input/button/components/Button";
import { ButtonGroup } from "@/ui/input/button/components/ButtonGroup";
export const MyComponent = () => {
return (
<ButtonGroup variant="primary" size="large" accent="blue" className>
<Button
className
Icon={null}
title=... | 1,543 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/button/floatingButtonCode.js | import { FloatingButton } from "@/ui/input/button/components/FloatingButton";
import { IconSearch } from "@tabler/icons-react";
export const MyComponent = () => {
return (
<FloatingButton
className
Icon={IconSearch}
title="Click Me"
size="medium"
position="standalone"
applySha... | 1,544 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/button/floatingButtonGroupCode.js | import { FloatingButton } from "@/ui/input/button/components/FloatingButton";
import { FloatingButtonGroup } from "@/ui/input/button/components/FloatingButtonGroup";
import { IconClipboardText, IconCheckbox } from "@tabler/icons-react";
export const MyComponent = () => {
return (
<FloatingButtonGroup size="small... | 1,545 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/button/floatingIconButtonCode.js | import { FloatingIconButton } from "@/ui/input/button/components/FloatingIconButton";
import { IconSearch } from "@tabler/icons-react";
export const MyComponent = () => {
return (
<FloatingIconButton
className
Icon={IconSearch}
size="small"
position="standalone"
applyShadow={true}
... | 1,546 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/button/floatingIconButtonGroupCode.js | import { FloatingIconButtonGroup } from "@/ui/input/button/components/FloatingIconButtonGroup";
import { IconClipboardText, IconCheckbox } from "@tabler/icons-react";
export const MyComponent = () => {
const iconButtons = [
{
Icon: IconClipboardText,
onClick: () => console.log("Button 1 clicked"),
... | 1,547 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/button/lightButtonCode.js | import { LightButton } from "@/ui/input/button/components/LightButton";
export const MyComponent = () => {
return <LightButton
className
icon={null}
title="Click Me"
accent="secondary"
active={false}
disabled={false}
focus={true}
onClick={()=>console.log('click')}
/>;
};
| 1,548 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/button/lightIconButtonCode.js | import { LightIconButton } from "@/ui/input/button/components/LightIconButton";
import { IconSearch } from "@tabler/icons-react";
export const MyComponent = () => {
return (
<LightIconButton
className
testId="test1"
Icon={IconSearch}
title="Click Me"
size="small"
accent="secon... | 1,549 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/button/mainButtonCode.js | import { MainButton } from "@/ui/input/button/components/MainButton";
import { IconCheckbox } from "@tabler/icons-react";
export const MyComponent = () => {
return (
<MainButton
title="Checkbox"
fullWidth={false}
variant="primary"
soon={false}
Icon={IconCheckbox}
/>
);
};
| 1,550 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/button/roundedIconButtonCode.js | import { RoundedIconButton } from "@/ui/input/button/components/RoundedIconButton";
import { IconSearch } from "@tabler/icons-react";
export const MyComponent = () => {
return (
<RoundedIconButton
Icon={IconSearch}
/>
);
};
| 1,551 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/color-scheme/colorSchemeCardCode.js | import { ColorSchemeCard } from "@/ui/input/color-scheme/components/ColorSchemeCard";
export const MyComponent = () => {
return (
<ColorSchemeCard
variant="dark"
selected={true}
/>
);
};
| 1,552 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/color-scheme/colorSchemePickerCode.js | import { ColorSchemePicker } from "@/ui/input/color-scheme/components/ColorSchemePicker";
export const MyComponent = () => {
return <ColorSchemePicker
value
onChange
/>;
};
| 1,553 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/components/autosizeTextInputCode.js | import { RecoilRoot } from "recoil";
import { AutosizeTextInput } from "@/ui/input/components/AutosizeTextInput";
export const MyComponent = () => {
return (
<RecoilRoot>
<AutosizeTextInput
onValidate={() => console.log("onValidate function fired")}
minRows={1}
placeholder="Write a ... | 1,554 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/components/checkboxCode.js | import { Checkbox } from "@/ui/input/components/Checkbox";
export const MyComponent = () => {
return (
<Checkbox
checked={true}
indeterminate={false}
onChange={() => console.log("onChange function fired")}
onCheckedChange={() => console.log("onCheckedChange function fired")}
variant... | 1,555 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/components/entityTitleDoubleTextInputCode.js | import { RecoilRoot } from "recoil";
import React, { useState } from "react";
import { EntityTitleDoubleTextInput } from "@/ui/input/components/EntityTitleDoubleTextInput";
export const MyComponent = () => {
const [firstValue, setFirstValue] = useState("First Value");
const [secondValue, setSecondValue] = use... | 1,556 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/components/iconPickerCode.js | import { RecoilRoot } from "recoil";
import React, { useState } from "react";
import { IconPicker } from "@/ui/input/components/IconPicker";
export const MyComponent = () => {
const [selectedIcon, setSelectedIcon] = useState("");
const handleIconChange = ({ iconKey, Icon }) => {
console.log("Selected Icon:... | 1,557 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/components/imageInputCode.js | import { ImageInput } from "@/ui/input/components/ImageInput";
export const MyComponent = () => {
return <ImageInput/>;
};
| 1,558 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/components/radioCode.js | import { Radio } from "@/ui/input/components/Radio";
export const MyComponent = () => {
const handleRadioChange = (event) => {
console.log("Radio button changed:", event.target.checked);
};
const handleCheckedChange = (checked) => {
console.log("Checked state changed:", checked);
};
return (
... | 1,559 |
0 | petrpan-code/twentyhq/twenty/docs/src/ui/input | petrpan-code/twentyhq/twenty/docs/src/ui/input/components/radioGroupCode.js | import React, { useState } from "react";
import { Radio } from "@/ui/input/components/Radio";
import { RadioGroup } from "@/ui/input/components/RadioGroup";
export const MyComponent = () => {
const [selectedValue, setSelectedValue] = useState("Option 1");
const handleChange = (event) => {
setSelectedValue(ev... | 1,560 |
0 | petrpan-code/twentyhq/twenty/docs/static | petrpan-code/twentyhq/twenty/docs/static/img/logo-square-dark-no-radius.svg | <?xml version="1.0" encoding="UTF-8"?>
<svg fill="none" viewBox="0 0 136 136" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#a)">
<path d="m136 2.2888e-5h-136l1.4448e-4 136h136v-136zm-108.73 50.64c0-7.43 6.03-13.46 13.46-13.46h25.91c0.38 0 0.73 0.23 0.89 0.58s0.09 0.76-0.17 1.05l-5.68 6.17c-0.99 1.07-2.38 1.69-... | 1,561 |
0 | petrpan-code/twentyhq/twenty/docs/static | petrpan-code/twentyhq/twenty/docs/static/img/logo-square-dark.svg | <svg width="136" height="136" viewBox="0 0 136 136" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_2343_96406)">
<path d="M136 2.28882e-05H0L0.000144482 136H136V2.28882e-05ZM27.27 50.6401C27.27 43.2101 33.3 37.1801 40.73 37.1801H66.64C67.02 37.1801 67.37 37.4101 67.53 37.7601C67.69 38.1101 67.... | 1,562 |
0 | petrpan-code/twentyhq/twenty/docs/static | petrpan-code/twentyhq/twenty/docs/static/img/logo-square-light.svg | <svg width="136" height="136" viewBox="0 0 136 136" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_2343_96409)">
<rect width="136" height="136" rx="18" fill="black"/>
<path d="M118.83 0H17.17C7.69 0 0 7.69 0 17.17V118.83C0 128.31 7.69 136 17.17 136H118.83C128.31 136 136 128.31 136 118.83V17.17... | 1,563 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/.env.example | REACT_APP_SERVER_BASE_URL=http://localhost:3000
GENERATE_SOURCEMAP=false
# ———————— Optional ————————
# REACT_APP_SERVER_AUTH_URL=http://localhost:3000/auth
# REACT_APP_SERVER_FILES_URL=http://localhost:3000/files
# CHROMATIC_PROJECT_TOKEN=
| 1,564 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/.eslintrc-ci.js | module.exports = {
overrides: [
{
files: ['*.stories.tsx', '*.test.ts'],
rules: {
'no-console': 'off',
}
},
],
extends: [
'./.eslintrc.js'
],
rules: {
'no-console': 'error',
}
};
| 1,565 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/.eslintrc.js | module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
ecmaVersion: "2023"
},
plugins: [
'@typescript-eslint/eslint-plugin',
'unused-imports',
'simple-import-sort',
'prefer-arrow',
'... | 1,566 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/.nvmrc | 18.16.0 | 1,567 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/.prettierrc | {
"singleQuote": true,
"trailingComma": "all",
"endOfLine": "auto"
} | 1,568 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/codegen-metadata.js | module.exports = {
schema: process.env.REACT_APP_SERVER_BASE_URL + "/metadata",
documents: ['./src/modules/object-metadata/graphql/*.ts', './src/modules/object-record/graphql/*.tsx', './src/modules/metadata/graphql/*.ts'],
overwrite: true,
generates: {
'./src/generated-metadata/': {
preset: 'client',
... | 1,569 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/codegen.js | module.exports = {
schema: process.env.REACT_APP_SERVER_BASE_URL + "/graphql",
documents: ['!./src/modules/object-metadata/**', '!./src/modules/object-record/**', './src/modules/**/*.tsx', './src/modules/**/*.ts'],
overwrite: true,
generates: {
'./src/generated/graphql.tsx': {
plugins: [
'type... | 1,570 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/craco.config.js | const path = require("path");
module.exports = {
devServer: {
client: {
overlay: {
runtimeErrors: (error) => {
switch (error.message) {
case "ResizeObserver loop limit exceeded":
case "Unauthenticated":
return false;
default:
... | 1,571 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/jest.config.js | const { createJestConfig } = require("@craco/craco");
const cracoConfig = require("./craco.config.js");
const jestConfig = createJestConfig(cracoConfig);
module.exports = jestConfig; | 1,572 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/nyc.config.js | const globalCoverage = {
"statements": 60,
"lines": 60,
"functions": 60,
"exclude": [
"src/generated/**/*",
]
};
const modulesCoverage = {
"statements": 50,
"lines": 50,
"functions": 45,
"include": [
"src/modules/**/*",
]
};
const pagesCoverage = {
"statements": 50,
"lines": 50,
"fun... | 1,573 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/package.json | {
"name": "twenty",
"version": "0.1.5",
"private": true,
"dependencies": {
"@air/react-drag-to-select": "^5.0.8",
"@apollo/client": "3.7.17",
"@blocknote/core": "^0.8.2",
"@blocknote/react": "^0.8.2",
"@chakra-ui/accordion": "^2.3.0",
"@chakra-ui/system": "^2.6.0",
"@emotion/react": ... | 1,574 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/tsconfig.json | {
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext", "ES2023", "ES2023.Array"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthrough... | 1,575 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/tsup.config.js | import { defineConfig } from "tsup";
import svgr from 'esbuild-plugin-svgr'
export default defineConfig([
{
entry: {"index": './tsup.ui.index.tsx'},
treeshake: true,
minify: true,
verbose: true,
dts: true,
clean: true,
outDir: "../docs/src/ui/generated",
esbuildPlugins: [svgr({ templ... | 1,576 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/tsup.ui.index.tsx | import { ThemeType } from './src/modules/ui/theme/constants/theme';
export {ThemeProvider} from '@emotion/react';
export {lightTheme, darkTheme} from './src/modules/ui/theme/constants/theme';
declare module '@emotion/react' {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface The... | 1,577 |
0 | petrpan-code/twentyhq/twenty | petrpan-code/twentyhq/twenty/front/yarn.lock | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@aashutoshrathi/word-wrap@^1.2.3":
version "1.2.6"
resolved "https://registry.yarnpkg.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf"
integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A... | 1,578 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/.storybook/main.js | const path = require('path');
computeStoriesGlob = () => {
if (process.env.STORYBOOK_SCOPE === 'pages') {
return [
'../src/pages/**/*.stories.@(js|jsx|ts|tsx)',
'../src/__stories__/*.stories.@(js|jsx|ts|tsx)',
'../src/pages/**/*.docs.mdx',
'../src/__stories__/*.docs.mdx'
]
}
if (... | 1,579 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/.storybook/preview-head.html | <link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap"
rel="stylesheet"
/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.7/iframeResizer.contentWindow.min.js"></script>
<style type="text/css">
body {
margin: 0;
font-family: 'Inter', sans-serif;
-webkit-f... | 1,580 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/.storybook/preview.ts | import { initialize, mswDecorator } from 'msw-storybook-addon';
import { Preview } from '@storybook/react';
import { ThemeProvider } from '@emotion/react';
import { withThemeFromJSXProvider } from '@storybook/addon-styling';
import { lightTheme, darkTheme } from '../src/modules/ui/theme/constants/theme';
import { RootD... | 1,581 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/.storybook/test-runner-jest.js | const { getJestConfig } = require('@storybook/test-runner');
/**
* @type {import('@jest/types').Config.InitialOptions}
*/
module.exports = {
// The default configuration comes from @storybook/test-runner
...getJestConfig(),
/** Add your own overrides below
* @see https://jestjs.io/docs/configuration
*/
... | 1,582 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/public/env-config.js | window._env_ = {
// This file should stay empty. It will be overwritten by the build process.
}
| 1,583 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/public/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link
rel="icon"
href="%PUBLIC_URL%/icons/android/android-launchericon-48-48.png"
/>
<link
rel="apple-touch-icon"
href="%PUBLIC_URL%/icons/ios/icon-192x192.png"
/>
<meta name="viewport" content="width=devi... | 1,584 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/public/manifest.json | {
"short_name": "Twenty",
"name": "Twenty",
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff",
"icons": [
{
"src": "icons/windows11/SmallTile.scale-100.png",
"sizes": "71x71"
},
{
"src": "icons/windows11/SmallTile.s... | 1,585 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/public/mockServiceWorker.js | /* eslint-disable */
/* tslint:disable */
/**
* Mock Service Worker (1.2.1).
* @see https://github.com/mswjs/msw
* - Please do NOT modify this file.
* - Please do NOT serve this file on production.
*/
const INTEGRITY_CHECKSUM = '3d6b9f06410d179a7f7404d4bf4c3c70'
const activeClientIds = new Set()
self.addEventLi... | 1,586 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/public/robots.txt | # https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow: / | 1,587 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/scripts/inject-runtime-env.sh | echo "Generating env-config.js file from runtime environment variables..."
BASE_FILENAME="build/env-config.js"
mkdir -p build
rm -rf "./$BASE_FILENAME"
{
echo "window._env_ = {"
echo " REACT_APP_SERVER_BASE_URL: \"$REACT_APP_SERVER_BASE_URL\","
echo "}"
} > "./$BASE_FILENAME" | 1,588 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/src/App.tsx | import { Navigate, Route, Routes, useLocation } from 'react-router-dom';
import { RecordShowPage } from '@/object-record/components/RecordShowPage';
import { RecordTablePage } from '@/object-record/components/RecordTablePage';
import { AppPath } from '@/types/AppPath';
import { SettingsPath } from '@/types/SettingsPat... | 1,589 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/src/AppNavbar.tsx | import { useLocation } from 'react-router-dom';
import { useCurrentUserTaskCount } from '@/activities/tasks/hooks/useCurrentUserDueTaskCount';
import { useCommandMenu } from '@/command-menu/hooks/useCommandMenu';
import { Favorites } from '@/favorites/components/Favorites';
import { ObjectMetadataNavItems } from '@/ob... | 1,590 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/src/index.css | body {
margin: 0;
font-family: 'Inter', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html {
font-size: 13px;
}
| 1,591 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/src/index.tsx | import { StrictMode } from 'react';
import ReactDOM from 'react-dom/client';
import { HelmetProvider } from 'react-helmet-async';
import { BrowserRouter } from 'react-router-dom';
import { RecoilRoot } from 'recoil';
import { ApolloProvider } from '@/apollo/components/ApolloProvider';
import { ClientConfigProvider } f... | 1,592 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/src/react-app-env.d.ts | /// <reference types="react-scripts" />
| 1,593 |
0 | petrpan-code/twentyhq/twenty/front | petrpan-code/twentyhq/twenty/front/src/setupTests.ts | // jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';
| 1,594 |
0 | petrpan-code/twentyhq/twenty/front/src | petrpan-code/twentyhq/twenty/front/src/__stories__/App.stories.tsx | import { HelmetProvider } from 'react-helmet-async';
import { MemoryRouter } from 'react-router-dom';
import { Meta, StoryObj } from '@storybook/react';
import { ClientConfigProvider } from '@/client-config/components/ClientConfigProvider';
import { UserProvider } from '@/users/components/UserProvider';
import { App }... | 1,595 |
0 | petrpan-code/twentyhq/twenty/front/src | petrpan-code/twentyhq/twenty/front/src/config/index.ts | declare global {
interface Window {
_env_?: Record<string, string>;
__APOLLO_CLIENT__?: any;
}
}
export const REACT_APP_SERVER_BASE_URL =
window._env_?.REACT_APP_SERVER_BASE_URL ||
process.env.REACT_APP_SERVER_BASE_URL ||
'http://localhost:3000';
export const REACT_APP_SERVER_AUTH_URL =
window._en... | 1,596 |
0 | petrpan-code/twentyhq/twenty/front/src | petrpan-code/twentyhq/twenty/front/src/effect-components/CommandMenuEffect.tsx | import { useEffect } from 'react';
import { useSetRecoilState } from 'recoil';
import { commandMenuCommands } from '@/command-menu/constants/commandMenuCommands';
import { commandMenuCommandsState } from '@/command-menu/states/commandMenuCommandsState';
export const CommandMenuEffect = () => {
const setCommands = u... | 1,597 |
0 | petrpan-code/twentyhq/twenty/front/src | petrpan-code/twentyhq/twenty/front/src/effect-components/GotoHotkeysEffect.tsx | import { useGoToHotkeys } from '@/ui/utilities/hotkey/hooks/useGoToHotkeys';
export const GotoHotkeysEffect = () => {
useGoToHotkeys('p', '/objects/people');
useGoToHotkeys('c', '/objects/companies');
useGoToHotkeys('o', '/objects/opportunities');
useGoToHotkeys('s', '/settings/profile');
useGoToHotkeys('t',... | 1,598 |
0 | petrpan-code/twentyhq/twenty/front/src | petrpan-code/twentyhq/twenty/front/src/effect-components/PageChangeEffect.tsx | import { useEffect, useState } from 'react';
import { matchPath, useLocation, useNavigate } from 'react-router-dom';
import { useOpenCreateActivityDrawer } from '@/activities/hooks/useOpenCreateActivityDrawer';
import { useEventTracker } from '@/analytics/hooks/useEventTracker';
import { useOnboardingStatus } from '@/... | 1,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.