-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add @vercel/analytics * docs: fix mismatch heading * ci: implement commitlint * build: add debugging configuration * refactor: implement scalable arch
- Loading branch information
Showing
66 changed files
with
1,182 additions
and
1,273 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Ignore artifacts: | ||
.yarn | ||
.next | ||
public | ||
node_modules | ||
!.storybook |
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,21 @@ | ||
{ | ||
"extends": [ | ||
"plugin:storybook/recommended", | ||
"plugin:cypress/recommended", | ||
"next", | ||
"next/core-web-vitals", | ||
"prettier" | ||
], | ||
"rules": { | ||
"no-unused-vars": [ | ||
"warn", | ||
{ | ||
"args": "after-used", | ||
"argsIgnorePattern": "^_", | ||
"destructuredArrayIgnorePattern": "^_" | ||
} | ||
], | ||
"no-console": ["error", { "allow": ["info", "warn", "error"] }], | ||
"no-alert": "error" | ||
} | ||
} |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit "$1" |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn lint |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn build |
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,4 +1,5 @@ | ||
# Ignore artifacts: | ||
.yarn | ||
.next | ||
public | ||
node_modules | ||
!.storybook |
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
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 |
---|---|---|
|
@@ -22,4 +22,4 @@ | |
"editor.formatOnSave": true | ||
}, | ||
"typescript.enablePromptUseWorkspaceTsdk": true | ||
} | ||
} |
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,50 @@ | ||
// build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) | ||
// ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) | ||
// docs: Documentation only changes | ||
// feat: A new feature | ||
// fix: A bug fix | ||
// perf: A code change that improves performance | ||
// refactor: A code change that neither fixes a bug nor adds a feature | ||
// style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) | ||
// test: Adding missing tests or correcting existing tests | ||
|
||
module.exports = { | ||
extends: ["@commitlint/config-conventional"], | ||
rules: { | ||
"body-leading-blank": [1, "always"], | ||
"body-max-line-length": [2, "always", 100], | ||
"footer-leading-blank": [1, "always"], | ||
"footer-max-line-length": [2, "always", 100], | ||
"header-max-length": [2, "always", 100], | ||
"scope-case": [2, "always", "lower-case"], | ||
"subject-case": [ | ||
2, | ||
"never", | ||
["sentence-case", "start-case", "pascal-case", "upper-case"], | ||
], | ||
"subject-empty": [2, "never"], | ||
"subject-full-stop": [2, "never", "."], | ||
"type-case": [2, "always", "lower-case"], | ||
"type-empty": [2, "never"], | ||
"type-enum": [ | ||
2, | ||
"always", | ||
[ | ||
"build", | ||
"chore", | ||
"ci", | ||
"docs", | ||
"feat", | ||
"fix", | ||
"perf", | ||
"refactor", | ||
"revert", | ||
"style", | ||
"test", | ||
"translation", | ||
"security", | ||
"changeset", | ||
], | ||
], | ||
}, | ||
}; |
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.
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
components/ui/image/image-preview.tsx → components/image/image-preview.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
File renamed without changes.
7 changes: 3 additions & 4 deletions
7
components/layout/auth-layout.tsx → components/layouts/auth-layout.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
components/layout/mobile-layout.tsx → components/layouts/mobile-layout.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
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
components/ui/nav/bottom-nav/index.tsx → components/nav/bottom-nav/index.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
2 changes: 1 addition & 1 deletion
2
components/ui/nav/bottom-nav/middle-nav.tsx → components/nav/bottom-nav/middle-nav.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
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { IBaseTemplate } from "./base-template"; | ||
|
||
const base: IBaseTemplate = { | ||
sampleTextProp: "Hello world!", | ||
}; | ||
|
||
export const mockBaseTemplateProps = { | ||
base, | ||
}; |
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 @@ | ||
.component { | ||
} |
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,22 @@ | ||
import { ComponentMeta, ComponentStory } from "@storybook/react"; | ||
import BaseTemplate, { IBaseTemplate } from "./base-template"; | ||
import { mockBaseTemplateProps } from "./base-template.mocks"; | ||
|
||
export default { | ||
title: "templates/BaseTemplate", | ||
component: BaseTemplate, | ||
// More on argTypes: https://storybook.js.org/docs/react/api/argtypes | ||
argTypes: {}, | ||
} as ComponentMeta<typeof BaseTemplate>; | ||
|
||
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args | ||
const Template: ComponentStory<typeof BaseTemplate> = (args) => ( | ||
<BaseTemplate {...args} /> | ||
); | ||
|
||
export const Base = Template.bind({}); | ||
// More on args: https://storybook.js.org/docs/react/writing-stories/args | ||
|
||
Base.args = { | ||
...mockBaseTemplateProps.base, | ||
} as IBaseTemplate; |
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,11 @@ | ||
import styles from "./base-template.module.css"; | ||
|
||
export interface IBaseTemplate { | ||
sampleTextProp: string; | ||
} | ||
|
||
const BaseTemplate: React.FC<IBaseTemplate> = ({ sampleTextProp }) => { | ||
return <div className={styles.container}>{sampleTextProp}</div>; | ||
}; | ||
|
||
export default BaseTemplate; |
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,12 @@ | ||
import React from "react"; | ||
import styles from "./base-template.module.css"; | ||
|
||
export interface IBaseTemplate { | ||
sampleTextProp: string; | ||
} | ||
|
||
const BaseTemplate: React.FC<IBaseTemplate> = ({ sampleTextProp }) => { | ||
return <div className={styles.container}>{sampleTextProp}</div>; | ||
}; | ||
|
||
export default BaseTemplate; |
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,15 +1,8 @@ | ||
[ | ||
{ | ||
"origin": [ | ||
"*" | ||
], | ||
"method": [ | ||
"POST", | ||
"DELETE" | ||
], | ||
"responseHeader": [ | ||
"*" | ||
], | ||
"origin": ["*"], | ||
"method": ["POST", "DELETE"], | ||
"responseHeader": ["*"], | ||
"maxAgeSeconds": 3600 | ||
} | ||
] |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
"id": 8739, | ||
"name": "Jane", | ||
"email": "[email protected]" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -229,4 +229,4 @@ | |
"bs": "target end-to-end models" | ||
} | ||
} | ||
] | ||
] |
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,7 +30,7 @@ const nextConfig = withPWA({ | |
], | ||
}, | ||
experimental: { | ||
// Required: | ||
// Test appDir | ||
appDir: true, | ||
}, | ||
}); | ||
|
Oops, something went wrong.