From 83d398b0f28cd5b15498400331134d7517cfa470 Mon Sep 17 00:00:00 2001 From: ken7253 Date: Sun, 7 Jul 2024 01:22:04 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E3=83=95=E3=82=A1?= =?UTF-8?q?=E3=82=A4=E3=83=AB=E3=81=AA=E3=81=A9=E3=81=8CPrettier=E3=81=AB?= =?UTF-8?q?=E3=82=88=E3=81=A3=E3=81=A6=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA=E3=81=8B=E3=81=A3?= =?UTF-8?q?=E3=81=9F=E3=81=AE=E3=81=A7=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5ee948d..5aed060 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build": "next build", "start": "next start", "lint": "next lint", - "format": "prettier --check --write --ignore-path .gitignore './app/**/*.{js,jsx,ts,tsx,json,css}'" + "format": "prettier . --check --write" }, "dependencies": { "next": "14.0.3", From cb6f2127f2c3a0b7c2e02224e80c3f76ac659f02 Mon Sep 17 00:00:00 2001 From: ken7253 Date: Sun, 7 Jul 2024 01:22:34 +0900 Subject: [PATCH 2/2] `npm run format` --- .github/workflows/deploy.yaml | 4 +- .vscode/settings.json | 2 +- app/call-for-proposals/page.tsx | 2 +- app/code-of-conduct/page.tsx | 46 ++++++++----------- app/components/SponsorLogosSection.tsx | 20 ++++---- app/lib/data.tsx | 2 +- app/page.tsx | 30 ++++++++---- app/talks/[username]/page.tsx | 28 +++++++---- app/talks/page.tsx | 2 +- .../session-time-table/InformationCard.tsx | 2 +- .../InformationCardLabels.tsx | 9 ++-- components/session-time-table/SessionCard.tsx | 4 +- .../session-time-table/SessionLabel.tsx | 2 +- constants/session_details.ts | 2 +- next.config.js | 8 ++-- postcss.config.js | 2 +- tsconfig.json | 22 ++------- typs/index.d.ts | 4 +- 18 files changed, 98 insertions(+), 93 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index a85be2f..ba7c525 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version-file: 'package.json' + node-version-file: "package.json" - name: Restore node_modules cache uses: actions/cache@v3 with: @@ -49,4 +49,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 \ No newline at end of file + uses: actions/deploy-pages@v2 diff --git a/.vscode/settings.json b/.vscode/settings.json index 149ad08..d635c01 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,4 @@ { "editor.formatOnSave": true, "editor.formatOnPaste": false -} \ No newline at end of file +} diff --git a/app/call-for-proposals/page.tsx b/app/call-for-proposals/page.tsx index 532f925..b104022 100644 --- a/app/call-for-proposals/page.tsx +++ b/app/call-for-proposals/page.tsx @@ -114,7 +114,7 @@ export default function Page() {

複数応募: 可

- 応募方法: + 応募方法:
いかなる種類のハラスメントも容認されません。これには、 -

  • - 攻撃的な暴言 -
  • -
  • - 意図的な脅迫 -
  • -
  • - ストーカー行為 -
  • -
  • - 嫌がらせのような写真撮影や録音 -
  • -
  • - 継続的な話の妨害 -
  • -
  • - 不適切な身体的接触 -
  • -
  • - 好ましくない性的嫌がらせ -
  • -
  • - 以上のような行為を推奨したり、擁護したりすること -
  • +
  • 攻撃的な暴言
  • +
  • 意図的な脅迫
  • +
  • ストーカー行為
  • +
  • 嫌がらせのような写真撮影や録音
  • +
  • 継続的な話の妨害
  • +
  • 不適切な身体的接触
  • +
  • 好ましくない性的嫌がらせ
  • +
  • 以上のような行為を推奨したり、擁護したりすること
  • などが含まれます。

    @@ -59,15 +43,21 @@ export default function Page() { 参加者が本規範に違反する行為を行った場合、私たちは、違反者への警告、または払い戻しなしのカンファレンスからの除名など、適切と思われる措置を取ることができます。

    - ハラスメントを受けている場合、または他の誰かがハラスメントを受けていることに気づいた場合、あるいはその他の懸念事項がある場合は、直ちにカンファレンススタッフまたは
    coc@tskaigi.org までご連絡ください。 + ハラスメントを受けている場合、または他の誰かがハラスメントを受けていることに気づいた場合、あるいはその他の懸念事項がある場合は、直ちにカンファレンススタッフまたは + + coc@tskaigi.org + {" "} + までご連絡ください。

    - トラブルを最小限に抑えるため絶対に個人で対応しないでください。警備員や警察への連絡などを含め、安心してカンファレンスに参加できるようにお手伝いさせていただきます。 + トラブルを最小限に抑えるため + 絶対に個人で対応しないでください。 + 警備員や警察への連絡などを含め、安心してカンファレンスに参加できるようにお手伝いさせていただきます。

    - TSKaigi は、すべての人に安全で快適な、そして利用しやすい経験を提供することに専心しています。すべての参加者にとって前向きで充実したカンファレンスとなるよう、共に取り組んでいきましょう。 + TSKaigi + は、すべての人に安全で快適な、そして利用しやすい経験を提供することに専心しています。すべての参加者にとって前向きで充実したカンファレンスとなるよう、共に取り組んでいきましょう。 - ); diff --git a/app/components/SponsorLogosSection.tsx b/app/components/SponsorLogosSection.tsx index df5600a..2309024 100644 --- a/app/components/SponsorLogosSection.tsx +++ b/app/components/SponsorLogosSection.tsx @@ -7,49 +7,49 @@ const sponsorVariants = { divider: `text-secondary divider-secondary`, gridSize: `gap-4 grid-cols-1 sm:grid-cols-2 md:grid-cols-3`, height: `h-48`, - style: `` + style: ``, }, Gold: { divider: `text-accent divider-accent`, gridSize: `gap-4 grid-cols-2 sm:grid-cols-3 md:grid-cols-4`, height: `h-36`, - style: `` + style: ``, }, Silver: { divider: `text-primary divider-primary`, gridSize: `gap-2 grid-cols-3 sm:grid-cols-4 md:grid-cols-5`, height: `h-28`, - style: `` + style: ``, }, Bronze: { divider: `text-error divider-error`, gridSize: `gap-1 grid-cols-4 sm:grid-cols-5 md:grid-cols-6`, height: `h-24`, - style: `` + style: ``, }, Refreshment: { divider: `text-gray-500 divider-gray-500`, gridSize: `gap-4 grid-cols-1`, height: `h-28`, - style: `text-sm` + style: `text-sm`, }, Coffee: { divider: `text-gray-500 divider-gray-500`, gridSize: `gap-4 grid-cols-1`, height: `h-28`, - style: `` + style: ``, }, Beer: { divider: `text-gray-500 divider-gray-500`, gridSize: `gap-4 grid-cols-1`, height: `h-28`, - style: `` + style: ``, }, "Event Platform": { divider: `text-gray-500 divider-gray-500`, gridSize: `gap-4 grid-cols-1`, height: `h-28`, - style: `text-sm` + style: `text-sm`, }, } as const; @@ -106,7 +106,9 @@ const PlanSponsors = ({ }) => { return (
    -

    +

    {`${plan}${!isOptionalPlan ? " Sponsors" : ""}`}

    現地参加の方

    - 会場到着後、受付で入場用QRコードの提示が必要になります。
    - EventHubへのログイン後、入場用QRコードを表示して列に待機してください。
    + 会場到着後、受付で入場用QRコードの提示が必要になります。 +
    + EventHubへのログイン後、入場用QRコードを表示して列に待機してください。 +

    @@ -47,26 +49,38 @@ export default function Home() {

    オンライン視聴には無料の参加登録が必要です。下記リンクからお進みください。
    - オンラインは当日参加も受け付けていますので、お気軽にご参加ください。 + オンラインは当日参加 + も受け付けていますので、お気軽にご参加ください。

    - +

    諸注意事項

    - ・会場にはwifi(id,passはお手持ちのリーフレット参照)がありますのでご自由にお使いください。ただし、遅延を避けるためdocker pull等、負荷が懸念される操作はご遠慮ください。 + ・会場にはwifi(id,passはお手持ちのリーフレット参照)がありますのでご自由にお使いください。ただし、遅延を避けるためdocker + pull等、負荷が懸念される操作はご遠慮ください。

    - ・各トラックルーム、最前列のカバー付きの椅子は個人スポンサーの優先席です。個人スポンサーの優先入場時にTシャツの確認をさせていただいております。 + ・各トラックルーム、最前列のカバー付きの椅子は + 個人スポンサーの優先席 + です。個人スポンサーの優先入場時にTシャツの確認をさせていただいております。

    - ・本日は記録のために、カメラマンが撮影を行っています。個別対応はできかねますので、あらかじめご了承ください。 + ・本日は記録のために、カメラマンが撮影を行っています。個別対応はできかねますので、 + あらかじめご了承ください。

    - ・地下一階のホワイエ(エスカレーターを降りた場所)は、飲食禁止エリアとなっています。各トラックのルーム内や、休憩室でお済ませください。 + ・地下一階のホワイエ(エスカレーターを降りた場所)は、 + 飲食禁止エリア + となっています。各トラックのルーム内や、休憩室でお済ませください。

    diff --git a/app/talks/[username]/page.tsx b/app/talks/[username]/page.tsx index 9aa49c1..a4f419d 100644 --- a/app/talks/[username]/page.tsx +++ b/app/talks/[username]/page.tsx @@ -18,7 +18,7 @@ interface SessionDetailPageProps { export default function Page({ params }: SessionDetailPageProps) { const { username } = params; const detailInfo = SESSION_DETAILS[username]; - const slash = detailInfo.role && detailInfo.org ? '/' : ''; + const slash = detailInfo.role && detailInfo.org ? "/" : ""; return (
    @@ -35,14 +35,16 @@ export default function Page({ params }: SessionDetailPageProps) {

    {detailInfo.sessionAbstract}

    - {detailInfo.speakerImage && {`${username}_image`}} + {detailInfo.speakerImage && ( + {`${username}_image`} + )}
    {detailInfo.displayName}

    {`${detailInfo.org} ${slash} ${detailInfo.role}`}

    @@ -69,7 +71,13 @@ export default function Page({ params }: SessionDetailPageProps) { )} {detailInfo.socials.xAccount && ( - twitter_link + twitter_link )}
    diff --git a/app/talks/page.tsx b/app/talks/page.tsx index 877f0dc..15e171a 100644 --- a/app/talks/page.tsx +++ b/app/talks/page.tsx @@ -12,7 +12,7 @@ const SessionTimeTableRow = ({ timeTableRow }: SessionTimeTableRowProps) => { return (
    {timeTableRow.map((cardInfo, index) => { - if (!['keynote','session'].includes(cardInfo.type)) { + if (!["keynote", "session"].includes(cardInfo.type)) { return ; } else { return ; diff --git a/components/session-time-table/InformationCard.tsx b/components/session-time-table/InformationCard.tsx index b1ab2d9..a66c64d 100644 --- a/components/session-time-table/InformationCard.tsx +++ b/components/session-time-table/InformationCard.tsx @@ -7,7 +7,7 @@ interface InformationCardProps { const InformationCard = ({ cardInfo }: InformationCardProps) => { const { type, content, size, track, labels, keynoteSpeaker } = cardInfo; - + const cardClassNames = type === "time" ? "md:items-center md:justify-center md:rounded-lg md:bg-white" diff --git a/components/session-time-table/InformationCardLabels.tsx b/components/session-time-table/InformationCardLabels.tsx index 394d398..334d3b2 100644 --- a/components/session-time-table/InformationCardLabels.tsx +++ b/components/session-time-table/InformationCardLabels.tsx @@ -20,9 +20,12 @@ const InformationCardLabels = ({ track, labels }: InformationCardLabelsProps) => ? labels?.map((label, index) => ( )) - : labels?.map((label, index) => ( - typeof labelBgColor === "string" && - ))} + : labels?.map( + (label, index) => + typeof labelBgColor === "string" && ( + + ), + )}
    ); }; diff --git a/components/session-time-table/SessionCard.tsx b/components/session-time-table/SessionCard.tsx index 8c737c0..8a72263 100644 --- a/components/session-time-table/SessionCard.tsx +++ b/components/session-time-table/SessionCard.tsx @@ -20,7 +20,9 @@ const Session = ({ session }: SessionProps) => { ) : (

    {title}

    )} -

    {org !== undefined ? `${org} ${displayName}`: displayName}

    +

    + {org !== undefined ? `${org} ${displayName}` : displayName} +

    ); }; diff --git a/components/session-time-table/SessionLabel.tsx b/components/session-time-table/SessionLabel.tsx index f741567..942244a 100644 --- a/components/session-time-table/SessionLabel.tsx +++ b/components/session-time-table/SessionLabel.tsx @@ -12,7 +12,7 @@ const SessionLabel = ({ label, bgColor, isSessionDetail }: SessionLabelProps) => return (

    {label}

    diff --git a/constants/session_details.ts b/constants/session_details.ts index ef13c57..ecc889b 100644 --- a/constants/session_details.ts +++ b/constants/session_details.ts @@ -360,7 +360,7 @@ export const SESSION_DETAILS: { [key: string]: SessionDetail } = { unvalley: { title: "Exploring type-informed lint rules in Rust based TypeScript Linters", displayName: "unvalley", - sessionAbstract: `本セッションの内容は以下となる予定です。 + sessionAbstract: `本セッションの内容は以下となる予定です。 - typescript-eslintにおける型情報Lintルールとは何か - typescript-eslintにおける型情報Lintルールの実現方法 diff --git a/next.config.js b/next.config.js index 222cb0f..c6af4e8 100644 --- a/next.config.js +++ b/next.config.js @@ -1,12 +1,12 @@ const isProduction = process.env.NODE_ENV === "production"; const repository = process.env.REPO_NAME ?? ""; const assetPrefix = isProduction ? `/${repository}` : ""; - + /** @type {import('next').NextConfig} */ const nextConfig = { output: "export", - distDir: 'build', + distDir: "build", assetPrefix, -} +}; -module.exports = nextConfig +module.exports = nextConfig; diff --git a/postcss.config.js b/postcss.config.js index 33ad091..12a703d 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -3,4 +3,4 @@ module.exports = { tailwindcss: {}, autoprefixer: {}, }, -} +}; diff --git a/tsconfig.json b/tsconfig.json index c2d22f7..731f90a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,7 @@ { "compilerOptions": { "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -23,19 +19,9 @@ } ], "paths": { - "@/*": [ - "./*" - ] + "@/*": ["./*"] } }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts", - "build/types/**/*.ts" - ], - "exclude": [ - "node_modules" - ] + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "build/types/**/*.ts"], + "exclude": ["node_modules"] } diff --git a/typs/index.d.ts b/typs/index.d.ts index db9bfa5..59e9221 100644 --- a/typs/index.d.ts +++ b/typs/index.d.ts @@ -7,8 +7,8 @@ interface SessionInfo { } interface SessionDetail { - title: string, - displayName: string, + title: string; + displayName: string; sessionAbstract: string; role: string; org: string;