-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: setup workspaces and monorepo with turbo repo
- Loading branch information
1 parent
f736b2d
commit 2d43ab2
Showing
749 changed files
with
17,117 additions
and
46,581 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,6 @@ lib | |
*.env | ||
|
||
# static storybook files | ||
storybook-static | ||
storybook-static | ||
.turbo | ||
.rollup.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
strict-peer-dependencies = false | ||
legacy-peer-deps = true | ||
#registry=http://localhost:4873 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** @type {import("eslint").Linter.Config} */ | ||
const config = { | ||
root: true, | ||
extends: [ | ||
'@namefi/eslint-config/base', | ||
], | ||
ignorePatterns: [], | ||
}; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"@namefi/prettier-config" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"name": "@namefi/storybook", | ||
"version": "2.3.14", | ||
"engines": { | ||
"node": ">=20 < 21", | ||
"npm": ">=10 < 11" | ||
}, | ||
"scripts": { | ||
"clean": "git clean -xdf .turbo node_modules out dist lib storybook-static", | ||
"lint": "eslint . --ext js,jsx,ts,tsx --report-unused-disable-directives --max-warnings 0", | ||
"preview": "vite preview", | ||
"dev": "storybook dev -p 6006", | ||
"build": "storybook build", | ||
"test": "test-storybook", | ||
"chromatic:full": "npx chromatic --project-token=${CHROMATIC_PROJECT_TOKEN} --force-rebuild", | ||
"chromatic:incremental": "npx chromatic --project-token=${CHROMATIC_PROJECT_TOKEN} --only-changed", | ||
"chromatic": "pnpm chromatic:full", | ||
"format": "prettier --check \"**/*.{js,cjs,mjs,ts,tsx,md,json}\" --ignore-path=../../.gitignore" | ||
}, | ||
"dependencies": { | ||
"@namefi/ui": "workspace:*", | ||
"@radix-ui/react-icons": "^1.3.0", | ||
"@uidotdev/usehooks": "^2.4.1", | ||
"clsx": "^2.1.0", | ||
"lucide-react": "^0.344.0", | ||
"moment": "^2.30.1", | ||
"ramda": "^0.29.1", | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0", | ||
"tailwind-merge": "^2.2.1" | ||
}, | ||
"license": "UNLICENSED", | ||
"devDependencies": { | ||
"@eslint/js": "^9.4.0", | ||
"@storybook/addon-designs": "^7.0.9", | ||
"@storybook/addon-essentials": "^7.6.20", | ||
"@storybook/addon-interactions": "^7.6.20", | ||
"@storybook/addon-links": "^7.6.20", | ||
"@storybook/addon-mdx-gfm": "^7.6.20", | ||
"@storybook/addon-onboarding": "1.0.11", | ||
"@storybook/addon-viewport": "^7.6.20", | ||
"@storybook/blocks": "^7.6.20", | ||
"@storybook/cli": "^7.6.20", | ||
"@storybook/manager-api": "^7.6.20", | ||
"@storybook/react": "^7.6.20", | ||
"@storybook/react-vite": "^7.6.20", | ||
"@storybook/test": "^7.6.20", | ||
"@storybook/test-runner": "^0.16.0", | ||
"@storybook/theming": "^7.6.20", | ||
"@swc/core": "^1.4.12", | ||
"@types/dompurify": "^3.0.5", | ||
"@types/eslint__js": "^8.42.3", | ||
"@types/jest": "^29.5.11", | ||
"@types/node": "^20.11.14", | ||
"@types/react": "^18.2.55", | ||
"@types/react-dom": "^18.2.18", | ||
"@vitejs/plugin-react": "^4.3.1", | ||
"chromatic": "^11.0.0", | ||
"isomorphic-dompurify": "^2.10.0", | ||
"lint-staged": "^15.2.5", | ||
"marked": "^12.0.0", | ||
"rimraf": "^5.0.5", | ||
"storybook": "^7.6.13", | ||
"storybook-css-modules": "^1.0.8", | ||
"tailwindcss": "^3.4.1", | ||
"typescript": "^5.4.5", | ||
"typescript-plugin-css-modules": "^5.1.0", | ||
"url": "^0.11.3", | ||
"vite": "^5.3.3", | ||
"vite-plugin-svgr": "^4.2.0", | ||
"@namefi/eslint-config": "workspace:*", | ||
"@namefi/prettier-config": "workspace:*", | ||
"@namefi/tailwind-config": "workspace:*", | ||
"@namefi/tsconfig": "workspace:*" | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx,tsx,ts}": "eslint --cache --fix" | ||
}, | ||
"prettier": "@namefi/prettier-config" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// @ts-ignore | ||
module.exports = require('@namefi/tailwind-config/postcss'); |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion
2
src/stories/Components/Cart.stories.tsx → ...k/src/stories/Components/Cart.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { Chip } from '@namefi/ui'; | ||
|
||
const meta = { | ||
title: 'Components/Chip', | ||
component: Chip, | ||
tags: ['autodocs'], | ||
parameters: { | ||
layout: 'centered', | ||
}, | ||
} satisfies Meta<typeof Chip>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const ChipUnselected: Story = { | ||
args: { | ||
selected: false, | ||
children: 'chip', | ||
}, | ||
}; | ||
export const ChipSelected: Story = { | ||
args: { | ||
selected: true, | ||
children: 'chip', | ||
}, | ||
}; |
2 changes: 1 addition & 1 deletion
2
...stories/Components/ComingSoon.stories.tsx → ...stories/Components/ComingSoon.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
...SRecordsTable/DNSRecordsTable.stories.tsx → ...SRecordsTable/DNSRecordsTable.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...SSettingsCard/DNSSettingsCard.stories.tsx → ...SSettingsCard/DNSSettingsCard.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...SSettingsTabs/DNSSettingsTabs.stories.tsx → ...SSettingsTabs/DNSSettingsTabs.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
apps/storybook/src/stories/Components/DomainCard.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { deterministicMoment } from '../consts'; | ||
import { DomainCardDemo } from './DomainCardDemo'; | ||
|
||
const meta = { | ||
title: 'Components/DomainCard', | ||
component: DomainCardDemo, | ||
tags: ['autodocs'], | ||
argTypes: { | ||
onSettingsClicked: { action: 'onSettingsClicked' }, | ||
small: { type: 'boolean' }, | ||
} as any, | ||
parameters: { | ||
layout: 'centered', | ||
}, | ||
} satisfies Meta<typeof DomainCardDemo>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const DomainAvailableCard: Story = { | ||
args: { | ||
domainName: 'namefi.io', | ||
status: 'AVAILABLE', | ||
}, | ||
}; | ||
|
||
export const DomainTakenCard: Story = { | ||
args: { | ||
domainName: 'namefi.com', | ||
ownerAddress: '0xfdB5929A4a3e5a98D70c76E86681cFfdfbf47Fe4', | ||
status: 'TAKEN', | ||
showOwner: true, | ||
showExpiration: true, | ||
expirationDate: deterministicMoment.add(1, 'year').toDate(), | ||
}, | ||
}; | ||
|
||
export const OwnedDomainCard: Story = { | ||
args: { | ||
domainName: 'namefi.eth', | ||
ownerAddress: '0xfdB5929A4a3e5a98D70c76E86681cFfdfbf47Fe4', | ||
status: 'TAKEN', | ||
showOwner: true, | ||
sameOwner: true, | ||
showExpiration: true, | ||
expirationDate: deterministicMoment.add(1, 'year').toDate(), | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.