Skip to content

Commit

Permalink
Move Markdown class to models and add .server to GitHub service
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa committed Dec 9, 2023
1 parent f79cfe7 commit f8962cb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions app/models/tutorial.server.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { GitHub } from "~/services/github";
import type { Attributes } from "~/services/markdown";
import type { Attributes } from "~/models/markdown.server";
import type { GitHub } from "~/services/github.server";

import * as semver from "semver";
import { z } from "zod";

import { AttributesSchema, Markdown } from "~/services/markdown";
import { AttributesSchema, Markdown } from "~/models/markdown.server";
import { isEmpty } from "~/utils/arrays";

interface Recommendation {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/tutorials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SearchForm } from "~/components/search-form";
import { useT } from "~/helpers/use-i18n.hook";
import { i18n } from "~/i18n.server";
import { Tutorial } from "~/models/tutorial.server";
import { GitHub } from "~/services/github";
import { GitHub } from "~/services/github.server";

export function loader(_: DataFunctionArgs) {
return _.context.time("routes/tutorials#loader", async () => {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/tutorials_.$slug.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { useT } from "~/helpers/use-i18n.hook";
import { useUser } from "~/helpers/use-user.hook";
import { i18n } from "~/i18n.server";
import { Tutorial } from "~/models/tutorial.server";
import { GitHub } from "~/services/github";
import { GitHub } from "~/services/github.server";
import { cn } from "~/utils/cn";

type LoaderData = SerializeFrom<typeof loader>;
Expand Down
File renamed without changes.

0 comments on commit f8962cb

Please sign in to comment.