-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial structure. List and Detail pages + utils hooks. #3 * Container components + services + models. #3 * Adding List Page. #4 * Json component. #3 * Adding transformer and viewModels. #3 * Adding comments. #3 * Changing projectShortName to projectTitle. #3 * LinkTable component + list transformer. #4 * Fix. #4 * Adding vscode folder to gitignore #3 * generating static html * adding prettier * Config eslint * Adding husky pre-commit. #8 * husky fixes. #8 * setting correct folder * Build all detail pages. #9 * downgrading react and adding react-table. #10 * Adding react-table. #10 * React table type definition. #10 * Changing LinkTable to React-Table. #10 * Creating layout structure. #12 * Adding storybook. #12
- Loading branch information
1 parent
1d8edac
commit ae5e596
Showing
18 changed files
with
29,389 additions
and
2,643 deletions.
There are no files selected for viewing
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,12 @@ | ||
module.exports = { | ||
"stories": [ | ||
"../app/**/*.stories.mdx", | ||
"../app/**/*.stories.@(js|jsx|ts|tsx)" | ||
], | ||
"addons": [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-interactions" | ||
], | ||
"framework": "@storybook/react" | ||
} |
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,9 @@ | ||
export const parameters = { | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
} |
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,9 @@ | ||
import React from "react"; | ||
|
||
interface BodyProps { | ||
children: React.ReactNode | React.ReactNode[]; | ||
} | ||
|
||
export const Body = ({ children }: BodyProps) => { | ||
return <div>{children}</div>; | ||
}; |
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 @@ | ||
export { Body } from "./Body"; |
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,9 @@ | ||
import React from "react"; | ||
|
||
interface FooterProps { | ||
children: React.ReactNode | React.ReactNode[]; | ||
} | ||
|
||
export const Footer = ({ children }: FooterProps) => { | ||
return <footer>{children}</footer>; | ||
}; |
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 @@ | ||
export { Footer } from "./Footer"; |
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,19 @@ | ||
import React from "react"; | ||
import { ComponentStory, ComponentMeta } from "@storybook/react"; | ||
|
||
import { Header } from "./Header"; | ||
|
||
export default { | ||
title: "Components/Header", | ||
component: Header, | ||
argTypes: { | ||
children: { control: "object" }, | ||
}, | ||
} as ComponentMeta<typeof Header>; | ||
|
||
const Template: ComponentStory<typeof Header> = (args) => <Header {...args} />; | ||
|
||
export const Primary = Template.bind({}); | ||
Primary.args = { | ||
children: "Header", | ||
}; |
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,9 @@ | ||
import React from "react"; | ||
|
||
interface HeaderProps { | ||
children: React.ReactNode | React.ReactNode[]; | ||
} | ||
|
||
export const Header = ({ children }: HeaderProps) => { | ||
return <header>{children}</header>; | ||
}; |
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 @@ | ||
export { Header } from "./Header"; |
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,25 @@ | ||
/** | ||
* Page component will hold page's structure, header, content and footer. | ||
* Header and Footer will be configurable through props. | ||
*/ | ||
|
||
import React from "react"; | ||
import { Body } from "../Body"; | ||
import { Footer } from "../Footer"; | ||
import { Header } from "../Header"; | ||
|
||
interface PageProps { | ||
children: React.ReactNode | React.ReactNode[]; | ||
} | ||
|
||
export const Page = ({ children }: PageProps) => { | ||
return ( | ||
//FIXME: Styling will change when we decide about the approach we want to | ||
// follow for this project | ||
<div style={{ display: "flex", flexDirection: "column" }}> | ||
<Header>Header</Header> | ||
<Body>{children}</Body> | ||
<Footer>Footer</Footer> | ||
</div> | ||
); | ||
}; |
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 @@ | ||
export { Page } from "./Page"; |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
export * from "./PrettyJSON"; | ||
export * from "./LinkTable"; | ||
export * from "./Table"; | ||
export * from "./Body"; | ||
export * from "./Footer"; | ||
export * from "./Header"; | ||
export * from "./Page"; |
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.