-
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 #331 from h8570rg/develop
0.2.0
- Loading branch information
Showing
18 changed files
with
488 additions
and
3,986 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
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
56 changes: 56 additions & 0 deletions
56
...(routes)/matches/(routes)/[matchId]/(components)/DataModal/(components)/Summary/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
"use client"; | ||
|
||
import classNames from "classnames"; | ||
import { | ||
Table, | ||
TableBody, | ||
TableCell, | ||
TableColumn, | ||
TableHeader, | ||
TableRow, | ||
} from "@/components/Table"; | ||
import { Match } from "@/lib/type"; | ||
|
||
export function Summary({ match }: { match: Match }) { | ||
const columns = [ | ||
{ name: "名前", uid: "name" }, | ||
{ name: "着順", uid: "rankCount" }, | ||
{ | ||
name: "合計", | ||
uid: "totalScore", | ||
}, | ||
]; | ||
|
||
return ( | ||
<Table | ||
classNames={{ | ||
wrapper: classNames("p-0"), | ||
th: classNames("bg-inherit"), | ||
}} | ||
> | ||
<TableHeader columns={columns}> | ||
{(column) => <TableColumn key={column.uid}>{column.name}</TableColumn>} | ||
</TableHeader> | ||
<TableBody items={match.players}> | ||
{(item) => ( | ||
<TableRow key={item.id}> | ||
{(columnKey) => ( | ||
<TableCell className="break-all"> | ||
{(() => { | ||
switch (columnKey) { | ||
case "name": | ||
return item.name; | ||
case "rankCount": | ||
return item.rankCounts.join("-"); | ||
case "totalScore": | ||
return item.totalScore; | ||
} | ||
})()} | ||
</TableCell> | ||
)} | ||
</TableRow> | ||
)} | ||
</TableBody> | ||
</Table> | ||
); | ||
} |
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,84 @@ | ||
import type { MetadataRoute } from "next"; | ||
|
||
/** | ||
* @see https://nextjs.org/docs/app/building-your-application/configuring/progressive-web-apps | ||
*/ | ||
export default function manifest(): MetadataRoute.Manifest { | ||
return { | ||
theme_color: "#2B2A2A", | ||
background_color: "#2B2A2A", | ||
display: "standalone", | ||
scope: "/", | ||
start_url: "/matches", | ||
name: "雀鬼録", | ||
short_name: "雀鬼録", | ||
description: "麻雀成績管理アプリ", | ||
icons: [ | ||
{ | ||
src: "/icon-72.png", | ||
sizes: "72x72", | ||
type: "image/png", | ||
purpose: "maskable", | ||
}, | ||
{ | ||
src: "/icon-96.png", | ||
sizes: "96x96", | ||
type: "image/png", | ||
purpose: "maskable", | ||
}, | ||
{ | ||
src: "/icon-120.png", | ||
sizes: "120x120", | ||
type: "image/png", | ||
purpose: "maskable", | ||
}, | ||
{ | ||
src: "/icon-128.png", | ||
sizes: "128x128", | ||
type: "image/png", | ||
purpose: "maskable", | ||
}, | ||
{ | ||
src: "/icon-144.png", | ||
sizes: "144x144", | ||
type: "image/png", | ||
purpose: "maskable", | ||
}, | ||
{ | ||
src: "/icon-152.png", | ||
sizes: "152x152", | ||
type: "image/png", | ||
purpose: "maskable", | ||
}, | ||
{ | ||
src: "/icon-180.png", | ||
sizes: "180x180", | ||
type: "image/png", | ||
purpose: "maskable", | ||
}, | ||
{ | ||
src: "/icon-192.png", | ||
sizes: "192x192", | ||
type: "image/png", | ||
purpose: "maskable", | ||
}, | ||
{ | ||
src: "/icon-384.png", | ||
sizes: "384x384", | ||
type: "image/png", | ||
purpose: "maskable", | ||
}, | ||
{ | ||
src: "/icon-512.png", | ||
sizes: "512x512", | ||
type: "image/png", | ||
}, | ||
{ | ||
src: "/icon-512.png", | ||
sizes: "512x512", | ||
type: "image/png", | ||
purpose: "maskable", | ||
}, | ||
], | ||
}; | ||
} |
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,8 @@ | ||
export { | ||
Table, | ||
TableHeader, | ||
TableBody, | ||
TableColumn, | ||
TableRow, | ||
TableCell, | ||
} from "@heroui/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
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 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,22 @@ | ||
// @ts-check | ||
|
||
/** | ||
* @type {import('next').NextConfig} | ||
*/ | ||
const nextConfig = { | ||
webpack: (config) => { | ||
config.module.rules.push({ | ||
test: /\.svg$/i, | ||
issuer: /\.[jt]sx?$/, | ||
use: ["@svgr/webpack"], | ||
}); | ||
return config; | ||
}, | ||
logging: { | ||
fetches: { | ||
fullUrl: true, | ||
}, | ||
}, | ||
}; | ||
|
||
export default nextConfig; |
Oops, something went wrong.