-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #298 from arrow2nd/dev
dev
- Loading branch information
Showing
83 changed files
with
2,162 additions
and
3,031 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 |
---|---|---|
|
@@ -18,26 +18,26 @@ jobs: | |
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 7 | ||
version: 8 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "18" | ||
node-version: "20" | ||
cache: "pnpm" | ||
|
||
- name: Install dependencies | ||
run: pnpm install --no-frozen-lockfile | ||
|
||
- name: Setup playwright | ||
run: npx playwright install --with-deps | ||
run: pnpm exec playwright install --with-deps | ||
|
||
- name: Waiting for Vercel Preview | ||
uses: patrickedqvist/[email protected] | ||
id: shinypoems | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
max_timeout: 60 | ||
max_timeout: 180 | ||
|
||
- name: Run E2E test | ||
run: | | ||
|
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
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,24 @@ | ||
{ | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"trailingComma": "none", | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"plugins": [ | ||
"@trivago/prettier-plugin-sort-imports", | ||
"prettier-plugin-tailwindcss" | ||
], | ||
"importOrder": [ | ||
"<THIRD_PARTY_MODULES>", | ||
"^components/(.*)$", | ||
"^libs/(.*)$", | ||
"^data/(.*)$", | ||
"^types/(.*)$", | ||
"^styles/(.*)$", | ||
"^[./]" | ||
], | ||
"importOrderSeparation": true, | ||
"importOrderSortSpecifiers": true | ||
} |
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,7 @@ | ||
import { Kiwi_Maru } from "next/font/google"; | ||
|
||
export const kiwiMaru = Kiwi_Maru({ | ||
weight: ["400"], | ||
subsets: ["latin"], | ||
variable: "--font-kiwimaru" | ||
}); |
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
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,23 @@ | ||
import { HTMLProps } from "react"; | ||
|
||
import CommonLink from "components/common/link"; | ||
|
||
const Link = ({ | ||
className = "", | ||
children, | ||
title, | ||
href | ||
}: HTMLProps<HTMLAnchorElement>) => ( | ||
<div className={className}> | ||
<CommonLink | ||
className={`inline-flex flex-row items-center transition-colors hover:text-black`} | ||
title={title} | ||
href={href} | ||
> | ||
{children} | ||
<span>{`by ${title}`}</span> | ||
</CommonLink> | ||
</div> | ||
); | ||
|
||
export default Link; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { render } from "@testing-library/react"; | ||
|
||
import Link from "./link"; | ||
|
||
describe("Link", () => { | ||
const props = { | ||
title: "サンプル", | ||
href: "http://example.com/" | ||
}; | ||
|
||
test("子要素を表示できる", () => { | ||
const { getByText } = render(<Link {...props}>test</Link>); | ||
expect(getByText("test")).toBeDefined(); | ||
}); | ||
|
||
test("子要素が省略された場合にtitleが表示される", () => { | ||
const { getByText } = render(<Link {...props} />); | ||
expect(getByText(props.title)).toBeDefined(); | ||
}); | ||
}); |
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 { HTMLProps } from "react"; | ||
|
||
const Link = (props: HTMLProps<HTMLAnchorElement>) => ( | ||
<a {...props} target="_blank" rel="noopener noreferrer"> | ||
{props.children || props.title} | ||
</a> | ||
); | ||
|
||
export default Link; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
dd03bee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
shiny-poems – ./
shiny-poems-arrow2nd.vercel.app
shiny-poems.vercel.app
shiny-poems-git-main-arrow2nd.vercel.app