This file has been truncated, but you can view the full file.
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
{ | |
"data": [ | |
{ | |
"ft4sc7hcq": "0Lc71XQL3wPpXwc", | |
"73U": 180.18418354947042, | |
"KwVMDaoN": "nzalDQ", | |
"odW": [ | |
{ | |
"v8Oxd": 34.45165560957663, |
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
"use client"; | |
import { type ReactNode } from "react"; | |
import { | |
type Control, | |
type FieldPath, | |
type FieldPathValue, | |
type FieldValues, | |
useWatch, |
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
for file in *.tsx; do | |
cat > "${file%.tsx}.stories.tsx" << EOF | |
import { ${file%.tsx} } from "./${file%.tsx}"; | |
import { Meta, StoryObj } from "@storybook/react"; | |
const meta = { | |
component: ${file%.tsx}, | |
} satisfies Meta<typeof ${file%.tsx}>; | |
export default meta; |
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
import React from 'react'; | |
import { getImageProps } from 'next/image'; | |
import Accessibility from '../../assets/accessibility.svg'; | |
import AvifImage from '../../assets/avif-test-image.avif'; | |
const Component = (props) => { | |
const { | |
props: { srcSet: dark }, | |
} = getImageProps({ src: Accessibility, alt: 'Theme Example', ...props }); |
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
const rules = | |
require("@typescript-eslint/eslint-plugin/use-at-your-own-risk/rules").default; | |
const displayRule = (ruleKey) => { | |
const rule = rules[ruleKey.replace("@typescript-eslint/", "")]; | |
if (!rule) { | |
return ruleKey; | |
} | |
return `${rule.meta.deprecated ? " 💀" : ""} ${ruleKey} - ${ | |
rule.meta.docs.description |
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
[..."タチツテト"].flatMap(c1 => [..."ラリルレロ"].map(c2 => `${c1}${c2}`.repeat(2))).join("\n") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import { type ReactRenderer, composeStories } from "@storybook/react"; | |
import type { Store_CSFExports, PreparedStoryFn } from "@storybook/types"; | |
import { render } from "@testing-library/react"; | |
import { glob } from "glob"; | |
import preview from "../.storybook/preview"; | |
import { setProjectAnnotations } from "@storybook/react"; | |
import { join } from "path"; |
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
openapi: 3.1.0 | |
info: | |
title: TODO 管理ツール API | |
version: 1.0.0 | |
servers: | |
- url: https://dev.example.com/api/v1 | |
description: エンドポイント(開発) | |
- url: https://example.com/api/v1 | |
description: エンドポイント(本番) | |
tags: |
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
import SwaggerParser from "@apidevtools/swagger-parser"; | |
import * as OpenAPISampler from "openapi-sampler"; | |
import type { OpenAPI, OpenAPIV3_1 } from "openapi-types"; | |
SwaggerParser.dereference( | |
"oepnapi.json" | |
).then((api) => { | |
if (!api.paths) throw new Error("No paths found in API definition"); | |
Object.entries<NonNullable<OpenAPI.Document["paths"]>[number]>( |
NewerOlder