Skip to content

Commit

Permalink
♻️ refactor(writings/model): rename model -> _model
Browse files Browse the repository at this point in the history
  • Loading branch information
syakoo committed Nov 23, 2023
1 parent fd1c296 commit b4dc3ac
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/app/writings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { formatPageTitle } from "@/config/pageTitle";
import { readWritingContents } from "@/contents/writings/reader";
import { Container } from "@/design-system/layout";
import { WritingList } from "@/features/writings/WritingList";
import { resolveWritingHead } from "@/features/writings/models/headResolver";
import { resolveWritingHead } from "@/features/writings/_models/headResolver";

export const metadata: Metadata = {
title: formatPageTitle("Writings"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Col } from "@/design-system/layout";
import { H3 } from "@/design-system/ui";
import { WritingHead } from "@/features/writings/models/types";
import { WritingHead } from "@/features/writings/_models/types";

import { WritingLink } from "./WritingLink";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Icon } from "@/design-system/icons";
import { Col, Row } from "@/design-system/layout";
import { Link } from "@/design-system/ui";
import { H4, Span } from "@/design-system/ui/Text/Text";
import { WritingHead } from "@/features/writings/models/types";
import { writingTypeConfig } from "@/features/writings/models/writingType";
import { WritingHead } from "@/features/writings/_models/types";
import { writingTypeConfig } from "@/features/writings/_models/writingType";

import { writingLinkStyles } from "./WritingLink.css";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { readWritingContents } from "@/contents/writings/reader";
import { resolveWritingHead } from "@/features/writings/models/headResolver";
import { type WritingHead } from "@/features/writings/models/types";
import { resolveWritingHead } from "@/features/writings/_models/headResolver";
import { type WritingHead } from "@/features/writings/_models/types";
import { isIntersect } from "@/utils/array/isIntersect";

/**
Expand Down
4 changes: 2 additions & 2 deletions src/features/writings/WritingDetail/WritingDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { addYears, isBefore } from "date-fns";
import { Link, FadeIn } from "@/design-system/ui";
import { useMermaid } from "@/features/mdx/plugins/mermaid/useMermaid";
import { useTwitter } from "@/features/mdx/useTwitter";
import { resolveWritingBody } from "@/features/writings/models/bodyResolver";
import { SerializedWriting } from "@/features/writings/models/types";
import { resolveWritingBody } from "@/features/writings/_models/bodyResolver";
import { SerializedWriting } from "@/features/writings/_models/types";

import { TOC } from "./TOC";
import { writingDetailStyles } from "./WritingDetail.css";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Icon } from "@/design-system/icons";
import { Center, Col, Row, Spacer } from "@/design-system/layout";
import { H1, Link, Span, Text } from "@/design-system/ui";
import { WritingHead } from "@/features/writings/models/types";
import { writingTypeConfig } from "@/features/writings/models/writingType";
import { WritingHead } from "@/features/writings/_models/types";
import { writingTypeConfig } from "@/features/writings/_models/writingType";

import { writingHeaderStyles } from "./WritingHeader.css";

Expand Down
6 changes: 3 additions & 3 deletions src/features/writings/WritingDetail/findWriting.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readWritingContents } from "@/contents/writings/reader";
import { serializeWritingBody } from "@/features/writings/models/bodySerializer";
import { resolveWritingHead } from "@/features/writings/models/headResolver";
import { SerializedWriting } from "@/features/writings/models/types";
import { serializeWritingBody } from "@/features/writings/_models/bodySerializer";
import { resolveWritingHead } from "@/features/writings/_models/headResolver";
import { SerializedWriting } from "@/features/writings/_models/types";

/**
* 書き物を取得する関数
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from "@storybook/react";

import { WritingHead } from "@/features/writings/models/types";
import { WritingHead } from "@/features/writings/_models/types";

import { WritingBlock } from ".";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Icon } from "@/design-system/icons";
import { Row } from "@/design-system/layout";
import { H3, Link, Text } from "@/design-system/ui";
import { WritingHead } from "@/features/writings/models/types";
import { writingTypeConfig } from "@/features/writings/models/writingType";
import { WritingHead } from "@/features/writings/_models/types";
import { writingTypeConfig } from "@/features/writings/_models/writingType";

import { writingBlockStyles } from "./WritingBlock.css";

Expand Down
2 changes: 1 addition & 1 deletion src/features/writings/WritingList/WritingList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useSearchParams } from "next/navigation";

import { Col } from "@/design-system/layout";
import { H2, FadeIn } from "@/design-system/ui";
import { WritingHead } from "@/features/writings/models/types";
import { WritingHead } from "@/features/writings/_models/types";

import { WritingBlock } from "./WritingBlock";
import { WritingTab } from "./WritingTab";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { WritingType } from "@/features/writings/models/types";
import type { WritingType } from "@/features/writings/_models/types";

export type WritingListType = WritingType | "all";

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit b4dc3ac

Please sign in to comment.